/* BileeWorld — polished marketplace design */
:root {
  --cream: #fdf6ec;
  --cream-2: #f8ecd7;
  --teal: #0f766e;
  --teal-dark: #0a5a54;
  --teal-deep: #07423e;
  --amber: #f59e0b;
  --amber-dark: #c97a06;
  --amber-soft: #fef3d8;
  --ink: #2e2a23;
  --ink-soft: #4a4238;
  --muted: #8a7a63;
  --card: #fffdf8;
  --line: #ecdcbc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(46, 42, 35, 0.06), 0 2px 8px rgba(46, 42, 35, 0.06);
  --shadow-md: 0 4px 6px rgba(46, 42, 35, 0.07), 0 12px 28px rgba(46, 42, 35, 0.10);
  --shadow-lg: 0 8px 16px rgba(46, 42, 35, 0.10), 0 24px 48px rgba(15, 118, 110, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  background-image: radial-gradient(rgba(15, 118, 110, 0.045) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1, h2, h3 { letter-spacing: -0.015em; line-height: 1.2; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h2 { color: var(--teal-dark); margin: 2.4rem 0 1rem; font-size: 1.45rem; display: flex; align-items: center; gap: 0.5rem; }
h2::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--line), transparent); border-radius: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem 4rem; }

/* ---------- sticky nav ---------- */
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 253, 248, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 50;
}
.brand { font-weight: 800; font-size: 1.4rem; color: var(--teal); text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--teal-dark); }
.topbar nav { display: flex; gap: 0.6rem; align-items: center; }
.topbar nav a { text-decoration: none; font-weight: 600; }
.cart-badge {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #fff; border-radius: 999px; min-width: 1.4rem; display: inline-block;
  text-align: center; padding: 0.05rem 0.4rem; font-size: 0.78rem; font-weight: 800;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; border: none; cursor: pointer;
  padding: 0.6rem 1.25rem; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; font-family: var(--font);
  text-decoration: none; line-height: 1.4;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, #14a098, var(--teal) 55%, var(--teal-dark));
  color: #fff; box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}
.btn-primary:hover { box-shadow: 0 6px 20px rgba(15, 118, 110, 0.45); transform: translateY(-1px); color: #fff; }
.btn-secondary {
  background: linear-gradient(135deg, var(--amber), var(--amber-dark));
  color: #fff; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}
.btn-secondary:hover { transform: translateY(-1px); color: #fff; }
.btn-ghost { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-ghost:hover { background: rgba(15, 118, 110, 0.08); }
.btn-danger { background: transparent; color: #b4232a; border: 2px solid #e3a3a3; }
.btn-danger:hover { background: #fdecec; }
.btn-lg { font-size: 1.08rem; padding: 0.8rem 1.8rem; }
.btn-sm { font-size: 0.8rem; padding: 0.32rem 0.75rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: 3.5rem 1.5rem 3rem; margin: 1.5rem 0 2.5rem;
  border-radius: 24px; color: #fff;
  background: linear-gradient(120deg, var(--teal-deep) 0%, var(--teal) 55%, #12968d 100%);
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 15%, rgba(245, 158, 11, 0.35), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.10), transparent 40%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.paw-decor { position: absolute; font-size: 4.5rem; opacity: 0.14; filter: grayscale(1) brightness(10); top: 1rem; left: 4%; transform: rotate(-18deg); animation: floaty 7s ease-in-out infinite; pointer-events: none; }
.paw-2 { top: auto; bottom: 0.5rem; left: auto; right: 6%; font-size: 3.4rem; transform: rotate(14deg); animation-delay: -2.5s; }
.paw-3 { top: 40%; left: 88%; font-size: 2.4rem; transform: rotate(30deg); animation-delay: -4.5s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.hero h1 { margin: 0.8rem 0 0.6rem; color: #fff; font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; }
.hero-sub { color: var(--amber-soft); font-size: 0.62em; font-weight: 600; }
.lede { font-size: 1.15rem; color: rgba(255, 255, 255, 0.88); max-width: 620px; margin: 0 auto 1.4rem; }
.hero .btn-primary { box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25); }

/* ---------- promo ---------- */
.promo-banner {
  display: inline-block; max-width: 100%;
  background: linear-gradient(135deg, #fff7e0, var(--amber-soft));
  color: #7c4a03; border: 1.5px solid rgba(245, 158, 11, 0.55);
  border-radius: 999px; padding: 0.5rem 1.2rem; margin-bottom: 1rem;
  font-size: 0.95rem; box-shadow: var(--shadow-sm);
}
.promo-banner strong { color: #5f3a02; }
.promo-line { font-size: 1.02rem; }
.pricing-card { margin-top: 2rem; border: 2px solid rgba(245, 158, 11, 0.5); background: linear-gradient(180deg, #fffdf4, var(--card)); }
.pricing-card h2 { margin-top: 0; }
.pricing-card h2::after { display: none; }

/* ---------- grids & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.15rem; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover, .card.hoverable:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--amber);
}
.card-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.15rem; flex: 1; }
.product-card h3, .card h3 { margin: 0.35rem 0; font-size: 1.06rem; }
.store-card { border-top: 6px solid var(--accent, var(--teal)); }
.product-img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block;
  background: linear-gradient(135deg, var(--cream-2), #fff);
}
.product-img-lg { aspect-ratio: 16 / 9; border-radius: var(--radius-sm); }
.product-emoji { font-size: 3rem; padding: 1.6rem 0 0.6rem; text-align: center; background: linear-gradient(135deg, var(--cream-2), #fff); }
.product-emoji.xl { font-size: 4.2rem; padding: 2.2rem 0 1rem; border-radius: var(--radius-sm); }
.store-emoji { font-size: 2.4rem; }
.store-emoji.big { font-size: 3.2rem; }
.store-logo { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 3px solid var(--line); background: #fff; }
.store-logo-lg { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: var(--shadow-md); background: #fff; margin-top: -58px; flex-shrink: 0; }
.price { font-weight: 800; color: var(--teal-dark); font-size: 1.12rem; margin: 0.3rem 0 0; }
.price.big { font-size: 1.7rem; }
.badge {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  background: linear-gradient(135deg, var(--amber), var(--amber-dark)); color: #fff;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 0.2rem 0.65rem; border-radius: 999px; text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}
.badge-inline { position: static; display: inline-block; margin-left: 0.3rem; }
.pill { background: var(--cream-2); border: 1px solid var(--line); border-radius: 999px; padding: 0.05rem 0.55rem; font-size: 0.75rem; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* ---------- storefront ---------- */
.store-cover {
  height: 150px; border-radius: 24px; margin: 1.5rem 0 0; position: relative; overflow: hidden;
  background: linear-gradient(115deg, var(--accent, var(--teal)), var(--teal-deep));
  box-shadow: var(--shadow-md);
}
.store-cover-paws { position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 2.6rem; opacity: 0.25; letter-spacing: 0.6rem; }
.store-hero {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); padding: 0 1.5rem 1.4rem; margin: 0 0 1rem;
  box-shadow: var(--shadow-sm);
}
.store-hero-inner { display: flex; gap: 1.1rem; align-items: flex-start; flex-wrap: wrap; }
.store-hero-inner > div:last-child { padding-top: 0.6rem; }
.store-hero h1 { margin: 0; color: var(--teal-dark); font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.store-hero .lede { color: var(--muted); font-size: 1.05rem; margin: 0.25rem 0 0.5rem; }
.about { background: var(--cream-2); border-radius: var(--radius-sm); padding: 1rem 1.1rem; margin: 1rem 0 0; border: 1px solid var(--line); }

/* ---------- how it works ---------- */
.how { margin-top: 3rem; text-align: center; }
.how h2 { justify-content: center; }
.how h2::after, .how h2::before { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--line), transparent); border-radius: 2px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; text-align: left; margin: 1.2rem 0 1.8rem; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow-sm); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.steps li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- forms ---------- */
.narrow { max-width: 660px; margin: 0 auto; }
.form { display: grid; gap: 0.95rem; margin-top: 1rem; }
.form label { display: grid; gap: 0.32rem; font-weight: 600; font-size: 0.95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.95rem; }
.form input, .form textarea, .form select {
  padding: 0.62rem 0.8rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); font-size: 1rem; font-family: var(--font);
  background: #fff; color: var(--ink); width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}
.form input[type="color"] { width: 64px; height: 42px; padding: 3px; cursor: pointer; }
.form input[type="file"] { padding: 0.5rem; background: var(--cream-2); cursor: pointer; }
.check { display: flex !important; flex-direction: row !important; align-items: center; gap: 0.55rem; font-weight: 500 !important; }
.check input { width: auto; accent-color: var(--teal); }
.check-inline { display: inline-flex !important; margin-left: 0.6rem; }
.inline-form { display: inline; }
.qty input { width: 72px; }

/* ---------- alerts / misc ---------- */
.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius-sm); font-weight: 600; box-shadow: var(--shadow-sm); }
.alert-error { background: #fde8e8; border: 1.5px solid #f0a8a8; color: #9b1c1c; }
.alert-ok { background: #e4f6ee; border: 1.5px solid #93d8b8; color: #0b5f59; }
.keybox { background: linear-gradient(180deg, #fffdf4, var(--cream-2)); border: 2px dashed var(--amber); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 1.3rem 0; }
.adminkey { display: block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 0.7rem; font-size: 1rem; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.thumb { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--cream-2); vertical-align: middle; }
.thumb-emoji { display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* ---------- cart & tables ---------- */
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.cart-line-right { display: flex; align-items: center; gap: 0.6rem; }
.cart-total { text-align: right; font-size: 1.25rem; margin: 0.9rem 0; font-weight: 800; color: var(--teal-dark); }
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.table { width: 100%; border-collapse: collapse; background: var(--card); }
.table th, .table td { padding: 0.65rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table th { background: linear-gradient(180deg, var(--cream-2), #f6e8cd); color: var(--teal-dark); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.table tr.inactive td { opacity: 0.55; }
.table tr:last-child td { border-bottom: none; }
.nowrap { white-space: nowrap; }
.hidden { display: none; }
.confirm { text-align: center; padding: 2.5rem 1.5rem; }
.product-detail { padding: 1.5rem; }
.product-detail .card-body { padding: 1.2rem 0.4rem 0.4rem; }

.footer { text-align: center; color: var(--muted); font-size: 0.85rem; padding: 2.2rem 1rem; border-top: 1px solid var(--line); margin-top: 2rem; }

/* ---------- responsive ---------- */
@media (max-width: 680px) {
  .hero { padding: 2.4rem 1rem 2.2rem; border-radius: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; gap: 0.5rem; padding: 0.6rem 0.9rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.8rem; }
  .store-cover { height: 110px; }
  .store-logo-lg { width: 76px; height: 76px; margin-top: -46px; }
  .table th:nth-child(4), .table td:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---- landing page ---- */
.topbar.sticky { position: sticky; top: 0; z-index: 50; }
.nav-links { display: flex; gap: 1.1rem; align-items: center; }
.nav-links a { font-size: 0.95rem; }
.nav-links a:hover { color: var(--teal, #0f766e); }
.nav-actions { display: flex; gap: 0.8rem; align-items: center; }
section[id] { scroll-margin-top: 90px; }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-slim { padding: 2.2rem 1rem; }
.proof-strip { margin: 2.5rem 0; }
.feature-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-grid .card h3 { margin-top: 0; }
.faq { max-width: 720px; margin: 0 auto; display: grid; gap: 0.6rem; }
.faq details { background: #fff; border: 1px solid var(--line, #eee4d4); border-radius: 12px; padding: 0.9rem 1.1rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq summary::marker { color: var(--teal, #0f766e); }
.faq details p { margin: 0.6rem 0 0; color: #6b6259; }
.cta-final { text-align: center; background: linear-gradient(135deg, #0f766e, #0d5f59); color: #fff; border-radius: 20px; padding: 3rem 1.5rem; margin: 3rem 0 1rem; }
.cta-final h2 { color: #fff; }
.cta-final .lede { color: #d9efec; }
.cta-slim { padding: 2rem 1.5rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.checklist li { background: #fbf7ef; border-radius: 10px; padding: 0.8rem 1rem; }
.checklist li.done { background: #eef7f0; }
.launch-url { text-align: center; }
.store-url { font-size: 1.25rem; font-weight: 800; color: var(--teal, #0f766e); word-break: break-all; }
.payments-card { border-left: 5px solid var(--teal, #0f766e); }
.steps-compact { display: grid; gap: 0.5rem; padding-left: 1.2rem; margin: 0.8rem 0; }
.pay-status { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero-actions .btn-lg { width: 100%; }
}
