/* =========================================================
   ZERALVO ATELIER - LUXURY ACCOUNT & AUTH CSS
   ========================================================= */

.account-page-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 20px 80px;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1a1a1a;
  box-sizing: border-box;
}

/* ---------------------------------------------------------
   1. Auth Section (Giriş / Üye Ol Kartı)
   --------------------------------------------------------- */
.account-auth-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  padding: 20px 0;
}

.auth-box-card {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.auth-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b08d57;
  text-transform: uppercase;
}

.auth-card-header h1 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #111111;
  margin: 6px 0 8px;
}

.auth-card-header p {
  font-size: 13px;
  color: #666666;
  margin: 0;
  line-height: 1.45;
}

.auth-tab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab-switch button {
  padding: 10px 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: #666666;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-switch button.active {
  background: #ffffff;
  color: #111111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 12px;
  font-weight: 700;
  color: #333333;
}

.input-group label .req {
  color: #d32f2f;
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  color: #111111;
  background: #ffffff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 4px 0;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: #666666;
  line-height: 1.4;
  cursor: pointer;
}

.consent-label input {
  margin-top: 2px;
  accent-color: #111111;
  cursor: pointer;
}

.consent-label a {
  color: #111111;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-auth-submit {
  width: 100%;
  height: 48px;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-auth-submit:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.input-group.has-error input {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

.input-group.has-error input:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.field-error-msg {
  font-size: 11px;
  font-weight: 600;
  color: #dc2626;
  margin-top: 2px;
  display: block;
}

.auth-feedback-msg {
  font-size: 12px;
  color: #d32f2f;
  text-align: center;
  font-weight: 600;
  min-height: 16px;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

.auth-switch-link {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
  font-size: 12px;
  color: #666666;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-switch-link a {
  color: #111111;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.auth-switch-link a:hover {
  color: #b08d57;
}

/* ---------------------------------------------------------
   2. Dashboard Section (Giriş Yapılmış Müşteri Paneli)
   --------------------------------------------------------- */

/* Mobil Segmentli Üst Navigasyon */
.account-mobile-tabs-wrap {
  display: none;
  margin-bottom: 20px;
  position: sticky;
  top: 60px;
  z-index: 20;
  background: #ffffff;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.account-mobile-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 12px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}

.account-mobile-tabs::-webkit-scrollbar {
  display: none;
}

.mobile-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid #eaeaea;
  border-radius: 30px;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.2s ease;
  min-height: 44px;
}

.mobile-tab-btn.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: #b08d57;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

.sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #f1f5f9;
  color: #111111;
  font-size: 11px;
  font-weight: 800;
  margin-left: auto;
}

.account-nav-btn.active .sidebar-badge {
  background: #333333;
  color: #ffffff;
}

.account-dashboard-section {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* Sidebar */
.account-sidebar {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.account-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #111111;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}

.user-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #111111;
  margin-bottom: 2px;
}

.user-meta small {
  display: block;
  font-size: 12px;
  color: #64748b;
  max-width: 170px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-nav-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-nav-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.account-nav-btn .nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #64748b;
}

.account-nav-btn .nav-text {
  font-size: 13px;
  font-weight: 700;
  color: inherit;
  white-space: nowrap;
  flex: 0 0 auto;
  text-align: left;
}

.account-nav-btn .nav-arrow {
  margin-left: auto;
  color: #94a3b8;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
}

.account-nav-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.account-nav-btn:hover .nav-icon {
  color: #0f172a;
}

.account-nav-btn.active {
  background: #111111;
  color: #ffffff;
  border-color: #111111;
}

.account-nav-btn.active .nav-icon {
  color: #ffffff;
}

.account-nav-btn.active .nav-arrow {
  color: #ffffff;
}

.account-logout-btn {
  margin-top: 16px;
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  width: 100%;
  border-left: none;
  border-right: none;
  border-bottom: none;
  background: transparent;
  color: #dc2626;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: all 0.2s ease;
}

.account-logout-btn svg {
  flex-shrink: 0;
}

.account-logout-btn:hover {
  background: #fef2f2;
  border-radius: 8px;
}

/* Main Content Panel */
.account-main-content {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  min-height: 480px;
}

.panel-header-with-action {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}

.btn-add-address-trigger {
  padding: 10px 18px;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-add-address-trigger:hover {
  background: #2a2a2a;
  transform: translateY(-1px);
}

.panel-header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
}

.panel-kicker {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #b08d57;
  text-transform: uppercase;
}

.panel-header h2,
.panel-header-with-action h2 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #111111;
  margin: 4px 0 6px;
}

.panel-header p,
.panel-header-with-action p {
  font-size: 13px;
  color: #666666;
  margin: 0;
}

/* VIP Welcome Banner */
.vip-welcome-banner {
  background: linear-gradient(135deg, #090e1a 0%, #172033 100%);
  border-radius: 14px;
  padding: 24px 28px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(9, 14, 26, 0.15);
}

.vip-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #fbbf24;
  text-transform: uppercase;
}

.vip-banner-content h2 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 4px 0 6px;
}

.vip-banner-content p {
  font-size: 13px;
  color: #cbd5e1;
  margin: 0;
}

.btn-vip-assistant {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: 30px;
  color: #fde68a;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-vip-assistant:hover {
  background: #fbbf24;
  color: #111111;
}

/* Stats Grid */
.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.stat-metric-card {
  background: #fafafa;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}

.stat-metric-card span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #888888;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.stat-metric-card strong {
  font-size: 28px;
  font-weight: 800;
  color: #111111;
}

.account-quick-card {
  background: #fbfbfb;
  border: 1px solid #ebdcd0;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.quick-card-icon {
  font-size: 24px;
}

.quick-card-text strong {
  display: block;
  font-size: 14px;
  color: #111111;
  margin-bottom: 4px;
}

.quick-card-text p {
  font-size: 12px;
  color: #666666;
  line-height: 1.5;
  margin: 0;
}

.quick-card-text a {
  color: #111111;
  font-weight: 700;
  text-decoration: underline;
}

/* Orders List & Grouped Sections */
.account-orders-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.orders-group-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.orders-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.orders-group-header h3 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.orders-group-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  background: #f1f5f9;
  color: #64748b;
}

.orders-group-badge.active {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.orders-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-order-card {
  border: 1px solid #eaeaea;
  border-radius: 14px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-order-card:hover {
  border-color: #111111;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
}

.order-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.order-id-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-view-order-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: #0f172a;
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.btn-view-order-status:hover {
  background: #b08d57;
  color: #ffffff;
  transform: translateY(-1px);
}

.order-id-meta strong {
  font-size: 15px;
  font-weight: 800;
  color: #111111;
}

.order-id-meta small {
  display: block;
  font-size: 11px;
  color: #777777;
  margin-top: 4px;
}

/* Order Mini Status Timeline */
.order-mini-timeline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
}

.timeline-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.timeline-step.completed {
  color: #0f172a;
}

.timeline-step.current {
  color: #2563eb;
  font-weight: 800;
}

.step-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.timeline-step.completed .step-circle {
  background: #0f172a;
  color: #ffffff;
}

.timeline-step.current .step-circle {
  background: #2563eb;
  color: #ffffff;
}

.timeline-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 10px;
}

.timeline-line.completed {
  background: #0f172a;
}

.order-cancelled-notice {
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
}

.order-status-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-status-badge.status-new {
  background: #fff8e1;
  color: #b78103;
}

.order-status-badge.status-paid {
  background: #e8f5e9;
  color: #2e7d32;
}

.order-status-badge.status-preparing {
  background: #e3f2fd;
  color: #1565c0;
}

.order-status-badge.status-shipped {
  background: #f3e5f5;
  color: #7b1fa2;
}

.order-status-badge.status-delivered {
  background: #e8f5e9;
  color: #1b5e20;
}

.order-status-badge.status-cancelled {
  background: #ffebee;
  color: #c62828;
}

.order-items-preview-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  background: #fafafa;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
}

.order-item-thumb {
  width: 56px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #eaeaea;
}

.order-item-info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 3px;
}

.order-item-info small {
  display: block;
  font-size: 11px;
  color: #777777;
}

.order-item-total {
  font-size: 13px;
  font-weight: 800;
  color: #111111;
}

.order-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
}

.order-tracking-info {
  font-size: 12px;
  color: #555555;
}

.order-tracking-info strong {
  color: #111111;
}

.order-grand-total {
  text-align: right;
}

.order-grand-total span {
  font-size: 11px;
  color: #888888;
  display: block;
}

.order-grand-total strong {
  font-size: 18px;
  font-weight: 800;
  color: #111111;
}

/* Smart Addresses Defteri */
.saved-addresses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.saved-addr-card {
  border: 1px solid #eaeaea;
  border-radius: 14px;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: all 0.2s ease;
  position: relative;
}

.saved-addr-card:hover {
  border-color: #111111;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.saved-addr-card.is-default-card {
  border-color: #fbbf24;
  background: #fffdfa;
}

.addr-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.addr-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.default-star-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #b45309;
}

.addr-card-body strong {
  font-size: 14px;
  font-weight: 800;
  color: #111111;
  display: block;
}

.addr-card-body .addr-recipient {
  font-size: 12px;
  color: #475569;
  margin-top: 4px;
  font-weight: 600;
}

.addr-card-body .addr-full {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
  line-height: 1.45;
}

.addr-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn-addr-action {
  padding: 6px 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-addr-action:hover {
  background: #f8fafc;
  color: #0f172a;
}

.btn-addr-action.action-delete {
  color: #ef4444;
  border-color: #fee2e2;
  margin-left: auto;
}

.btn-addr-action.action-delete:hover {
  background: #fef2f2;
}

.btn-addr-action.action-make-default {
  color: #d97706;
  border-color: #fef3c7;
}

/* Address Modal */
.address-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeInModal 0.2s ease;
}

.address-modal-overlay[hidden] {
  display: none !important;
}

.address-modal-card {
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  color: #0f172a;
}

.modal-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-card-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.btn-modal-close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.modal-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.btn-primary-action {
  padding: 12px 24px;
  background: #111111;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.btn-primary-action:hover {
  opacity: 0.85;
}

.btn-secondary-action {
  padding: 12px 24px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-secondary-action:hover {
  background: #e2e8f0;
}

/* Favorites Grid */
.account-favorites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.account-fav-card {
  border: 1px solid #eaeaea;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.account-fav-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f5f5f5;
}

.fav-card-info {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fav-card-info strong {
  font-size: 12px;
  color: #111111;
}

.fav-card-info small {
  font-size: 10px;
  color: #888888;
  margin: 4px 0 10px;
}

.btn-remove-fav {
  padding: 6px 10px;
  border: 1px solid #e0e0e0;
  background: #ffffff;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #d32f2f;
  cursor: pointer;
}

/* Profile settings */
.profile-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.account-danger-zone {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.btn-delete-account {
  border: none;
  background: transparent;
  color: #d32f2f;
  font-size: 11px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.empty-state-card {
  padding: 48px 20px;
  text-align: center;
  color: #888888;
  font-size: 13px;
}

/* ---------------------------------------------------------
   Responsive Breakpoints
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .account-dashboard-section {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .account-sidebar {
    display: block;
    padding: 16px;
    border-radius: 14px;
  }

  .account-user-card {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .account-nav-list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .account-nav-list::-webkit-scrollbar {
    display: none;
  }

  .account-nav-btn {
    flex: none;
    padding: 10px 16px;
    border-radius: 30px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    white-space: nowrap;
    width: auto;
  }

  .account-nav-btn.active {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
  }

  .account-nav-btn .nav-arrow {
    display: none;
  }

  .saved-addresses-grid,
  .profile-settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .account-page-container {
    padding: 16px 12px 60px;
  }

  .auth-box-card {
    padding: 24px 16px;
    border-radius: 12px;
  }

  .account-main-content {
    padding: 20px 14px;
    border-radius: 12px;
  }

  .account-stats-grid {
    grid-template-columns: 1fr;
  }

  .account-favorites-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-row-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .address-modal-card {
    padding: 20px 16px;
  }

  .order-mini-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .timeline-line {
    display: none;
  }
}


