/* ═══════════════════════════════════════════════════════════════════
   Bregan Collectibles — Main Stylesheet
   Dark Navy + Gold numismatic theme
   ═══════════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────────── */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1a2e44;
  --navy-light: #243b55;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --gold-dark:  #a07030;
  --cream:      #f9f6ef;
  --white:      #ffffff;
  --gray-50:    #f8f9fa;
  --gray-100:   #f1f3f5;
  --gray-200:   #e9ecef;
  --gray-400:   #ced4da;
  --gray-600:   #6c757d;
  --gray-800:   #343a40;
  --red:        #dc3545;
  --green:      #28a745;
  --amber:      #fd7e14;
  --radius:     8px;
  --radius-lg:  14px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow:     0 4px 20px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 40px rgba(0,0,0,.18);
  --transition: .2s ease;
  --font-body:  'Inter', system-ui, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* ── Reset ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ── Layout ──────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-alt { background: var(--white); }

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.3;
}
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-full { width: 100%; }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-mid); border-color: var(--navy-mid); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }

.btn-danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-danger:hover { background: #b02a37; }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: #218838; }
.btn-amber { background: var(--amber); color: var(--white); border-color: var(--amber); }
.btn-amber:hover { background: #e0660f; }

/* ── Navbar ──────────────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-icon { font-size: 24px; }
.brand-text {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--white);
  font-weight: 700;
}
.brand-accent { color: var(--gold); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: rgba(255,255,255,.06);
}
.trust-badge {
  color: rgba(255,255,255,.5);
  font-size: 12px;
  white-space: nowrap;
  margin-left: 8px;
}

/* Dropdown */
.dropdown { position: relative; align-self: stretch; display: flex; align-items: center; }
.dropdown > a { position: relative; z-index: 201; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 6px 0;
  z-index: 200;
}
.dropdown-menu li a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,.85) !important;
  background: none !important;
}
.dropdown-menu li a:hover { color: var(--gold) !important; background: rgba(255,255,255,.06) !important; }
.dropdown:hover .dropdown-menu { display: block; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

/* ── Flash messages ───────────────────────────────────────────────── */
.flash-container { position: fixed; top: 70px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  max-width: 360px;
  animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } }
.flash-success { background: #d4edda; color: #155724; border-left: 4px solid var(--green); }
.flash-error   { background: #f8d7da; color: #721c24; border-left: 4px solid var(--red); }
.flash-info    { background: #d1ecf1; color: #0c5460; border-left: 4px solid #17a2b8; }
.flash-close   { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 18px; color: inherit; opacity: .6; }

/* ── Page header ─────────────────────────────────────────────────── */
.page-header {
  background: var(--navy);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 42px;
  color: var(--white);
}
.page-header p { color: rgba(255,255,255,.7); margin-top: 8px; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, #1c3050 100%);
  color: var(--white);
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='28' fill='none' stroke='rgba(201,168,76,0.06)' stroke-width='2'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  max-width: 700px;
}
.hero-sub {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 16px;
}
.hero-title .gold { color: var(--gold); }
.gold { color: var(--gold); }
.hero-desc { font-size: 18px; color: rgba(255,255,255,.75); margin-bottom: 24px; line-height: 1.7; }
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-badges span {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.08);
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15);
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Category strip ──────────────────────────────────────────────── */
.category-strip { background: var(--navy-light); padding: 12px 0; overflow: hidden; }
.category-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cat-pill {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.8);
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,.15);
  transition: all var(--transition);
}
.cat-pill:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ── Section headers ─────────────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--navy);
}
.link-more { font-size: 14px; font-weight: 600; }

/* ── Coin grid ───────────────────────────────────────────────────── */
.coin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

/* ── Coin card ───────────────────────────────────────────────────── */
.coin-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.coin-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.coin-card.sold { opacity: .7; }

.card-img-link { display: block; position: relative; overflow: hidden; aspect-ratio: 1/1; background: var(--gray-100); }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card-img-link:hover .card-img { transform: scale(1.05); }
.card-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 52px; height: 100%; color: var(--gray-400); }

.sold-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 22px; font-weight: 700; letter-spacing: 2px;
}
.featured-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--gold); color: var(--navy);
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
}
.condition-badge {
  position: absolute; bottom: 8px; right: 8px;
  font-size: 11px; font-weight: 700;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase;
}
.condition-badge.slabbed { background: var(--navy); color: var(--gold); }
.condition-badge.raw { background: rgba(0,0,0,.55); color: var(--white); }

.card-body { padding: 14px; }
.card-category { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-600); margin-bottom: 4px; }
.card-title { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.card-title a { color: var(--navy); }
.card-title a:hover { color: var(--gold-dark); }
.card-grade { font-size: 12px; color: var(--gray-600); margin-bottom: 8px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card-price { font-size: 18px; font-weight: 700; color: var(--navy); }
.sold-text { font-size: 13px; color: var(--red); font-weight: 600; }

/* ── About strip ─────────────────────────────────────────────────── */
.about-strip { background: var(--navy); }
.about-strip-inner {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}
.about-text { flex: 1; min-width: 300px; }
.about-text h2 { font-family: var(--font-serif); font-size: 34px; color: var(--white); margin-bottom: 16px; }
.about-text p { color: rgba(255,255,255,.75); margin-bottom: 12px; line-height: 1.7; }
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,168,76,.3);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
}
.fact-num { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--gold); }
.fact-label { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 4px; }

/* ── Shop layout ─────────────────────────────────────────────────── */
.shop-layout { display: flex; gap: 32px; padding: 40px 20px; align-items: flex-start; }
.shop-sidebar { width: 220px; flex-shrink: 0; background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: 80px; }
.shop-sidebar h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--navy); }
.shop-main { flex: 1; min-width: 0; }

.filter-group { margin-bottom: 16px; }
.filter-group label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--gray-600); margin-bottom: 6px; }
.filter-group select {
  width: 100%; padding: 8px 10px;
  border: 1px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 14px;
  background: var(--gray-50); cursor: pointer;
}
.sidebar-trust { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--gray-200); }
.sidebar-trust h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.sidebar-trust li { font-size: 12px; color: var(--gray-600); padding: 3px 0; }

.filter-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--navy); color: var(--white);
  font-size: 12px; padding: 4px 10px; border-radius: 20px;
}
.filter-tag a { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-600); }
.empty-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 22px; margin-bottom: 8px; color: var(--navy); }

/* ── Coin detail ─────────────────────────────────────────────────── */
.coin-detail-page { padding: 20px 20px 60px; }
.breadcrumb { font-size: 13px; color: var(--gray-600); margin-bottom: 24px; }
.breadcrumb a { color: var(--gray-600); }
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { color: var(--navy); font-weight: 500; }

.coin-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }

/* Gallery */
.coin-gallery { position: sticky; top: 80px; }
.gallery-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-100);
  aspect-ratio: 1/1;
  margin-bottom: 12px;
}
.main-photo { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; transition: transform .3s; }
.main-photo:hover { transform: scale(1.02); }
.gallery-placeholder { display: flex; align-items: center; justify-content: center; font-size: 80px; color: var(--gray-300); height: 100%; }
.sold-ribbon {
  position: absolute; top: 0; left: 0; right: 0;
  background: rgba(220, 53, 69, .85);
  color: var(--white); text-align: center;
  padding: 10px; font-size: 20px; font-weight: 700; letter-spacing: 3px;
}
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb {
  width: 72px; height: 72px; object-fit: cover;
  border-radius: 6px; cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.thumb.active, .thumb:hover { border-color: var(--gold); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
.lightbox.active { display: flex; }
#lightbox-img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.15);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.3); }
.lightbox-close { top: 16px; right: 16px; font-size: 24px; }
.lightbox-prev { left: 16px; font-size: 28px; }
.lightbox-next { right: 16px; font-size: 28px; }

/* Coin info */
.coin-meta-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.cat-badge, .cond-badge, .feat-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 4px 10px; border-radius: 4px;
}
.cat-badge { background: var(--gray-100); color: var(--gray-600); }
.cond-badge.slabbed { background: var(--navy); color: var(--gold); }
.cond-badge.raw { background: var(--gray-200); color: var(--gray-800); }
.feat-badge { background: var(--gold); color: var(--navy); }

.coin-title { font-family: var(--font-serif); font-size: 32px; line-height: 1.2; color: var(--navy); margin-bottom: 12px; }
.coin-price-row { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.detail-price { font-size: 36px; font-weight: 700; color: var(--navy); }
.sold-label { background: var(--red); color: var(--white); padding: 4px 12px; border-radius: 4px; font-weight: 700; }

.specs-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.specs-table th, .specs-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--gray-200); font-size: 14px; }
.specs-table th { width: 38%; color: var(--gray-600); font-weight: 600; background: var(--gray-50); }
.grade { color: var(--navy); font-size: 16px; }

.coin-description { margin-bottom: 24px; }
.coin-description h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.coin-description p { color: var(--gray-600); line-height: 1.7; }

/* Purchase options */
.purchase-options h3 { font-size: 16px; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.purchase-option {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  transition: border-color var(--transition);
}
.purchase-option.primary { border-color: var(--gold); background: #fffdf5; }
.purchase-option:hover { border-color: var(--gold); }
.option-info h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.option-info p { font-size: 13px; color: var(--gray-600); margin-bottom: 10px; }

.sold-notice { background: var(--gray-100); border-radius: var(--radius); padding: 24px; text-align: center; }
.sold-notice h3 { color: var(--red); margin-bottom: 8px; }
.sold-notice p { color: var(--gray-600); margin-bottom: 16px; }

/* ── Modal ───────────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2500;
  background: rgba(0,0,0,.6);
  align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%; max-width: 520px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn .2s ease;
}
@keyframes modalIn { from { transform: translateY(30px); opacity: 0; } }
.modal h2 { font-family: var(--font-serif); font-size: 24px; color: var(--navy); margin-bottom: 6px; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; font-size: 24px;
  cursor: pointer; color: var(--gray-600);
}
#modal-subtitle { color: var(--gray-600); font-size: 14px; margin-bottom: 20px; }

/* ── Forms ───────────────────────────────────────────────────────── */
.inquiry-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}
.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(201,168,76,.15);
}
.form-group textarea { resize: vertical; }

/* ── Contact page ────────────────────────────────────────────────── */
.contact-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding: 60px 20px; align-items: start; }
.contact-form-wrap h2 { font-family: var(--font-serif); font-size: 28px; color: var(--navy); margin-bottom: 24px; }
.contact-info { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 28px; }
.contact-info h3 { font-family: var(--font-serif); font-size: 22px; margin-bottom: 8px; }
.contact-info > p { color: rgba(255,255,255,.7); margin-bottom: 16px; }
.contact-list { color: rgba(255,255,255,.7); display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.contact-note { background: rgba(255,255,255,.06); border-radius: var(--radius); padding: 16px; }
.contact-note h4 { color: var(--gold); margin-bottom: 6px; font-size: 14px; }
.contact-note p { color: rgba(255,255,255,.65); font-size: 13px; }

/* ── About page ──────────────────────────────────────────────────── */
.about-page { padding: 60px 20px; }
.about-hero-text { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.about-hero-text h2 { font-family: var(--font-serif); font-size: 36px; color: var(--navy); margin-bottom: 16px; }
.about-lead { font-size: 18px; color: var(--gray-600); line-height: 1.7; }
.about-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-bottom: 48px; }
.about-section { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.about-section h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.about-section p { color: var(--gray-600); line-height: 1.7; font-size: 14px; }
.about-section ul { color: var(--gray-600); font-size: 14px; line-height: 1.7; padding-left: 16px; list-style: disc; margin-top: 8px; }
.about-cta { text-align: center; background: var(--navy); border-radius: var(--radius-lg); padding: 48px; }
.about-cta h3 { font-family: var(--font-serif); font-size: 28px; color: var(--white); margin-bottom: 8px; }
.about-cta p { color: rgba(255,255,255,.7); margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Thanks page ─────────────────────────────────────────────────── */
.thanks-page { display: flex; align-items: center; justify-content: center; padding: 80px 20px; }
.thanks-box { background: var(--white); border-radius: var(--radius-lg); padding: 48px; text-align: center; box-shadow: var(--shadow); max-width: 500px; width: 100%; }
.thanks-icon { font-size: 56px; margin-bottom: 16px; }
.thanks-box h1 { font-family: var(--font-serif); font-size: 32px; color: var(--navy); margin-bottom: 12px; }
.thanks-sub { font-size: 16px; color: var(--navy); margin-bottom: 12px; }
.thanks-box p { color: var(--gray-600); line-height: 1.7; margin-bottom: 8px; }
.thanks-note { font-size: 14px; }
.thanks-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer { background: var(--navy); color: var(--white); padding: 48px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 32px; padding-bottom: 32px; }
.footer-brand .brand-icon { font-size: 28px; margin-bottom: 6px; }
.footer-brand strong { font-family: var(--font-serif); font-size: 18px; display: block; margin-bottom: 8px; }
.footer-brand p { color: rgba(255,255,255,.55); font-size: 13px; }
.footer-links h4, .footer-trust h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--gold); margin-bottom: 14px; }
.footer-links ul li { padding: 3px 0; }
.footer-links ul li a { color: rgba(255,255,255,.6); font-size: 13px; }
.footer-links ul li a:hover { color: var(--gold); }
.footer-trust ul li { color: rgba(255,255,255,.6); font-size: 13px; padding: 3px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: 12px; }

/* ── Admin ───────────────────────────────────────────────────────── */
.admin-body { background: var(--gray-100); }
.admin-nav { background: var(--navy); padding: 0 20px; box-shadow: var(--shadow); }
.admin-nav-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.admin-brand { color: var(--gold); font-weight: 700; font-size: 16px; text-decoration: none; flex-shrink: 0; }
.admin-brand span { color: rgba(255,255,255,.6); font-weight: 400; }
.admin-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin-left: auto; }
.admin-nav-links a {
  color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; text-decoration: none; transition: all var(--transition);
}
.admin-nav-links a:hover, .admin-nav-links a.active { color: var(--gold); background: rgba(255,255,255,.06); }
.admin-logout { color: rgba(255,255,255,.5) !important; }
.badge { background: var(--red); color: var(--white); font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 10px; margin-left: 4px; }

.admin-main { max-width: 1280px; margin: 0 auto; padding: 32px 20px; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-page-header h1 { font-family: var(--font-serif); font-size: 28px; color: var(--navy); }
.count-badge { display: inline-block; background: var(--gray-200); color: var(--gray-600); font-size: 14px; padding: 2px 10px; border-radius: 12px; margin-left: 8px; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  text-align: center; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card.stat-alert { border: 2px solid var(--gold); }
.stat-num { font-size: 36px; font-weight: 700; color: var(--navy); font-family: var(--font-serif); }
.stat-label { font-size: 12px; color: var(--gray-600); text-transform: uppercase; letter-spacing: .5px; }

.admin-section { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.admin-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.admin-section-header h2 { font-size: 18px; font-weight: 700; color: var(--navy); }

.admin-quick-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-link {
  display: flex; align-items: center; justify-content: center;
  background: var(--white); border-radius: var(--radius); padding: 16px;
  text-align: center; font-weight: 600; font-size: 14px;
  color: var(--navy); box-shadow: var(--shadow-sm);
  transition: all var(--transition); text-decoration: none;
}
.quick-link:hover { background: var(--navy); color: var(--gold); }

/* Admin table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { background: var(--gray-50); color: var(--gray-600); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; text-align: left; border-bottom: 2px solid var(--gray-200); }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid var(--gray-200); vertical-align: top; }
.admin-table-full { min-width: 900px; }
.unread-row td { font-weight: 600; }
.inq-type { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; text-transform: uppercase; }
.inq-type.general { background: var(--gray-100); color: var(--gray-600); }
.inq-type.inquiry { background: #d1ecf1; color: #0c5460; }
.inq-type.pickup  { background: #d4edda; color: #155724; }
.read-badge { font-size: 12px; color: var(--gray-600); }
.msg-cell { max-width: 300px; }
.msg-full { margin-top: 6px; white-space: pre-wrap; font-size: 13px; }
.empty-msg { color: var(--gray-600); font-style: italic; padding: 12px 0; }

/* Admin listing grid */
.admin-listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.admin-coin-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-coin-card.is-sold { opacity: .7; }
.admin-card-img { position: relative; aspect-ratio: 1/1; background: var(--gray-100); overflow: hidden; }
.admin-card-img img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 48px; }
.admin-card-body { padding: 14px; }
.admin-card-body .card-category { font-size: 11px; color: var(--gray-600); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.admin-card-body h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; color: var(--navy); }
.admin-card-body .card-grade { font-size: 12px; color: var(--gray-600); margin-bottom: 6px; }
.admin-card-body .card-price { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.admin-card-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* Admin form */
.admin-form { display: flex; flex-direction: column; gap: 20px; }
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.form-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
.help-text { font-size: 12px; color: var(--gray-600); margin-top: 4px; }
.radio-group { display: flex; gap: 20px; }
.radio-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 500; }
.checkbox-row { display: flex; gap: 24px; flex-wrap: wrap; }
.checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; font-weight: 500; }
.form-actions { display: flex; gap: 12px; }

/* Photo grid */
.existing-photos { margin-bottom: 20px; }
.existing-photos h4 { font-size: 13px; font-weight: 600; color: var(--gray-600); margin-bottom: 10px; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.photo-item { position: relative; width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; background: var(--gray-100); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-delete {
  position: absolute; top: 4px; right: 4px;
  background: rgba(220,53,69,.9); color: var(--white);
  border: none; border-radius: 50%; width: 22px; height: 22px;
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.photo-previews { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.photo-preview-item { width: 90px; height: 90px; border-radius: var(--radius); overflow: hidden; border: 2px dashed var(--gold); }
.photo-preview-item img { width: 100%; height: 100%; object-fit: cover; }

/* Admin login */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--navy); }
.login-wrap { width: 100%; max-width: 400px; padding: 20px; }
.login-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); }
.login-brand { font-family: var(--font-serif); font-size: 20px; color: var(--navy); margin-bottom: 20px; text-align: center; }
.login-card h2 { font-size: 22px; text-align: center; margin-bottom: 24px; color: var(--navy); }
.login-card .form-group { margin-bottom: 16px; }
.login-back { text-align: center; margin-top: 16px; font-size: 13px; color: var(--gray-600); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .coin-detail-layout { grid-template-columns: 1fr; }
  .coin-gallery { position: static; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .admin-quick-links { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .about-strip-inner { flex-direction: column; }
}

@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 2px; z-index: 999; }
  .nav-links.open { display: flex; }
  .trust-badge { display: none; }
  .shop-layout { flex-direction: column; }
  .shop-sidebar { width: 100%; position: static; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding: 60px 20px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .coin-grid { grid-template-columns: 1fr 1fr; }
  .admin-listing-grid { grid-template-columns: 1fr 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
