/* Profile page styles - fully synchronized with site design system */
:root {
  --profile-primary: #005197;
  --profile-accent: #ff8108;
  --profile-bg: #ffffff;
  --profile-text: #101418;
  --profile-muted: #6b7280;
  --profile-border: #e6e8ec;
  --profile-surface: #ffffff;
  --profile-shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --profile-shadow-md: 0 8px 24px rgba(0, 0, 0, .08);
  --profile-shadow-lg: 0 18px 50px rgba(0, 0, 0, .12);
  --profile-radius-sm: 6px;
  --profile-radius-md: 10px;
  --profile-radius-lg: 16px;
  --profile-max-width: 1400px;
}

/* Page layout with enhanced spacing */
.profile-shell {
  max-width: var(--profile-max-width);
  margin: 40px auto;
  padding: 0 24px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 36px;
  align-items: start;
}

/* Enhanced card system matching site design */
.profile-card {
  background: var(--profile-surface);
  border: 1px solid var(--profile-border);
  padding: 28px;
  border-radius: var(--profile-radius-lg);
  box-shadow: var(--profile-shadow-lg);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Sophisticated sidebar with premium styling */
.profile-aside {
  text-align: center;
  position: relative;
}

.profile-aside::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  background: linear-gradient(135deg, var(--profile-accent), var(--profile-primary));
  border-radius: calc(var(--profile-radius-lg) + 4px);
  z-index: -1;
  opacity: 0.05;
}

.profile-aside .avatar {
  width: 140px;
  height: 140px;
  border-radius: 20px;
  background: #ff810812;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  border: 2px solid #ff8108;
  box-shadow: 0 8px 25px rgba(0, 81, 151, 0.12);
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.profile-aside .avatar:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 81, 151, 0.18);
}

#display-name {
  margin: 16px 0 8px 0;
  font-weight: 800;
  font-size: 22px;
  color: var(--profile-text);
  letter-spacing: -0.02em;
}

#display-email {
  color: var(--profile-muted);
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}

/* Professional action buttons */
.profile-aside .action-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}

.profile-aside .btn-ghost {
  display: block;
  text-align: left;
  padding: 14px 18px;
  border-radius: var(--profile-radius-md);
  border: 1px solid var(--profile-border);
  background: var(--profile-surface);
  color: var(--profile-text);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.profile-aside .btn-ghost i {
  margin-right: 10px;
  width: 16px;
  color: var(--profile-accent);
  transition: color 0.2s ease;
}

.profile-aside .btn-ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 129, 8, 0.08), transparent);
  transition: left 0.6s ease;
}

.profile-aside .btn-ghost:hover::before {
  left: 100%;
}

.profile-aside .btn-ghost:hover {
  background: rgba(255, 129, 8, 0.02);
  border-color: rgba(255, 129, 8, 0.15);
  transform: translateX(4px);
  box-shadow: 0 4px 15px rgba(255, 129, 8, 0.1);
}

.profile-aside .btn-ghost small {
  display: block;
  color: var(--profile-muted);
  font-weight: 400;
  font-size: 13px;
  margin-top: 2px;
}

.profile-aside .btn-logout {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.2);
  background: var(--profile-surface);
  margin-top: 12px;
}

.profile-aside .btn-logout:hover {
  background: rgba(220, 38, 38, 0.03);
  border-color: rgba(220, 38, 38, 0.3);
  transform: translateX(4px);
}

/* Premium breadcrumb styling */
.breadcrumb-section {
  margin: 20px 0 24px 0;
}

.breadcrumb-wrapper {
  background: transparent;
}

.breadcrumb-list {
  display: flex;
  gap: 12px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.breadcrumb-link {
  color: var(--profile-muted);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--profile-accent);
}

/* Enhanced tab system with modern design */
.profile-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  border-bottom: 2px solid rgba(230, 232, 236, 0.6);
  padding-bottom: 0;
}

.profile-tab {
  padding: 14px 20px;
  border-radius: var(--profile-radius-md) var(--profile-radius-md) 0 0;
  background: transparent;
  border: none;
  color: var(--profile-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  margin-bottom: -2px;
}

.profile-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--profile-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.profile-tab:hover {
  color: var(--profile-text);
  background: rgba(255, 129, 8, 0.03);
}

.profile-tab.active {
  background: var(--profile-surface);
  color: var(--profile-accent);
  font-weight: 700;
}

.profile-tab.active::after {
  transform: scaleX(1);
}

/* Tab icons styling */
.profile-tab i {
  margin-right: 8px;
  width: 16px;
  font-size: 14px;
}

/* Section heading icons */
.profile-card h3 i,
.profile-card h4 i {
  margin-right: 8px;
  color: var(--profile-accent);
  font-size: 0.9em;
}

/* Button icons */

/* Premium form styling */
.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--profile-text);
  font-size: 14px;
}

.profile-shell input[type="text"],
.profile-shell input[type="email"], 
.profile-shell input[type="tel"],
.profile-shell textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--profile-border);
  border-radius: var(--profile-radius-md);
  font-size: 15px;
  background: var(--profile-surface);
  color: var(--profile-text);
  transition: all 0.2s ease;
  font-family: inherit;
}

.profile-shell input:focus,
.profile-shell textarea:focus {
  outline: none;
  border-color: var(--profile-accent);
  box-shadow: 0 0 0 3px rgba(255, 129, 8, 0.1);
  background: #fffbf7;
}

/* Enhanced button system */
.btn-primary {
  background: linear-gradient(135deg, var(--profile-accent) 0%, #ff9500 100%);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: var(--profile-radius-md);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(255, 129, 8, 0.25);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 129, 8, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--profile-border);
  padding: 12px 18px;
  border-radius: var(--profile-radius-md);
  cursor: pointer;
  color: var(--profile-text);
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ghost:hover {
  border-color: var(--profile-accent);
  background: rgba(255, 129, 8, 0.03);
  color: var(--profile-accent);
}

.btn-ghost.btn-invoice {
  border-style: dashed;
}

/* Premium content sections */
.addresses-list .address-item {
  border: 1px solid var(--profile-border);
  padding: 20px;
  border-radius: var(--profile-radius-md);
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--profile-shadow-sm);
  transition: all 0.3s ease;
}

.addresses-list .address-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--profile-shadow-md);
}

.orders-list .order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid rgba(230, 232, 236, 0.6);
  transition: all 0.2s ease;
}

.orders-list .order-item:hover {
  background: rgba(255, 129, 8, 0.02);
  padding-left: 8px;
  padding-right: 8px;
  margin-left: -8px;
  margin-right: -8px;
  border-radius: var(--profile-radius-sm);
}

.orders-list .order-item:last-child {
  border-bottom: 0;
}

.order-details {
  flex: 1;
}

.order-number {
  font-weight: 700;
  color: var(--profile-text);
  margin-bottom: 4px;
}

.order-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-completed {
  background: #d1fae5;
  color: #065f46;
}

.status-processing {
  background: #fef3c7;
  color: #92400e;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.order-amount {
  font-weight: 700;
  font-size: 16px;
  color: var(--profile-accent);
}

/* Order detail modal (profile) */
.gdd-modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gdd-modal{
  width: min(980px, 92vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 90px rgba(2,6,23,.28);
  border: 1px solid rgba(2,6,23,.10);
  animation: gddModalUp .18s ease-out;
}

@keyframes gddModalUp{
  from{ transform: translateY(20px) scale(.98); opacity: 0; }
  to{ transform: translateY(0) scale(1); opacity: 1; }
}

.gdd-modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(2,6,23,.08);
  background: #ff810812;
}

.gdd-modal-title{
  font-size: 18px;
  font-weight: 800;
  color: #ff8108;
  display:flex;
  align-items:center;
  gap: 10px;
}

.gdd-modal-title i{ color: #ff8108; }

.gdd-modal-close{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid rgba(2,6,23,.10);
  background: #ffffff;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  color: #0f172a;
  transition: all .15s ease;
}

.gdd-modal-close:hover{
  transform: translateY(-1px);
  border-color: rgba(255,129,8,.35);
  color: #ff8108;
}

.gdd-modal-body{ padding: 18px 20px 22px; }

.gdd-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(2,6,23,.10);
  background: #f8fafc;
}

.gdd-pill.orange{ background: rgba(255,129,8,.12); border-color: rgba(255,129,8,.22); color: #8a3b00; }
.gdd-pill.blue{ background: rgba(0,81,151,.10); border-color: rgba(0,81,151,.18); color: #053a6c; }
.gdd-pill.green{ background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.22); color: #166534; }
.gdd-pill.red{ background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.22); color: #7f1d1d; }

.gdd-kv-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 720px){ .gdd-kv-grid{ grid-template-columns: 1fr; } }

.gdd-kv{
  background: #ff810812;
  border: 1px solid #ff8108;
  border-radius: 14px;
  padding: 14px;
}

.gdd-kv .k{ color: #ff8108; font-size: 12px; font-weight: 800; margin-bottom: 6px; }
.gdd-kv .v{ color: #0f172a; font-size: 13px; font-weight: 700; line-height: 1.4; 
justify-content: space-between;}

.gdd-items-table{ width:100%; border-collapse: collapse; }
.gdd-items-table th, .gdd-items-table td{ padding: 10px 10px; border-bottom: 1px solid rgba(2,6,23,.06); text-align:left; }
.gdd-items-table th{ font-size: 12px; color:#ff8108; text-transform: uppercase; letter-spacing: .04em; }

.gdd-textarea{
  width:100%;
  border-radius: 14px;
  border: 1px solid rgba(2,6,23,.12);
  padding: 12px 12px;
  font-family: inherit;
  resize: vertical;
  min-height: 90px;
  outline: none;
}
.gdd-textarea:focus{ border-color: rgba(0,81,151,.35); box-shadow: 0 0 0 3px rgba(0,81,151,.08); }

.gdd-modal-actions{ display:flex; gap:10px; justify-content:flex-end; margin-top: 14px; flex-wrap: wrap; }
.btn-blue{
 background: #ff8108;
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--profile-radius-md);
    cursor: pointer;
    font-weight: 800;
}
.btn-blue:hover{ transform: translateY(-1px); }

.btn-soft{
  background: rgba(255,129,8,.08);
  border: 1px solid rgba(255,129,8,.22);
  color: #8a3b00;
  padding: 12px 18px;
  border-radius: var(--profile-radius-md);
  cursor:pointer;
  font-weight: 800;
}
.btn-soft:hover{ transform: translateY(-1px); }

/* Utility classes */
.muted {
  color: var(--profile-text);
  font-size: 13px;
  font-weight: 500;
}

.text-lg {
  font-size: 18px;
  font-weight: 600;
}

.text-center {
  text-align: center;
}

/* Enhanced animations and micro-interactions */
.profile-card {
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

/* Loading states */
.loading {
  position: relative;
  color: transparent;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--profile-border);
  border-radius: 50%;
  border-top-color: var(--profile-accent);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty states */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--profile-muted);
}

.empty-state-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  opacity: 0.5;
}

/* Responsive design with mobile-first approach */

/* Site integration adjustments */

.profile-card h1,
.profile-card h2,
.profile-card h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 700;
  color: var(--profile-text);
  line-height: 1.3;
}

.profile-card h3 {
  font-size: 20px;
}

/* Enhanced accessibility */
.profile-shell input:focus,
.profile-shell textarea:focus,
.profile-shell button:focus,
.profile-shell .profile-tab:focus {
  outline: 3px solid rgba(255, 129, 8, 0.15);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .profile-card {
    border-width: 2px;
  }
  
  .profile-tab.active {
    border: 2px solid var(--profile-accent);
  }
}

/* ===============================================
   RESPONSIVE DESIGN - MATCHING SITE STRUCTURE
=============================================== */

/* Desktop Extra Large: 1240px - 1439px */
@media (min-width: 1240px) and (max-width: 1439px) {
  .profile-shell {
    max-width: 1200px;
    padding: 0 20px;
    margin: 32px auto;
  }

  .profile-grid {
    gap: 32px;
    grid-template-columns: 320px 1fr;
  }

  .profile-card {
    padding: 24px;
  }

  .profile-aside .avatar {
    width: 120px;
    height: 120px;
    font-size: 48px;
  }

  #display-name {
    font-size: 20px;
  }

  .profile-aside .btn-ghost {
    padding: 12px 16px;
    font-size: 14px;
  }

  .profile-tabs {
    gap: 4px;
  }

  .profile-tab {
    padding: 12px 18px;
    font-size: 14px;
  }

  .form-row {
    gap: 16px;
  }

  .profile-shell input[type="text"],
  .profile-shell input[type="email"], 
  .profile-shell input[type="tel"],
  .profile-shell textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .btn-primary {
    padding: 12px 20px;
    font-size: 14px;
  }

  .addresses-list .address-item,
  .orders-list .order-item {
    padding: 16px;
  }
}

/* Desktop Large: 968px - 1239px */
@media (min-width: 968px) and (max-width: 1239px) {
  .profile-shell {
    max-width: 940px;
    padding: 0 16px;
    margin: 28px auto;
  }

  .profile-grid {
    gap: 28px;
    grid-template-columns: 300px 1fr;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-aside .avatar {
    width: 110px;
    height: 110px;
    font-size: 44px;
    margin-bottom: 16px;
  }

  #display-name {
    font-size: 19px;
    margin: 14px 0 6px 0;
  }

  #display-email {
    font-size: 13px;
    margin-bottom: 14px;
  }

  .profile-aside .action-list {
    gap: 8px;
    margin-top: 20px;
  }

  .profile-aside .btn-ghost {
    padding: 11px 14px;
    font-size: 14px;
  }

  .profile-tabs {
    gap: 3px;
    margin-bottom: 20px;
  }

  .profile-tab {
    padding: 11px 16px;
    font-size: 14px;
  }

  .form-row {
    gap: 14px;
  }

  .form-group {
    min-width: 180px;
  }

  .profile-shell input[type="text"],
  .profile-shell input[type="email"], 
  .profile-shell input[type="tel"],
  .profile-shell textarea {
    padding: 11px 13px;
    font-size: 14px;
  }

  .btn-primary {
    padding: 11px 18px;
    font-size: 14px;
  }

  .btn-ghost {
    padding: 10px 16px;
  }

  .addresses-list .address-item {
    padding: 16px;
    margin-bottom: 14px;
  }

  .orders-list .order-item {
    padding: 16px 0;
  }

  .order-amount {
    font-size: 15px;
  }
}

/* Tablet: 768px - 967px */
@media (min-width: 768px) and (max-width: 967px) {
  .profile-shell {
    max-width: 100%;
    padding: 0 20px;
    margin: 24px auto;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .profile-aside {
    order: -1;
    text-align: left;
    padding: 24px;
  }

  .profile-aside::before {
    display: none;
  }

  .profile-aside .avatar {
    width: 100px;
    height: 100px;
    font-size: 40px;
    margin-bottom: 16px;
    float: left;
    margin-right: 20px;
  }

  .profile-aside-content {
    overflow: hidden;
    padding-top: 8px;
  }

  #display-name {
    font-size: 18px;
    margin: 0 0 4px 0;
  }

  #display-email {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .profile-aside .action-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
    clear: both;
  }

  .profile-aside .btn-ghost {
    padding: 12px 16px;
    font-size: 14px;
    text-align: center;
  }

  .profile-card {
    padding: 20px;
  }

  .profile-tabs {
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
  }

  .profile-tabs::-webkit-scrollbar {
    height: 4px;
  }

  .profile-tabs::-webkit-scrollbar-track {
    background: var(--profile-border);
    border-radius: 2px;
  }

  .profile-tabs::-webkit-scrollbar-thumb {
    background: var(--profile-accent);
    border-radius: 2px;
  }

  .profile-tab {
    padding: 12px 20px;
    white-space: nowrap;
    min-width: 120px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .form-group {
    min-width: 100%;
  }

  .profile-shell input[type="text"],
  .profile-shell input[type="email"], 
  .profile-shell input[type="tel"],
  .profile-shell textarea {
    padding: 14px 16px;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    padding: 14px;
    font-size: 15px;
  }

  .addresses-list .address-item {
    padding: 18px;
    margin-bottom: 16px;
  }

  .orders-list .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    background: rgba(255, 129, 8, 0.02);
    border-radius: var(--profile-radius-md);
    margin-bottom: 12px;
    border: 1px solid var(--profile-border);
  }

  .orders-list .order-item:hover {
    background: rgba(255, 129, 8, 0.04);
    transform: none;
    padding: 18px;
    margin: 0 0 12px 0;
  }

  .order-details {
    width: 100%;
  }

  .order-amount {
    align-self: flex-end;
    font-size: 16px;
  }
}

/* Mobile Large: 481px - 767px */
@media (min-width: 481px) and (max-width: 767px) {
  .profile-shell {
    padding: 0 16px;
    margin: 20px auto;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .profile-card {
    padding: 16px;
    border-radius: var(--profile-radius-md);
  }

  .profile-aside {
    text-align: center;
    order: -1;
  }

  .profile-aside .avatar {
    width: 90px;
    height: 90px;
    font-size: 36px;
    margin-bottom: 12px;
    float: none;
    margin-right: 0;
  }

  #display-name {
    font-size: 17px;
    margin: 12px 0 4px 0;
  }

  #display-email {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .profile-aside .action-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
  }

  .profile-aside .btn-ghost {
    padding: 12px 14px;
    font-size: 13px;
    text-align: left;
  }

  .breadcrumb-section {
    margin: 16px 0 20px 0;
  }

  .breadcrumb-list {
    gap: 8px;
    font-size: 13px;
  }

  .profile-tabs {
    overflow-x: auto;
    gap: 2px;
    margin-bottom: 16px;
    padding-bottom: 8px;
  }

  .profile-tab {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 100px;
    white-space: nowrap;
  }

  .profile-tab i {
    display: none;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
  }

  .form-group label {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .profile-shell input[type="text"],
  .profile-shell input[type="email"], 
  .profile-shell input[type="tel"],
  .profile-shell textarea {
    padding: 12px 14px;
    font-size: 14px;
  }

  .btn-primary {
    padding: 12px;
    font-size: 14px;
    width: 100%;
  }

  .btn-ghost {
    padding: 10px 14px;
    font-size: 13px;
    width: 100%;
  }

  .addresses-list .address-item {
    padding: 14px;
    margin-bottom: 12px;
  }

  .orders-list .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
    margin-bottom: 10px;
  }

  .order-number {
    font-size: 14px;
  }

  .order-status {
    font-size: 11px;
    padding: 3px 10px;
  }

  .order-amount {
    font-size: 15px;
    align-self: flex-end;
  }

  .text-lg {
    font-size: 16px;
  }

  .empty-state {
    padding: 30px 16px;
  }

  .empty-state-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
  }
}

/* Mobile Small: Max-width 480px */
@media (max-width: 480px) {
  .profile-shell {
    padding: 0 12px;
    margin: 16px auto;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .profile-card {
    padding: 14px;
    border-radius: var(--profile-radius-sm);
    box-shadow: var(--profile-shadow-sm);
  }

  .profile-aside {
    order: -1;
    text-align: center;
  }

  .profile-aside::before {
    display: none;
  }

  .profile-aside .avatar {
    width: 80px;
    height: 80px;
    font-size: 32px;
    margin-bottom: 10px;
    border-radius: 16px;
  }

  #display-name {
    font-size: 16px;
    margin: 10px 0 4px 0;
  }

  #display-email {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .profile-aside .action-list {
    gap: 6px;
    margin-top: 14px;
  }

  .profile-aside .btn-ghost {
    padding: 10px 12px;
    font-size: 12px;
    border-radius: var(--profile-radius-sm);
  }

  .profile-aside .btn-ghost i {
    margin-right: 6px;
    width: 14px;
  }

  .profile-aside .btn-ghost small {
    font-size: 11px;
  }

  .breadcrumb-section {
    margin: 12px 0 16px 0;
  }

  .breadcrumb-list {
    gap: 6px;
    font-size: 12px;
  }

  .profile-tabs {
    overflow-x: auto;
    gap: 1px;
    margin-bottom: 14px;
    padding-bottom: 6px;
    justify-content: space-between;
    gap: 10px 0;
  }

  .profile-tab {
    padding: 8px 12px;
    font-size: 12px;
    width: 48%;
    min-width: 80px;
    white-space: nowrap;
    border-radius: var(--profile-radius-sm) var(--profile-radius-sm) 0 0;
    border-radius: 25px;
    text-align: center;
  }

  .profile-tab.active {
    background-color: #ff8108;
    color: white;
  }

  .profile-tab::after {
    display: none;
  }

  .profile-tab i {
    display: none;
  }

  .profile-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .profile-card h3 i {
    margin-right: 6px;
    font-size: 0.8em;
  }

  .form-row {
    gap: 10px;
    margin-bottom: 10px;
  }

  .form-group label {
    font-size: 12px;
    margin-bottom: 5px;
    font-weight: 600;
  }

  .profile-shell input[type="text"],
  .profile-shell input[type="email"], 
  .profile-shell input[type="tel"],
  .profile-shell textarea {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: var(--profile-radius-sm);
  }

  .btn-primary {
    padding: 10px;
    font-size: 13px;
    width: 100%;
    border-radius: var(--profile-radius-sm);
  }

  .btn-ghost {
    padding: 8px 12px;
    font-size: 12px;
    width: 100%;
    border-radius: var(--profile-radius-sm);
  }

  .addresses-list .address-item {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: var(--profile-radius-sm);
  }

  .orders-list .order-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: var(--profile-radius-sm);
  }

  .orders-list .order-item:hover {
    padding: 12px;
    margin: 0 0 8px 0;
  }

  .order-details {
    width: 100%;
  }

  .order-number {
    font-size: 13px;
    margin-bottom: 4px;
  }

  .order-status {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 12px;
  }

  .order-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--profile-accent);
    align-self: flex-end;
  }

  .text-lg {
    font-size: 15px;
  }

  .muted {
    font-size: 11px;
  }

  .empty-state {
    padding: 24px 12px;
  }

  .empty-state-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 10px;
  }

  /* Mobile specific animations */
  .profile-card {
    animation: mobileSlideUp 0.4s ease-out;
  }

  @keyframes mobileSlideUp {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Touch friendly interactions */
  .profile-tab:active,
  .profile-aside .btn-ghost:active,
  .btn-primary:active,
  .btn-ghost:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }

  /* Improved scrollbar for mobile */
  .profile-tabs::-webkit-scrollbar {
    height: 2px;
  }

  .profile-tabs::-webkit-scrollbar-track {
    background: transparent;
  }

  .profile-tabs::-webkit-scrollbar-thumb {
    background: var(--profile-accent);
    border-radius: 1px;
  }
}


