*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; overflow: hidden;}

:root {
  --cream:      #FDF8EF;
  --cream-mid:  #F0E6CE;
  --gold:       #B8841E;
  --gold-light: #D4A035;
  --gold-pale:  #EBC96A;
  --red:        #8B1A1A;
  --charcoal:   #1C1208;
  --ink:        #2D1F0A;
  --muted:      #7A6445;
  --card-bg:    #FFFCF5;
}

html, body {
  min-height: 100%;
  background: var(--cream);
  font-family: 'Cormorant', Georgia, serif;
  color: var(--ink);
  overflow-x: hidden;
}

/* Static background — no animation, no repaint */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 10% 90%, rgba(184,132,30,0.07) 0%, transparent 45%),
    radial-gradient(circle at 90% 5%,  rgba(139,26,26,0.05)  0%, transparent 40%);
  pointer-events: none; z-index: 0;
}

.page {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 0 18px 44px;
}

/* ── HEADER ── */
.header {
  width: 100%; max-width: 500px;
  padding-top: 44px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 8px;
}

.header-rule {
  display: flex; align-items: center; gap: 9px;
  width: 100%; margin-bottom: 20px;
  opacity: 0;
  animation: fade-up 0.55s ease forwards;
  animation-delay: 0.1s;
  will-change: opacity, transform;
}
.header-rule .line {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-pale));
}
.header-rule .line.r {
  background: linear-gradient(90deg, var(--gold-pale), transparent);
}
.header-rule .diamond {
  width: 7px; height: 7px;
  background: var(--gold-light); transform: rotate(45deg); flex-shrink: 0;
}
.header-rule .dot {
  width: 4px; height: 4px;
  background: var(--gold-pale); transform: rotate(45deg); flex-shrink: 0;
}

.eyebrow {
  font-size: 10px; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 9px;
  opacity: 0;
  animation: fade-up 0.55s ease forwards;
  animation-delay: 0.2s;
  will-change: opacity, transform;
}

.title {
  font-family: 'Cinzel', serif;
  font-size: clamp(30px, 8vw, 50px);
  font-weight: 900; color: var(--charcoal);
  line-height: 1.0; letter-spacing: 0.02em;
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
  animation-delay: 0.32s;
  will-change: opacity, transform;
}
.title span {
  background: linear-gradient(135deg, var(--red) 0%, var(--gold) 65%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.year-badge {
  display: inline-flex; align-items: center;
  margin-top: 7px; padding: 4px 16px;
  background: var(--charcoal);
  font-family: 'Cinzel', serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.38em; color: var(--gold-pale);
  opacity: 0;
  animation: fade-up 0.55s ease forwards;
  animation-delay: 0.45s;
  will-change: opacity, transform;
}

.subtitle {
  margin-top: 12px; font-size: 14px;
  font-style: italic; color: var(--muted);
  letter-spacing: 0.04em;
  opacity: 0;
  animation: fade-up 0.5s ease forwards;
  animation-delay: 0.58s;
  will-change: opacity, transform;
}

.header-rule-bottom { margin-top: 20px; animation-delay: 0.65s; }

/* ── SECTION LABEL ── */
.section-label {
  font-size: 10px; letter-spacing: 0.38em;
  text-transform: uppercase; color: var(--muted);
  margin-top: 28px; margin-bottom: 14px;
  opacity: 0;
  animation: fade-up 0.5s ease forwards;
  animation-delay: 0.75s;
  will-change: opacity, transform;
}

/* ── CARDS ── */
.cards {
  width: 100%; max-width: 500px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Card — hover uses transform only for performance */
.card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--cream-mid);
  border-radius: 3px;
  padding: 24px 18px 20px;
  display: flex; flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  overflow: hidden; cursor: pointer;
  /* Transform only — no box-shadow transition */
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1),
              border-color 0.2s ease;
  opacity: 0;
  /* Static shadow — never animated */
  box-shadow: 0 2px 10px rgba(100,60,10,0.09);
  -webkit-tap-highlight-color: transparent;
}

/* Top color bar slides in on hover — transform only */
.card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
  will-change: transform;
}
.card:hover { transform: translateY(-3px); border-color: var(--gold-pale); }
.card:hover::before { transform: scaleX(1); }
.card:active { transform: scale(0.97); }

.card--seller::before  { background: var(--red); }
.card--scanner::before { background: #1E7850; }
.card--admin::before   { background: var(--gold); }
.card--stats::before   { background: #1E50A0; }

/* Stagger entrance */
.card:nth-child(1) { animation: fade-up 0.55s ease forwards; animation-delay: 0.88s; }
.card:nth-child(2) { animation: fade-up 0.55s ease forwards; animation-delay: 0.98s; }
.card:nth-child(3) { animation: fade-up 0.55s ease forwards; animation-delay: 1.08s; }
.card:nth-child(4) { animation: fade-up 0.55s ease forwards; animation-delay: 1.18s; }

/* Card icon */
.card-icon {
  width: 40px; height: 40px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; flex-shrink: 0; position: relative; z-index: 1;
}
.card-icon svg { width: 20px; height: 20px; }
.card--seller .card-icon  { background: rgba(139,26,26,0.09); }
.card--scanner .card-icon { background: rgba(30,120,80,0.09); }
.card--admin .card-icon   { background: rgba(184,132,30,0.11); }
.card--stats .card-icon   { background: rgba(30,80,160,0.09); }

.card-label {
  font-family: 'Cinzel', serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 0.07em; color: var(--charcoal);
  margin-bottom: 4px; position: relative; z-index: 1;
}
.card-desc {
  font-size: 12px; line-height: 1.5;
  color: var(--muted); font-style: italic;
  position: relative; z-index: 1;
}

/* Arrow */
.card-arrow {
  position: absolute; bottom: 14px; right: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--cream-mid);
  border: 1px solid rgba(184,132,30,0.2);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 1;
}
.card-arrow svg { width: 11px; height: 11px; }
.card:hover .card-arrow {
  background: var(--gold);
  transform: translate(1px,-1px);
}
.card:hover .card-arrow path { stroke: white; }

/* ── FOOTER ── */
.footer {
  margin-top: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  opacity: 0;
  animation: fade-up 0.5s ease forwards;
  animation-delay: 1.35s;
  will-change: opacity, transform;
}
.footer-dots { display: flex; gap: 5px; align-items: center; }
.footer-dots span {
  width: 5px; height: 5px;
  background: var(--gold-pale); transform: rotate(45deg); display: block;
}
.footer-dots span:nth-child(2) { opacity: 0.45; width: 3px; height: 3px; }
.footer-text {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); opacity: 0.55;
}

/* ── ANIMATIONS ── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ── */
@media (max-width: 340px) {
  .cards { grid-template-columns: 1fr; }
}
@media (min-width: 560px) {
  .card { padding: 28px 22px 24px; }
}