/* ==========================================================
   fa1ry.wtf — Business theme layer
   Graphite base, warm sand accent, Inter everywhere.
   Loaded last. Quiet, square-enough, no decorative motion.
   ========================================================== */

:root {
  --ink: #ecebe8;
  --muted: #9aa0a8;
  --line: #262a31;
  --surface: #15181d;
  --white: #1a1e25;
  --sage: #101317;
  --phosphor: #d8c3a0;
  --fx-a: #d8c3a0;
  --fx-a-rgb: 216, 195, 160;
  --display: "Inter", "Helvetica Neue", Arial, sans-serif;
  --console: "Inter", "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
}

/* ---------- base ---------- */
body {
  background: #0f1115;
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); line-height: 1.1; }

p { color: var(--muted); }

a {
  color: var(--phosphor);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: #fff; }

hr { border-color: var(--line); opacity: 1; }

::selection { background: var(--phosphor); color: #111; }

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0f1115; }
::-webkit-scrollbar-thumb { background: #2a2f38; border-radius: 10px; border: 2px solid #0f1115; }
::-webkit-scrollbar-thumb:hover { background: #3a404a; }

/* ---------- navbar ---------- */
.navbar {
  background: rgba(15, 17, 21, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.navbar .navbar-brand { font-family: var(--display); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.navbar .nav-link { color: var(--muted); font-weight: 500; }
.navbar .nav-link:hover,
.navbar .nav-item a.nav-link.active { color: var(--ink); }
.navbar-brand img,
.footer .logo img { filter: none; width: 2rem; height: 2rem; object-fit: contain; }

.announcement, .announcement a { background: var(--surface); color: var(--ink); }

/* ---------- hero ---------- */
.biz-hero {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--line);
}

.biz-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.biz-hero__lead {
  font-size: 1.08rem;
  max-width: 52ch;
  margin: 1.25rem 0 2rem;
}

.biz-hero__visual img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-left: auto;
}

.biz-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 56px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.biz-stats dt { color: var(--muted); font-size: .8rem; font-weight: 500; margin: 0; }
.biz-stats dd { font-family: var(--display); font-size: 1.5rem; font-weight: 600; margin: 4px 0 0; color: var(--ink); }

@media (max-width: 860px) {
  .biz-hero { padding: 56px 0 48px; }
  .biz-hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .biz-hero__visual { order: -1; }
  .biz-hero__visual img { max-width: 220px; margin: 0 auto; }
}

/* ---------- buttons: rounded, quiet, sand primary ---------- */
.btn {
  border-radius: 8px;
  font-family: var(--display);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  padding: .6rem 1.15rem;
  box-shadow: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary {
  --bs-btn-color: #111;
  --bs-btn-bg: #d8c3a0;
  --bs-btn-border-color: #d8c3a0;
  --bs-btn-hover-color: #111;
  --bs-btn-hover-bg: #e5d4b5;
  --bs-btn-hover-border-color: #e5d4b5;
  --bs-btn-active-color: #111;
  --bs-btn-active-bg: #c9b58f;
  --bs-btn-active-border-color: #c9b58f;
  --bs-btn-disabled-color: #111;
  --bs-btn-disabled-bg: #6d6356;
  --bs-btn-disabled-border-color: #6d6356;
  background: var(--bs-btn-bg);
  color: var(--bs-btn-color);
  border-color: var(--bs-btn-border-color);
  box-shadow: none;
}

.btn-outline-primary,
.btn-outline-secondary {
  --bs-btn-color: var(--ink);
  --bs-btn-border-color: #3a404a;
  --bs-btn-hover-color: #111;
  --bs-btn-hover-bg: var(--ink);
  --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-color: #111;
  --bs-btn-active-bg: var(--ink);
  --bs-btn-active-border-color: var(--ink);
  background: transparent;
}

.btn:disabled { opacity: .5; }

/* close X keeps Bootstrap's icon */
.btn-close { box-shadow: none; }

/* ---------- inputs ---------- */
input,
select,
textarea,
.form-control,
.form-select {
  background-color: #101317;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder { color: #5d646e; }

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus {
  border-color: var(--phosphor);
  box-shadow: 0 0 0 3px rgba(216, 195, 160, .18);
  outline: none;
}

/* ---------- cards ---------- */
.card,
[class*="product-card"] {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.card:hover,
[class*="product-card"]:hover {
  border-color: #3a404a;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}

/* ---------- badges ---------- */
.badge,
[class*="badge"] {
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* ---------- coupon popup: plain card ---------- */
.fairy-coupon__card {
  background: var(--surface) !important;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.fairy-coupon__sparkles { display: none; }
.fairy-coupon-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  box-shadow: none;
}

/* ---------- fairy scanner: keep the effects, frame them like a product card ---------- */
.terminal-unit {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.terminal-browse { border-radius: 8px; }
.terminal-stats dd { font-family: var(--display); }
