/* ============================================================
   MH TUNING FILES — formal light e-commerce theme v2
   Inter body, Rajdhani display, navy + amber identity,
   hero banner, refined cards & tables.
   ============================================================ */
:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --panel2: #f1f3f6;
  --border: #e4e7ec;
  --text: #16202e;
  --muted: #64748b;
  --accent: #dc2626;
  --accent-light: #ef4444;
  --accent-dark: #b91c1c;
  --navy: #0f172a;
  --navy2: #1e293b;
  --primary: #0f172a;
  --primary-hover: #24324a;
  --green: #16a34a;
  --amber: #d97706;
  --red: #dc2626;
  --shadow-sm: 0 1px 3px rgba(15,23,42,.06);
  --shadow-md: 0 10px 30px rgba(15,23,42,.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.6 'Inter', 'Segoe UI', Arial, sans-serif; min-height: 100vh; display: flex; flex-direction: column; }
a { color: inherit; }

/* ---------- top contact bar (red, CSF style) ---------- */
.topbar { background: linear-gradient(90deg, #dc2626, #b91c1c); color: #fecaca; font-size: 13px; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 8px 24px; display: flex; gap: 26px; }
.topbar-right { margin-left: auto; }
.topbar strong { color: #fff; }

/* ---------- header (black, CSF style) ---------- */
.siteheader { background: #0e0f13; position: sticky; top: 0; z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.siteheader-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 76px; display: flex; align-items: center; gap: 30px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand-logo { width: 48px; height: 48px; display: block; }
.brand-text { font-family: 'Rajdhani', 'Segoe UI', sans-serif; font-weight: 700; font-size: 25px; letter-spacing: .5px; line-height: 1; display: inline-block; color: #fff; }
.brand-text em { font-style: normal; color: var(--accent-light); }
.brand-text small { display: block; font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: 2.9px; color: #8b93a1; margin-top: 4px; }
.mainnav { display: flex; gap: 2px; flex: 1; }
.mainnav a { color: #c3c9d4; text-decoration: none; padding: 9px 15px; border-radius: 8px; font-weight: 600; font-size: 13.5px; letter-spacing: .2px; }
.mainnav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.mainnav a.active { color: #fff; background: rgba(220,38,38,.22); box-shadow: inset 0 -2px 0 var(--accent-light); }
.headactions { display: flex; align-items: center; gap: 10px; }
.headactions .btn-outline { border-color: #3a3f4a; color: #e5e7eb; }
.headactions .btn-outline:hover { background: rgba(255,255,255,.08); }
.headactions .btn-primary { background: linear-gradient(135deg, var(--accent-light), var(--accent-dark)); }
.credits-pill { background: linear-gradient(135deg, var(--accent-light), var(--accent-dark)); color: #fff; font-weight: 700; padding: 5px 14px; border-radius: 999px; font-size: 13px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 28px 24px; flex: 1; }
h1 { font-family: 'Rajdhani', 'Segoe UI', sans-serif; font-size: 28px; margin-bottom: 18px; font-weight: 700; letter-spacing: .3px; }
h2 { font-family: 'Rajdhani', 'Segoe UI', sans-serif; font-size: 18px; margin-bottom: 12px; font-weight: 700; letter-spacing: .3px; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(120deg, #0b1220 0%, #16233d 55%, #1e2f52 100%); border-radius: 16px; margin: 4px 0 26px; color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(245,158,11,.22), transparent 65%); }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--accent-light), var(--accent), transparent); }
.hero-content { padding: 46px 48px 38px; position: relative; max-width: 720px; }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: 38px; line-height: 1.12; margin-bottom: 12px; }
.hero p { color: #b6c2d4; max-width: 560px; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; }
.btn.btn-amber { background: linear-gradient(135deg, var(--accent-light), var(--accent)); color: #fff; }
.btn.btn-amber:hover { filter: brightness(1.07); background: linear-gradient(135deg, var(--accent-light), var(--accent)); }
.btn.btn-heroghost { background: transparent; border: 1px solid #3b4a63; color: #dbe4f0; }
.btn.btn-heroghost:hover { background: rgba(255,255,255,.06); }
.hero-stats { display: flex; gap: 44px; margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-family: 'Rajdhani', sans-serif; font-size: 30px; font-weight: 700; color: var(--accent-light); line-height: 1; }
.hero-stats span { font-size: 12.5px; color: #8fa0b8; margin-top: 4px; }
@media (max-width: 700px) { .hero-content { padding: 30px 24px; } .hero h1 { font-size: 28px; } .hero-stats { gap: 24px; } }

/* ---------- flash ---------- */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-weight: 600; border: 1px solid; background: var(--panel); }
.flash-success { border-color: #bbe5c8; color: var(--green); background: #f0fdf4; }
.flash-error { border-color: #f5c2c2; color: var(--red); background: #fef2f2; }
.flash-info { border-color: #f3d9ae; color: var(--amber); background: #fffbeb; }

/* ---------- forms ---------- */
label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin: 12px 0 5px; }
input, select, textarea { width: 100%; background: var(--panel); border: 1px solid #d3d9e0; color: var(--text); padding: 10px 13px; border-radius: 9px; font-size: 14px; font-family: inherit; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(217,119,6,.13); }

/* ---------- buttons ---------- */
.btn { display: inline-block; border: none; cursor: pointer; font-weight: 700; border-radius: 9px; padding: 11px 20px; font-size: 14px; text-decoration: none; color: #fff; background: var(--primary); transition: background .15s, filter .15s, transform .1s; text-align: center; font-family: inherit; }
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); }
.btn-green { background: var(--green); } .btn-green:hover { filter: brightness(1.08); background: var(--green); }
.btn-red { background: var(--red); } .btn-red:hover { filter: brightness(1.08); background: var(--red); }
.btn-outline { background: transparent; border: 1px solid #d3d9e0; color: var(--text); } .btn-outline:hover { background: var(--panel2); }
.btn-ghost { background: transparent; border: 1px solid #d3d9e0; color: var(--muted); } .btn-ghost:hover { background: var(--panel2); color: var(--text); }
.btn-muted { background: var(--panel2); color: var(--muted); cursor: default; } .btn-muted:hover { background: var(--panel2); }
.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-block { display: block; width: 100%; margin-top: 12px; }

/* ---------- auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 44px 0; }
.auth-card { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 38px 42px; width: 100%; max-width: 560px; box-shadow: var(--shadow-md); }
.auth-card.center { text-align: center; }
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 20px; }
.auth-logo-img { width: 54px; height: 54px; }
.auth-logo > div { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 27px; line-height: 1; text-align: left; }
.auth-logo em { font-style: normal; color: var(--accent); }
.auth-logo small { display: block; font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 700; letter-spacing: 2.9px; color: var(--muted); margin-top: 4px; }
.auth-card h1 { text-align: center; font-size: 22px; }
.auth-alt { margin-top: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-alt a { color: var(--accent); }
.bigcheck { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%; background: var(--green); color: #fff; font-size: 34px; display: flex; align-items: center; justify-content: center; }
.auth-card p { color: var(--muted); margin: 12px 0 20px; }
.btn-block.btn-primary { margin-top: 18px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }

/* ---------- search ---------- */
.searchbar { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm); }
.searchbar input { flex: 2; min-width: 220px; }
.searchbar select { flex: 1; min-width: 140px; width: auto; }

/* ---------- product grid ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 22px; }
.product { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .18s, transform .18s, border-color .18s; box-shadow: var(--shadow-sm); }
.product:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #d8dde4; }
.product-art { height: 132px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; position: relative; }
.product-art::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent-light), transparent); }
.product-art-brand { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 21px; letter-spacing: 1.5px; text-transform: uppercase; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.product-art-ecu { font-size: 11.5px; font-weight: 700; letter-spacing: 2.5px; opacity: .85; text-transform: uppercase; margin-top: 4px; }
.product-body { padding: 15px 17px 17px; display: flex; flex-direction: column; flex: 1; }
.product-title { font-weight: 700; font-size: 15px; margin-bottom: 9px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tag { background: var(--panel2); border: 1px solid var(--border); color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.product-notes { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.product-foot .size { color: var(--muted); font-size: 12px; }
.price { color: var(--accent); font-weight: 800; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 13px 15px; background: var(--panel2); border-bottom: 1px solid var(--border); }
.table td { padding: 13px 15px; border-top: 1px solid var(--border); vertical-align: middle; }
.table tr.row-hl td { background: #fffbeb; }
.right { text-align: right; }
.actions { white-space: nowrap; }
.actions form { display: inline-block; margin-left: 6px; }
.credit-form { margin-top: 6px; }
.credit-form input { width: 110px; display: inline-block; padding: 6px 8px; font-size: 13px; }

.ftitle { font-weight: 700; }
.fnotes { color: var(--muted); font-size: 12.5px; }
.pos { color: var(--green); font-weight: 700; }
.neg { color: var(--red); font-weight: 700; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.badge-green { background: #f0fdf4; color: var(--green); border: 1px solid #bbe5c8; }
.badge-amber { background: #fffbeb; color: var(--amber); border: 1px solid #f3d9ae; }
.badge-red { background: #fef2f2; color: var(--red); border: 1px solid #f5c2c2; }

.empty { background: var(--panel); border: 1px dashed #cfd5dc; color: var(--muted); text-align: center; padding: 44px; border-radius: 14px; }
.empty a { color: var(--accent); }

/* ---------- admin stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 16px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm); border-top: 3px solid var(--border); }
.stat:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.stat .num { font-family: 'Rajdhani', sans-serif; font-size: 38px; font-weight: 700; line-height: 1.1; }
.stat .lbl { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat-alert { border-top-color: var(--accent); background: #fffdf7; }
.stat-alert .num { color: var(--accent); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 26px; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 24px; box-shadow: var(--shadow-sm); }
.upload-card { margin-bottom: 24px; border-top: 3px solid var(--accent); }
.upload-card .btn { margin-top: 16px; }
.credits-big { font-family: 'Rajdhani', sans-serif; font-size: 34px; font-weight: 700; color: var(--accent); margin-top: 10px; }
.credits-big span { font-size: 14px; color: var(--muted); font-weight: 600; font-family: 'Inter', sans-serif; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #94a3b8; font-size: 13.5px; margin-top: 44px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 38px 24px 24px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }
.footbrand { display: flex; align-items: center; gap: 10px; font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 21px; color: #fff; margin-bottom: 10px; }
.footbrand span { color: var(--accent-light); }
.foot-logo { width: 36px; height: 36px; }
.footer h4 { color: #fff; margin-bottom: 9px; font-size: 14px; font-weight: 700; }
.footer a { color: #94a3b8; text-decoration: none; } .footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1f2c44; text-align: center; padding: 15px; font-size: 12.5px; }

/* ============================================================
   Homepage (CSF style): full-bleed hero, floating search,
   featured products, how-it-works strip
   ============================================================ */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.home-hero { background: url('/hero.svg') center / cover no-repeat #0b0d12; margin-top: -28px; }
.home-hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: 470px; display: flex; align-items: center; justify-content: flex-end; }
.hero-copy { max-width: 540px; color: #fff; padding: 46px 0 70px; text-align: left; }
.home-hero .hero-kicker { color: #f87171; font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 12px; }
.hero-copy h1 { color: #fff; font-size: 42px; line-height: 1.1; margin-bottom: 12px; }
.hero-copy p { color: #c8d0dc; }
.hero-cta { display: flex; gap: 12px; margin-top: 22px; }
.btn.btn-redgrad { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; }
.btn.btn-redgrad:hover { filter: brightness(1.1); background: linear-gradient(135deg, #ef4444, #b91c1c); }
.btn.btn-heroghost { background: rgba(10,10,14,.35); border: 1px solid #4b5563; color: #e5e7eb; }
.btn.btn-heroghost:hover { background: rgba(255,255,255,.08); }

.search-float { background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-md); max-width: 720px; margin: -58px auto 0; position: relative; z-index: 2; padding: 26px 30px; }
.search-float h2 { margin-bottom: 14px; font-size: 21px; }
.search-float-form { display: flex; gap: 10px; }
.search-float-form input { flex: 1; }

.home-stats { display: flex; gap: 54px; justify-content: center; margin: 34px 0 8px; flex-wrap: wrap; }
.home-stats div { text-align: center; }
.home-stats strong { font-family: 'Rajdhani', sans-serif; font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; display: block; }
.home-stats span { font-size: 13px; color: var(--muted); }

.section-title { font-size: 27px; margin: 34px 0 20px; }
.center-cta { text-align: center; margin: 26px 0 6px; }

.steps-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 40px 0 8px; }
.step { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px 22px; text-align: center; box-shadow: var(--shadow-sm); }
.step-num { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #ef4444, #b91c1c); color: #fff; font-weight: 800; font-size: 18px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.step h3 { font-family: 'Rajdhani', sans-serif; font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 13.5px; }

@media (max-width: 900px) {
  .home-hero-inner { justify-content: center; }
  .hero-copy h1 { font-size: 30px; }
  .steps-strip { grid-template-columns: 1fr; }
  .home-stats { gap: 30px; }
  .search-float { margin: -40px 16px 0; padding: 20px; }
  .search-float-form { flex-direction: column; }
}

/* WhatsApp support */
.topbar-link { color: #fff; text-decoration: none; font-weight: 600; }
.topbar-link:hover { text-decoration: underline; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 50; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .15s, box-shadow .15s; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px rgba(0,0,0,.34); }

/* Pricing page */
.pricing-head { text-align: center; margin: 10px 0 26px; }
.pricing-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; max-width: 980px; margin: 0 auto; }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px 26px; text-align: center; box-shadow: var(--shadow-sm); position: relative; }
.price-card.price-featured { border: 2px solid var(--accent); box-shadow: var(--shadow-md); }
.price-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,#ef4444,#b91c1c); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; }
.price-credits { font-family: 'Rajdhani', sans-serif; font-size: 52px; font-weight: 700; line-height: 1; color: var(--accent); }
.price-credits-lbl { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; }
.price-amount { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.price-note { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.pricing-foot { text-align: center; color: var(--muted); margin-top: 24px; font-size: 13.5px; }
.pricing-foot a { color: var(--accent); }

.price-cr { color: var(--muted); font-weight: 600; font-size: 11.5px; }

/* Convert page direction picker */
.convert-dirs { display: flex; gap: 14px; margin: 6px 0 4px; flex-wrap: wrap; }
.dir-opt { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; border: 1px solid #d3d9e0; border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; }
.dir-opt input { width: auto; }
.dir-opt small { color: var(--muted); }
.dir-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(220,38,38,.12); background: #fff7f7; }
