@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@4.0.0/fonts/remixicon.css');

:root {
  --bg-primary: #080C14;
  --bg-secondary: #0F1520;
  --bg-card: #131B2A;
  --bg-elevated: #1A2438;
  --accent: #F97316;
  --accent-hover: #EA6C10;
  --accent-light: rgba(249, 115, 22, 0.12);
  --accent-glow: 0 0 28px rgba(249, 115, 22, 0.25);
  --blue: #3B82F6;
  --blue-light: rgba(59, 130, 246, 0.12);
  --green: #10B981;
  --green-light: rgba(16, 185, 129, 0.12);
  --red: #EF4444;
  --red-light: rgba(239, 68, 68, 0.12);
  --yellow: #F59E0B;
  --yellow-light: rgba(245, 158, 11, 0.12);
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border: #1E2D42;
  --border-hover: #2D3F5C;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.5);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.6);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.7);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --transition: all 0.2s ease;
  --max-w: 1280px;
  --nav-h: 72px;
}

[data-theme="light"] {
  --bg-primary: #F4F6FA;
  --bg-secondary: #EAEEF5;
  --bg-card: #FFFFFF;
  --bg-elevated: #DDE3EF;
  --accent-light: rgba(249, 115, 22, 0.1);
  --accent-glow: 0 0 28px rgba(249, 115, 22, 0.18);
  --blue-light: rgba(59, 130, 246, 0.1);
  --green-light: rgba(16, 185, 129, 0.1);
  --red-light: rgba(239, 68, 68, 0.1);
  --yellow-light: rgba(245, 158, 11, 0.1);
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --border: #D1D9E6;
  --border-hover: #B0BCCE;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.13);
}

[data-theme="light"] .navbar {
  background: rgba(244, 246, 250, 0.88);
  border-bottom-color: var(--border);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(244, 246, 250, 0.98);
}

[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.09) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
    var(--bg-primary);
}

[data-theme="light"] .hero-grid-lines {
  background-image:
    linear-gradient(rgba(160, 180, 210, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 180, 210, 0.45) 1px, transparent 1px);
}

[data-theme="light"] .hero-card-img {
  background: linear-gradient(135deg, #dde3ef 0%, #eaeef5 100%);
}

[data-theme="light"] .card-lot,
[data-theme="light"] .lot-badge {
  background: rgba(244, 246, 250, 0.85);
  border-color: var(--border);
  color: var(--text-muted);
}

[data-theme="light"] .gallery-label {
  background: rgba(244, 246, 250, 0.85);
  border-color: var(--border);
}

[data-theme="light"] .auction-card-img,
[data-theme="light"] .inv-card-img,
[data-theme="light"] .hiw-visual,
[data-theme="light"] .mission-visual,
[data-theme="light"] .cat-hero-right {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-secondary) 100%);
}

[data-theme="light"] .upcoming-strip {
  background: var(--accent);
}

[data-theme="light"] .how-step-num {
  background: var(--bg-primary);
}

[data-theme="light"] .bid-box-header {
  background: rgba(249, 115, 22, 0.08);
  border-bottom-color: rgba(249, 115, 22, 0.12);
}

[data-theme="light"] .cta-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #dce6f5 100%);
}

[data-theme="light"] .auth-page {
  background: var(--bg-primary);
}

[data-theme="light"] .legal-highlight {
  background: rgba(249, 115, 22, 0.07);
  border-color: rgba(249, 115, 22, 0.15);
}

[data-theme="light"] .form-input,
[data-theme="light"] .form-select,
[data-theme="light"] .form-textarea,
[data-theme="light"] .filter-check input[type="checkbox"],
[data-theme="light"] .form-check input[type="checkbox"] {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
}

[data-theme="light"] select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

[data-theme="light"] .countdown-unit .val {
  background: var(--bg-card);
  border-color: var(--border);
}

[data-theme="light"] .tab-bar,
[data-theme="light"] .view-toggle {
  background: var(--bg-card);
}

[data-theme="light"] .hero-search {
  background: #fff;
}

[data-theme="light"] .hero-search select {
  background: var(--bg-elevated);
  border-right-color: var(--border);
}

[data-theme="light"] .auction-row-img {
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-secondary));
}

[data-theme="light"] .page-header,
[data-theme="light"] .auctions-header,
[data-theme="light"] .inventory-header,
[data-theme="light"] .lot-header,
[data-theme="light"] .categories-page-header,
[data-theme="light"] .hiw-header,
[data-theme="light"] .about-header,
[data-theme="light"] .contact-header,
[data-theme="light"] .legal-header {
  background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.card-img-wrap {
  position: relative;
  overflow: hidden;
}

.card-img-wrap img,
.auction-card-img img,
.inv-card-img img,
.hero-card-img img,
.auction-row-img img,
.gallery-main img,
.gallery-thumb img,
.cat-hero-right img,
.hiw-visual img,
.mission-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle i { font-size: 1rem; }

.navbar-theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.navbar-theme-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
input, select, textarea, button { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p { color: var(--text-secondary); line-height: 1.75; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--accent-glow);
}
.btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-hover); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
.btn-ghost { background: var(--bg-elevated); color: var(--text-secondary); border-color: transparent; }
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-hover); }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-icon { padding: 10px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-orange { background: var(--accent-light); color: var(--accent); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-red { background: var(--red-light); color: var(--red); }
.badge-yellow { background: var(--yellow-light); color: var(--yellow); }
.badge-gray { background: var(--bg-elevated); color: var(--text-secondary); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }

.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc { max-width: 560px; margin: 0 auto; font-size: 1.0625rem; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.divider { height: 1px; background: var(--border); margin: 32px 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text-primary); }
.form-input, .form-select, .form-textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 0.9375rem;
  transition: var(--transition);
  width: 100%;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}
.form-select { appearance: none; cursor: pointer; }
.form-error { font-size: 0.8125rem; color: var(--red); }
.form-hint { font-size: 0.8125rem; color: var(--text-muted); }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30, 45, 66, 0.6);
  z-index: 1000;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 12, 20, 0.97);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
}
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  color: var(--text-primary);
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.navbar-logo .accent { color: var(--accent); }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.nav-link.active { color: var(--accent); background: var(--accent-light); }
.navbar-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.navbar-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.footer-brand p { font-size: 0.9rem; margin-bottom: 24px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { font-size: 0.9rem; color: var(--text-secondary); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.875rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 0.875rem; color: var(--text-muted); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--text-primary); }

.page-header {
  background: linear-gradient(160deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
  padding: 100px 0 48px;
  margin-top: var(--nav-h);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-secondary); transition: var(--transition); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border-hover); }

.countdown { display: flex; gap: 8px; align-items: flex-start; }
.countdown-unit { display: flex; flex-direction: column; align-items: center; }
.countdown-unit .val {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--accent);
  min-width: 42px;
  text-align: center;
  line-height: 1;
}
.countdown-unit .lbl {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-top: 4px;
}
.countdown-sep { font-size: 1rem; font-weight: 700; color: var(--accent); margin-top: 6px; }

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); }
.page-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-state i { font-size: 3rem; color: var(--text-muted); margin-bottom: 16px; display: block; }
.empty-state h3 { margin-bottom: 8px; }

.tooltip-wrap { position: relative; display: inline-flex; }
.tooltip-wrap:hover .tooltip { opacity: 1; transform: translateY(0); pointer-events: auto; }
.tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.8125rem;
  color: var(--text-primary);
  white-space: nowrap;
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
  z-index: 100;
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px;
    gap: 4px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .navbar-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
