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

:root {
  --primary:       #2C4A3E;
  --primary-dark:  #1a2f26;
  --primary-light: #3d6b5a;
  --accent:        #D4A853;
  --accent-dark:   #b8893a;
  --danger:        #e53e3e;
  --danger-light:  #fff5f5;
  --success:       #38a169;
  --success-light: #f0fff4;
  --warning:       #d69e2e;
  --text:          #1a202c;
  --text-mid:      #4a5568;
  --text-muted:    #718096;
  --border:        #e2e8f0;
  --border-dark:   #cbd5e0;
  --bg:            #f7fafc;
  --white:         #ffffff;
  --sidebar-w:     260px;
  --shadow-sm:     0 1px 3px rgba(0,0,0,.08);
  --shadow:        0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:     0 10px 30px rgba(0,0,0,.15);
  --radius-sm:     4px;
  --radius:        8px;
  --radius-lg:     12px;
  --font:          'Inter', system-ui, -apple-system, sans-serif;
  --transition:    .2s ease;
  /* Aliases for JS references */
  --color-primary: var(--primary);
  --color-error:   var(--danger);
  --color-success: var(--success);
  --color-warning: var(--warning);
}

html { font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
input, textarea, select, button { font-family: var(--font); }

/* ─── TYPOGRAPHY ───────────────────────────────────────────────────────────── */
h1 { font-size: 1.75rem; font-weight: 700; }
h2 { font-size: 1.4rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; }
.text-muted { color: var(--text-muted); }
.text-sm    { font-size: .85rem; }
.text-xs    { font-size: .75rem; }

/* ─── BUTTONS ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.25rem; border-radius: var(--radius-sm);
  font-size: .875rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid transparent; transition: var(--transition);
  white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary  { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover:not(:disabled)  { background: var(--primary-light); border-color: var(--primary-light); }
.btn-accent   { background: var(--accent); color: var(--text); border-color: var(--accent); }
.btn-accent:hover:not(:disabled)   { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover:not(:disabled)  { background: var(--primary); color: #fff; }
.btn-ghost    { background: transparent; color: var(--text-mid); border-color: var(--border); }
.btn-ghost:hover:not(:disabled)    { background: var(--bg); }
.btn-danger   { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled)   { background: #c53030; }
.btn-success  { background: #2f855a; color: #fff; border-color: #2f855a; }
.btn-success:hover:not(:disabled)  { background: #276749; }
.btn-sm { padding: .4rem .9rem; font-size: .8rem; }
.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FORMS ────────────────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.25rem; }
.form-group:last-child { margin-bottom: 0; }
label { font-size: .8rem; font-weight: 600; color: var(--text-mid); text-transform: uppercase; letter-spacing: .04em; }
.label-hint { font-size: .75rem; font-weight: 400; text-transform: none; color: var(--text-muted); letter-spacing: 0; margin-left: .5rem; }
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="url"],
input[type="date"], select, textarea {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .9rem; color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(44,74,62,.12);
}
textarea { resize: vertical; min-height: 100px; }
.input-hint { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }
.input-error { border-color: var(--danger) !important; }
.error-msg { font-size: .8rem; color: var(--danger); margin-top: .25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }

/* ─── CARDS ────────────────────────────────────────────────────────────────── */
.card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.card-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); 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); background: var(--bg); border-radius: 0 0 var(--radius) var(--radius); display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }

/* ─── BADGES ───────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 100px; font-size: .75rem; font-weight: 600; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-live    { background: var(--success-light); color: var(--success); }
.badge-setup   { background: #fef3c7; color: #92400e; }
.badge-building { background: #e0f2fe; color: #0369a1; animation: pulse-badge 1.5s ease-in-out infinite; }
.badge-suspended { background: #fee2e2; color: #991b1b; }
@keyframes pulse-badge { 0%,100%{opacity:1} 50%{opacity:.6} }

/* ─── TOAST NOTIFICATIONS ──────────────────────────────────────────────────── */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; }
.toast { display: flex; align-items: center; gap: .75rem; padding: .875rem 1.25rem; background: var(--text); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .875rem; min-width: 280px; max-width: 400px; animation: toast-in .3s ease; }
.toast-success { background: var(--success); }
.toast-error   { background: var(--danger); }
.toast-warning { background: var(--warning); }
@keyframes toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes toast-out { to { transform: translateX(120%); opacity: 0; } }

/* ─── AUTH PAGES (login / signup) ──────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); padding: 1rem; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; overflow: hidden; }
.auth-header { padding: 2rem 2rem 1.5rem; text-align: center; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1.5rem; }
.auth-logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; }
.auth-logo-icon svg { width: 24px; height: 24px; fill: var(--accent); }
.auth-logo-text { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.auth-title { font-size: 1.4rem; font-weight: 700; margin-bottom: .25rem; }
.auth-subtitle { font-size: .875rem; color: var(--text-muted); }
.auth-body { padding: 0 2rem 2rem; }
.auth-footer { padding: 1rem 2rem; background: var(--bg); border-top: 1px solid var(--border); text-align: center; font-size: .85rem; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-divider span { font-size: .75rem; color: var(--text-muted); white-space: nowrap; }

/* ─── STEPS (signup wizard) ─────────────────────────────────────────────────── */
.steps { display: flex; gap: 0; margin-bottom: 1.5rem; }
.step { flex: 1; text-align: center; padding: .75rem; border-bottom: 2px solid var(--border); font-size: .8rem; color: var(--text-muted); transition: var(--transition); }
.step.active { border-color: var(--primary); color: var(--primary); font-weight: 600; }
.step.done   { border-color: var(--success); color: var(--success); }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--border); color: var(--text-muted); font-size: .75rem; font-weight: 700; margin-bottom: .25rem; }
.step.active .step-number { background: var(--primary); color: #fff; }
.step.done   .step-number { background: var(--success); color: #fff; }

/* ─── DASHBOARD LAYOUT ──────────────────────────────────────────────────────── */
.app-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar { width: var(--sidebar-w); background: var(--primary-dark); color: #fff; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; z-index: 50; overflow-y: auto; }
.sidebar-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-logo { display: flex; align-items: center; gap: .65rem; }
.sidebar-logo-icon { width: 34px; height: 34px; background: var(--accent); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sidebar-logo-icon svg { width: 20px; height: 20px; fill: var(--primary-dark); }
.sidebar-logo-text { font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.1; }
.sidebar-logo-text small { display: block; font-size: .65rem; font-weight: 400; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .08em; }
.sidebar-nav { flex: 1; padding: .75rem 0; }
.nav-section-label { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.3); padding: .75rem 1.5rem .25rem; }
.nav-item { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.5rem; font-size: .875rem; color: rgba(255,255,255,.7); cursor: pointer; transition: var(--transition); border-left: 3px solid transparent; }
.nav-item:hover   { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active  { background: rgba(212,168,83,.12); color: var(--accent); border-left-color: var(--accent); }
.nav-item .nav-icon { font-size: 1.1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-badge { margin-left: auto; background: var(--accent); color: var(--primary-dark); font-size: .65rem; font-weight: 700; padding: .1rem .4rem; border-radius: 100px; }
.sidebar-footer { padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-user { display: flex; align-items: center; gap: .75rem; }
.sidebar-user-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; flex-shrink: 0; }
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: .85rem; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: .7rem; color: rgba(255,255,255,.4); }
.sidebar-logout { background: none; border: none; color: rgba(255,255,255,.4); cursor: pointer; padding: .25rem; font-size: .9rem; transition: color var(--transition); }
.sidebar-logout:hover { color: var(--danger); }

/* Main content */
.main-content { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.main-header { background: var(--white); border-bottom: 1px solid var(--border); padding: 0 2rem; height: 60px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 40; }
.main-header h1 { font-size: 1.1rem; font-weight: 600; }
.main-header-actions { display: flex; align-items: center; gap: .75rem; }
.main-body { padding: 2rem; flex: 1; }

/* ─── SECTION CONTENT ───────────────────────────────────────────────────────── */
.section-header { margin-bottom: 1.75rem; }
.section-header h2 { font-size: 1.3rem; margin-bottom: .25rem; }
.section-header p { color: var(--text-muted); font-size: .875rem; }

/* ─── STATS ROW ─────────────────────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; }
.stat-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .4rem; }
.stat-value { font-size: 1.75rem; font-weight: 700; color: var(--text); line-height: 1; }
.stat-sub   { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }

/* ─── THEME PICKER ──────────────────────────────────────────────────────────── */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; }
.theme-card { border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: var(--transition); }
.theme-card:hover  { border-color: var(--primary-light); box-shadow: var(--shadow); }
.theme-card.active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(44,74,62,.2); }
.theme-swatch { height: 60px; display: flex; }
.theme-swatch-primary { flex: 2; }
.theme-swatch-accent  { flex: 1; }
.theme-label { padding: .5rem .65rem; font-size: .75rem; font-weight: 600; color: var(--text-mid); background: var(--white); }

/* ─── PHOTO GRID ────────────────────────────────────────────────────────────── */
.upload-zone { border: 2px dashed var(--border-dark); border-radius: var(--radius); padding: 2.5rem; text-align: center; cursor: pointer; transition: var(--transition); background: var(--bg); }
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--primary); background: rgba(44,74,62,.04); }
.upload-zone-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.upload-zone p { color: var(--text-muted); font-size: .875rem; }
.upload-zone strong { color: var(--primary); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.photo-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: grab; border: 2px solid transparent; transition: var(--transition); }
.photo-item.dragging { opacity: .5; border-color: var(--primary); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-actions { position: absolute; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; gap: .5rem; opacity: 0; transition: opacity var(--transition); }
.photo-item:hover .photo-actions { opacity: 1; }
.photo-actions button { background: rgba(255,255,255,.9); border: none; border-radius: var(--radius-sm); padding: .4rem .6rem; font-size: .75rem; cursor: pointer; font-weight: 600; transition: var(--transition); }
.photo-actions button:hover { background: #fff; }
.photo-actions .btn-del { background: rgba(229,62,62,.9); color: #fff; }
.photo-featured-badge { position: absolute; top: .4rem; left: .4rem; background: var(--accent); color: var(--primary-dark); font-size: .65rem; font-weight: 700; padding: .15rem .4rem; border-radius: 100px; text-transform: uppercase; }
.photo-count { font-size: .8rem; color: var(--text-muted); margin-top: .75rem; }

/* ─── DYNAMIC LISTS (amenities, reviews, FAQ) ──────────────────────────────── */
.list-item { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .6rem; }
.list-item-drag { color: var(--text-muted); cursor: grab; font-size: 1rem; padding-top: .1rem; }
.list-item-body { flex: 1; min-width: 0; }
.list-item-actions { display: flex; gap: .4rem; flex-shrink: 0; }

/* Reviews */
.review-stars { color: var(--accent); font-size: 1rem; letter-spacing: 1px; }
.review-source-badge { display: inline-block; padding: .15rem .5rem; border-radius: 100px; font-size: .7rem; font-weight: 700; color: #fff; }

/* ─── MODAL ─────────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; backdrop-filter: blur(2px); }
.modal { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.05rem; }
.modal-close { background: none; border: none; font-size: 1.25rem; cursor: pointer; color: var(--text-muted); transition: color var(--transition); padding: .25rem; }
.modal-close:hover { color: var(--danger); }
.modal-body   { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: .75rem; }

/* ─── CHECKLIST ─────────────────────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: .5rem; }
.check-item { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); font-size: .875rem; transition: var(--transition); }
.check-item.done { border-color: var(--success); background: var(--success-light); color: var(--success); }
.check-item.done .check-circle { background: var(--success); color: #fff; }
.check-circle { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-dark); display: flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0; transition: var(--transition); }
.check-item-text { flex: 1; }
.check-item-action { font-size: .78rem; color: var(--primary); font-weight: 600; cursor: pointer; }
.check-item-action:hover { text-decoration: underline; }

/* ─── DOMAIN INSTRUCTIONS ───────────────────────────────────────────────────── */
.dns-box { background: var(--primary-dark); color: #fff; border-radius: var(--radius); padding: 1.25rem 1.5rem; font-family: monospace; font-size: .875rem; }
.dns-row { display: flex; gap: 2rem; padding: .4rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.dns-row:last-child { border: none; }
.dns-key { color: rgba(255,255,255,.5); width: 80px; flex-shrink: 0; }
.dns-val { color: var(--accent); word-break: break-all; }

/* ─── COLOR PICKER ──────────────────────────────────────────────────────────── */
.color-input-wrapper { display: flex; align-items: center; gap: .75rem; }
.color-preview { width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1.5px solid var(--border); cursor: pointer; flex-shrink: 0; }

/* ─── TAGS INPUT ────────────────────────────────────────────────────────────── */
.tags-container { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: var(--white); cursor: text; min-height: 42px; transition: border-color var(--transition); }
.tags-container:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(44,74,62,.12); }
.tag { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .5rem; background: rgba(44,74,62,.1); color: var(--primary); border-radius: 100px; font-size: .78rem; font-weight: 600; }
.tag-remove { background: none; border: none; cursor: pointer; color: var(--primary); font-size: .9rem; padding: 0; line-height: 1; opacity: .7; }
.tag-remove:hover { opacity: 1; }
.tags-input { border: none; outline: none; font-family: var(--font); font-size: .875rem; flex: 1; min-width: 120px; background: transparent; }

/* ─── SUPERADMIN TABLE ──────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: .75rem 1rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 2px solid var(--border); white-space: nowrap; }
.data-table td { padding: .875rem 1rem; font-size: .875rem; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.table-wrap { overflow-x: auto; }

/* ─── EMPTY STATE ───────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-muted); }
.empty-state-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .5; }
.empty-state h3 { font-size: 1rem; color: var(--text-mid); margin-bottom: .5rem; }
.empty-state p { font-size: .875rem; }

/* ─── ALERT ─────────────────────────────────────────────────────────────────── */
.alert { padding: .875rem 1.1rem; border-radius: var(--radius-sm); font-size: .875rem; display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.alert-info    { background: #ebf8ff; color: #2b6cb0; border-left: 3px solid #4299e1; }
.alert-success { background: var(--success-light); color: #276749; border-left: 3px solid var(--success); }
.alert-warning { background: #fffbeb; color: #744210; border-left: 3px solid var(--warning); }
.alert-danger  { background: var(--danger-light); color: #9b2c2c; border-left: 3px solid var(--danger); }

/* ─── AUTH PAGES ─────────────────────────────────────────────────────────────── */
.auth-body { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; }
.auth-card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 2.5rem; width: 100%; max-width: 420px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.auth-logo img { height: 40px; }
.auth-title    { font-size: 1.4rem; font-weight: 700; color: var(--text); text-align: center; margin-bottom: .35rem; }
.auth-subtitle { font-size: .9rem; color: var(--text-muted); text-align: center; margin-bottom: 1.75rem; }
.auth-footer   { text-align: center; font-size: .875rem; color: var(--text-muted); margin-top: 1.5rem; }
.auth-footer a { color: var(--primary); font-weight: 600; }
.auth-terms    { font-size: .8rem; color: var(--text-muted); text-align: center; margin-top: 1rem; line-height: 1.5; }
.auth-terms a  { color: var(--primary); }

/* ─── BUTTONS ────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .625rem 1.25rem; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: all var(--transition); white-space: nowrap; text-decoration: none; line-height: 1.4; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover:not(:disabled) { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover:not(:disabled) { background: var(--primary); color: #fff; }
.btn-ghost  { background: transparent; color: var(--text-mid); border-color: transparent; }
.btn-ghost:hover:not(:disabled)  { background: var(--bg); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover:not(:disabled) { background: #c53030; }
.btn-full   { width: 100%; }
.btn-sm     { padding: .45rem .9rem; font-size: .8rem; }
.btn-xs     { padding: .3rem .65rem; font-size: .75rem; }
.btn-loading { position: relative; color: transparent !important; }
.btn-loading::after { content: ''; position: absolute; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── FORMS ───────────────────────────────────────────────────────────────────── */
.form-group       { display: flex; flex-direction: column; gap: .4rem; }
.form-label       { font-size: .8rem; font-weight: 600; color: var(--text-mid); display: flex; justify-content: space-between; align-items: center; }
.form-label-link  { font-size: .8rem; font-weight: 500; color: var(--primary); }
.form-label-hint  { font-size: .75rem; font-weight: 400; color: var(--text-muted); }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .6rem .875rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .875rem; font-family: var(--font); color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition); outline: none; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(44,74,62,.12);
}
.form-input.has-error, .form-textarea.has-error { border-color: var(--danger); }
.form-textarea { resize: vertical; min-height: 80px; }
.form-mono { font-family: 'Courier New', monospace; font-size: .82rem; }
.form-hint { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }
.form-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }
.form-input-sm { padding: .4rem .7rem; font-size: .8rem; }
.form-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.form-row-action { display: flex; gap: .75rem; }
.form-row-action .form-input { flex: 1; }
.char-counter { font-size: .75rem; color: var(--text-muted); text-align: right; margin-top: .2rem; }

.input-with-toggle { position: relative; }
.input-with-toggle .form-input { padding-right: 2.8rem; }
.input-toggle-btn { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 0; display: flex; align-items: center; }
.input-toggle-btn:hover { color: var(--text); }

.password-strength { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.strength-bar  { flex: 1; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; transition: width .3s ease, background .3s ease; }
.strength-label { font-size: .75rem; font-weight: 600; width: 50px; text-align: right; }

/* ─── DASHBOARD LAYOUT ───────────────────────────────────────────────────────── */
.dashboard-body { margin: 0; display: flex; height: 100vh; overflow: hidden; background: var(--bg); }

.sidebar { width: var(--sidebar-w); background: var(--primary-dark); color: #fff; display: flex; flex-direction: column; flex-shrink: 0; height: 100vh; overflow-y: auto; position: fixed; left: 0; top: 0; z-index: 100; }
.sidebar-logo { padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -.01em; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-close { display: none; background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; padding: 0; }
.sidebar-nav { flex: 1; padding: 1rem 0; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: .15rem; padding: 0 .75rem; }
.sidebar-nav li a { display: flex; align-items: center; gap: .75rem; padding: .65rem .9rem; border-radius: var(--radius-sm); font-size: .875rem; color: rgba(255,255,255,.7); transition: all var(--transition); text-decoration: none; }
.sidebar-nav li a:hover, .sidebar-nav li.active a { background: rgba(255,255,255,.1); color: #fff; }
.sidebar-nav li.active a { color: var(--accent); }
.sidebar-footer { padding: 1rem .75rem 1.5rem; border-top: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: .5rem; }
.sidebar-footer .btn { color: rgba(255,255,255,.7); justify-content: flex-start; width: 100%; }
.sidebar-footer .btn:hover { color: #fff; background: rgba(255,255,255,.08); }

.dashboard-main { margin-left: var(--sidebar-w); flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--border); padding: .875rem 1.5rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-sm); }
.sidebar-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--text); padding: .25rem; }
.topbar-title { font-size: 1rem; font-weight: 600; color: var(--text); flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: .75rem; }

.dash-section { padding: 1.5rem; border-bottom: 1px solid var(--border); }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.section-title { font-size: 1.2rem; font-weight: 700; color: var(--text); }

/* ─── CARDS ───────────────────────────────────────────────────────────────────── */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.card-header { margin-bottom: 1.25rem; }
.card-title { font-size: 1rem; font-weight: 700; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.card-subtitle { font-size: .85rem; color: var(--text-muted); margin-top: .3rem; }

/* ─── STATS ROW ───────────────────────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.stat-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem 1.5rem; box-shadow: var(--shadow-sm); }
.stat-label { display: block; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: .35rem; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--text); }

/* ─── BADGES ─────────────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: .2rem .6rem; border-radius: 100px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
.badge-success { background: var(--success-light); color: #276749; }
.badge-error   { background: var(--danger-light); color: #9b2c2c; }
.badge-warning { background: #fffbeb; color: #744210; }
.badge-neutral { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.badge-info    { background: #ebf8ff; color: #2b6cb0; }

/* ─── TOAST NOTIFICATIONS ────────────────────────────────────────────────────── */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999; display: flex; flex-direction: column; gap: .5rem; max-width: 360px; width: 100%; }
.toast { display: flex; align-items: flex-start; gap: .75rem; padding: .9rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); border: 1px solid var(--border); transform: translateX(120%); transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .3s ease; opacity: 0; }
.toast.toast-visible { transform: translateX(0); opacity: 1; }
.toast-success { border-left: 4px solid var(--success); }
.toast-error   { border-left: 4px solid var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-info    { border-left: 4px solid #4299e1; }
.toast-icon { flex-shrink: 0; margin-top: .05rem; }
.toast-success .toast-icon { color: var(--success); }
.toast-error   .toast-icon { color: var(--danger); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info    .toast-icon { color: #4299e1; }
.toast-message { flex: 1; font-size: .875rem; color: var(--text); line-height: 1.4; }
.toast-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 1.1rem; padding: 0; line-height: 1; margin-left: auto; }
.toast-close:hover { color: var(--text); }

/* ─── MODAL ───────────────────────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.modal-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(2px); }
.modal { position: relative; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 540px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title  { font-size: 1.05rem; font-weight: 700; }
.modal-close  { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--text-muted); line-height: 1; transition: color var(--transition); }
.modal-close:hover { color: var(--danger); }
.modal-body   { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }

/* ─── ALERT ───────────────────────────────────────────────────────────────────── */
.alert { padding: .875rem 1.1rem; border-radius: var(--radius-sm); font-size: .875rem; display: flex; gap: .75rem; align-items: flex-start; margin-bottom: 1rem; }
.alert-info    { background: #ebf8ff; color: #2b6cb0; border-left: 3px solid #4299e1; }
.alert-success { background: var(--success-light); color: #276749; border-left: 3px solid var(--success); }
.alert-warning { background: #fffbeb; color: #744210; border-left: 3px solid var(--warning); }
.alert-error   { background: var(--danger-light); color: #9b2c2c; border-left: 3px solid var(--danger); }

/* ─── LAYOUT PICKER ──────────────────────────────────────────────────────────── */
.layout-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: .875rem; }
.layout-card { border: 2px solid var(--border); border-radius: var(--radius); background: var(--white); cursor: pointer; padding: 0; text-align: left; overflow: hidden; transition: all var(--transition); position: relative; }
.layout-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.layout-card-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(44,74,62,.15); }
.layout-card-preview { display: block; width: 100%; background: #f8f9fa; line-height: 0; }
.layout-card-preview svg { width: 100%; height: auto; display: block; }
.layout-card-footer { padding: .6rem .75rem .65rem; border-top: 1px solid var(--border); }
.layout-card-name { display: block; font-size: .8rem; font-weight: 700; color: var(--text); }
.layout-card-desc { display: block; font-size: .7rem; color: var(--text-muted); margin-top: .15rem; line-height: 1.3; }
.layout-card-check { position: absolute; top: .5rem; right: .5rem; width: 18px; height: 18px; color: var(--white); background: var(--primary); border-radius: 50%; padding: 2px; opacity: 0; transition: opacity .15s; }
.layout-card-active .layout-card-check { opacity: 1; }
@media (max-width: 600px) { .layout-picker { grid-template-columns: 1fr; } }

/* ─── STYLE PICKER ───────────────────────────────────────────────────────────── */
.style-category { margin-bottom: 1.25rem; }
.style-category:last-child { margin-bottom: 0; }
.style-category-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin: 0 0 .6rem; }
.style-cards-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .625rem; }
.style-card { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border: 2px solid var(--border); border-radius: var(--radius); background: var(--white); cursor: pointer; text-align: left; transition: all var(--transition); position: relative; }
.style-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.style-card-active { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 5%, white); box-shadow: 0 0 0 3px rgba(44,74,62,.15); }
.style-card-swatches { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.style-card-swatch { width: 18px; height: 18px; border-radius: 4px; }
.style-card-body { flex: 1; min-width: 0; }
.style-card-name { display: block; font-size: .8rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.style-card-tagline { display: block; font-size: .7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.style-card-check { width: 16px; height: 16px; color: var(--primary); flex-shrink: 0; opacity: 0; transition: opacity .15s; }
.style-card-active .style-card-check { opacity: 1; }

/* ─── SECTION TOGGLES (toggle switches) ──────────────────────────────────────── */
.section-toggles { display: flex; flex-direction: column; gap: .5rem; }
.section-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: .75rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; gap: 1rem; }
.section-toggle-row:hover { background: rgba(44,74,62,.04); }
.section-toggle-label { font-size: .875rem; color: var(--text); font-weight: 500; flex: 1; }
.toggle-checkbox { display: none; }
.toggle-track { position: relative; width: 44px; height: 24px; background: var(--border-dark); border-radius: 12px; transition: background var(--transition); flex-shrink: 0; }
.toggle-checkbox:checked + .toggle-track { background: var(--primary); }
.toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: transform var(--transition); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.toggle-checkbox:checked + .toggle-track .toggle-thumb { transform: translateX(20px); }

/* ─── DYNAMIC LISTS ──────────────────────────────────────────────────────────── */
.dynamic-list { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .5rem; }
.dynamic-list-item { display: flex; align-items: center; gap: .5rem; }
.dynamic-list-item .form-input { flex: 1; }
.drag-handle { color: var(--text-muted); cursor: grab; flex-shrink: 0; }
.btn-remove-item { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: .25rem; display: flex; align-items: center; flex-shrink: 0; border-radius: var(--radius-sm); transition: all var(--transition); }
.btn-remove-item:hover { color: var(--danger); background: var(--danger-light); }

/* ─── FAQ EDITOR ─────────────────────────────────────────────────────────────── */
.faq-editor { display: flex; flex-direction: column; gap: .75rem; margin-bottom: .75rem; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; }
.faq-item-header { display: flex; gap: .5rem; margin-bottom: .6rem; }
.faq-item-header .form-input { flex: 1; }

/* ─── PHOTO UPLOAD ZONES ──────────────────────────────────────────────────────── */
.hero-upload-zone { border: 2px dashed var(--border-dark); border-radius: var(--radius); min-height: 180px; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; overflow: hidden; transition: all var(--transition); background: var(--bg); }
.hero-upload-zone:hover { border-color: var(--primary); background: rgba(44,74,62,.03); }
.hero-upload-zone img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.upload-placeholder { text-align: center; color: var(--text-muted); padding: 2rem; }
.upload-placeholder svg { margin: 0 auto .75rem; opacity: .5; }
.upload-placeholder p  { font-size: .875rem; font-weight: 500; margin-bottom: .25rem; }
.upload-placeholder span { font-size: .75rem; }
.photo-upload-zone { border: 2px dashed var(--border-dark); border-radius: var(--radius); padding: 2rem; text-align: center; cursor: pointer; transition: all var(--transition); color: var(--text-muted); }
.photo-upload-zone:hover, .photo-upload-zone.drag-over { border-color: var(--primary); background: rgba(44,74,62,.04); }
.photo-upload-zone svg { margin: 0 auto .75rem; opacity: .5; }
.photo-upload-zone p   { font-size: .875rem; margin-bottom: .25rem; }
.photo-upload-zone span { font-size: .75rem; }
.upload-link { color: var(--primary); cursor: pointer; font-weight: 600; text-decoration: underline; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .75rem; margin-top: 1rem; }
.photo-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; border: 2px solid transparent; transition: all var(--transition); cursor: grab; }
.photo-item:active { cursor: grabbing; }
.photo-item:hover { border-color: var(--primary); }
.photo-item.dragging { opacity: .45; border-color: var(--primary); }
.photo-item.drag-over { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,76,.35); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.photo-drag-handle { position: absolute; top: 5px; left: 5px; background: rgba(0,0,0,.45); border-radius: 4px; padding: 3px 4px; opacity: 0; transition: opacity var(--transition); color: #fff; line-height: 0; }
.photo-item:hover .photo-drag-handle { opacity: 1; }
.photo-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition); }
.photo-item:hover .photo-overlay { opacity: 1; }
.photo-edit-btn { background: rgba(255,255,255,.9); border: none; border-radius: var(--radius-sm); padding: .4rem .7rem; font-size: .75rem; font-weight: 600; cursor: pointer; color: var(--text); transition: all var(--transition); display: flex; align-items: center; gap: .3rem; }
.photo-edit-btn:hover { background: #fff; }

/* ─── REVIEWS EDITOR ─────────────────────────────────────────────────────────── */
.reviews-editor { display: flex; flex-direction: column; gap: .75rem; }
.review-item { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; }
.review-item-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; flex-wrap: wrap; }
.review-item-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.review-name  { font-weight: 700; font-size: .9rem; margin-right: .4rem; }
.review-stars { color: var(--accent); letter-spacing: 1px; }
.review-date  { font-size: .78rem; color: var(--text-muted); }
.review-text  { font-size: .875rem; color: var(--text-mid); line-height: 1.5; }

/* ─── COLOR INPUT ────────────────────────────────────────────────────────────── */
.color-input-group { display: flex; gap: .5rem; align-items: center; }
.color-swatch-input { width: 44px; height: 42px; padding: 2px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: none; flex-shrink: 0; }
.color-input-group .form-input { flex: 1; }

/* ─── AI GENERATE ────────────────────────────────────────────────────────────── */
.ai-btn { color: var(--primary); }
.ai-generate-all { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.ai-btn svg { flex-shrink: 0; }

/* ─── DNS BOX ────────────────────────────────────────────────────────────────── */
.dns-box { background: var(--primary-dark); color: #fff; border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; align-items: center; gap: 1rem; margin-bottom: .75rem; }
.dns-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.5); width: 80px; flex-shrink: 0; }
.dns-value { font-family: 'Courier New', monospace; color: var(--accent); flex: 1; font-size: .875rem; word-break: break-all; }
.dns-instructions { background: var(--primary-dark); border-radius: var(--radius); padding: 1rem 1.25rem; }
.dns-row { display: flex; align-items: center; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.dns-row:last-child { border-bottom: none; }
.dns-row .dns-label { color: rgba(255,255,255,.5); }
.dns-row .dns-value { color: var(--accent); }
.dns-verify-row { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.dns-check-ok   { font-size: .875rem; color: var(--success); font-weight: 500; }
.dns-check-fail { font-size: .875rem; color: var(--danger);  font-weight: 500; }

/* ─── CUSTOM DOMAIN UX ────────────────────────────────────────────────────────── */
.domain-connected-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .75rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 1.25rem; }
.domain-connected-label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mid); }
.domain-status-badge { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .55rem; border-radius: 99px; background: #fef3c7; color: #92400e; }
.domain-status-badge.domain-status-active { background: #d1fae5; color: #065f46; }
.dns-steps-wrap { }
.dns-steps-intro { font-size: .9rem; color: var(--text-mid); margin-bottom: 1rem; }
.dns-step-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1rem; }
.dns-step-item { display: flex; align-items: flex-start; gap: .75rem; font-size: .9rem; }
.dns-step-num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: .05rem; }
.dns-record-box { background: var(--primary-dark); color: #fff; border-radius: var(--radius); padding: .75rem 1.1rem; margin: .25rem 0; }
.dns-record-box .dns-row { display: flex; align-items: center; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.dns-record-box .dns-row:last-child { border-bottom: none; }
.dns-record-box .dns-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.45); width: 110px; flex-shrink: 0; }
.dns-record-box .dns-value { font-family: 'Courier New', monospace; color: var(--accent); flex: 1; font-size: .875rem; word-break: break-all; }
.dns-ttl-note { font-size: .75rem; color: rgba(255,255,255,.35); }
.dns-action-row { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.1rem; }
.dns-action-row .btn { display: flex; align-items: center; gap: .4rem; }
.dns-notes { display: flex; flex-direction: column; gap: .45rem; margin-top: .75rem; padding: .75rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .85rem; color: var(--text-mid); }
.dns-notes p { margin: 0; line-height: 1.5; }

/* ─── CHECKLIST ───────────────────────────────────────────────────────────────── */
.checklist { display: flex; flex-direction: column; gap: .4rem; }
.checklist-item { display: flex; align-items: center; gap: .75rem; padding: .7rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: .875rem; color: var(--text-mid); }
.checklist-done { border-color: var(--success); background: var(--success-light); color: var(--success); }
.checklist-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.checklist-done .checklist-icon { color: var(--success); }

/* ─── EMPTY STATE ─────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 2rem; color: var(--text-muted); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.empty-state svg { opacity: .4; }
.empty-state p { font-size: .9rem; }

/* ─── DATA TABLE ──────────────────────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { text-align: left; padding: .7rem 1rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); border-bottom: 2px solid var(--border); white-space: nowrap; }
.data-table td { padding: .875rem 1rem; font-size: .875rem; border-bottom: 1px solid var(--border); color: var(--text); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }
.table-loading, .table-empty { text-align: center; color: var(--text-muted); font-size: .875rem; padding: 2rem; }
.table-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.table-filters { display: flex; gap: .75rem; }

/* ─── DETAIL GRID (user modal) ─────────────────────────────────────────────── */
.detail-grid { display: flex; flex-direction: column; gap: .6rem; }
.detail-row  { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); width: 110px; flex-shrink: 0; }

/* ─── TAB CONTENT (superadmin) ─────────────────────────────────────────────── */
.tab-content { display: none; padding: 1.5rem; }
.tab-content.active { display: block; }

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-grid, .form-row-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; position: fixed; }
  .sidebar.sidebar-open { transform: translateX(0); }
  .sidebar-close { display: flex; }
  .sidebar-toggle { display: flex; }
  .dashboard-main { margin-left: 0; }
  .form-row-2, .form-grid { grid-template-columns: 1fr; }
  .form-row-4 { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .dash-section { padding: 1rem; }
  .topbar { padding: .75rem 1rem; }
  .card { padding: 1.25rem; }
  .theme-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .auth-card { padding: 1.75rem; }
}
@media (max-width: 500px) {
  .stats-row { grid-template-columns: 1fr; }
  .form-row-4 { grid-template-columns: 1fr 1fr; }
  .topbar-actions .btn-outline { display: none; }
}

/* ── Collapsible sections ───────────────────────────────────────────── */
.collapsible-section-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 0.5rem 0.25rem;
  margin: -0.5rem -0.25rem 0.75rem;
  transition: background 0.15s;
}
.collapsible-section-header:hover { background: var(--color-bg-hover, rgba(0,0,0,0.04)); }

.section-header-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collapse-chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--color-text-muted);
}

.collapsible-section.collapsed .collapse-chevron {
  transform: rotate(-90deg);
}

.collapsible-section-body {
  display: block;
}

.collapsible-section.collapsed .collapsible-section-body {
  display: none;
}

/* ── Checklist widget ───────────────────────────────────────────────── */
.checklist-widget {
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.checklist-widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.125rem;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}
.checklist-widget-header:hover { background: var(--color-bg-hover, rgba(0,0,0,0.03)); }

.checklist-widget-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1;
  min-width: 0;
}

.checklist-widget-title {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.checklist-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--color-border);
  border-radius: 999px;
  overflow: hidden;
  min-width: 60px;
  max-width: 160px;
}

.checklist-progress-fill {
  height: 100%;
  background: var(--color-primary);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.checklist-counter {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.checklist-chevron {
  flex-shrink: 0;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.checklist-widget.collapsed .checklist-chevron {
  transform: rotate(-90deg);
}

.checklist-widget-body {
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 1.125rem 1rem;
}

.checklist-widget.collapsed .checklist-widget-body {
  display: none;
}

/* ── BRANDING UPLOADS (Logo / Favicon) ─────────────────────────────────────── */
.branding-upload-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.branding-preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  min-height: 80px;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-secondary);
  flex-shrink: 0;
  overflow: hidden;
  padding: 0.5rem;
}

.branding-preview-sm {
  width: 80px;
  min-height: 80px;
}

.branding-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  text-align: center;
}

.branding-upload-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

/* ── HERO IMAGE GRID ────────────────────────────────────────────────────────── */
.hero-item-active {
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 2px var(--color-primary);
}

.hero-active-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  pointer-events: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── PUBLISH / SAVE STATE INDICATORS ───────────────────────────────────────── */
#publishBtn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Pulsing dot on Save button when there are unsaved changes */
.btn-dirty {
  position: relative;
}
.btn-dirty::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  border: 1.5px solid #fff;
}

/* ── INLINE HINT ─────────────────────────────────────────────────────────────── */
.inline-hint {
  display: flex; align-items: center; gap: 0.5rem;
  background: #fffbeb; border: 1px solid #fde68a;
  color: #92400e; border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem; font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.inline-hint svg { flex-shrink: 0; color: #d97706; }

/* ── WEBHOOK FIELD NAMES ─────────────────────────────────────────────────────── */
.webhook-field {
  font-family: monospace; font-size: .8rem; font-weight: 700;
  color: rgba(255,255,255,.9); width: 90px; flex-shrink: 0;
  text-transform: none; letter-spacing: 0;
}

/* ── SETUP WIZARD ────────────────────────────────────────────────────────────── */
.wizard-modal {
  max-width: 600px;
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
.wizard-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 10;
}
.wizard-progress-wrap {
  height: 4px;
  background: var(--border);
  flex-shrink: 0;
}
.wizard-progress-bar {
  height: 100%;
  background: var(--primary);
  transition: width 0.4s ease;
  width: 0%;
}
.wizard-steps {
  display: flex;
  align-items: flex-start;
  padding: 1.25rem 1.75rem 0;
  gap: 0;
}
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  flex: 0 0 auto;
}
.wizard-step span {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
}
.wizard-step.active span { color: var(--primary); font-weight: 600; }
.wizard-step.done span { color: var(--success); }
.wizard-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
}
.wizard-step.active .wizard-step-num { background: var(--primary); color: #fff; }
.wizard-step.done .wizard-step-num { background: var(--success); color: #fff; }
.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 0.25rem;
  margin-top: 13px;
  min-width: 20px;
}
.wizard-step.done ~ .wizard-step-line,
.wizard-step.done + .wizard-step-line { background: var(--success); }
.wizard-panel {
  padding: 1.5rem 1.75rem 0.5rem;
  flex: 1;
}
.wizard-panel.hidden { display: none; }
.wizard-panel h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.3rem; }
.wizard-panel > p, .wizard-panel > .wizard-summary > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.75rem;
  border-top: 1px solid var(--border);
  gap: 0.75rem;
  flex-shrink: 0;
}
.wizard-footer-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wizard-summary {
  text-align: center;
  padding: 0.5rem 0;
}
.wizard-summary-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}
.wizard-summary h2 { margin-bottom: 0.4rem; }
.wizard-summary-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: left;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.wizard-summary-item strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.1rem;
}
.wizard-summary-item span {
  color: var(--text);
  font-weight: 500;
  font-size: 0.875rem;
}

/* ── EDITOR SIDEBAR NAV ──────────────────────────────────────────────────────── */
.nav-back-link {
  opacity: .65;
  font-size: .8rem !important;
}
.nav-back-link:hover { opacity: 1 !important; }

.nav-group > a.nav-group-link {
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.85) !important;
  padding: .55rem .9rem !important;
  margin-top: .35rem;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.nav-group > a.nav-group-link:hover { color: #fff !important; background: rgba(255,255,255,.1) !important; }
.nav-group > a.nav-group-link.nav-active { color: var(--accent) !important; background: rgba(212,168,83,.12) !important; }

.nav-sub-list {
  list-style: none;
  padding: 0;
  margin: .1rem 0 .25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.nav-sub-list li a {
  display: block;
  padding: .28rem .9rem .28rem 2.3rem !important;
  font-size: .775rem !important;
  color: rgba(255,255,255,.45) !important;
  border-radius: var(--radius-sm) !important;
  line-height: 1.4;
  transition: color .15s, background .15s !important;
}
.nav-sub-list li a:hover { color: rgba(255,255,255,.85) !important; background: rgba(255,255,255,.07) !important; }
.nav-sub-list li a.nav-active { color: var(--accent) !important; background: rgba(212,168,83,.1) !important; font-weight: 500 !important; }

.editor-nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: .5rem .75rem; }
