/* ============================================================
   PhotoStudio Portal — Main Stylesheet
   Dark luxury theme: deep navy, warm gold, off-white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #0d1b2a;
  --navy-light:  #162336;
  --navy-mid:    #1e3048;
  --gold:        #c9a84c;
  --gold-light:  #e0c068;
  --gold-muted:  #8a6f34;
  --cream:       #f5f0e8;
  --cream-dark:  #e8e0d0;
  --white:       #ffffff;
  --text-main:   #f0ece4;
  --text-muted:  #8a9bb0;
  --text-dark:   #2a3545;
  --border:      rgba(201,168,76,0.2);
  --border-light:rgba(255,255,255,0.08);
  --card-bg:     rgba(22,35,54,0.85);
  --success:     #4caf7d;
  --danger:      #e05c5c;
  --warning:     #e09a3c;
  --info:        #4a9fd4;
  --radius:      12px;
  --radius-sm:   6px;
  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --shadow-gold: 0 0 20px rgba(201,168,76,0.15);
  --transition:  0.25s ease;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-muted); }

/* ── Utility ────────────────────────────────────────────────── */
.text-gold     { color: var(--gold) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-cream    { color: var(--cream) !important; }
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--danger) !important; }
.text-warning  { color: var(--warning) !important; }

.bg-navy       { background: var(--navy) !important; }
.bg-navy-light { background: var(--navy-light) !important; }
.bg-navy-mid   { background: var(--navy-mid) !important; }

.border-gold   { border-color: var(--gold) !important; }

.font-serif    { font-family: 'Cormorant Garamond', serif; }
.font-display  { font-family: 'Cormorant Garamond', serif; font-weight: 300; }

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Gold Divider ───────────────────────────────────────────── */
.gold-line {
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto 1.5rem;
}

/* ── Navbar ─────────────────────────────────────────────────── */
#mainNav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex; align-items: center;
  background: rgba(13,27,42,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
#mainNav.scrolled {
  background: rgba(13,27,42,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-brand span { color: var(--gold); }

.nav-links {
  display: flex; align-items: center; gap: 0.25rem;
  margin-left: auto;
  list-style: none;
}
.nav-links li a {
  color: var(--text-muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links li a:hover, .nav-links li a.active {
  color: var(--white);
  background: var(--border-light);
}

/* Notification bell */
.notif-bell-btn {
  position: relative;
  background: none; border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.notif-bell-btn:hover { color: var(--gold); }
.notif-badge {
  position: absolute; top: 0; right: 0;
  background: var(--danger); color: white;
  font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* User dropdown */
.user-menu { position: relative; }
.user-menu-btn {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--border-light);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  color: var(--text-main);
  cursor: pointer; font-size: 0.875rem;
  transition: all var(--transition);
}
.user-menu-btn:hover { border-color: var(--gold); color: var(--gold); }
.user-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-muted), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: var(--navy);
}
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: none;
  animation: fadeDown 0.2s ease;
}
.user-dropdown.open { display: block; }
.dropdown-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.dropdown-header strong { color: var(--text-main); display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 1rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: all var(--transition);
}
.dropdown-item:hover { background: var(--border-light); color: var(--text-main); }
.dropdown-item.danger:hover { color: var(--danger); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 0.25rem 0; }

/* Notification panel */
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0;
  width: 340px;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: none; z-index: 999;
}
.notif-panel.open { display: block; }
.notif-panel-header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 0.9rem;
}
.notif-list { max-height: 320px; overflow-y: auto; }
.notif-item {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-light);
  display: flex; gap: 0.75rem;
  transition: background var(--transition);
}
.notif-item:hover { background: var(--border-light); }
.notif-item.unread { border-left: 3px solid var(--gold); }
.notif-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.notif-icon.success { background: rgba(76,175,125,0.15); color: var(--success); }
.notif-icon.info    { background: rgba(74,159,212,0.15); color: var(--info); }
.notif-icon.warning { background: rgba(224,154,60,0.15); color: var(--warning); }
.notif-icon.danger  { background: rgba(224,92,92,0.15);  color: var(--danger); }
.notif-text { font-size: 0.8rem; color: var(--text-muted); }
.notif-text strong { color: var(--text-main); display: block; font-size: 0.85rem; }
.notif-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--text-main);
  font-size: 1.4rem; cursor: pointer;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; flex-direction: column; background: var(--navy); padding: 2rem; gap: 0.5rem; }
  .nav-links.mobile-open { display: flex; }
  .nav-links li a { padding: 0.75rem 1rem; font-size: 1rem; }
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-muted), var(--gold));
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: var(--shadow-gold);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: rgba(201,168,76,0.1);
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-ghost {
  background: var(--border-light);
  color: var(--text-main);
  border-color: var(--border-light);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); color: var(--white); }

.btn-danger {
  background: rgba(224,92,92,0.15);
  color: var(--danger);
  border-color: var(--danger);
}
.btn-danger:hover { background: var(--danger); color: white; }

.btn-success {
  background: rgba(76,175,125,0.15);
  color: var(--success);
  border-color: var(--success);
}
.btn-success:hover { background: var(--success); color: white; }

.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 1rem; }
.btn-xl { padding: 1rem 2.8rem; font-size: 1.1rem; letter-spacing: 0.04em; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.loading { pointer-events: none; opacity: 0.7; }
.btn.loading::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover { border-color: rgba(201,168,76,0.4); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.card-body   { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); }

.card-glow:hover { box-shadow: var(--shadow-gold); }

/* KPI Cards */
.kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative; overflow: hidden;
  transition: all var(--transition);
}
.kpi-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.kpi-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-2px); }
.kpi-icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.kpi-value { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; font-weight: 700; color: var(--white); line-height: 1; }
.kpi-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.08em; }
.kpi-change { font-size: 0.8rem; margin-top: 0.5rem; }
.kpi-change.up   { color: var(--success); }
.kpi-change.down { color: var(--danger); }

/* ── Forms ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.06em; }
.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 0.7rem 1rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: all var(--transition);
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
  color: var(--white);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control.is-invalid { border-color: var(--danger); }
.form-control.is-valid   { border-color: var(--success); }
.invalid-feedback { color: var(--danger); font-size: 0.8rem; margin-top: 0.25rem; }
.valid-feedback   { color: var(--success); font-size: 0.8rem; margin-top: 0.25rem; }

textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
select.form-control option { background: var(--navy-mid); }

.form-check { display: flex; align-items: center; gap: 0.6rem; }
.form-check-input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }
.form-check-label { font-size: 0.875rem; color: var(--text-muted); cursor: pointer; }

/* ── Alerts / Flash Messages ────────────────────────────────── */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid;
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9rem;
  animation: slideDown 0.3s ease;
}
.alert-success { background: rgba(76,175,125,0.12); border-color: rgba(76,175,125,0.3); color: var(--success); }
.alert-danger   { background: rgba(224,92,92,0.12);  border-color: rgba(224,92,92,0.3);  color: var(--danger); }
.alert-warning  { background: rgba(224,154,60,0.12); border-color: rgba(224,154,60,0.3); color: var(--warning); }
.alert-info     { background: rgba(74,159,212,0.12); border-color: rgba(74,159,212,0.3); color: var(--info); }
.alert-dismiss  { margin-left: auto; background: none; border: none; color: inherit; cursor: pointer; opacity: 0.7; font-size: 1rem; }
.alert-dismiss:hover { opacity: 1; }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-success { background: rgba(76,175,125,0.15); color: var(--success); }
.badge-danger  { background: rgba(224,92,92,0.15);  color: var(--danger); }
.badge-warning { background: rgba(224,154,60,0.15); color: var(--warning); }
.badge-info    { background: rgba(74,159,212,0.15); color: var(--info); }
.badge-gold    { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-muted   { background: var(--border-light); color: var(--text-muted); }

/* ── Tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.ps-table th { padding: 0.75rem 1rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); font-weight: 600; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.ps-table td { padding: 0.9rem 1rem; border-bottom: 1px solid var(--border-light); color: var(--text-main); vertical-align: middle; }
.ps-table tr:hover td { background: rgba(255,255,255,0.02); }
.ps-table .actions { display: flex; gap: 0.4rem; }

/* ── Modals ─────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  display: none;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.2s ease; }
.modal-box {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow);
  animation: scaleIn 0.25s ease;
}
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; }
.modal-title  { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; color: var(--white); }
.modal-close  { background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; transition: color var(--transition); }
.modal-close:hover { color: var(--white); }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border-light); display: flex; gap: 0.75rem; justify-content: flex-end; }

/* ── Tabs ───────────────────────────────────────────────────── */
.tab-list { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; overflow-x: auto; }
.tab-btn {
  padding: 0.75rem 1.25rem;
  background: none; border: none;
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}
.tab-btn:hover { color: var(--text-main); }
.tab-btn.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--border-light); color: var(--text-muted);
  font-size: 0.85rem; transition: all var(--transition);
  border: 1px solid transparent;
}
.page-btn:hover { background: var(--border); color: var(--white); }
.page-btn.active { background: rgba(201,168,76,0.15); color: var(--gold); border-color: var(--gold); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── Progress / Storage bar ─────────────────────────────────── */
.progress-wrap { background: rgba(255,255,255,0.06); border-radius: 50px; overflow: hidden; height: 6px; }
.progress-fill { height: 100%; border-radius: 50px; background: linear-gradient(90deg, var(--gold-muted), var(--gold)); transition: width 0.8s ease; }
.progress-fill.danger  { background: linear-gradient(90deg, #c0392b, var(--danger)); }
.progress-fill.warning { background: linear-gradient(90deg, #b7770d, var(--warning)); }
.progress-fill.success { background: linear-gradient(90deg, #1e8449, var(--success)); }

/* ── Gallery Grid ───────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.gallery-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
}
.gallery-card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-3px); box-shadow: var(--shadow); }
.gallery-thumb {
  position: relative; height: 190px; overflow: hidden;
  background: var(--navy-light);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-card:hover .gallery-thumb img { transform: scale(1.04); }
.gallery-thumb-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-muted); font-size: 2.5rem; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,0.8) 0%, transparent 60%);
  display: flex; align-items: flex-end; padding: 1rem;
  opacity: 0; transition: opacity var(--transition);
}
.gallery-card:hover .gallery-overlay { opacity: 1; }
.gallery-info { padding: 1rem; }
.gallery-title { font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 600; color: var(--white); margin-bottom: 0.35rem; }
.gallery-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 1rem; flex-wrap: wrap; }

/* Image upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.upload-zone:hover, .upload-zone.dragging {
  border-color: var(--gold);
  background: rgba(201,168,76,0.04);
}
.upload-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.upload-icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: 0.75rem; }
.upload-text { color: var(--text-muted); font-size: 0.9rem; }
.upload-text strong { color: var(--gold); }

/* Image grid (gallery management) */
.image-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; }
.image-thumb-wrap { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--navy-mid); }
.image-thumb-wrap img { width: 100%; height: 100%; object-fit: cover; }
.image-thumb-actions {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  opacity: 0; transition: opacity var(--transition);
}
.image-thumb-wrap:hover .image-thumb-actions { opacity: 1; }

/* ── Plan Cards ─────────────────────────────────────────────── */
.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  transition: all var(--transition);
}
.plan-card.featured {
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}
.plan-card:hover { transform: translateY(-4px); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-muted), var(--gold));
  color: var(--navy); font-size: 0.7rem; font-weight: 700;
  padding: 0.3rem 1rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap;
}
.plan-name  { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 700; color: var(--white); }
.plan-price { font-family: 'Cormorant Garamond', serif; font-size: 3rem; font-weight: 700; color: var(--gold); line-height: 1; }
.plan-price sup { font-size: 1.2rem; vertical-align: top; margin-top: 0.5rem; }
.plan-price .period { font-size: 1rem; color: var(--text-muted); font-family: 'DM Sans', sans-serif; font-weight: 400; }
.plan-features { list-style: none; margin: 1.5rem 0; }
.plan-features li { padding: 0.4rem 0; font-size: 0.875rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.6rem; border-bottom: 1px solid var(--border-light); }
.plan-features li:last-child { border: none; }
.plan-features li .check  { color: var(--success); }
.plan-features li .cross  { color: var(--text-muted); opacity: 0.4; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
  margin-top: auto;
}
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 1.8rem; font-weight: 700; }
.footer-brand span { color: var(--gold); }
.footer-tagline { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.5rem; }
.footer-nav h4 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 1rem; }
.footer-nav ul { list-style: none; }
.footer-nav ul li { margin-bottom: 0.5rem; }
.footer-nav ul li a { color: var(--text-muted); font-size: 0.875rem; transition: color var(--transition); }
.footer-nav ul li a:hover { color: var(--gold); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; color: var(--text-muted); }
.social-links { display: flex; gap: 0.75rem; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: var(--border-light); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.9rem; transition: all var(--transition); }
.social-links a:hover { background: rgba(201,168,76,0.15); color: var(--gold); }

/* ── Landing page specific ──────────────────────────────────── */
.page-hero { padding-top: 72px; min-height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(201,168,76,0.06) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(74,159,212,0.04) 0%, transparent 50%);
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: 0.04;
  background-image: linear-gradient(var(--gold) 1px, transparent 1px), linear-gradient(90deg, var(--gold) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.3rem 0.85rem; border: 1px solid var(--border); border-radius: 50px; font-size: 0.8rem; color: var(--gold); margin-bottom: 1.5rem; }
.hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 600; line-height: 1.1; color: var(--white); }
.hero-title em { font-style: italic; color: var(--gold); }
.hero-desc { font-size: 1.1rem; color: var(--text-muted); max-width: 520px; margin: 1.5rem 0 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Stats row */
.stats-row { display: flex; gap: 2rem; flex-wrap: wrap; padding: 1.5rem 0; border-top: 1px solid var(--border-light); margin-top: 2rem; }
.stat-item { }
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }

/* Hero browser mockup */
.browser-mockup {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), var(--shadow-gold);
}
.browser-bar { background: var(--navy-light); padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.5rem; }
.browser-dots { display: flex; gap: 0.35rem; }
.browser-dot { width: 10px; height: 10px; border-radius: 50%; }
.browser-dot:nth-child(1) { background: #ff5f57; }
.browser-dot:nth-child(2) { background: #febc2e; }
.browser-dot:nth-child(3) { background: #28c840; }
.browser-url { flex: 1; background: rgba(255,255,255,0.05); border-radius: 4px; padding: 0.25rem 0.75rem; font-size: 0.75rem; color: var(--text-muted); margin-left: 0.5rem; }
.browser-content { padding: 1rem; min-height: 300px; }

/* Features section */
.feature-icon { width: 56px; height: 56px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 1.25rem; background: rgba(201,168,76,0.1); color: var(--gold); }
.feature-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; margin-bottom: 0.5rem; }
.feature-desc  { font-size: 0.875rem; color: var(--text-muted); line-height: 1.7; }

/* Steps */
.step-number { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-muted), var(--gold)); color: var(--navy); font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-bottom: 1rem; }

/* Testimonials */
.testimonial-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; }
.testimonial-stars { color: var(--gold); margin-bottom: 1rem; letter-spacing: 0.1em; }
.testimonial-text { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; line-height: 1.6; color: var(--cream); font-style: italic; margin-bottom: 1.5rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-muted), var(--gold)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-role { font-size: 0.78rem; color: var(--text-muted); }

/* Billing toggle */
.billing-toggle { display: flex; align-items: center; gap: 1rem; background: var(--navy-mid); border: 1px solid var(--border); border-radius: 50px; padding: 0.4rem 1.2rem; }
.toggle-label { font-size: 0.875rem; color: var(--text-muted); transition: color var(--transition); cursor: pointer; }
.toggle-label.active { color: var(--gold); font-weight: 600; }
.toggle-switch { position: relative; width: 44px; height: 24px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--navy-light); border: 1px solid var(--border); border-radius: 50px; cursor: pointer; transition: all var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--text-muted); top: 3px; left: 3px; transition: all var(--transition); }
.toggle-switch input:checked + .toggle-slider { background: rgba(201,168,76,0.15); border-color: var(--gold); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); background: var(--gold); }

/* Save badge on annual */
.save-badge { background: rgba(76,175,125,0.15); color: var(--success); font-size: 0.7rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 50px; border: 1px solid rgba(76,175,125,0.3); }

/* ── Auth pages ─────────────────────────────────────────────── */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-left {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center;
  padding: 4rem;
  position: relative; overflow: hidden;
}
.auth-left::after { content: ''; position: absolute; bottom: -100px; right: -100px; width: 400px; height: 400px; border-radius: 50%; background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%); }
.auth-right { display: flex; flex-direction: column; justify-content: center; padding: 4rem; }
@media (max-width: 768px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-left { display: none; }
}

/* ── Public gallery viewer ──────────────────────────────────── */
.masonry-grid { columns: 3; column-gap: 1rem; }
.masonry-item { break-inside: avoid; margin-bottom: 1rem; }
@media (max-width: 960px) { .masonry-grid { columns: 2; } }
@media (max-width: 600px) { .masonry-grid { columns: 1; } }
.lightbox-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,0.95);
  display: flex; align-items: center; justify-content: center;
  display: none;
}
.lightbox-overlay.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox-close { position: absolute; top: 1.5rem; right: 1.5rem; background: rgba(255,255,255,0.1); border: none; color: white; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.1); border: none; color: white; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition); }
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav.prev { left: 1.5rem; }
.lightbox-nav.next { right: 1.5rem; }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeDown  { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scaleIn   { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes spin      { to { transform: rotate(360deg); } }
@keyframes pulse     { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes shimmer   { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

.fade-in { animation: fadeIn 0.6s ease both; }
.fade-in-up { animation: fadeDown 0.6s ease both; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--border-light) 25%, rgba(255,255,255,0.08) 50%, var(--border-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Responsive helpers ─────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; }

.page-body { padding-top: 72px; min-height: 100vh; }
.page-section { padding: 5rem 0; }
.page-section + .page-section { padding-top: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .page-section { padding: 3rem 0; }
}

/* ── Comparison table ───────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.compare-table th { padding: 1rem; text-align: center; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid var(--border); }
.compare-table th.feature-col { text-align: left; }
.compare-table th.featured-col { color: var(--gold); position: relative; }
.compare-table th.featured-col::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--gold); }
.compare-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-light); text-align: center; color: var(--text-muted); }
.compare-table td.feature-col { text-align: left; color: var(--text-main); }
.compare-table td.featured-col { background: rgba(201,168,76,0.03); }
.compare-table tr:hover td { background: rgba(255,255,255,0.02); }
.compare-check { color: var(--success); }
.compare-cross { color: var(--border); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 0.75rem; }
.faq-question { width: 100%; background: var(--card-bg); border: none; padding: 1.1rem 1.5rem; text-align: left; color: var(--text-main); font-size: 0.95rem; font-weight: 500; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; transition: all var(--transition); }
.faq-question:hover { background: var(--navy-mid); }
.faq-question.open { color: var(--gold); background: rgba(201,168,76,0.05); }
.faq-icon { transition: transform var(--transition); font-size: 0.8rem; flex-shrink: 0; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer { background: var(--navy-light); padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; }
.faq-answer.open { max-height: 300px; padding: 1rem 1.5rem 1.25rem; }
.faq-answer p { color: var(--text-muted); font-size: 0.875rem; line-height: 1.7; }

/* ── Role selector (register) ───────────────────────────────── */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.role-option { position: relative; }
.role-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.role-label {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.5rem 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all var(--transition); text-align: center;
  background: var(--card-bg);
}
.role-label:hover { border-color: rgba(201,168,76,0.4); }
.role-option input:checked + .role-label { border-color: var(--gold); background: rgba(201,168,76,0.07); }
.role-icon-wrap { width: 52px; height: 52px; border-radius: 50%; background: rgba(201,168,76,0.1); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 0.75rem; }
.role-name { font-weight: 600; color: var(--text-main); margin-bottom: 0.25rem; }
.role-desc { font-size: 0.78rem; color: var(--text-muted); }

/* Password strength */
.password-strength { margin-top: 0.5rem; }
.strength-bar { display: flex; gap: 4px; height: 4px; margin-bottom: 0.35rem; }
.strength-segment { flex: 1; border-radius: 2px; background: var(--border); transition: background 0.3s ease; }
.strength-segment.filled.weak   { background: var(--danger); }
.strength-segment.filled.fair   { background: var(--warning); }
.strength-segment.filled.good   { background: var(--info); }
.strength-segment.filled.strong { background: var(--success); }
.strength-label { font-size: 0.75rem; color: var(--text-muted); }

/* ── Dashboard specifics ────────────────────────────────────── */
.dash-header { padding: 2.5rem 0 1.5rem; border-bottom: 1px solid var(--border-light); margin-bottom: 2rem; }
.dash-greeting { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; }
.dash-subline  { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.25rem; }

.quick-action {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 1.25rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card-bg); cursor: pointer;
  font-size: 0.8rem; color: var(--text-muted);
  transition: all var(--transition); text-decoration: none;
}
.quick-action:hover { border-color: rgba(201,168,76,0.4); color: var(--gold); background: rgba(201,168,76,0.05); }
.quick-action i { font-size: 1.4rem; }

/* Subscription mini-card */
.sub-card { border-left: 3px solid var(--gold); padding-left: 1rem; }

/* ── Search & filters ───────────────────────────────────────── */
.search-bar {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 1rem; gap: 0.5rem;
}
.search-bar i { color: var(--text-muted); }
.search-bar input { background: none; border: none; color: var(--text-main); padding: 0.65rem 0; font-size: 0.875rem; width: 100%; }
.search-bar input:focus { outline: none; }
.search-bar input::placeholder { color: var(--text-muted); }

.filter-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-chip {
  padding: 0.3rem 0.85rem; border-radius: 50px;
  border: 1px solid var(--border); background: var(--border-light);
  color: var(--text-muted); font-size: 0.8rem; cursor: pointer;
  transition: all var(--transition);
}
.filter-chip:hover, .filter-chip.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.1); }

/* ── Empty states ───────────────────────────────────────────── */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-icon  { font-size: 3rem; color: var(--text-muted); opacity: 0.4; margin-bottom: 1rem; }
.empty-title { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; margin-bottom: 0.5rem; }
.empty-desc  { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

/* ── Toast notifications ────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 4000; display: flex; flex-direction: column; gap: 0.5rem; }
.toast { background: var(--navy-mid); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.85rem 1.25rem; display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; min-width: 260px; box-shadow: var(--shadow); animation: slideInRight 0.3s ease; }
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--danger); }
.toast.info    { border-left: 3px solid var(--info); }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ── Public gallery browse ──────────────────────────────────── */
.gallery-hero { padding: 7rem 0 3rem; background: linear-gradient(to bottom, var(--navy-light), var(--navy)); border-bottom: 1px solid var(--border); }
.gallery-hero-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 600; }

/* ── Status indicators ──────────────────────────────────────── */
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.active   { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.inactive { background: var(--text-muted); }
.status-dot.pending  { background: var(--warning); }
.status-dot.danger   { background: var(--danger); }

/* ── Template & branding pages ──────────────────────────────── */
.hover-lift { transition: transform .2s ease, box-shadow .2s ease; }
.hover-lift:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.12) !important; }

.template-overlay { pointer-events: none; }
.hover-lift:hover .template-overlay { pointer-events: all; }

/* Builder / Editor full-screen utilities */
.btn-xs { padding: .2rem .45rem; font-size: .72rem; line-height: 1.4; border-radius: .25rem; }

/* Colour swatch picker */
.color-swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: border-color .15s, transform .15s; }
.color-swatch:hover, .color-swatch.active { border-color: var(--primary, #0d6efd); transform: scale(1.15); }

/* Template card category badge */
.template-tag { display: inline-block; padding: .2rem .55rem; font-size: .68rem; letter-spacing: .05em; border-radius: 20px; background: rgba(0,0,0,.06); color: #444; font-weight: 500; }

/* Logo editor preview area */
.logo-preview-area { background: repeating-linear-gradient(45deg, #f8f9fa, #f8f9fa 10px, #eef0f2 10px, #eef0f2 20px); border-radius: 8px; min-height: 180px; display: flex; align-items: center; justify-content: center; padding: 24px; }

/* Website builder iframe */
#preview-iframe { border: none; width: 100%; height: 100%; display: block; border-radius: 4px; }
.device-frame { border-radius: 8px; overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,.2); transition: all .3s ease; }
.device-frame.mobile { max-width: 375px; margin: 0 auto; }
.device-frame.tablet { max-width: 768px; margin: 0 auto; }
