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

/* ─── Brand Tokens ─── */
:root {
  --navy:         #0D1B3E;
  --navy-deep:    #091228;
  --navy-mid:     #1E3464;
  --navy-light:   #2E4A80;
  --gold:         #B8922A;
  --gold-bright:  #D4AF60;
  --gold-pale:    #F5EDD5;
  --gold-border:  #DFC98A;
  --cream:        #FAF8F3;
  --white:        #FFFFFF;
  --border:       #E0D5BC;
  --border-light: #F0E9D6;
  --text:         #0D1B3E;
  --text-body:    #2C3860;
  --text-muted:   #6B7BA0;
  --in-stock:     #166534;
  --in-stock-bg:  #F0FDF4;
  --out-stock:    #991B1B;
  --out-stock-bg: #FEF2F2;
  --radius:       8px;
  --shadow:       0 2px 12px rgba(13,27,62,0.08);
  --shadow-md:    0 4px 20px rgba(13,27,62,0.12);
  --shadow-lg:    0 8px 40px rgba(13,27,62,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.6;
}

/* ─── HEADER ─── */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-top {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.logo-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-wrap img.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(5deg);
}

.logo-fallback {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold-bright);
  letter-spacing: 1px;
}

.brand-text { line-height: 1.2; }

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.5px;
  display: block;
}

.brand-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--gold-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Divider line under header ─── */
.header-rule {
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-bright), var(--gold), transparent);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: var(--navy-deep);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(184,146,42,0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold-bright), #E8C878);
  box-shadow: 0 4px 16px rgba(184,146,42,0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.85);
}
.btn-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn-outline-navy {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-body);
}
.btn-outline-navy:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-pale);
}

.btn-danger {
  background: #DC2626;
  color: #fff;
}
.btn-danger:hover { background: #EF4444; transform: translateY(-1px); }

.btn-sm { padding: 6px 14px; font-size: 12px; }

.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ─── Main ─── */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 32px 60px;
}

/* ─── Page Title ─── */
.page-title {
  margin-bottom: 28px;
}

.page-title h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
}

.page-title p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ─── Stats Bar ─── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 18px 16px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }

.stat-card .value {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  display: block;
}

.stat-card .label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
  display: block;
}

.stat-card.highlight .value { color: var(--gold); }

/* ─── Controls ─── */
.controls {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.search-box {
  flex: 1;
  min-width: 220px;
  max-width: 340px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,42,0.12);
  background: var(--white);
}
.search-box input::placeholder { color: var(--text-muted); }

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tab {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}
.tab:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-pale);
}
.tab.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.filter-stock {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.toggle {
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}
.toggle.on { background: var(--navy); }
.toggle::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  top: 3px;
  left: 3px;
  transition: left 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.toggle.on::after { left: 21px; }

/* ─── Results count ─── */
.results-info {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 2px;
}

/* ─── Table ─── */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

thead {
  background: var(--navy);
}

thead th {
  padding: 13px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--gold);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
  background: var(--navy);
}
thead th:hover { color: #fff; }
thead th.sorted { color: #fff; }

tbody tr {
  transition: background 0.12s;
}
tbody tr:hover { background: var(--gold-pale); }

tbody td {
  border-bottom: 1px solid var(--border-light);
}
tbody tr:last-child td { border-bottom: none; }

td {
  padding: 12px 16px;
  color: var(--text-body);
  white-space: nowrap;
}

.style-no {
  font-family: 'Inter', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.price {
  font-weight: 700;
  color: var(--gold);
  font-size: 13px;
}

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

.badge-in  { background: var(--in-stock-bg);  color: var(--in-stock);  border: 1px solid #BBF7D0; }
.badge-out { background: var(--out-stock-bg); color: var(--out-stock); border: 1px solid #FECACA; }

.purity-badge {
  background: var(--gold-pale);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.qty-cell {
  font-weight: 600;
  color: var(--navy);
}

/* ─── Empty state ─── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state .icon { font-size: 52px; margin-bottom: 16px; display: block; }
.empty-state p { font-size: 16px; font-weight: 500; margin-bottom: 6px; color: var(--text-body); }
.empty-state span { font-size: 13px; }

/* ─── FOOTER ─── */
footer {
  background: var(--navy-deep);
  border-top: 2px solid var(--gold);
  margin-top: 60px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer-brand .brand-name-footer {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--white);
  font-weight: 600;
}

.footer-brand p {
  font-size: 12px;
  color: var(--gold-bright);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.footer-brand .tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  margin-top: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  text-transform: none;
}

.footer-section h4 {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold-bright);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-contact-item .ci-icon {
  color: var(--gold);
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

.footer-contact-item .ci-text {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-contact-item a:hover { color: var(--gold-bright); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 18px 32px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.3px;
}

/* ─── Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9,18,40,0.75);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 580px;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(16px);
  transition: transform 0.25s;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: translateY(0); }

.modal-header {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--navy);
  border-radius: 12px 12px 0 0;
}

.modal-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.modal-close {
  background: rgba(255,255,255,0.1);
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 9px;
  border-radius: 6px;
  line-height: 1;
  transition: all 0.15s;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.2); }

.modal-body { padding: 28px; }

.modal-footer {
  padding: 18px 28px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  background: var(--cream);
  border-radius: 0 0 12px 12px;
}

/* ─── Form ─── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,42,0.1);
  background: var(--white);
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
}
.toggle-row label {
  font-size: 13px;
  color: var(--text-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

/* ─── ADMIN-SPECIFIC ─── */
body.admin-body {
  background: #0A1628;
}

body.admin-body main {
  padding: 32px 32px 60px;
}

.admin-controls {
  background: #111E38;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

body.admin-body .search-box input {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: #E2E8F8;
}
body.admin-body .search-box input:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.09);
}
body.admin-body .search-box input::placeholder { color: rgba(255,255,255,0.35); }
body.admin-body .search-icon { color: rgba(255,255,255,0.35); }

body.admin-body .tab {
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.5);
}
body.admin-body .tab:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,146,42,0.08);
}
body.admin-body .tab.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-deep);
}

body.admin-body .results-info { color: rgba(255,255,255,0.35); }

/* Admin stats */
.admin-stats { margin-bottom: 28px; }

.admin-stat-card {
  background: #111E38;
  border: 1px solid rgba(255,255,255,0.07);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.admin-stat-card .value {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1;
}

.admin-stat-card .label {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 6px;
}

/* Admin table */
body.admin-body .table-wrap {
  border-color: rgba(255,255,255,0.07);
}

body.admin-body .table-scroll {
  background: #111E38;
}

body.admin-body thead {
  background: #0A1628;
}

body.admin-body thead th {
  background: #0A1628;
}

body.admin-body tbody tr:hover { background: rgba(184,146,42,0.05); }

body.admin-body tbody td {
  border-bottom-color: rgba(255,255,255,0.05);
}

body.admin-body td {
  color: rgba(255,255,255,0.75);
}

body.admin-body .style-no { color: var(--gold-bright); }
body.admin-body .qty-cell { color: #fff; }
body.admin-body .price { color: var(--gold-bright); }

body.admin-body .purity-badge {
  background: rgba(184,146,42,0.12);
  border-color: rgba(184,146,42,0.25);
}

/* Admin form */
body.admin-body .modal {
  background: #111E38;
  border-color: rgba(255,255,255,0.08);
}

body.admin-body .modal-body { background: #111E38; }

body.admin-body .form-group input,
body.admin-body .form-group select,
body.admin-body .form-group textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #E2E8F8;
}
body.admin-body .form-group input:focus,
body.admin-body .form-group select,
body.admin-body .form-group textarea:focus {
  background: rgba(255,255,255,0.08);
}
body.admin-body .form-group label { color: rgba(255,255,255,0.4); }
body.admin-body .toggle-row label { color: rgba(255,255,255,0.75); text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 400; }
body.admin-body .modal-footer { background: #0A1628; border-color: rgba(255,255,255,0.06); }
body.admin-body .form-group select option { background: #111E38; color: #E2E8F8; }

body.admin-body .btn-outline-navy {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
body.admin-body .btn-outline-navy:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,146,42,0.08);
}

/* ─── Login ─── */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-page::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184,146,42,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.login-card {
  background: var(--white);
  border-radius: 16px;
  padding: 48px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.login-logo-area {
  text-align: center;
  margin-bottom: 32px;
}

.login-logo-area img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 12px;
}

.login-logo-area .fallback-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.login-logo-area h1 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.login-logo-area p {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.divider-gold {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 16px auto;
}

.admin-badge {
  display: inline-block;
  background: var(--gold-pale);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.form-group-login { margin-bottom: 16px; }

.form-group-login label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 6px;
}

.form-group-login input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--cream);
  transition: all 0.2s;
}
.form-group-login input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,146,42,0.1);
  background: var(--white);
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.btn-login:hover {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,27,62,0.35);
}

.error-msg {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}

.login-back {
  text-align: center;
  margin-top: 24px;
  font-size: 12px;
  color: var(--text-muted);
}
.login-back a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.login-back a:hover { text-decoration: underline; }

/* ─── Toast ─── */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  animation: toastIn 0.25s ease;
  min-width: 240px;
  box-shadow: var(--shadow-md);
}
.toast-success { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.toast-error   { background: #FEF2F2; color: #DC2626; border: 1px solid #FECACA; }

@keyframes toastIn {
  from { transform: translateX(24px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ─── Admin action cell ─── */
.action-cell { display: flex; gap: 6px; }

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

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .header-top { padding: 0 16px; }
  main { padding: 20px 16px 40px; }
  .footer-inner { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: 1; }
}
