/**
 * VARNA DESIGNER STUDIO — PRO Account Dashboard Stylesheet
 * Optimized for PC, Tablet, and Mobile screens
 */

:root {
  --acct-plum-900: #2d0a20;
  --acct-plum-800: #3a0f2b;
  --acct-plum-700: #5c1a44;
  --acct-plum-600: #7b235b;
  --acct-gold-500: #c9a227;
  --acct-gold-400: #d4af37;
  --acct-gold-100: #fbf6e7;
  --acct-cream-50: #fcfaf7;
  --acct-cream-100: #f7f3ec;
  --acct-text-main: #1f2937;
  --acct-text-muted: #6b7280;
  --acct-border: rgba(92, 26, 68, 0.09);
  --acct-shadow-sm: 0 2px 8px rgba(92, 26, 68, 0.04);
  --acct-shadow-md: 0 6px 20px rgba(92, 26, 68, 0.06);
  --acct-shadow-lg: 0 12px 32px rgba(92, 26, 68, 0.1);
  --acct-radius: 16px;
  --acct-radius-sm: 10px;
}

/* Base Wrapper Reset for Account Pages */
.account-main.section {
  background: var(--acct-cream-50) !important;
  padding: 36px 0 64px !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 70vh;
}

/* Page Hero for Account */
.page-hero--account {
  background: linear-gradient(135deg, var(--acct-plum-900) 0%, var(--acct-plum-700) 100%) !important;
  padding: 40px 0 32px !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero--account::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero--account .page-hero__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(24px, 4vw, 36px);
  color: #ffffff;
  margin: 0 0 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.page-hero--account .breadcrumb {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-hero--account .breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.page-hero--account .breadcrumb__item {
  color: rgba(255, 255, 255, 0.65);
}
.page-hero--account .breadcrumb__item a {
  color: var(--acct-gold-400);
  text-decoration: none;
  transition: opacity 0.2s;
}
.page-hero--account .breadcrumb__item a:hover {
  opacity: 0.85;
}
.page-hero--account .breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.35);
}

/* Account Layout Grid */
.account-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* =========================================================
   ACCOUNT SIDEBAR
   ========================================================= */
.account-sidebar {
  background: #ffffff;
  border-radius: var(--acct-radius);
  border: 1px solid var(--acct-border);
  box-shadow: var(--acct-shadow-md);
  padding: 24px 20px;
  position: sticky;
  top: 100px;
  transition: all 0.3s ease;
}

.account-profile-card {
  text-align: center;
  padding-bottom: 20px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(92, 26, 68, 0.08);
}

.account-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acct-plum-700), var(--acct-plum-900));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(92, 26, 68, 0.2);
  border: 3px solid #ffffff;
  outline: 2px solid var(--acct-gold-500);
  overflow: hidden;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  user-select: none;
}

.account-avatar__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.account-profile-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--acct-plum-800);
  margin: 0 0 4px;
  line-height: 1.25;
}

.account-profile-email {
  font-size: 12.5px;
  color: var(--acct-text-muted);
  margin: 0 0 10px;
  word-break: break-word;
}

.account-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.account-badge-verified svg {
  color: #10b981;
}

/* Sidebar Navigation */
.account-nav__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-nav__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--acct-radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
  transition: all 0.2s ease;
  position: relative;
}

.account-nav__link svg {
  flex-shrink: 0;
  stroke-width: 2;
  transition: stroke 0.2s ease;
}

.account-nav__link:hover {
  background: var(--acct-gold-100);
  color: var(--acct-plum-700);
}

.account-nav__item--active .account-nav__link {
  background: linear-gradient(135deg, var(--acct-plum-700), var(--acct-plum-800)) !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(92, 26, 68, 0.25);
}

.account-nav__item--active .account-nav__link svg {
  stroke: var(--acct-gold-400);
}

.account-nav__item--logout {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(92, 26, 68, 0.08);
}

.account-nav__link--danger {
  color: #dc2626 !important;
}

.account-nav__link--danger:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.nav-badge {
  margin-left: auto;
  background: var(--acct-gold-500);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.2;
}

/* =========================================================
   ACCOUNT CONTENT AREA
   ========================================================= */
.account-content {
  min-width: 0; /* Prevents grid blowout */
}

/* Welcome Ribbon */
.account-welcome-banner {
  background: linear-gradient(135deg, #fef9ee 0%, #fbf3df 100%);
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: var(--acct-radius);
  padding: 18px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.08);
  position: relative;
}

.account-welcome-banner__icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.account-welcome-banner__content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--acct-plum-900);
  margin: 0 0 4px;
}

.account-welcome-banner__content p {
  font-size: 13.5px;
  color: #785c17;
  margin: 0;
  line-height: 1.45;
}

.account-welcome-banner__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 20px;
  line-height: 1;
  color: #a3822c;
  cursor: pointer;
  padding: 4px;
}
.account-welcome-banner__close:hover {
  color: var(--acct-plum-900);
}

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

.stat-card {
  background: #ffffff;
  border-radius: var(--acct-radius);
  border: 1px solid var(--acct-border);
  box-shadow: var(--acct-shadow-sm);
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--acct-shadow-md);
  border-color: rgba(201, 162, 39, 0.4);
}

.stat-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.stat-card:hover .stat-card__icon {
  transform: scale(1.08);
}

.stat-card__icon--orders {
  background: rgba(92, 26, 68, 0.08);
  color: var(--acct-plum-700);
}

.stat-card__icon--wishlist {
  background: rgba(225, 29, 72, 0.08);
  color: #e11d48;
}

.stat-card__icon--spend {
  background: rgba(201, 162, 39, 0.12);
  color: #92700e;
}

.stat-card__icon svg {
  width: 24px;
  height: 24px;
}

.stat-card__info {
  min-width: 0;
}

.stat-card__value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--acct-plum-900);
  margin: 0 0 2px;
  line-height: 1.15;
}

.stat-card__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--acct-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Account Content Sections */
.account-section {
  background: #ffffff;
  border-radius: var(--acct-radius);
  border: 1px solid var(--acct-border);
  box-shadow: var(--acct-shadow-sm);
  padding: 26px 28px;
  margin-bottom: 28px;
  transition: box-shadow 0.2s ease;
}

.account-section:hover {
  box-shadow: var(--acct-shadow-md);
}

.account-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(92, 26, 68, 0.08);
}

.account-section__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--acct-plum-900);
  margin: 0;
}

/* Buttons inside Account */
.btn-outline {
  border: 1.5px solid var(--acct-plum-700) !important;
  color: var(--acct-plum-700) !important;
  background: transparent !important;
  border-radius: 999px !important;
  padding: 7px 18px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.btn-outline:hover {
  background: var(--acct-plum-700) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(92, 26, 68, 0.2) !important;
}

/* Account Info Grid */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.account-info-item {
  background: var(--acct-cream-50);
  border: 1px solid rgba(92, 26, 68, 0.06);
  border-radius: 12px;
  padding: 16px 18px;
  transition: all 0.2s ease;
}

.account-info-item:hover {
  background: #ffffff;
  border-color: rgba(201, 162, 39, 0.4);
  box-shadow: 0 2px 10px rgba(92, 26, 68, 0.04);
}

.account-info-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #8b7382;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.account-info-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  word-break: break-word;
}

.account-info-value--empty {
  color: #9ca3af;
  font-weight: 400;
}

.account-info-value--empty a {
  color: var(--acct-plum-700);
  font-weight: 600;
  text-decoration: underline;
}

/* Data Table & Orders */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
}

.data-table th {
  background: #fdfaf4;
  color: var(--acct-plum-800);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(92, 26, 68, 0.1);
  text-align: left;
}

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(92, 26, 68, 0.06);
  color: #374151;
  vertical-align: middle;
}

.data-table tr:hover td {
  background: #fffdf9;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-placed { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #e0e7ff; color: #3730a3; }
.badge-processing { background: #fef08a; color: #854d0e; }
.badge-shipped { background: #dbeafe; color: #1e40af; }
.badge-delivered { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.badge-secondary { background: #f3f4f6; color: #4b5563; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-primary { background: #f5e8f0; color: var(--acct-plum-700); }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-success { background: #d1fae5; color: #065f46; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* Empty States */
.empty-state {
  text-align: center;
  padding: 44px 20px;
  background: #fdfbf7;
  border-radius: 14px;
  border: 1.5px dashed rgba(92, 26, 68, 0.14);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(92, 26, 68, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--acct-plum-700);
}

.empty-state__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--acct-plum-900);
  margin: 0 0 6px;
}

.empty-state__text {
  font-size: 14px;
  color: var(--acct-text-muted);
  max-width: 380px;
  margin: 0 auto 20px;
  line-height: 1.5;
}

.btn-primary {
  background: linear-gradient(135deg, var(--acct-plum-700), var(--acct-plum-900)) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 10px 24px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 4px 14px rgba(92, 26, 68, 0.25) !important;
  transition: all 0.25s ease !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(92, 26, 68, 0.35) !important;
}

/* =========================================================
   MOBILE RESPONSIVENESS (< 992px)
   ========================================================= */
@media (max-width: 991px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .account-sidebar {
    position: static;
    top: auto;
    padding: 20px 16px;
    border-radius: 14px;
  }

  /* Profile Card on Mobile: Compact Horizontal or Centered */
  .account-profile-card {
    display: flex;
    align-items: center;
    text-align: left;
    gap: 16px;
    padding-bottom: 16px;
    margin-bottom: 14px;
  }

  .account-avatar {
    width: 62px;
    height: 62px;
    margin: 0;
    font-size: 24px;
    flex-shrink: 0;
  }

  .account-profile-info {
    min-width: 0;
  }

  .account-profile-name {
    font-size: 17px;
  }

  .account-profile-email {
    font-size: 12px;
    margin-bottom: 6px;
  }

  /* Mobile Navigation Strip: Swipeable Horizontal Pills */
  .account-nav__list {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .account-nav__list::-webkit-scrollbar {
    display: none;
  }

  .account-nav__item {
    flex-shrink: 0;
  }

  .account-nav__link {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
    border: 1px solid rgba(92, 26, 68, 0.12);
    border-radius: 999px;
    background: #fdfaf6;
  }

  .account-nav__item--active .account-nav__link {
    border-color: var(--acct-plum-700);
  }

  .account-nav__item--logout {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .account-nav__link--danger {
    border-color: #fecaca;
    background: #fff5f5;
  }

  /* Stats on Tablet / Mobile */
  .account-stats {
    gap: 12px;
  }

  .stat-card {
    padding: 16px 14px;
    gap: 12px;
    border-radius: 12px;
  }

  .stat-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }

  .stat-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .stat-card__value {
    font-size: 20px;
  }

  .stat-card__label {
    font-size: 10.5px;
  }

  .account-section {
    padding: 20px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
  }

  .account-section__title {
    font-size: 18px;
  }
}

/* Ultra Small Mobile (< 540px) */
@media (max-width: 539px) {
  .account-main.section {
    padding: 20px 0 48px !important;
  }

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

  .stat-card {
    padding: 14px 16px;
  }

  .account-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-welcome-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 10px;
  }
}
