:root {
  --bg: #EDE8DF;
  --bg-dark: #1A1209;
  --orange: #D55723;
  --orange-light: #E8723A;
  --green: #2D6A4F;
  --dark: #2C200F;
  --mid: #6B5443;
  --light: #F5F0E8;
  --white: #FFFFFF;
  --border: rgba(44,32,15,0.15);
  --font-display: 'Fraunces', serif;
  --font-body: 'Figtree', sans-serif;
  --font-script: 'Caveat', cursive;
  --radius: 12px;
  --shadow: 3px 3px 0 var(--dark);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 2rem; height: 70px; gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; font-weight: 700; }
.logo-icon { font-size: 1.5rem; }
.logo-accent { color: var(--orange); }
.logo-accent-light { color: #F5C542; }
.nav-links { display: flex; gap: 1.5rem; margin-left: auto; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--orange); }
.nav-user { display: none; align-items: center; gap: 0.75rem; position: relative; }
.nav-user-name { font-weight: 600; font-size: 0.9rem; cursor: pointer; }
.nav-user-name:hover { color: var(--orange); }
.nav-dropdown {
  position: absolute; top: 110%; right: 0;
  background: white; border: 2px solid var(--dark); border-radius: 10px;
  box-shadow: var(--shadow); min-width: 160px; display: none; z-index: 200;
}
.nav-user:hover .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 0.65rem 1rem; font-size: 0.88rem; font-weight: 500; }
.nav-dropdown a:hover { background: var(--bg); color: var(--orange); }
.nav-dropdown .divider { height: 1px; background: var(--border); }
.btn-login { background: var(--orange); color: white; padding: 0.5rem 1.2rem; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: background 0.2s; white-space: nowrap; }
.btn-login:hover { background: var(--orange-light); }
.hamburger { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.mobile-menu { display: none; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--border); padding: 1rem 2rem; gap: 0.75rem; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-weight: 500; }

/* BUTTONS */
.btn-primary { display: inline-block; background: var(--orange); color: white; padding: 0.8rem 1.6rem; border-radius: 10px; font-weight: 700; font-size: 0.95rem; border: none; cursor: pointer; transition: transform 0.15s, background 0.2s; font-family: var(--font-body); }
.btn-primary:hover { background: var(--orange-light); transform: translateY(-1px); }
.btn-outline { display: inline-block; background: transparent; color: var(--dark); padding: 0.8rem 1.6rem; border-radius: 10px; font-weight: 700; font-size: 0.95rem; border: 2px solid var(--dark); cursor: pointer; transition: transform 0.15s; font-family: var(--font-body); }
.btn-outline:hover { background: rgba(44,32,15,0.05); transform: translateY(-1px); }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.82rem; border-radius: 7px; }
.btn-danger { background: #c0392b; color: white; }
.btn-danger:hover { background: #e74c3c; }
.btn-success { background: var(--green); color: white; }
.btn-success:hover { background: #3a8c65; }

/* HERO */
.hero { min-height: calc(100vh - 70px); display: flex; align-items: center; padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; gap: 3rem; }
.hero-content { flex: 1; max-width: 520px; }
.hero-title { font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem); font-weight: 900; line-height: 1.05; margin-bottom: 1.2rem; }
.accent { color: var(--orange); }
.hero-sub { font-size: 1.1rem; color: var(--mid); margin-bottom: 2rem; }
.script { font-family: var(--font-script); font-size: 1.3rem; color: var(--orange); font-style: normal; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.hero-note { font-size: 0.82rem; color: var(--mid); }
.hero-visual { flex: 1; position: relative; min-height: 400px; max-width: 520px; }
.polaroid { position: absolute; background: white; padding: 10px 10px 36px; box-shadow: 3px 6px 20px rgba(0,0,0,0.18); border-radius: 2px; width: 190px; }
.polaroid-img { width: 100%; height: 140px; display: flex; align-items: center; justify-content: center; font-size: 3.5rem; }
.polaroid p { text-align: center; margin-top: 6px; font-family: var(--font-script); font-size: 1rem; color: var(--mid); }
.p1 { top: 0; left: 20px; transform: rotate(-4deg); }
.p2 { top: 30px; right: 60px; transform: rotate(3deg); z-index: 2; }
.p3 { bottom: 10px; right: 0; transform: rotate(-2deg); z-index: 3; }
.hero-pin { position: absolute; bottom: 80px; left: 30px; font-size: 2rem; }

/* SECTIONS */
.container { max-width: 1000px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 2rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: var(--mid); max-width: 580px; margin: 0 auto 2.5rem; font-size: 1rem; }
.underline-orange::after { content: ''; display: block; height: 4px; background: var(--orange); border-radius: 2px; margin-top: 6px; }
.underline-green::after { content: ''; display: block; height: 4px; background: var(--green); border-radius: 2px; margin-top: 6px; }

/* AUCTION CARDS */
.auction-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.auction-card { background: white; border: 2px solid var(--dark); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s; cursor: pointer; }
.auction-card:hover { transform: translateY(-3px); }
.card-img { width: 100%; height: 190px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-live { background: #e74c3c; color: white; }
.badge-pending { background: #f39c12; color: white; }
.badge-ended { background: #95a5a6; color: white; }
.badge-approved { background: var(--green); color: white; }
.card-body { padding: 1rem; }
.card-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.4rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 0.8rem; color: var(--mid); display: flex; justify-content: space-between; margin-bottom: 0.5rem; }
.card-bid { font-weight: 800; color: var(--orange); font-size: 1.05rem; }
.card-timer { font-size: 0.78rem; color: var(--mid); }
.card-timer.urgent { color: #e74c3c; font-weight: 700; }

/* EMPTY STATE */
.empty-state { margin: 4rem auto; text-align: center; max-width: 400px; }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state p { color: var(--mid); }
.empty-state a { color: var(--orange); font-weight: 600; }

/* STEPS */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin: 2.5rem 0; }
.step-card { background: white; border: 2.5px solid var(--dark); border-radius: 14px; padding: 1.75rem 1.5rem; text-align: center; position: relative; box-shadow: var(--shadow); }
.step-num { position: absolute; top: -16px; left: -10px; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 0.9rem; }
.step-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 0 auto 1rem; }

/* FAQ */
.faq-box { border: 2.5px solid var(--dark); border-radius: 14px; overflow: hidden; background: white; margin: 2rem auto; max-width: 860px; }
.faq-item { border-bottom: 1px dashed var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1rem 1.5rem; font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--dark); display: flex; justify-content: space-between; align-items: center; }
.faq-q:hover { background: rgba(213,87,35,0.04); }
.faq-arrow { color: var(--orange); transition: transform 0.2s; }
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 1.5rem 1rem; color: var(--mid); font-size: 0.9rem; line-height: 1.7; }
.faq-a.open { display: block; }

/* AUTH */
.auth-section { min-height: calc(100vh - 140px); display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
.auth-card { background: white; border: 2.5px solid var(--dark); border-radius: 16px; padding: 2.5rem; width: 100%; max-width: 440px; box-shadow: 5px 5px 0 var(--dark); }
.auth-card h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 1.5rem; text-align: center; }
.auth-switch { text-align: center; margin-top: 1.2rem; font-size: 0.88rem; color: var(--mid); }
.auth-switch a { color: var(--orange); font-weight: 600; }

/* FORMS */
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.88rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.7rem 1rem; border: 2px solid var(--border); border-radius: 8px;
  font-family: var(--font-body); font-size: 0.92rem; background: white; color: var(--dark); transition: border 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--orange); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ALERTS */
.alert { padding: 0.8rem 1.1rem; border-radius: 8px; margin-bottom: 1rem; font-size: 0.88rem; font-weight: 500; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

/* DASHBOARD */
.dash-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 70px); }
.sidebar { background: var(--bg-dark); color: white; padding: 2rem 1.2rem; }
.sidebar-section { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.35); margin: 1.5rem 0 0.4rem; padding: 0 0.5rem; }
.sidebar a { display: block; padding: 0.5rem 0.75rem; border-radius: 8px; color: rgba(255,255,255,0.75); font-size: 0.88rem; font-weight: 500; margin-bottom: 2px; transition: background 0.15s; }
.sidebar a:hover, .sidebar a.active { background: rgba(255,255,255,0.1); color: white; }
.dash-main { padding: 2.5rem; overflow-y: auto; }
.dash-main h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 900; margin-bottom: 1.5rem; }
.stats-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: white; border: 2px solid var(--dark); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.stat-val { font-family: var(--font-display); font-size: 2rem; font-weight: 900; color: var(--orange); }
.stat-label { font-size: 0.8rem; color: var(--mid); margin-top: 0.2rem; }
.dash-card { background: white; border: 2px solid var(--dark); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.dash-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }

/* TABLE */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { text-align: left; padding: 0.6rem 0.75rem; border-bottom: 2px solid var(--dark); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--mid); }
td { padding: 0.75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(213,87,35,0.03); }

/* AUCTION DETAIL */
.auction-detail { max-width: 1000px; margin: 0 auto; padding: 2rem; display: grid; grid-template-columns: 1fr 380px; gap: 2rem; }
.auction-images { border-radius: var(--radius); overflow: hidden; }
.main-img { width: 100%; height: 400px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 6rem; border: 2px solid var(--dark); border-radius: var(--radius); overflow: hidden; }
.main-img img { width: 100%; height: 100%; object-fit: cover; }
.bid-box { background: white; border: 2.5px solid var(--dark); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow); position: sticky; top: 90px; }
.bid-current { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: var(--orange); }
.bid-label { font-size: 0.82rem; color: var(--mid); margin-bottom: 0.5rem; }
.bid-timer { font-size: 1rem; font-weight: 700; color: var(--dark); margin: 0.75rem 0; }
.bid-count { font-size: 0.82rem; color: var(--mid); margin-bottom: 1.25rem; }
.bid-input-wrap { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.bid-input-wrap input { flex: 1; padding: 0.75rem 1rem; border: 2px solid var(--dark); border-radius: 8px; font-size: 1rem; font-weight: 700; font-family: var(--font-body); }
.bid-input-wrap input:focus { outline: none; border-color: var(--orange); }
.bid-min { font-size: 0.78rem; color: var(--mid); margin-bottom: 1rem; }
.bid-history { margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1rem; }
.bid-history h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 0.75rem; }
.bid-row { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 0.35rem 0; border-bottom: 1px dashed var(--border); color: var(--mid); }
.bid-row:last-child { border-bottom: none; }
.bid-row .winner { font-weight: 700; color: var(--dark); }

/* PAGE HERO */
.page-hero { padding: 3.5rem 2rem 2rem; text-align: center; }
.page-hero h1 { font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; position: relative; display: inline-block; }
.page-hero h1::after { content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 4px; background: var(--orange); border-radius: 2px; }

/* ADMIN */
.admin-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--dark); margin-bottom: 2rem; }
.admin-tab { padding: 0.6rem 1.4rem; font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none; background: none; color: var(--mid); border-bottom: 3px solid transparent; margin-bottom: -2px; font-family: var(--font-body); }
.admin-tab.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2.5rem auto; max-width: 720px; }
.pricing-card { background: white; border: 2.5px solid var(--dark); border-radius: 16px; padding: 2rem; box-shadow: var(--shadow); text-align: center; }
.pricing-card.featured { border-color: var(--orange); box-shadow: 4px 4px 0 var(--orange); }
.pricing-price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 900; color: var(--orange); margin: 0.75rem 0; }
.pricing-list { list-style: none; text-align: left; margin-top: 1.2rem; }
.pricing-list li { padding: 0.35rem 0; font-size: 0.88rem; color: var(--mid); }
.pricing-list li::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* FOOTER */
.footer { background: var(--bg-dark); color: white; padding: 2.5rem 2rem 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.1rem; font-weight: 700; }
.footer-email { font-family: var(--font-script); font-size: 1.25rem; color: #F5C542; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 1rem auto 0; font-size: 0.8rem; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 1rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a:hover { color: white; }

/* LOADING */
.spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid rgba(213,87,35,0.3); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay { position: fixed; inset: 0; background: rgba(237,232,223,0.8); display: flex; align-items: center; justify-content: center; z-index: 999; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
  .hero { flex-direction: column; padding: 2rem 1.5rem; min-height: auto; }
  .hero-visual { min-height: 280px; width: 100%; }
  .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .auction-detail { grid-template-columns: 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
