:root {
  --bg: #f6f1ea;
  --bg-2: #efe6db;
  --ink: #1c1712;
  --muted: #6d6358;
  --line: rgba(28, 23, 18, 0.1);
  --brand: #3d5a46;
  --brand-2: #2b4032;
  --accent: #c4a574;
  --white: #fffdf9;
  --danger: #9b3d2e;
  --shadow: 0 18px 50px rgba(28, 23, 18, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Be Vietnam Pro", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
button, input { font-family: inherit; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 241, 234, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 86px; padding: 10px 0; gap: 16px; flex-wrap: wrap;
}
.icon-btn, .cart-btn {
  border: 1px solid var(--line); background: var(--white);
  height: 42px; min-width: 42px; padding: 0 12px; border-radius: 999px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600; color: inherit;
  text-decoration: none; white-space: nowrap; max-width: 42vw; overflow: hidden;
}
.brand-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.brand-link { display: flex; align-items: center; gap: 8px; }
.shop-logo-img { width: 42px; height: 42px; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 16px rgba(28,23,18,.12); }
.brand-mark { display: inline-flex; filter: drop-shadow(0 6px 12px rgba(61,90,70,.25)); }
.logo {
  font-family: "Playfair Display", serif;
  font-size: 28px; letter-spacing: 0.12em; font-weight: 600;
}
.contact-mini { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.contact-phone { font-weight: 600; white-space: nowrap; }
.soc {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 10px; border-radius: 999px; color: #fff; font-size: 12px; font-weight: 700;
}
.soc.zalo { background: #0068ff; }
.soc.fb { background: #1877f2; }
.social-row { display: flex; gap: 8px; margin-top: 10px; }
.live-date {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1.2;
}
.nav { display: flex; gap: 22px; color: var(--muted); font-size: 14px; }
.nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-count {
  background: var(--brand); color: #fff; border-radius: 99px;
  font-size: 11px; min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px;
  align-items: center; padding: 54px 0 28px;
}
.eyebrow { color: var(--brand); letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; font-weight: 600; }
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.05; margin: 12px 0 16px;
}
.hero p { color: var(--muted); max-width: 520px; font-size: 17px; }
.hero-actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer; font-weight: 600;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: transparent; border: 1px solid var(--line); }
.hero-card {
  background: linear-gradient(160deg, #2b4032, #5d7a64);
  color: #fff; border-radius: 32px; min-height: 420px; padding: 28px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.hero-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
}
.hero-card .copy { position: relative; z-index: 1; max-width: 280px; }
.hero-card h2 { font-family: "Playfair Display", serif; font-size: 36px; line-height: 1.15; margin: 10px 0; }

/* Sections */
.section { padding: 28px 0 10px; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-family: "Playfair Display", serif; font-size: 34px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--white); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; font-size: 13px;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
}
.card .thumb { height: 230px; background: var(--bg-2); position: relative; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 12px; left: 12px; background: #fff; border-radius: 999px;
  padding: 4px 10px; font-size: 12px;
}
.card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 16px; }
.price { font-weight: 700; }
.old { color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 6px; font-size: 13px; }
.card .btn { width: 100%; margin-top: auto; }

/* About */
.about {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 32px;
  padding: 28px; margin: 36px 0;
}
.about h2 { font-family: "Playfair Display", serif; font-size: 36px; margin: 8px 0 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.stat { background: var(--bg); border-radius: 16px; padding: 14px; }
.stat b { display: block; font-size: 22px; }

/* Footer */
.footer {
  margin-top: 40px; padding: 36px 0 24px; border-top: 1px solid var(--line); color: var(--muted);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.footer h4 { color: var(--ink); margin-bottom: 10px; }

/* Cart drawer */
.overlay {
  position: fixed; inset: 0; background: rgba(28,23,18,.35); z-index: 50;
  opacity: 0; pointer-events: none; transition: .2s;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%);
  background: var(--white); z-index: 60; transform: translateX(100%);
  transition: .25s ease; display: flex; flex-direction: column;
}
.drawer.show { transform: none; }
.drawer header, .drawer footer { padding: 18px; border-bottom: 1px solid var(--line); }
.drawer footer {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  overflow: auto;
  max-height: 72vh;
}
.cart-items { padding: 12px 18px; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 10px; align-items: center; }
.cart-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
.qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.empty { color: var(--muted); padding: 30px 8px; text-align: center; }
.od-drawer { width: min(480px, 100%); }
.od-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.od-top h2 { font-family: "Playfair Display", serif; font-size: 22px; }
.od-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.od-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 12px 0 16px; }
.od-grid h4 { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.od-sum { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.od-sum div { display: flex; justify-content: space-between; }
.od-total { border-top: 1px solid var(--line); padding-top: 8px; font-size: 16px; }

/* Chatbot */
.msgr-toggle {
  position: fixed; right: 92px; bottom: 24px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  background: linear-gradient(145deg, #4b8dff, #1877f2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(24,119,242,.35);
  border: 2px solid rgba(255,255,255,.4);
  transition: transform .2s ease;
}
.msgr-toggle:hover { transform: scale(1.08); }
  width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--brand); color: #fff; box-shadow: var(--shadow); font-size: 24px;
}
.chat-panel {
  position: fixed; right: 20px; bottom: 94px; z-index: 70;
  width: min(380px, calc(100% - 24px)); height: min(560px, calc(100vh - 120px));
  background: var(--white); border-radius: 24px; box-shadow: var(--shadow);
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
.chat-panel.open { display: flex; }
.chat-head {
  background: linear-gradient(135deg, #2b4032, #4d6b56); color: #fff; padding: 16px 16px 14px;
  display: flex; justify-content: space-between; align-items: center;
}
.chat-head small { opacity: .8; }
.messages { flex: 1; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #faf7f2; }
.bubble {
  max-width: 85%; padding: 10px 12px; border-radius: 16px; font-size: 14px; white-space: pre-wrap;
}
.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; }
.chat-items {
  align-self: stretch;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.chat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  font-size: 12px;
}
.chat-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  cursor: pointer;
}
.chat-card div { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.chat-card b { font-size: 12px; line-height: 1.3; }
.chat-card span { color: var(--brand); font-weight: 600; }
.chat-card button {
  border: 0; background: var(--brand); color: #fff; border-radius: 999px;
  padding: 6px 8px; cursor: pointer; font-size: 11px;
}
.user { background: var(--brand); color: #fff; align-self: flex-end; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; background: #faf7f2; }
.quick button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 10px;
  font-size: 12px; cursor: pointer;
}
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-input input {
  flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; outline: none;
}
.chat-input button { border: 0; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 16px; cursor: pointer; }
.typing { font-size: 12px; color: var(--muted); padding: 0 16px 8px; display: none; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(28,23,18,.4); z-index: 80;
  display: none;
}
.modal-overlay.show { display: block; }
.auth-modal {
  position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(420px, calc(100% - 28px)); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--white); border-radius: 24px; padding: 22px 22px 18px;
  border: 1px solid var(--line); box-shadow: var(--shadow); display: none;
}
.auth-modal.show { display: block; }
.auth-modal h2 { font-family: "Playfair Display", serif; margin-bottom: 6px; }
.auth-modal input {
  width: 100%; margin: 6px 0; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line);
}
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.auth-switch { margin-top: 12px; font-size: 14px; }
.auth-err { color: var(--danger); font-size: 13px; margin-top: 8px; min-height: 18px; }
.auth-close { position: absolute; right: 12px; top: 12px; }
.guest-glam {
  width: min(440px, calc(100% - 24px));
  padding: 28px 26px 22px;
  background:
    radial-gradient(circle at top, rgba(196,165,116,.28), transparent 42%),
    linear-gradient(180deg, #fffaf3 0%, #f3e6d4 100%);
  border: 1px solid rgba(196,165,116,.55);
  box-shadow: 0 24px 60px rgba(61,45,20,.22), inset 0 1px 0 rgba(255,255,255,.8);
}
.guest-glam::before {
  content: "";
  position: absolute; left: 18px; right: 18px; top: 12px; height: 1px;
  background: linear-gradient(90deg, transparent, #c4a574, transparent);
}
.glam-crest {
  width: 56px; height: 56px; margin: 6px auto 10px;
  border-radius: 18px;
  display: grid; place-items: center;
  font-family: "Playfair Display", serif; font-size: 26px; color: #fffdf9;
  background: linear-gradient(145deg, #d4b483, #3d5a46);
  box-shadow: 0 10px 20px rgba(61,90,70,.25);
}
.glam-kicker {
  text-align: center; letter-spacing: .28em; text-transform: uppercase;
  font-size: 11px; color: #8a7048; margin-bottom: 4px;
}
.guest-glam h2 {
  text-align: center; font-size: 32px; color: #2b2116; margin-bottom: 8px;
}
.guest-glam .auth-sub { text-align: center; }
.guest-glam input {
  background: rgba(255,253,249,.9);
  border: 1px solid rgba(196,165,116,.45);
  border-radius: 14px; padding: 12px 14px;
}
.guest-glam input:focus {
  outline: none; border-color: #c4a574;
  box-shadow: 0 0 0 4px rgba(196,165,116,.18);
}
.glam-btn, .guest-glam .btn-primary {
  background: linear-gradient(135deg, #4a6b55, #2b4032);
  letter-spacing: .04em;
}
.guest-glam .auth-switch { text-align: center; }
.guest-glam .auth-switch a { color: #8a7048; font-weight: 600; border-bottom: 1px solid #c4a574; }
.admin-entry { background: var(--ink); color: #fff; border-color: var(--ink); }
.admin-badge {
  display: inline-block; background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; margin-bottom: 8px;
}
.admin-modal { border: 2px solid var(--ink); }
.acc-order { border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; font-size: 13px; }

.checkout-box { display: none; margin-bottom: 10px; }
.pay-label { font-size: 13px; font-weight: 600; margin: 8px 0 4px; }
.pay-opt { display: block; font-size: 13px; margin-bottom: 6px; }
.qr-img { width: 180px; height: 180px; margin: 8px auto; display: block; background: #fff; border-radius: 12px; }
.order-card { background: var(--bg); border-radius: 14px; padding: 12px; font-size: 13px; }
.checkout-box input, .checkout-box select {
  width: 100%; margin-bottom: 8px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); outline: none; background: #fff;
}

.admin-body { background: #eef1ee; }
.admin-shell { width: min(1100px, calc(100% - 28px)); margin: 24px auto 40px; }
.admin-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.admin-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 16px; }
.admin-card { background: #fffdf9; border: 1px solid var(--line); border-radius: 22px; padding: 16px; }
.admin-card h2 { font-family: "Playfair Display", serif; margin-bottom: 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: top; }
.login-box { max-width: 380px; margin: 12vh auto; background: #fffdf9; padding: 28px; border-radius: 24px; border: 1px solid var(--line); }
.login-box input, .admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; margin: 6px 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line);
}
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: #fffdf9; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.kpi b { display: block; font-size: 22px; }
.rev-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.rev-tabs .chip.active { background: var(--forest); color: #fffdf9; border-color: var(--forest); }
.hidden { display: none !important; }
.danger { background: #9b3d2e; color: #fff; }
@media (max-width: 900px) { .admin-grid, .kpis { grid-template-columns: 1fr; } }

.search-box {
  position: relative;
}
.search-box input {
  height: 42px; border-radius: 999px; border: 1px solid var(--line);
  padding: 0 14px; width: 220px; background: var(--white); outline: none;
}

@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .live-date { font-size: 11px; padding: 3px 8px; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
}

.product-editor { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: start; }
.img-edit { display: flex; flex-direction: column; gap: 8px; }
.img-edit img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: #eee;
}
.file-btn { text-align: center; cursor: pointer; }
.thumb-sm { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; display: block; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.admin-form label { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .product-editor { grid-template-columns: 1fr; } }

.btn, .chip, .cart-btn, .icon-btn, .soc, .card, .chat-toggle {
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, color .22s ease;
}
.card { cursor: pointer; }
.card:hover, .card:focus-within {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 22px 40px rgba(28,23,18,.16);
}
.card .thumb img { transition: transform .45s ease; }
.card:hover .thumb img, .card:active .thumb img { transform: scale(1.08); }
.btn:hover, .chip:hover, .cart-btn:hover, .soc:hover {
  transform: translateY(-2px) scale(1.04);
}
.btn:active, .chip:active, .cart-btn:active, .soc:active, .card:active, .chat-toggle:active {
  transform: scale(.96);
}
.chat-toggle { transition: transform .25s ease, box-shadow .25s ease; }
.chat-toggle:hover { transform: scale(1.08) rotate(12deg); }
.hero-card img { transition: transform 1.2s ease; }
.hero-card:hover img { transform: scale(1.06); }
.pressed { transform: scale(.96) !important; }
@media (hover: none) {
  .card:hover { transform: none; box-shadow: none; }
}

.product-modal { width: min(820px, calc(100% - 24px)); }
.detail-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 18px; align-items: start; }
.detail-grid img { width: 100%; height: 320px; object-fit: cover; border-radius: 18px; }
.detail-list { margin: 12px 0 16px; padding-left: 18px; }
.detail-list li { margin-bottom: 6px; }
@media (max-width: 700px) { .detail-grid { grid-template-columns: 1fr; } }

.contact-rail {
  position: fixed; right: 16px; top: 42%;
  z-index: 65; display: flex; flex-direction: column; gap: 8px;
}
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(28,23,18,.18);
  border: 2px solid rgba(255,255,255,.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.rail-btn.phone { background: linear-gradient(145deg,#2ecc71,#1b8f4a); }
.rail-btn.zalo { background: linear-gradient(145deg,#3d8bff,#0068ff); }
.rail-btn.fb { background: linear-gradient(145deg,#4b8dff,#1877f2); }
.rail-btn:hover { transform: translateX(-4px) scale(1.08); box-shadow: 0 14px 28px rgba(28,23,18,.22); }

.account-body { background: linear-gradient(180deg, #f7f1e8 0%, #efe4d6 40%, #f6f1ea 100%); }
.account-page { padding: 28px 0 64px; }
.account-hero { text-align: center; padding: 8px 12px 28px; }
.account-title { font-family: "Playfair Display", serif; font-size: clamp(36px, 5vw, 56px); margin: 8px 0 10px; line-height: 1.1; }
.account-lead { color: var(--muted); max-width: 520px; margin: 0 auto; }
.account-login-hint { text-align: center; padding: 24px; background: #fffdf9; border-radius: 18px; }
.account-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.account-side { display: flex; flex-direction: column; gap: 18px; }
.account-card {
  background: linear-gradient(180deg, #fffdf9, #f8efe4);
  border: 1px solid rgba(196,165,116,.4);
  border-radius: 26px; padding: 22px 22px 20px;
  box-shadow: 0 16px 40px rgba(61,45,20,.08);
}
.account-card h2 { font-family: "Playfair Display", serif; font-size: 28px; margin-bottom: 10px; }
.account-page label { display: block; font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-top: 10px; }
.account-page input, .account-page textarea {
  width: 100%; margin-top: 5px; padding: 11px 13px; border-radius: 14px;
  border: 1px solid rgba(196,165,116,.4); font-family: inherit; background: #fff;
}
.account-page input:focus, .account-page textarea:focus {
  outline: none; border-color: #c4a574; box-shadow: 0 0 0 4px rgba(196,165,116,.16);
}
.account-page .btn { margin-top: 14px; }
.pref { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--ink); }
.ok-msg { min-height: 18px; color: #2b4032; font-size: 13px; margin-top: 8px; }
.orders-card { margin-top: 18px; }
@media (max-width: 980px) {
  .hero, .about, .grid, .footer-grid { grid-template-columns: 1fr; }
  .nav, .search-box, .contact-mini { display: none; }
  .grid { grid-template-columns: 1fr 1fr; }
  .header-actions { flex-wrap: wrap; justify-content: flex-end; }
  .two-col { grid-template-columns: 1fr; }
}

body.auth-page {
  min-height: 100vh;
  margin: 0;
  color: #f7efe4;
  background: #1a1612 !important;
}
.gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  position: relative;
}
.gate-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(18,14,10,.78) 8%, rgba(28,23,18,.45) 48%, rgba(18,22,18,.7) 100%),
    url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}
.gate-panel {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
  padding: 36px 32px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,250,243,.16), rgba(20,16,12,.72));
  border: 1px solid rgba(212,180,131,.45);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  backdrop-filter: blur(18px);
  text-align: center;
}
.gate-kicker {
  letter-spacing: .42em;
  text-transform: uppercase;
  font-size: 11px;
  color: #e6c99a;
  margin-bottom: 8px;
}
.gate-panel h1 {
  font-family: "Playfair Display", serif;
  font-size: 56px;
  font-weight: 600;
  line-height: .9;
  margin: 0 0 10px;
  color: #fffaf3;
}
.gate-lead {
  color: rgba(255,250,243,.78);
  margin-bottom: 22px;
  font-size: 15px;
}
.gate-tabs {
  display: flex;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  margin-bottom: 18px;
}
.gate-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  color: rgba(255,250,243,.7);
  border-radius: 999px;
  padding: 9px 10px;
  cursor: pointer;
  font-weight: 600;
}
.gate-tabs button.active {
  background: #fffaf3;
  color: #1c1712;
}
body.auth-page .gate-panel input {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(230,201,154,.35);
  background: rgba(255,250,243,.95);
  color: #1c1712;
  outline: none;
}
body.auth-page .gate-panel input:focus {
  border-color: #d4b483;
  box-shadow: 0 0 0 4px rgba(212,180,131,.25);
}
.gate-btn {
  width: 100%;
  margin-top: 6px;
  border: 0;
  border-radius: 999px;
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fffaf3;
  background: linear-gradient(135deg, #5a7a64, #2b4032);
}
.gate-btn:hover { filter: brightness(1.08); }
.gate-foot {
  margin-top: 18px;
  font-size: 13px;
  color: rgba(255,250,243,.65);
}
.gate-foot a { color: #e6c99a; }
body.auth-page .auth-err { color: #ffd0c8; }
