/* ============================================================
   LINK DOG — ÁREA DE MEMBROS
   Design System: Inter font, Navy #0B2D4A, Teal #00C4B4, Gold #D4A017
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:        #0B2D4A;
  --navy-mid:    #0e3659;
  --navy-light:  #134070;
  --teal:        #00C4B4;
  --teal-dark:   #00a89a;
  --teal-glow:   rgba(0, 196, 180, 0.15);
  --gold:        #D4A017;
  --gold-light:  rgba(212, 160, 23, 0.15);
  --bg:          #F5F8FC;
  --bg-white:    #ffffff;
  --text-dark:   #0B2D4A;
  --text-mid:    #374151;
  --text-gray:   #6B7280;
  --text-light:  #9CA3AF;
  --border:      #E5E7EB;
  --border-focus:#00C4B4;
  --error:       #EF4444;
  --error-bg:    #FEF2F2;
  --success:     #10B981;
  --success-bg:  #F0FDF4;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --transition:  0.2s ease;
  --sidebar-w:   260px;
  --navbar-h:    64px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-mid);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94A3B8; }


/* ============================================================
   LOGIN PAGE
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 420px 1fr;
}

/* ── Left Panel ── */
.auth-left {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,180,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.auth-left::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.auth-brand {
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.auth-logo:hover { opacity: 0.85; }

.auth-logo-icon {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.auth-logo-icon img {
  height: 26px;
  width: auto;
  display: block;
}

.auth-logo-text {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.4px;
  line-height: 1;
}

.auth-logo-text span {
  color: var(--teal);
}

.auth-headline {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.auth-headline em {
  color: var(--teal);
  font-style: normal;
}

.auth-subline {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 40px;
}

.auth-perks {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-perk {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}

.auth-perk-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(0,196,180,0.15);
  border: 1px solid rgba(0,196,180,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.auth-footer-brand {
  position: relative;
  z-index: 1;
}

.auth-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.auth-back-link:hover {
  color: var(--teal);
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  background: var(--gold-light);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Right Panel ── */
.auth-right {
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}

.auth-form-container {
  width: 100%;
  max-width: 420px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 32px;
}

.auth-tab {
  flex: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
  transition: all var(--transition);
  text-align: center;
}

.auth-tab.active {
  background: var(--bg-white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.auth-tab:hover:not(.active) {
  color: var(--text-mid);
}

.auth-form-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: -0.4px;
}

.auth-form-subtitle {
  font-size: 14px;
  color: var(--text-gray);
  margin-bottom: 28px;
}

/* ── Forms ── */
.auth-panel { display: none; }
.auth-panel.active { display: block; }

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}

.form-input::placeholder {
  color: var(--text-light);
}

.form-input:disabled,
.form-input[readonly] {
  background: var(--bg);
  color: var(--text-gray);
  cursor: default;
}

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

/* ── Password toggle ── */
.input-wrapper {
  position: relative;
}

.input-wrapper .form-input {
  padding-right: 44px;
}

.input-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  color: var(--text-gray);
  font-size: 16px;
  cursor: pointer;
  transition: color var(--transition);
}

.input-toggle:hover { color: var(--teal); }

/* ── Forgot password link ── */
.forgot-link {
  font-size: 13px;
  color: var(--teal);
  font-weight: 500;
  transition: color var(--transition);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.forgot-link:hover {
  text-decoration-color: var(--teal);
}

.form-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

/* ── Buttons ── */
.btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  letter-spacing: 0.1px;
}

.btn-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 4px 16px rgba(0,196,180,0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  width: 100%;
  padding: 12px 24px;
  background: transparent;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-glow);
}

/* ── Alerts ── */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  display: none;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
}

.alert.visible { display: flex; }

.alert-error {
  background: var(--error-bg);
  color: var(--error);
  border: 1px solid rgba(239,68,68,0.2);
}

.alert-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16,185,129,0.2);
}

.alert-info {
  background: rgba(0,196,180,0.08);
  color: var(--teal-dark);
  border: 1px solid rgba(0,196,180,0.2);
}

/* ── Divider ── */
.form-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: var(--text-gray);
  font-size: 12px;
}

.form-divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--border);
}

.form-divider span {
  background: #fff;
  padding: 0 12px;
  position: relative;
}

/* ── Loading spinner ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Forgot password inline panel ── */
.forgot-panel {
  display: none;
  animation: fadeIn 0.2s ease;
}

.forgot-panel.visible { display: block; }

.forgot-back-btn {
  background: none;
  border: none;
  color: var(--text-gray);
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
}

.forgot-back-btn:hover { color: var(--teal); }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Success card ── */
.success-card {
  text-align: center;
  padding: 48px 32px;
  display: none;
  animation: fadeIn 0.3s ease;
}

.success-card.visible { display: block; }

.success-card-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--success-bg);
  border: 2px solid rgba(16,185,129,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 20px;
}

.success-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.success-card p {
  font-size: 14px;
  color: var(--text-gray);
  max-width: 300px;
  margin: 0 auto 24px;
}


/* ============================================================
   DASHBOARD PAGE
   ============================================================ */

.dashboard-layout {
  display: grid;
  grid-template-rows: var(--navbar-h) 1fr;
  min-height: 100vh;
}

/* ── Top Navbar ── */
.dash-navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--navbar-h);
  box-shadow: var(--shadow-sm);
}

.dash-navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-logo img {
  height: 36px;
  width: auto;
}

.dash-logo-text {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.4px;
}

.dash-logo-text span { color: var(--teal); }

.dash-nav-divider {
  width: 1px;
  height: 24px;
  background: var(--border);
}

.dash-nav-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-gray);
}

.dash-navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-user-email {
  font-size: 13px;
  color: var(--text-gray);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout {
  padding: 8px 16px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-logout:hover {
  border-color: var(--error);
  color: var(--error);
  background: var(--error-bg);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: var(--text-mid);
  font-size: 20px;
  cursor: pointer;
}

/* ── Body (sidebar + main) ── */
.dash-body {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: calc(100vh - var(--navbar-h));
}

/* ── Sidebar ── */
.dash-sidebar {
  background: var(--navy);
  padding: 24px 0;
  position: sticky;
  top: var(--navbar-h);
  height: calc(100vh - var(--navbar-h));
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0 20px 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.sidebar-item:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.9);
}

.sidebar-item.active {
  background: rgba(0,196,180,0.12);
  color: var(--teal);
  font-weight: 600;
}

.sidebar-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3px;
  background: var(--teal);
  border-radius: 0 3px 3px 0;
}

.sidebar-item-icon {
  font-size: 18px;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}

.sidebar-item-label {
  flex: 1;
  white-space: nowrap;
}

.sidebar-badge {
  font-size: 10px;
  font-weight: 700;
  background: var(--teal);
  color: var(--navy);
  padding: 2px 7px;
  border-radius: 10px;
}

.sidebar-footer {
  padding: 20px 12px 0;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-pro-badge {
  background: linear-gradient(135deg, rgba(212,160,23,0.15), rgba(212,160,23,0.08));
  border: 1px solid rgba(212,160,23,0.25);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.sidebar-pro-badge-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.sidebar-pro-badge-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

/* ── Main Content ── */
.dash-main {
  padding: 32px;
  overflow-y: auto;
  min-height: calc(100vh - var(--navbar-h));
}

.dash-section {
  display: none;
  animation: fadeIn 0.25s ease;
}

.dash-section.active { display: block; }

.dash-section-header {
  margin-bottom: 28px;
}

.dash-section-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.dash-section-desc {
  font-size: 14px;
  color: var(--text-gray);
}

/* ── Cards ── */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

.card-subtitle {
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 2px;
}

/* ── Profile section ── */
.profile-header-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.profile-header-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,180,0.15) 0%, transparent 70%);
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.2);
  position: relative;
}

.profile-avatar-info {
  flex: 1;
}

.profile-avatar-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.profile-avatar-email {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
}

.profile-member-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--gold-light);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
}

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

.profile-form .form-group-full {
  grid-column: 1 / -1;
}

/* ── Orders section ── */
.orders-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.orders-table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-mid);
  vertical-align: middle;
}

.orders-table tr:last-child td { border-bottom: none; }

.orders-table tr:hover td { background: var(--bg); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-badge--delivered {
  background: var(--success-bg);
  color: var(--success);
}
.status-badge--delivered::before { background: var(--success); }

.status-badge--processing {
  background: rgba(251,191,36,0.1);
  color: #D97706;
}
.status-badge--processing::before { background: #D97706; }

.status-badge--shipped {
  background: rgba(59,130,246,0.1);
  color: #2563EB;
}
.status-badge--shipped::before { background: #2563EB; }

.tracking-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.empty-state {
  text-align: center;
  padding: 56px 24px;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.empty-state-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.empty-state-desc {
  font-size: 14px;
  color: var(--text-gray);
  max-width: 300px;
  margin: 0 auto;
}

.orders-note {
  background: rgba(0,196,180,0.06);
  border: 1px solid rgba(0,196,180,0.15);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--teal-dark);
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Coupons section ── */
.coupon-featured-card {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a6e 100%);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
}

.coupon-featured-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,196,180,0.2) 0%, transparent 70%);
}

.coupon-featured-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,160,23,0.15) 0%, transparent 70%);
}

.coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--gold-light);
  border: 1px solid rgba(212,160,23,0.3);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.coupon-discount-display {
  position: relative;
  z-index: 1;
  margin-bottom: 24px;
}

.coupon-pct {
  font-size: 72px;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  letter-spacing: -3px;
}

.coupon-pct-label {
  font-size: 20px;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-left: 4px;
}

.coupon-pct-sub {
  font-size: 15px;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
}

.coupon-code-box {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.06);
  border: 1.5px dashed rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.coupon-code-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.coupon-code-value {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 3px;
}

.btn-copy-coupon {
  padding: 10px 20px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy-coupon:hover {
  background: var(--teal-dark);
  box-shadow: 0 4px 16px rgba(0,196,180,0.4);
}

.btn-copy-coupon.copied {
  background: var(--success);
}

.coupon-meta {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.coupon-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

.coupon-meta-item strong { color: rgba(255,255,255,0.9); }

/* Coupon instructions */
.coupon-how-to {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
}

.coupon-how-to-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.coupon-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: var(--text-mid);
}

.coupon-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Content section ── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.content-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.content-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.content-card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  position: relative;
  overflow: hidden;
}

.content-card-thumb--article {
  background: linear-gradient(135deg, var(--teal) 0%, #008f84 100%);
}

.content-card-thumb--video {
  background: linear-gradient(135deg, var(--navy) 0%, #1a4a6e 100%);
}

.content-card-thumb--pdf {
  background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
}

.content-card-type {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(4px);
}

.content-card-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  padding-left: 4px;
}

.content-card-body {
  padding: 20px;
}

.content-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.content-card-desc {
  font-size: 13px;
  color: var(--text-gray);
  line-height: 1.5;
  margin-bottom: 16px;
}

.btn-access {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--teal);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.btn-access:hover {
  background: var(--teal-dark);
  box-shadow: 0 4px 12px rgba(0,196,180,0.3);
}

/* ── Save button ── */
.btn-save {
  padding: 12px 28px;
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-save:hover {
  background: var(--teal-dark);
  box-shadow: 0 4px 16px rgba(0,196,180,0.35);
  transform: translateY(-1px);
}

.btn-save:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Stats row ── */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.dash-stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.dash-stat-icon {
  font-size: 24px;
  margin-bottom: 12px;
}

.dash-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}

.dash-stat-label {
  font-size: 12px;
  color: var(--text-gray);
  margin-top: 2px;
}

/* ── Toast notification ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 340px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast--success { background: var(--success); }
.toast--error   { background: var(--error); }

/* ── Loading skeleton ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Page loader ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.page-loader.hidden {
  opacity: 0;
  pointer-events: none;
}

.loader-logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
}

.loader-logo span { color: var(--teal); }

.loader-bar {
  width: 120px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: var(--teal);
  border-radius: 2px;
  animation: loadFill 1.2s ease forwards;
}

@keyframes loadFill {
  from { width: 0; }
  to   { width: 100%; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
  .auth-page {
    grid-template-columns: 360px 1fr;
  }

  .dash-sidebar {
    width: 220px;
    --sidebar-w: 220px;
  }

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

/* Mobile */
@media (max-width: 768px) {
  /* Auth */
  .auth-page {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .auth-left {
    padding: 28px 24px;
    min-height: auto;
  }

  .auth-headline { font-size: 22px; }
  .auth-perks { display: none; }

  .auth-right {
    padding: 32px 20px;
  }

  /* Dashboard */
  .dash-user-email { display: none; }
  .mobile-menu-toggle { display: flex; }
  .dash-nav-title { display: none; }
  .dash-nav-divider { display: none; }

  .dash-body {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
  }

  .dash-sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    width: 100%;
    z-index: 50;
    padding: 8px 0 max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255,255,255,0.1);
    overflow: visible;
    top: auto;
  }

  .sidebar-section-label,
  .sidebar-footer { display: none; }

  .sidebar-nav {
    flex-direction: row;
    padding: 0 8px;
    justify-content: space-around;
    gap: 0;
  }

  .sidebar-item {
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    gap: 4px;
    font-size: 10px;
    border-radius: 8px;
  }

  .sidebar-item.active::before { display: none; }

  .sidebar-item.active {
    background: rgba(0,196,180,0.15);
  }

  .sidebar-item-icon { font-size: 20px; width: auto; }
  .sidebar-badge { display: none; }

  .dash-main {
    padding: 20px 16px;
    padding-bottom: 90px;
  }

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

  .content-grid {
    grid-template-columns: 1fr;
  }

  .coupon-pct {
    font-size: 56px;
  }

  .coupon-code-box {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .btn-copy-coupon { width: 100%; justify-content: center; }

  .orders-table-wrap { border-radius: 0; }

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

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

  .toast {
    bottom: 90px;
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .auth-right          { padding: 24px 16px; }
  .auth-form-title     { font-size: 20px; }
  .coupon-pct          { font-size: 48px; }
  .dash-stats          { grid-template-columns: 1fr; }
  .coupon-meta         { flex-direction: column; gap: 8px; }
  .profile-header-card { flex-direction: column; text-align: center; align-items: center; }
}

/* Small phones (360px) */
@media (max-width: 380px) {
  .auth-tabs          { gap: 4px; }
  .auth-tab           { font-size: 13px; padding: 9px 14px; }
  .form-input         { font-size: 14px; padding: 10px 12px; }
  .btn-primary        { font-size: 14px; padding: 13px 20px; }
  .dash-main          { padding: 16px 12px; padding-bottom: 90px; }
  .dash-navbar        { padding: 0 12px; }
  .sidebar-item       { padding: 6px 8px; font-size: 9px; }
  .sidebar-item-icon  { font-size: 18px; }
  .coupon-featured-card { padding: 20px 16px; }
  .coupon-pct         { font-size: 40px; }
  .card               { padding: 16px; }
}

/* Tabela de pedidos — scroll horizontal em mobile */
.orders-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.orders-table {
  min-width: 560px;
}
