/**
 * Oralyze Luxury WooCommerce My Account Stylesheet
 * Aesthetic Benchmark: Wonder / Nook Wellness Editorial (Kinfolk luxury, travertine surfaces)
 * Colors: Mona Sans, Playfair Display, #767EFC, #FCB40D, #393CAD, #20213A, #FAF9F6, #F0EFFF
 */

:root {
  --ow-paper: #FAF9F6;
  --ow-card-bg: #FFFFFF;
  --ow-tint: #F3EEE8;
  --ow-sage: #F0EFFF;
  --ow-line: #E7DFD7;
  --ow-ink: #20213A;
  --ow-muted: #55576B;
  --ow-action: #393CAD;
  --ow-brand: #767EFC;
  --ow-gold: #FCB40D;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-primary: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Page Level Settings */
body.woocommerce-account {
  background-color: var(--ow-paper, #FAF9F6) !important;
  color: var(--ow-ink, #20213A);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
}

/* Hide redundant generic WordPress page title */
body.woocommerce-account .ow-inner-page article > .entry-header,
body.woocommerce-account .ow-inner-page > .entry-header,
body.woocommerce-account .entry-header,
body.woocommerce-account .entry-title {
  display: none !important;
}

body.woocommerce-account .entry-content > .woocommerce {
  width: 100%;
}

/* Reset WooCommerce default percentage floats that cause column collapsing */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Main Container Wrapper */
.oralyze-account-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

/* ==========================================================================
   1. EDITORIAL USER PROFILE HEADER
   ========================================================================== */
.account-profile-header {
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  border-radius: 24px;
  padding: 32px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 24px -2px rgba(32, 33, 58, 0.04);
  position: relative;
  overflow: hidden;
}

.profile-info-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Avatar Initials Capsule */
.profile-avatar-capsule {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F0EFFF 0%, #E6E4FF 100%);
  border: 2px solid var(--ow-brand);
  box-shadow: 0 0 0 4px rgba(118, 126, 252, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.avatar-initials {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  color: var(--ow-action);
  letter-spacing: -0.02em;
}

.avatar-ring-shimmer {
  position: absolute;
  inset: -100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(25deg);
  animation: oralyze-shimmer 4.5s infinite;
  pointer-events: none;
}

/* Meta Typography */
.profile-meta-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-eyebrow {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ow-brand);
}

.profile-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 550;
  line-height: 1.2;
  color: var(--ow-ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.profile-subline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ow-muted);
}

.profile-sep {
  color: var(--ow-line);
}

/* Header Actions Right */
.profile-actions-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Luxury Status Pill */
.ow-luxury-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(252, 180, 13, 0.12) 0%, rgba(118, 126, 252, 0.12) 100%);
  border: 1px solid rgba(252, 180, 13, 0.4);
  color: var(--ow-ink);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(252, 180, 13, 0.12);
}

.ow-luxury-badge .badge-star-icon {
  color: var(--ow-gold);
  filter: drop-shadow(0 1px 2px rgba(252, 180, 13, 0.4));
}

.badge-shimmer-sweep {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-20deg);
  animation: oralyze-sweep 3.5s infinite;
  pointer-events: none;
}

@keyframes oralyze-sweep {
  0% { left: -100%; }
  40%, 100% { left: 200%; }
}

@keyframes oralyze-shimmer {
  0% { transform: translateX(-150%) rotate(25deg); }
  35%, 100% { transform: translateX(150%) rotate(25deg); }
}

/* Logout link */
.profile-logout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--ow-tint);
  border: 1px solid var(--ow-line);
  color: var(--ow-muted);
  font-size: 13px;
  font-weight: 550;
  text-decoration: none;
  transition: all 0.2s ease;
}

.profile-logout-link:hover {
  background: #FFFFFF;
  border-color: var(--ow-brand);
  color: var(--ow-action);
  box-shadow: 0 2px 8px rgba(57, 60, 173, 0.08);
}

/* ==========================================================================
   2. TWO-COLUMN MAIN GRID & SIDEBAR NAVIGATION
   ========================================================================== */
.account-main-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}

.account-sidebar-col {
  width: 100% !important;
  max-width: 280px !important;
  min-width: 260px !important;
}

.account-content-col {
  width: 100% !important;
  min-width: 0 !important;
}

/* Sidebar Nav Card */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 4px 20px -2px rgba(32, 33, 58, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

.account-nav-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ow-muted);
}

.nav-label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ow-brand);
}

.account-nav-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-nav-list li {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 550;
  color: var(--ow-ink);
  text-decoration: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.account-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ow-muted);
  transition: color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.account-nav-title {
  flex: 1 1 auto;
  white-space: nowrap;
}

/* WooCommerce Notices Luxury Styling */
.woocommerce-NoticeGroup,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-radius: 16px !important;
  background: #FFFFFF !important;
  border: 1px solid var(--ow-line) !important;
  border-left: 4px solid var(--ow-action) !important;
  padding: 16px 22px !important;
  box-shadow: 0 4px 18px rgba(32, 33, 58, 0.04) !important;
  font-family: var(--font-primary) !important;
  font-size: 13px !important;
  color: var(--ow-ink) !important;
  margin-bottom: 24px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.woocommerce-info {
  border-left-color: var(--ow-brand) !important;
  background: linear-gradient(135deg, #F0EFFF 0%, #FFFFFF 100%) !important;
}

.woocommerce-message {
  border-left-color: #2e7d32 !important;
}

.woocommerce-error {
  border-left-color: #A73135 !important;
}

.woocommerce-info .button,
.woocommerce-message .button,
.woocommerce-error .button {
  background: var(--ow-action) !important;
  color: #FFFFFF !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  padding: 8px 18px !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 8px rgba(57, 60, 173, 0.2) !important;
  float: none !important;
}

.account-nav-chevron {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: var(--ow-muted);
  flex-shrink: 0;
}

.account-nav-link:hover {
  background-color: var(--ow-tint);
  color: var(--ow-action);
}

.account-nav-link:hover .account-nav-icon {
  color: var(--ow-brand);
  transform: translateX(2px);
}

.account-nav-link:hover .account-nav-chevron {
  opacity: 0.7;
  transform: translateX(0);
}

/* Active Nav Item */
.account-nav-list li.is-active .account-nav-link {
  background-color: var(--ow-action) !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(57, 60, 173, 0.28);
}

.account-nav-list li.is-active .account-nav-icon {
  color: #FFFFFF !important;
}

.account-nav-list li.is-active .account-nav-chevron {
  opacity: 0.9;
  transform: translateX(0);
  color: #FFFFFF;
}

/* Concierge Card in Sidebar */
.account-nav-concierge-card {
  margin-top: 8px;
  padding: 16px;
  border-radius: 14px;
  background: var(--ow-sage);
  border: 1px solid rgba(118, 126, 252, 0.2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.concierge-card-icon {
  color: var(--ow-brand);
}

.concierge-card-title {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 650;
  color: var(--ow-ink);
  margin: 0;
}

.concierge-card-desc {
  font-size: 12px;
  line-height: 1.45;
  color: var(--ow-muted);
  margin: 0;
}

.concierge-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ow-action);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.2s;
}

.concierge-card-link:hover {
  color: var(--ow-brand);
}

/* ==========================================================================
   3. DASHBOARD CONTENT GRID & STAT CARDS
   ========================================================================== */
.account-dashboard-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.dashboard-greeting-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dashboard-greeting-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 550;
  color: var(--ow-ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.dashboard-greeting-sub {
  font-size: 14px;
  color: var(--ow-muted);
  margin: 0;
}

/* 4 Quick Stat Cards */
.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.account-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  border-radius: 18px;
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(32, 33, 58, 0.03);
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-stat-card.stat-card--interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(118, 126, 252, 0.4);
  box-shadow: 0 8px 24px -2px rgba(57, 60, 173, 0.08);
}

.account-stat-card.stat-card--interactive:hover .stat-card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--ow-action);
}

.stat-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon--indigo {
  background: rgba(57, 60, 173, 0.08);
  color: var(--ow-action);
}

.stat-icon--brand {
  background: rgba(118, 126, 252, 0.12);
  color: var(--ow-brand);
}

.stat-icon--gold {
  background: rgba(252, 180, 13, 0.15);
  color: #a46d00;
}

.stat-icon--sage {
  background: var(--ow-sage);
  color: var(--ow-action);
}

.stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  color: var(--ow-ink);
  line-height: 1.1;
}

.stat-value-text {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 650;
  color: var(--ow-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.stat-value-badge {
  font-size: 12px;
  font-weight: 650;
  color: var(--ow-action);
  background: rgba(57, 60, 173, 0.08);
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
  width: fit-content;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ow-muted);
}

.stat-card-arrow {
  position: absolute;
  top: 18px;
  right: 16px;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s ease;
  color: var(--ow-muted);
}

/* Routine Reminder Banner */
.account-wellness-banner {
  background: linear-gradient(135deg, #F0EFFF 0%, #FAF9F6 100%);
  border: 1px solid rgba(118, 126, 252, 0.25);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 4px 18px rgba(118, 126, 252, 0.05);
}

.wellness-banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid rgba(252, 180, 13, 0.4);
  color: #946400;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.wellness-banner-badge svg {
  color: var(--ow-gold);
}

.wellness-banner-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wellness-banner-title {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 650;
  color: var(--ow-ink);
  margin: 0;
}

.wellness-banner-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ow-muted);
  margin: 0;
}

.wellness-banner-action {
  flex-shrink: 0;
}

/* Generic Luxury Buttons */
.ow-btn-indigo,
.ow-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ow-action);
  color: #FFFFFF !important;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(57, 60, 173, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ow-btn-indigo:hover,
.ow-btn-action:hover {
  background: #2E308C;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(57, 60, 173, 0.3);
}

.ow-btn-action--full {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 14px;
}

.ow-btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9999px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ow-btn-pill--primary {
  background: var(--ow-action);
  color: #FFFFFF !important;
  border: 1px solid var(--ow-action);
}

.ow-btn-pill--primary:hover {
  background: #2E308C;
  border-color: #2E308C;
  transform: translateY(-1px);
}

.ow-btn-pill--secondary {
  background: var(--ow-tint);
  color: var(--ow-ink);
  border: 1px solid var(--ow-line);
}

.ow-btn-pill--secondary:hover {
  background: #FFFFFF;
  border-color: var(--ow-brand);
  color: var(--ow-action);
}

/* ==========================================================================
   4. RECENT ORDERS TEASER & STATUS BADGES
   ========================================================================== */
.account-recent-orders-section {
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  border-radius: 20px;
  padding: 28px 30px;
  box-shadow: 0 4px 20px -2px rgba(32, 33, 58, 0.03);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ow-line);
  padding-bottom: 18px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 550;
  color: var(--ow-ink);
  margin: 0;
}

.section-subtitle {
  font-size: 13px;
  color: var(--ow-muted);
  margin: 2px 0 0;
}

.section-action-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ow-action);
  text-decoration: none;
  transition: all 0.2s;
  flex-shrink: 0;
}

.section-action-link:hover {
  color: var(--ow-brand);
  transform: translateX(3px);
}

/* Recent order card rows */
.recent-orders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.recent-order-card {
  border: 1px solid var(--ow-line);
  border-radius: 14px;
  padding: 16px 20px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.22s ease;
}

.recent-order-card:hover {
  border-color: rgba(118, 126, 252, 0.4);
  box-shadow: 0 4px 16px rgba(57, 60, 173, 0.05);
}

.recent-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.recent-order-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.order-id-tag {
  font-weight: 700;
  color: var(--ow-ink);
}

.order-meta-sep {
  color: var(--ow-line);
}

.order-date {
  color: var(--ow-muted);
}

.recent-order-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.recent-order-items {
  display: flex;
  align-items: center;
  gap: 16px;
}

.order-items-thumbnails {
  display: flex;
  align-items: center;
  gap: 6px;
}

.order-thumb-img,
.order-thumb-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--ow-tint);
  border: 1px solid var(--ow-line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ow-muted);
}

.order-items-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-items-count {
  font-size: 12px;
  color: var(--ow-muted);
}

.order-items-total {
  font-size: 14px;
  font-weight: 650;
  color: var(--ow-ink);
}

/* ==========================================================================
   STATUS BADGES
   ========================================================================== */
.ow-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.ow-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.ow-status-badge.status--completed {
  background: rgba(46, 125, 50, 0.08);
  color: #1e6022;
  border: 1px solid rgba(46, 125, 50, 0.2);
}

.ow-status-badge.status--processing,
.ow-status-badge.status--pending {
  background: rgba(118, 126, 252, 0.12);
  color: var(--ow-action);
  border: 1px solid rgba(118, 126, 252, 0.3);
}

.ow-status-badge.status--on-hold {
  background: rgba(252, 180, 13, 0.14);
  color: #946400;
  border: 1px solid rgba(252, 180, 13, 0.35);
}

.ow-status-badge.status--cancelled,
.ow-status-badge.status--failed,
.ow-status-badge.status--refunded {
  background: rgba(167, 49, 53, 0.08);
  color: #A73135;
  border: 1px solid rgba(167, 49, 53, 0.2);
}

/* Empty States */
.account-empty-state {
  text-align: center;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--ow-sage);
  color: var(--ow-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.empty-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 550;
  color: var(--ow-ink);
  margin: 0;
}

.empty-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ow-muted);
  max-width: 440px;
  margin: 0 auto 12px;
}

/* ==========================================================================
   5. ORDERS ARCHIVE VIEW
   ========================================================================== */
.account-orders-view,
.account-addresses-view,
.account-details-view,
.account-downloads-view,
.account-view-order-view {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-view-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-view-eyebrow {
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ow-brand);
}

.account-view-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 550;
  color: var(--ow-ink);
  margin: 0;
}

.account-view-subtitle {
  font-size: 13px;
  color: var(--ow-muted);
  margin: 0;
}

/* Luxury Orders Card List */
.luxury-orders-cards-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.luxury-order-card {
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 4px 18px -2px rgba(32, 33, 58, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.22s ease;
}

.luxury-order-card:hover {
  border-color: rgba(118, 126, 252, 0.4);
  box-shadow: 0 8px 24px rgba(57, 60, 173, 0.06);
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ow-line);
  padding-bottom: 14px;
}

.order-card-header-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.order-card-number {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}

.order-card-number a {
  color: var(--ow-ink);
  text-decoration: none;
  transition: color 0.2s;
}

.order-card-number a:hover {
  color: var(--ow-action);
}

.order-card-date {
  font-size: 13px;
  color: var(--ow-muted);
}

.order-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.order-card-products {
  display: flex;
  align-items: center;
  gap: 18px;
}

.order-products-strip {
  display: flex;
  align-items: center;
  gap: 8px;
}

.order-item-chip {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--ow-tint);
  border: 1px solid var(--ow-line);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-item-qty-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--ow-ink);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 9999px;
  line-height: 1.2;
}

.order-card-items-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-card-item-count {
  font-size: 12px;
  color: var(--ow-muted);
}

.order-card-total-amount {
  font-size: 16px;
  font-weight: 700;
  color: var(--ow-ink);
}

.order-card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Pagination */
.account-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  color: var(--ow-ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.pagination-btn:hover {
  border-color: var(--ow-brand);
  color: var(--ow-action);
}

.pagination-page-indicator {
  font-size: 13px;
  color: var(--ow-muted);
}

/* ==========================================================================
   6. SAVED ADDRESSES VIEW
   ========================================================================== */
.account-addresses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.luxury-address-card {
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 18px -2px rgba(32, 33, 58, 0.03);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: all 0.22s ease;
}

.luxury-address-card:hover {
  border-color: rgba(118, 126, 252, 0.4);
  box-shadow: 0 8px 24px rgba(57, 60, 173, 0.05);
}

.address-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--ow-line);
  padding-bottom: 18px;
}

.address-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ow-sage);
  color: var(--ow-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.address-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 550;
  color: var(--ow-ink);
  margin: 0;
}

.address-card-type {
  font-size: 12px;
  color: var(--ow-muted);
}

.address-card-body {
  flex: 1 1 auto;
}

.address-card-content {
  font-style: normal;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ow-ink);
}

.address-not-set {
  color: var(--ow-muted);
  font-style: italic;
}

.address-card-footer {
  margin-top: auto;
}

/* ==========================================================================
   7. FORM EDIT ADDRESS & FORM EDIT ACCOUNT
   ========================================================================== */
.account-form-card {
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  border-radius: 20px;
  padding: 32px 36px;
  box-shadow: 0 4px 20px -2px rgba(32, 33, 58, 0.03);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-form-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid var(--ow-line);
  padding-bottom: 18px;
}

.account-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ow-muted);
  text-decoration: none;
  margin-bottom: 6px;
  transition: color 0.2s;
}

.account-back-link:hover {
  color: var(--ow-action);
}

.account-form-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 550;
  color: var(--ow-ink);
  margin: 0;
}

.account-form-subtitle {
  font-size: 13px;
  color: var(--ow-muted);
  margin: 0;
}

/* Form Styles */
.luxury-styled-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-section-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--ow-line);
}

.form-section-group--password {
  padding-top: 10px;
  border-bottom: none;
}

.form-section-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 650;
  color: var(--ow-ink);
  margin: 0;
}

.form-section-sub {
  font-size: 12px;
  color: var(--ow-muted);
}

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

.form-row-full,
.form-row-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 !important;
}

.luxury-styled-form label {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--ow-ink);
}

.luxury-styled-form label .required {
  color: #c93b3b;
}

.luxury-styled-form input[type="text"],
.luxury-styled-form input[type="email"],
.luxury-styled-form input[type="password"],
.luxury-styled-form input[type="tel"],
.luxury-styled-form select,
.woocommerce-address-fields input.input-text,
.woocommerce-address-fields select {
  width: 100% !important;
  height: 48px !important;
  border: 1.5px solid var(--ow-line) !important;
  border-radius: 12px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-family: var(--font-primary) !important;
  color: var(--ow-ink) !important;
  background-color: var(--ow-paper) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.luxury-styled-form input:focus,
.luxury-styled-form select:focus,
.woocommerce-address-fields input:focus,
.woocommerce-address-fields select:focus {
  background-color: #FFFFFF !important;
  border-color: var(--ow-brand) !important;
  box-shadow: 0 0 0 3px rgba(118, 126, 252, 0.2) !important;
  outline: none !important;
}

.form-field-helper {
  font-size: 12px;
  color: var(--ow-muted);
  font-style: italic;
  margin-top: 4px;
}

.account-form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 10px;
}

/* ==========================================================================
   8. LUXURY LOGGED-OUT TRIPTYCH (LOGIN / REGISTER)
   ========================================================================== */
.oralyze-auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
  max-width: 1100px;
  margin: 40px auto;
}

/* Left Hero Story Panel */
.auth-hero-panel {
  background: linear-gradient(150deg, #F0EFFF 0%, #FAF9F6 60%, #F3EEE8 100%);
  border: 1px solid var(--ow-line);
  border-radius: 24px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px -2px rgba(32, 33, 58, 0.03);
}

.auth-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-hero-badge {
  width: fit-content;
}

.auth-hero-title {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 550;
  line-height: 1.25;
  color: var(--ow-ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.auth-hero-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ow-muted);
  margin: 0;
}

.auth-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.auth-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.auth-benefit-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid rgba(118, 126, 252, 0.3);
  color: var(--ow-action);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.auth-benefit-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.auth-benefit-content strong {
  font-weight: 650;
  color: var(--ow-ink);
}

.auth-benefit-content span {
  color: var(--ow-muted);
  line-height: 1.4;
}

.auth-hero-quote {
  margin-top: 32px;
  border-top: 1px solid rgba(118, 126, 252, 0.2);
  padding-top: 20px;
}

.auth-hero-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--ow-action);
  margin: 0;
}

/* Right Auth Card */
.auth-forms-panel {
  display: flex;
  flex-direction: column;
}

.auth-card {
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 8px 30px -4px rgba(32, 33, 58, 0.06);
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
}

/* Tab Switcher */
.auth-tabs-nav {
  display: flex;
  background: var(--ow-tint);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.auth-tab-btn {
  flex: 1 1 50%;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--ow-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.is-active {
  background: #FFFFFF;
  color: var(--ow-action);
  box-shadow: 0 2px 8px rgba(32, 33, 58, 0.08);
}

.auth-pane-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auth-pane-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 550;
  color: var(--ow-ink);
  margin: 0;
}

.auth-pane-sub {
  font-size: 13px;
  color: var(--ow-muted);
  margin: 0;
}

/* Password Input with eye toggle */
.password-input-wrap {
  position: relative;
  display: block;
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ow-muted);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.password-toggle-btn:hover {
  color: var(--ow-action);
}

.password-toggle-btn .eye-hide {
  display: none;
}

.password-toggle-btn.is-visible .eye-show {
  display: none;
}

.password-toggle-btn.is-visible .eye-hide {
  display: block;
}

.auth-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.rememberme-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--ow-ink);
  font-size: 13px;
}

.lost-password-link {
  color: var(--ow-action);
  text-decoration: none;
  font-weight: 550;
  transition: color 0.2s;
}

.lost-password-link:hover {
  color: var(--ow-brand);
  text-decoration: underline;
}

.auth-submit-row {
  margin-top: 10px;
}

/* ==========================================================================
   9. VIEW ORDER DETAIL TEMPLATE ENHANCEMENTS
   ========================================================================== */
.view-order-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.order-placed-date {
  font-size: 13px;
  color: var(--ow-muted);
  display: block;
  margin-top: 2px;
}

.order-timeline-card {
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  border-radius: 18px;
  padding: 24px 28px;
  box-shadow: 0 4px 18px -2px rgba(32, 33, 58, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-timeline-title {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 650;
  color: var(--ow-ink);
  margin: 0;
}

.order-timeline-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 0 0 8px !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 2px solid var(--ow-tint);
}

.order-timeline-item {
  position: relative;
  padding-left: 18px;
}

.timeline-dot {
  position: absolute;
  left: -24px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ow-brand);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 0 2px var(--ow-brand);
}

.timeline-text {
  font-size: 13px;
  color: var(--ow-ink);
  margin: 0 0 4px;
}

.timeline-date {
  font-size: 11px;
  color: var(--ow-muted);
}

/* Clean WooCommerce order items table */
.order-details-table-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--ow-line);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: 0 4px 18px -2px rgba(32, 33, 58, 0.03);
}

.order-details-table-wrapper .woocommerce-order-details__title,
.order-details-table-wrapper .woocommerce-customer-details h2 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 550;
  color: var(--ow-ink);
  margin: 0 0 16px;
}

.order-details-table-wrapper table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--ow-line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.order-details-table-wrapper table.shop_table th,
.order-details-table-wrapper table.shop_table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ow-line);
  font-size: 14px;
}

.order-details-table-wrapper table.shop_table thead th {
  background: var(--ow-tint);
  font-weight: 650;
  color: var(--ow-ink);
  border-bottom: 1px solid var(--ow-line);
}

/* ==========================================================================
   10. RESPONSIVE DESIGN (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
  .account-profile-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 24px;
  }

  .profile-actions-right {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--ow-line);
    padding-top: 16px;
  }

  .account-main-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .account-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-wellness-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .oralyze-auth-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 640px) {
  .profile-info-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

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

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

  .form-row-duo {
    grid-template-columns: 1fr;
  }

  .recent-order-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .recent-order-actions {
    width: 100%;
  }

  .recent-order-actions a {
    width: 100%;
  }

  .auth-hero-panel,
  .auth-card {
    padding: 28px 20px;
  }

  .auth-hero-title {
    font-size: 26px;
  }
}
