/* ============================================================
   LuckyBid — Design system
   Palette: deep forest green (trust/money) + warm gold (prize) +
   a coral-amber for urgency, on a warm off-white ground.
   Signature element: auction cards rendered as perforated raffle
   tickets — a nod to the bid_ticket ("LB-XXXXXXXX") concept that
   sits at the heart of how the product actually works.
   ============================================================ */

:root {
  --forest:        #0F5132;
  --forest-dark:   #0A3A24;
  --forest-light:  #E7F2EC;
  --gold:          #E3A712;
  --gold-dark:     #B9860A;
  --gold-light:    #FBF0D4;
  --coral:         #E2572B;
  --coral-light:   #FBE7DF;
  --bg:            #FAF7F1;
  --surface:       #FFFFFF;
  --ink:           #17241C;
  --ink-soft:      #55645A;
  --ink-faint:     #8B978D;
  --border:        #E6E1D3;
  --border-strong: #D8D1BE;
  --radius-sm:     8px;
  --radius:        14px;
  --radius-lg:     22px;
  --shadow-sm:     0 1px 3px rgba(23, 36, 28, 0.08);
  --shadow:        0 8px 24px rgba(23, 36, 28, 0.10);
  --shadow-lg:     0 20px 48px rgba(23, 36, 28, 0.16);
  --font-display:  'Poppins', 'Noto Sans Ethiopic', sans-serif;
  --font-body:     'Poppins', 'Noto Sans Ethiopic', sans-serif;
  --container-w:   1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.lang-am { font-family: 'Noto Sans Ethiopic', 'Poppins', sans-serif; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 241, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--forest); }
.brand-mark { font-size: 1.5rem; }
.main-nav { display: flex; align-items: center; gap: 22px; flex: 1; justify-content: center; }
.main-nav a { font-weight: 500; color: var(--ink); padding: 8px 2px; position: relative; white-space: nowrap; font-size: .95rem; }
.main-nav a:hover { color: var(--forest); }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold);
  transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }
.nav-divider { width: 1px; height: 22px; background: var(--border-strong); margin: 0 4px; }
.nav-icon-link { display: inline-flex; align-items: center; gap: 6px; position: relative; }
.badge-dot {
  background: var(--coral); color: #fff; font-size: .68rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.btn-nav {
  background: var(--forest); color: #fff !important; padding: 10px 20px; border-radius: 999px; font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,81,50,.28); }
.btn-nav-outline {
  border: 1.5px solid var(--border-strong); padding: 8px 18px; border-radius: 999px; font-weight: 600;
}
.btn-nav-outline:hover { border-color: var(--forest); color: var(--forest); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: flex; border: 1.5px solid var(--border-strong); border-radius: 999px; overflow: hidden; }
.lang-switch a { padding: 6px 14px; font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.lang-switch a.active { background: var(--forest); color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .25s ease; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem;
  padding: 14px 28px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-gold { background: var(--gold); color: var(--forest-dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-outline { background: transparent; border: 1.5px solid var(--forest); color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-coral:hover { background: #c8471f; transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(circle at 85% 20%, var(--forest-light) 0%, transparent 45%),
              radial-gradient(circle at 10% 90%, var(--gold-light) 0%, transparent 40%),
              var(--bg);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: var(--forest); color: #fff;
  padding: 6px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 18px; letter-spacing: .02em;
}
.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.15rem; max-width: 46ch; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-visual {
  position: relative; background: var(--forest); border-radius: var(--radius-lg);
  padding: 36px; color: #fff; box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}
.hero-visual::before {
  content: ''; position: absolute; inset: -10px; border: 2px dashed rgba(255,255,255,.25); border-radius: calc(var(--radius-lg) + 10px);
  pointer-events: none;
}
.hero-ticket-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dashed rgba(255,255,255,.35); padding-bottom: 14px; margin-bottom: 14px; }
.hero-ticket-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.hero-ticket-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--gold); }
.hero-ticket-code { font-family: monospace; letter-spacing: .05em; opacity: .85; }

.stats-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.stat-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--forest); }
.stat-label { font-size: .85rem; color: var(--ink-soft); }

/* ---------- Section shells ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ---------- How it works ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; position: relative; }
.step-num {
  width: 42px; height: 42px; border-radius: 50%; background: var(--forest-light); color: var(--forest);
  display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 16px; font-family: var(--font-display);
}

/* ---------- Ticket-stub auction cards (signature element) ---------- */
.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

.ticket-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: visible;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.ticket-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.ticket-image { position: relative; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 4/3; background: var(--forest-light); }
.ticket-image img { width: 100%; height: 100%; object-fit: cover; }
.ticket-badge {
  position: absolute; top: 12px; left: 12px; padding: 5px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; color: #fff;
}
.ticket-badge.live { background: var(--coral); }
.ticket-badge.ended { background: var(--ink-faint); }
.ticket-badge.winner_pending { background: var(--gold-dark); }
.ticket-badge.completed { background: var(--forest); }
.ticket-badge.live::before { content: '● '; }

/* the perforated tear line between "photo stub" and "info stub" */
.ticket-perforation {
  position: relative; height: 0; border-top: 2px dashed var(--border-strong);
}
.ticket-perforation::before, .ticket-perforation::after {
  content: ''; position: absolute; top: -9px; width: 18px; height: 18px; background: var(--bg);
  border-radius: 50%; border: 1px solid var(--border);
}
.ticket-perforation::before { left: -9px; }
.ticket-perforation::after  { right: -9px; }

.ticket-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ticket-category { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dark); font-weight: 700; }
.ticket-title { font-size: 1.05rem; font-weight: 700; margin: 0; line-height: 1.35; }
.ticket-meta-row { display: flex; justify-content: space-between; font-size: .84rem; color: var(--ink-soft); border-top: 1px solid var(--border); padding-top: 10px; margin-top: auto; }
.ticket-countdown { font-weight: 700; color: var(--coral); }
.ticket-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px dashed var(--border-strong); }
.ticket-fee { font-size: .82rem; color: var(--ink-soft); }
.ticket-fee strong { color: var(--forest); font-size: 1rem; }

/* ---------- Badges (generic) ---------- */
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-paid { background: var(--forest-light); color: var(--forest); }
.badge-pending { background: var(--gold-light); color: var(--gold-dark); }
.badge-failed { background: var(--coral-light); color: var(--coral); }
.badge-not_applicable { background: var(--border); color: var(--ink-soft); }

.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.status-live { background: var(--forest-light); color: var(--forest); }
.status-draft { background: var(--border); color: var(--ink-soft); }
.status-ended { background: var(--coral-light); color: var(--coral); }
.status-winner_pending { background: var(--gold-light); color: var(--gold-dark); }
.status-completed { background: var(--forest); color: #fff; }
.status-cancelled { background: var(--border); color: var(--ink-faint); }

/* ---------- Cards / panels (generic) ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.panel + .panel { margin-top: 20px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
input[type=text], input[type=tel], input[type=password], input[type=email], input[type=number], textarea, select {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .96rem; background: var(--surface); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus { border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-light); outline: none; }
textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: .82rem; color: var(--ink-faint); margin-top: 6px; }
.form-card { max-width: 440px; margin: 56px auto; }
.form-card .panel { padding: 36px; }
.form-card h1 { font-size: 1.6rem; text-align: center; }
.form-foot { text-align: center; margin-top: 18px; font-size: .92rem; }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-weight: 500; font-size: .92rem; }
.alert-success { background: var(--forest-light); color: var(--forest-dark); border: 1px solid #bfe0cd; }
.alert-error { background: var(--coral-light); color: #9c3013; border: 1px solid #f3c6b5; }
.alert-info { background: var(--gold-light); color: var(--gold-dark); border: 1px solid #f0dfa9; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 14px 18px; font-size: .9rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { background: var(--forest-light); color: var(--forest-dark); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }

/* ---------- Auction detail page ---------- */
.detail-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.detail-image { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--forest-light); box-shadow: var(--shadow); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.detail-stat { background: var(--forest-light); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.detail-stat b { display: block; font-size: 1.2rem; color: var(--forest); font-family: var(--font-display); }
.detail-stat span { font-size: .78rem; color: var(--ink-soft); }
.bid-box { background: var(--forest); color: #fff; border-radius: var(--radius-lg); padding: 28px; margin-top: 20px; }
.bid-box label { color: #fff; }
.bid-box input { background: rgba(255,255,255,.95); }
.countdown-strip { display: flex; gap: 10px; margin: 18px 0; }
.countdown-unit { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 14px; text-align: center; min-width: 64px; }
.countdown-unit b { display: block; font-size: 1.3rem; font-family: var(--font-display); color: var(--forest); }
.countdown-unit span { font-size: .7rem; color: var(--ink-soft); text-transform: uppercase; }

/* ---------- FAQ accordion ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; background: var(--surface); overflow: hidden; }
.faq-q { padding: 18px 22px; font-weight: 700; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-q::after { content: '+'; font-size: 1.4rem; color: var(--gold-dark); transition: transform .2s ease; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 22px; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 400px; padding: 0 22px 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-dark); color: #d8e5dd; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 56px 24px 32px; }
.footer-col h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-col a { display: block; color: #b9ccc0; padding: 5px 0; font-size: .92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand p { color: #a9bdb1; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; justify-content: space-between; padding: 18px 24px; font-size: .82rem; color: #9db3a5; flex-wrap: wrap; gap: 8px; }

/* ---------- Mobile bottom nav (hidden on desktop) ---------- */
.mobile-bottom-nav { display: none; }

/* ---------- Notifications list ---------- */
.notif-item { display: flex; gap: 14px; padding: 18px; border-bottom: 1px solid var(--border); }
.notif-item.unread { background: var(--forest-light); }
.notif-icon { font-size: 1.4rem; }
.notif-title { font-weight: 700; margin-bottom: 3px; }
.notif-time { font-size: .78rem; color: var(--ink-faint); }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 64px 24px; color: var(--ink-soft); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.filter-bar { display: flex; gap: 14px; margin-bottom: 32px; flex-wrap: wrap; align-items: center; }
.filter-bar select { width: auto; }
.pill-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.pill-nav a { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--border-strong); font-size: .88rem; font-weight: 600; }
.pill-nav a.active { background: var(--forest); border-color: var(--forest); color: #fff; }
