@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #090909;
  --bg-strong: #111111;
  --ink: #f7f5f1;
  --ink-soft: #c6c2b6;
  --line: rgba(200, 169, 90, 0.45);
  --line-strong: rgba(228, 204, 134, 0.7);
  --panel: #131313;
  --panel-strong: #171717;
  --gold: #c8a95a;
  --gold-strong: #8d6a2f;
  --teal: #1f5f56;
  --teal-soft: #84c7bc;
  --alert: #c76338;
  --success: #2f8e6d;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 18px 46px rgba(0, 0, 0, 0.4);
  --space-page-gap: clamp(18px, 3vw, 30px);
  --space-panel-pad: clamp(18px, 2.6vw, 30px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(200, 169, 90, 0.2), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(200, 169, 90, 0.14), transparent 36%),
    linear-gradient(180deg, #090909 0%, #0d0d0d 45%, #111111 100%);
  color: var(--ink);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: min(1180px, calc(100% - clamp(24px, 4vw, 48px)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(8px);
  background: rgba(9, 9, 9, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 82px;
}

.brand {
  display: grid;
  gap: 2px;
}

.brand-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.brand-name {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.15rem, 3.2vw, 1.5rem);
  letter-spacing: 0.02em;
}

.desktop-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.nav-link,
.nav-button {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-button:hover,
.nav-link.active {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(200, 169, 90, 0.16);
}

.nav-button {
  border-color: var(--line);
  background: rgba(17, 17, 17, 0.92);
  cursor: pointer;
  color: var(--ink);
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--gold);
  border-radius: 12px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 10px;
  font-weight: 700;
}

.mobile-nav {
  display: none;
}

.page-stack {
  display: grid;
  gap: var(--space-page-gap);
  padding: clamp(22px, 3.4vw, 38px) 0 clamp(46px, 7vw, 70px);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(20, 20, 20, 0.96), rgba(11, 11, 11, 0.98));
  box-shadow: var(--shadow-soft);
  padding: var(--space-panel-pad);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(18px, 2.8vw, 30px);
  align-items: stretch;
  overflow: hidden;
  position: relative;
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 95% 18%, rgba(200, 169, 90, 0.18), transparent 40%),
    linear-gradient(130deg, transparent 0 64%, rgba(200, 169, 90, 0.12) 64% 100%);
}

.hero-content,
.hero-aside {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-photo-frame,
.mini-photo-card,
.insight-media,
.image-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #111;
}

.hero-photo-frame {
  display: grid;
  gap: 0;
}

.hero-photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-photo-frame figcaption {
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  background: rgba(13, 13, 13, 0.92);
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mini-photo-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.insight-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}

.insight-media {
  min-height: 240px;
}

.insight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.image-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.empty-state-card {
  grid-column: 1 / -1;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 18px;
  background: rgba(200, 169, 90, 0.08);
  display: grid;
  gap: 8px;
}

.eyebrow {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: var(--gold);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}

h1,
h2 {
  font-family: 'Cormorant Garamond', serif;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.2rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

h3 {
  font-size: clamp(1.1rem, 2.2vw, 1.34rem);
}

p {
  margin: 0;
  color: var(--ink-soft);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  border-radius: 999px;
  border: 1px solid var(--line);
  min-height: 46px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.gold {
  background: linear-gradient(135deg, #c8a95a, #9f7a37);
  border-color: #8f6b31;
  color: #14120d;
  box-shadow: 0 10px 22px rgba(200, 169, 90, 0.28);
}

.button.ghost {
  background: rgba(15, 15, 15, 0.9);
  color: var(--gold);
}

.button.teal {
  background: linear-gradient(135deg, #1f5f56, #163e39);
  border-color: #1f5f56;
  color: #eef6f4;
}

.button.danger {
  background: rgba(199, 99, 56, 0.14);
  border-color: rgba(199, 99, 56, 0.45);
  color: #f0c0ab;
}

.button.small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.82rem;
}

.button[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: clamp(12px, 1.8vw, 20px);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.info-card,
.product-card,
.metric-card,
.table-panel,
.form-panel,
.rule-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(23, 23, 23, 0.96), rgba(13, 13, 13, 0.98));
  padding: clamp(14px, 1.8vw, 20px);
}

.info-card,
.product-card,
.metric-card,
.rule-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.info-card:hover,
.product-card:hover,
.metric-card:hover,
.rule-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.26);
}

.product-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.product-thumb {
  border-radius: 14px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #1b1b1b;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 4px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--gold);
}

.badge.hot {
  background: rgba(199, 99, 56, 0.18);
  border-color: rgba(199, 99, 56, 0.5);
  color: #f2c2ad;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.section-head {
  display: grid;
  gap: 10px;
}

.shop-controls {
  display: grid;
  gap: 12px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 15, 15, 0.92);
  color: var(--ink);
  min-height: 36px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.chip.active,
.chip:hover {
  border-color: var(--line-strong);
  background: rgba(200, 169, 90, 0.16);
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(9, 9, 9, 0.96);
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.96rem;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(198, 194, 182, 0.86);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid rgba(200, 169, 90, 0.36);
  outline-offset: 1px;
  border-color: var(--line-strong);
}

.textarea {
  min-height: 108px;
  resize: vertical;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(200, 169, 90, 0.14);
  color: var(--gold);
  font-size: 0.9rem;
}

.status.success {
  background: rgba(47, 142, 109, 0.16);
  border-color: rgba(47, 142, 109, 0.42);
  color: #c7ebdd;
}

.status.error {
  background: rgba(199, 99, 56, 0.18);
  border-color: rgba(199, 99, 56, 0.46);
  color: #f2c7b5;
}

.helper {
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.hero-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
}

.hero-list li {
  padding-left: 4px;
}

.auth-shell {
  width: min(580px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 14px;
  padding: clamp(10px, 1.6vw, 18px);
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kpi {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--gold);
}

.table-panel {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.data-table th,
.data-table td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  vertical-align: top;
}

.data-table th {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.9);
  padding: 28px 0 34px;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.footer-links a:hover {
  border-color: var(--line-strong);
  background: rgba(200, 169, 90, 0.16);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.44s ease, transform 0.44s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 120;
  max-width: min(460px, calc(100% - 24px));
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 14, 0.97);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
  padding: 10px 12px;
  font-size: 0.9rem;
}

.toast.success {
  border-color: rgba(47, 142, 109, 0.42);
  background: rgba(13, 41, 32, 0.94);
}

.toast.error {
  border-color: rgba(199, 99, 56, 0.48);
  background: rgba(55, 23, 14, 0.95);
}

@media (max-width: 980px) {
  .shell {
    width: min(1180px, calc(100% - 24px));
  }

  .header-shell {
    grid-template-columns: 1fr auto;
    min-height: 74px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav {
    display: grid;
    gap: 8px;
    padding: 0 12px 12px;
  }

  .mobile-nav[hidden] {
    display: none;
  }

  .mobile-nav .nav-link,
  .mobile-nav .nav-button {
    border-color: var(--line);
    background: rgba(15, 15, 15, 0.95);
    width: 100%;
    justify-content: flex-start;
  }

  .hero-panel,
  .insight-split,
  .image-row-3,
  .hero-mini-grid,
  .grid-4,
  .grid-3,
  .grid-2,
  .form-grid.two,
  .form-grid.three,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .page-stack {
    gap: 16px;
    padding-top: 16px;
    padding-bottom: 38px;
  }

  .panel {
    border-radius: 20px;
    padding: 16px;
  }

  .button-row,
  .product-actions,
  .auth-links {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .button.small {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-panel,
  .panel,
  .info-card,
  .product-card,
  .rule-card,
  .metric-card,
  .table-panel,
  .form-panel {
    border-radius: 16px;
  }

  .panel {
    padding: 14px;
  }

  .kpi {
    font-size: 2rem;
  }

  .data-table {
    min-width: 560px;
  }
}
