@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@600;700;800&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --teal: #0E4F4F;
  --teal-dark: #0A3B3B;
  --teal-light: #E4EEEC;
  --orange: #E8873A;
  --orange-dark: #CE6F22;
  --paper: #FBF8F2;
  --ink: #1F2A24;
  --ink-soft: #5B6A61;
  --line: #E1DCCC;
  --white: #FFFFFF;
  --danger: #C4483C;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(14, 79, 79, 0.10);
  --shadow-lift: 0 14px 34px rgba(14, 79, 79, 0.16);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); line-height: 1.5; }
h1, h2, h3 { font-family: var(--font-display); color: var(--teal-dark); margin: 0 0 12px; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px; border: none; font-weight: 700; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--teal-dark); border: 1.5px solid var(--teal-dark); }
.btn-outline:hover { background: var(--teal-light); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none !important; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: 1180px; margin: 0 auto; }
.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.logo-mark { width: 44px; height: 44px; border-radius: 12px; background: var(--teal); color: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: 0.02em; transform: rotate(-4deg); }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 18px; color: var(--teal-dark); }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 14.5px; }
.nav-links a { position: relative; color: var(--ink); padding-bottom: 3px; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--orange); transition: width .18s ease; }
.nav-links a:hover::after { width: 100%; }
.hamburger-menu { display: none; cursor: pointer; }
.hamburger-icon span { display: block; width: 24px; height: 2.5px; background: var(--teal-dark); margin: 5px 0; border-radius: 2px; }
@media (max-width: 780px) { .nav-links { display: none; } .hamburger-menu { display: block; } }

/* Hero carousel */
.hero-carousel { position: relative; width: 100%; height: 480px; overflow: hidden; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .6s ease;
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal) 60%, var(--orange-dark));
}
.hero-slide.active { opacity: 1; }
.hero-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide:nth-child(2) { background: linear-gradient(135deg, var(--orange-dark), var(--teal) 60%); }
.hero-slide:nth-child(3) { background: linear-gradient(135deg, var(--teal), var(--orange-dark) 65%); }
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,59,59,0.55), rgba(10,59,59,0.4));
}
.hero-slide-content { position: relative; z-index: 2; color: var(--white); max-width: 640px; padding: 0 24px; }
.hero-slide-content h1 { font-size: clamp(28px, 5vw, 46px); margin-bottom: 10px; color: var(--white); }
.hero-slide-content p { font-size: 18px; margin-bottom: 24px; color: rgba(255,255,255,0.9); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: var(--orange); color: var(--white); border: none;
  width: 44px; height: 44px; border-radius: 10px; font-size: 22px; cursor: pointer;
}
.hero-arrow:hover { background: var(--orange-dark); }
.hero-arrow.left { left: 20px; }
.hero-arrow.right { right: 20px; }
@media (max-width: 640px) { .hero-arrow { width: 36px; height: 36px; font-size: 18px; } .hero-carousel { height: 380px; } }
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,0.5); border: none; cursor: pointer; transition: width .2s ease, background .2s ease; }
.hero-dot.active { background: var(--orange); width: 26px; }

/* Hero with real photo/video */
.hero { padding: 56px 24px 80px; }
.hero-inner { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(32px, 5vw, 50px); font-weight: 800; }
.hero-sub { color: var(--ink-soft); font-size: 17px; max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { border-radius: 24px; overflow: hidden; aspect-ratio: 4/3; background: var(--teal-light); }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-media .placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--teal-dark); text-align: center; padding: 24px; font-weight: 600; }

/* ---------- Floating chat pill + welcome teaser ---------- */
.chat-pill {
  position: fixed; right: 22px; top: 22px; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--teal); color: var(--white); border: none;
  font-size: 30px;
  box-shadow: var(--shadow-lift); cursor: pointer;
}
.chat-pill:hover { background: var(--teal-dark); }
.chat-pill-dot {
  position: absolute; top: -2px; right: -2px;
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--danger); color: var(--white); font-size: 11px; font-weight: 700;
  border: 2px solid var(--paper);
}

.chat-teaser {
  display: none;
  position: fixed; right: 22px; top: 100px; z-index: 900;
  width: 300px; max-width: calc(100vw - 44px);
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow-lift);
  padding: 26px 24px 24px; position: fixed;
}
.chat-teaser.active { display: block; }
.chat-teaser-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 16px; color: var(--ink-soft); cursor: pointer; }
.chat-teaser-title { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.chat-teaser-sub { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 18px; }
.chat-teaser-btn {
  width: 100%; background: var(--teal-dark); color: var(--white); border: none;
  padding: 13px; border-radius: 999px; font-weight: 700; font-size: 14.5px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.chat-teaser-btn:hover { background: var(--teal); }

/* ---------- Customer chat modal ---------- */
.chat-modal-overlay {
  display: none;
  position: fixed; inset: 0; background: rgba(15,23,20,0.55); z-index: 1500;
  align-items: center; justify-content: center; padding: 20px;
}
.chat-modal-overlay.active { display: flex; }
.chat-modal {
  background: var(--white); border-radius: 16px;
  width: 360px; max-width: 100%; height: 480px; max-height: 80vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.chat-panel-header {
  background: var(--teal); color: var(--white); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; font-weight: 700; font-size: 14.5px;
}
.chat-panel-header button { background: none; border: none; color: var(--white); font-size: 16px; cursor: pointer; }
.chat-messages { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.chat-empty { color: var(--ink-soft); font-size: 13px; text-align: center; margin-top: 20px; }
.chat-bubble { max-width: 78%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; word-wrap: break-word; }
.chat-bubble.me { align-self: flex-end; background: var(--teal); color: var(--white); border-bottom-right-radius: 4px; }
.chat-bubble.them { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-form { display: flex; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; border: none; padding: 12px 14px; font-size: 14px; font-family: var(--font-body); outline: none; }
.chat-form button { background: var(--orange); color: var(--white); border: none; width: 48px; font-size: 16px; cursor: pointer; }
.chat-form button:hover { background: var(--orange-dark); }

.chat-dot {
  display: inline-block;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--white);
}

/* ---------- Admin chat inbox ---------- */
.admin-tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab-btn { padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink-soft); font-weight: 700; font-size: 13.5px; cursor: pointer; position: relative; }
.tab-btn.active { background: var(--teal); border-color: var(--teal); color: var(--white); }
.tab-btn .chat-dot { position: absolute; top: -3px; right: -3px; }

.inbox-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; min-height: 480px; }
@media (max-width: 780px) { .inbox-layout { grid-template-columns: 1fr; } }
.conversation-list { border: 1px solid var(--line); border-radius: var(--radius); overflow-y: auto; max-height: 560px; background: var(--white); }
.conversation-item { padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.conversation-item:hover { background: var(--teal-light); }
.conversation-item.active { background: var(--teal-light); }
.conversation-item .name { font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.conversation-item .preview { color: var(--ink-soft); font-size: 12.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item .unread-badge { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

.thread-panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; height: 560px; }
.thread-header { padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.thread-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 9px; background: var(--paper); }
.thread-form { display: flex; border-top: 1px solid var(--line); }
.thread-form input { flex: 1; border: none; padding: 14px 16px; font-size: 14.5px; font-family: var(--font-body); outline: none; }
.thread-form button { background: var(--orange); color: var(--white); border: none; padding: 0 22px; font-weight: 700; cursor: pointer; }
.thread-form button:hover { background: var(--orange-dark); }
.thread-empty { color: var(--ink-soft); text-align: center; padding: 60px 20px; }

/* ---------- Payment page bank boxes ---------- */
.bank-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 14px; }
.bank-box:last-child { margin-bottom: 0; }
.bank-name { font-family: var(--font-display); font-weight: 700; color: var(--teal-dark); font-size: 16px; margin-bottom: 8px; }
.bank-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 4px 0; }
.bank-row .k { color: var(--ink-soft); }
.bank-row .v { font-family: var(--font-mono); font-weight: 600; }

/* ---------- Checkout ---------- */
.checkout-field {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 18px;
}
.checkout-field:last-child { margin-bottom: 0; }
.checkout-field label { margin-bottom: 0; }
.checkout-field input { margin-top: 8px; }

/* ---------- News / rewards ---------- */
.news-header { max-width: 1180px; margin: 0 auto 24px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.news-header h1 { font-size: 26px; margin-bottom: 4px; }
.news-header p { color: var(--ink-soft); margin: 0; }
.news-balance-pill {
  background: var(--teal); color: var(--white); font-family: var(--font-mono); font-weight: 600;
  padding: 8px 16px; border-radius: 999px; font-size: 14px; white-space: nowrap;
}
.news-progress { max-width: 1180px; margin: 0 auto 20px; padding: 0 24px; color: var(--ink-soft); font-size: 13.5px; }

.news-grid { max-width: 1180px; margin: 0 auto; padding: 0 24px 60px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; position: relative;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.news-card .emoji { font-size: 30px; margin-bottom: 10px; }
.news-card .date { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.news-card h3 { font-size: 16px; margin: 8px 0 6px; }
.news-card .excerpt { color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; margin: 0; }
.news-card .earned-badge {
  position: absolute; top: 14px; right: 14px; background: var(--teal-light); color: var(--teal-dark);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.news-card .reward-tag {
  display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--orange-dark);
}

.news-modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(15,23,20,0.55); z-index: 1500;
  align-items: center; justify-content: center; padding: 20px;
}
.news-modal-overlay.active { display: flex; }
.news-modal { background: var(--paper); border-radius: 18px; max-width: 480px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 30px; position: relative; }
.news-modal .close-x { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 20px; color: var(--ink-soft); cursor: pointer; }
.news-modal .emoji { font-size: 44px; margin-bottom: 10px; }
.news-modal .date { font-size: 12px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.news-modal h2 { font-size: 21px; margin: 8px 0 14px; }
.news-modal p.body-text { color: var(--ink); font-size: 15px; line-height: 1.6; }
.news-modal .reward-note { margin-top: 18px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; }
.news-modal .reward-note.success { background: var(--teal-light); color: var(--teal-dark); }
.news-modal .reward-note.info { background: var(--paper-dim); color: var(--ink-soft); }

.reward-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px);
  background: var(--teal); color: var(--white); padding: 14px 24px; border-radius: 999px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lift); z-index: 2000;
  opacity: 0; transition: opacity .25s ease, transform .25s ease; white-space: nowrap;
}
.reward-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Dashboard photo gallery */
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .photo-gallery { grid-template-columns: 1fr 1fr; } }
.photo-slot { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--teal-light); }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.photo-slot:hover img { transform: scale(1.06); }
.photo-slot .placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 6px; color: var(--teal-dark); text-align: center; padding: 12px; font-size: 12px; font-weight: 600;
}

/* Profile dropdown menu */
.profile-menu { position: relative; }
.profile-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: var(--white);
  border: none; font-weight: 700; font-size: 16px; cursor: pointer; font-family: var(--font-display);
}
.profile-avatar:hover { background: var(--teal-dark); }
.profile-dropdown {
  display: none; position: absolute; right: 0; top: 54px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lift); min-width: 210px; overflow: hidden; z-index: 100;
}
.profile-dropdown.active { display: block; }
.profile-dropdown a, .profile-dropdown .dropdown-btn {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left; padding: 13px 16px; font-size: 14px; font-weight: 600;
  color: var(--ink); background: none; border: none; cursor: pointer; box-sizing: border-box;
}
.profile-dropdown a:hover, .profile-dropdown .dropdown-btn:hover { background: var(--teal-light); }
.profile-dropdown .dropdown-btn.danger { color: var(--danger); border-top: 1px solid var(--line); }

/* Dashboard sneaker showcase */
.showcase-heading { text-align: center; margin-bottom: 22px; }
.showcase-heading h1 { font-size: 30px; margin-bottom: 6px; }
.showcase-heading p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* Big category cards */
.category-grid-big { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 780px) { .category-grid-big { grid-template-columns: 1fr; } }

.category-card-big {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.category-card-big:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.category-thumb-big { position: relative; aspect-ratio: 16/9; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 60px; overflow: hidden; }
.category-thumb-big img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.category-body-big { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.category-top-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.category-top-row h3 { font-size: 19px; margin: 0; }
.price-range-pill { background: var(--teal-light); color: var(--teal-dark); font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; white-space: nowrap; }
.category-desc { color: var(--ink-soft); font-size: 14px; margin: 0; }
.category-detail-row { display: flex; justify-content: space-between; font-size: 13px; border-top: 1px dashed var(--line); padding-top: 8px; }
.category-detail-row .k { color: var(--ink-soft); font-weight: 600; }
.category-detail-row .v { font-weight: 600; text-align: right; }
.category-bottom-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.starting-price { font-family: var(--font-mono); font-weight: 700; color: var(--teal-dark); font-size: 16px; }

/* Shop / products */
.shop-section { padding: 40px 24px 70px; }
.shop-header { max-width: 1180px; margin: 0 auto 24px; }
.shop-header h1 { font-size: 26px; margin-bottom: 4px; }
.shop-header p { color: var(--ink-soft); margin: 0; }

.product-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product-thumb { position: relative; aspect-ratio: 1/0.85; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 52px; overflow: hidden; }
.product-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--teal-light); }
.product-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-name { font-weight: 700; font-size: 15px; color: var(--ink); }
.product-price { font-family: var(--font-mono); font-weight: 600; color: var(--teal-dark); font-size: 15.5px; margin-top: 2px; }
.cart-btn { margin-top: 10px; width: 100%; padding: 10px; border-radius: var(--radius-sm); border: none; background: var(--teal); color: var(--white); font-weight: 700; font-size: 13.5px; }
.cart-btn:hover { background: var(--teal-dark); }
.cart-btn:disabled { opacity: .6; cursor: not-allowed; }

.cart-count { background: var(--orange); color: var(--white); font-size: 11px; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }

/* Cart list on the dashboard */
.cart-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.cart-line .thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--teal-light); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cart-line .qty-controls { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cart-line .qty-controls button { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--line); background: var(--white); }
.cart-line .remove-link { color: var(--danger); font-size: 12px; font-weight: 600; cursor: pointer; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; padding-top: 12px; margin-top: 6px; border-top: 1px solid var(--line); }

/* Section */
.section { padding: 50px 24px; }
.section .container { max-width: 900px; text-align: center; }
.section p { color: var(--ink-soft); font-size: 16px; }

/* Footer */
footer { background: var(--teal-dark); color: rgba(255,255,255,0.75); padding: 34px 24px; text-align: center; font-size: 13.5px; }

/* Side menu */
.side-menu-overlay { position: fixed; inset: 0; background: rgba(15,23,20,0.5); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 998; }
.side-menu-overlay.active { opacity: 1; visibility: visible; }
.side-menu { position: fixed; top: 0; right: -320px; width: 300px; height: 100%; background: var(--paper); z-index: 999; transition: right .25s ease; box-shadow: -8px 0 24px rgba(0,0,0,0.15); display: flex; flex-direction: column; }
.side-menu.active { right: 0; }
.side-menu-header { padding: 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; }
.close-menu { cursor: pointer; font-size: 20px; color: var(--ink-soft); }
.side-menu-content { padding: 10px 12px; display: flex; flex-direction: column; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.menu-item:hover { background: var(--teal-light); }

/* ---------- Auth pages ---------- */
body.auth-page { background: var(--teal-dark); min-height: 100vh; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } }
.auth-aside { background: var(--teal); color: var(--white); padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-aside::before { content: ""; position: absolute; inset: -30%; background: radial-gradient(circle at 30% 20%, rgba(76,154,91,0.5), transparent 55%), radial-gradient(circle at 80% 80%, rgba(232,135,58,0.35), transparent 50%); }
@media (max-width: 900px) { .auth-aside { display: none; } }
.auth-aside > * { position: relative; }
.auth-aside .brand { display: flex; align-items: center; gap: 10px; }
.auth-aside .brand .logo-mark { background: var(--white); color: var(--teal-dark); }
.auth-aside .brand .logo-text { color: var(--white); }
.auth-aside h2 { color: var(--white); font-size: 30px; max-width: 14ch; margin-top: 40px; }
.auth-aside p { color: rgba(255,255,255,0.85); max-width: 36ch; }
.auth-aside .aside-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; font-weight: 600; }
.auth-aside .aside-list li { display: flex; gap: 10px; align-items: center; }
.auth-form-side { background: var(--paper); display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .back-link { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 22px; display: inline-block; }
.auth-card h1 { font-size: 27px; }
.auth-card .muted { color: var(--ink-soft); margin: 0 0 26px; }
form label { display: block; margin-bottom: 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
form label.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; font-size: 13px; }
form label.check input { margin-top: 3px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"] { width: 100%; margin-top: 6px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font-size: 15px; font-family: var(--font-body); }
input:focus { border-color: var(--teal); outline: none; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row-2 { grid-template-columns: 1fr; } }
.btn-secondary-link { width: 100%; background: none; border: none; padding: 10px; margin-top: 4px; color: var(--ink-soft); font-weight: 600; font-size: 13.5px; }
.btn-secondary-link:hover { color: var(--teal-dark); }
.form-message { min-height: 20px; font-size: 13.5px; margin: 12px 0 0; color: var(--teal-dark); font-weight: 600; }
.form-message.error { color: var(--danger); }
.auth-card .switch-line { margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.auth-card .switch-line a { color: var(--teal-dark); font-weight: 700; }

/* ---------- Dashboard / Admin ---------- */
.app-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--white); }
.app-header nav { display: flex; align-items: center; gap: 20px; }
.app-header nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.app-header nav a:hover { color: var(--teal-dark); }
.app-main { max-width: 960px; margin: 0 auto; padding: 36px 24px 70px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.balance-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; background: var(--teal); color: var(--white); border: none; }
.balance-card .balance-label { font-size: 13px; color: rgba(255,255,255,0.75); font-weight: 600; }
.balance-amount { font-family: var(--font-mono); font-size: 34px; font-weight: 600; }
.balance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .balance-grid { grid-template-columns: 1fr; } }
.balance-stat { background: rgba(255,255,255,0.08); border-radius: 12px; padding: 14px 16px; }
.balance-stat .balance-label { font-size: 11.5px; color: rgba(255,255,255,0.75); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.balance-stat .balance-amount { font-family: var(--font-mono); font-size: 24px; font-weight: 600; margin-top: 4px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
@media (max-width: 520px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-item .k { font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.detail-item .v { font-size: 15px; margin-top: 4px; word-break: break-all; font-weight: 600; }
table.users-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.users-table th, table.users-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.users-table th { color: var(--ink-soft); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
table.users-table tbody tr:hover { background: var(--paper); }
.pill { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--teal-light); color: var(--teal-dark); }
.pill.admin { background: var(--orange); color: var(--white); }
.btn-small { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font-size: 12.5px; font-weight: 700; }
.btn-small:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-logout { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft); font-weight: 700; font-size: 13.5px; }
.btn-logout:hover { color: var(--danger); border-color: var(--danger); }
.center-note { text-align: center; color: var(--ink-soft); padding: 70px 20px; font-weight: 600; }
.store-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
