/* ==========================================================================
   ProfitMinty — Ultra-Premium Design System v3.0
   Mobile-First | Fintech | Linear + Stripe Inspired
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
  --bg:           #060a10;
  --bg-2:         #0b1120;
  --surface:      rgba(17, 26, 44, 0.72);
  --surface-2:    rgba(23, 35, 58, 0.85);
  --border:       rgba(255,255,255,0.07);
  --border-em:    rgba(16,185,129,0.4);

  --green:        #10b981;
  --green-light:  #34d399;
  --green-dim:    rgba(16,185,129,0.15);
  --blue:         #3b82f6;
  --blue-dim:     rgba(59,130,246,0.08);

  --text-1:       #f0f6ff;
  --text-2:       #8fa3bd;
  --text-3:       #4d6078;

  --r-xl:         20px;
  --r-lg:         14px;
  --r-md:         10px;
  --r-sm:         6px;

  --f-head:       'Outfit', -apple-system, sans-serif;
  --f-body:       'Inter',  -apple-system, sans-serif;

  --shadow-card:  0 4px 24px rgba(0,0,0,0.45);
  --shadow-glow:  0 0 28px rgba(16,185,129,0.2);
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(16,185,129,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 55% 45% at 85% 65%, rgba(59,130,246,0.07) 0%, transparent 60%);
  background-attachment: fixed;
  color: var(--text-1);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

a { color: var(--green-light); text-decoration: none; transition: color .15s; }
a:hover { color: #6ee7b7; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ─── Header / Nav ───────────────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(6,10,16,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--f-head);
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  letter-spacing: -.4px;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg,rgba(16,185,129,.22),rgba(59,130,246,.18));
  border: 1px solid rgba(16,185,129,.38);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px rgba(16,185,129,.18);
  flex-shrink: 0;
}
.logo-mint { background: linear-gradient(135deg,#34d399,#10b981); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }

/* Nav Links */
.nav-links { display:flex; align-items:center; gap:1.5rem; list-style:none; }
.nav-links a { color:var(--text-2); font-size:.9rem; font-weight:500; white-space:nowrap; }
.nav-links a:hover, .nav-links a.active { color:#fff; }

/* Mobile nav */
@media(max-width:600px){
  .nav-wrap { padding:0 1rem; height:56px; }
  .logo { font-size:1.18rem; }
  .logo-icon { width:30px; height:30px; }
  .nav-links { gap:.9rem; }
  .nav-links a { font-size:.82rem; }
}

/* ─── Layout Container ───────────────────────────────────────────────────── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
  width: 100%;
  flex: 1;
}
@media(max-width:768px){ .page-wrap { padding:1.75rem 1rem 3rem; } }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero { text-align:center; margin-bottom:2.5rem; }

.hero-badge {
  display:inline-flex; align-items:center; gap:.45rem;
  background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.3);
  border-radius:50px; padding:.35rem 1rem;
  font-size:.8rem; font-weight:600; color:var(--green-light);
  letter-spacing:.5px; text-transform:uppercase; margin-bottom:1.25rem;
}

.hero h1 {
  font-family:var(--f-head);
  font-size:clamp(2rem,5.5vw,3.2rem);
  font-weight:900;
  line-height:1.18;
  letter-spacing:-.8px;
  margin-bottom:1rem;
  background:linear-gradient(175deg,#ffffff 30%,#9abacd 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero p { color:var(--text-2); font-size:clamp(.96rem,2.5vw,1.12rem); max-width:640px; margin:0 auto; }

/* ─── Search Bar ──────────────────────────────────────────────────────────── */
.search-wrap {
  max-width:560px; margin:2rem auto 0;
  position:relative;
}
.search-wrap svg {
  position:absolute; left:1rem; top:50%; transform:translateY(-50%);
  color:var(--text-3); pointer-events:none; width:18px; height:18px;
}
.search-input {
  width:100%;
  padding:.9rem 1.2rem .9rem 2.8rem;
  background:rgba(11,17,32,.85);
  border:1px solid var(--border);
  border-radius:50px;
  color:#fff;
  font-size:.95rem;
  font-family:var(--f-body);
  backdrop-filter:blur(12px);
  transition:border-color .2s, box-shadow .2s;
}
.search-input::placeholder { color:var(--text-3); }
.search-input:focus { outline:none; border-color:var(--green); box-shadow:0 0 20px rgba(16,185,129,.22); }

/* ─── Category Badges ────────────────────────────────────────────────────── */
.cat-badges {
  display:flex; gap:.55rem; justify-content:center;
  flex-wrap:wrap; margin:1.75rem 0 2.5rem;
}
@media(max-width:640px){
  .cat-badges { flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; padding-bottom:.4rem; -webkit-overflow-scrolling:touch; }
  .cat-badges::-webkit-scrollbar { display:none; }
}
.cat-badge {
  flex-shrink:0;
  background:var(--surface); border:1px solid var(--border);
  border-radius:50px; padding:.48rem 1.1rem;
  color:var(--text-1); font-size:.82rem; font-weight:600;
  white-space:nowrap;
  transition:all .2s;
}
.cat-badge:hover { border-color:var(--green); background:rgba(16,185,129,.12); color:#fff; }

/* ─── Section Header ─────────────────────────────────────────────────────── */
.section-header {
  display:flex; align-items:center; gap:.75rem;
  margin-bottom:1.5rem;
}
.section-header h2 {
  font-family:var(--f-head); font-size:1.55rem; font-weight:800;
  color:#fff; letter-spacing:-.3px;
}
.section-pill {
  background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.25);
  border-radius:50px; padding:.2rem .75rem;
  font-size:.75rem; font-weight:700; color:var(--green-light);
  letter-spacing:.4px; text-transform:uppercase;
}

/* ─── Tool Cards Grid ────────────────────────────────────────────────────── */
.tools-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:1.1rem;
  margin-bottom:3rem;
}
@media(max-width:500px){ .tools-grid { grid-template-columns:1fr; } }

.tool-card {
  background:var(--surface);
  border:1px solid var(--border);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-radius:var(--r-xl);
  padding:1.4rem;
  display:flex; flex-direction:column;
  gap:.75rem;
  transition:all .22s;
  position:relative; overflow:hidden;
}
.tool-card::after {
  content:''; position:absolute; top:0; left:0; right:0; height:2px;
  background:linear-gradient(90deg,transparent,var(--green),transparent);
  opacity:0; transition:opacity .22s;
}
.tool-card:hover {
  border-color:var(--border-em); background:var(--surface-2);
  transform:translateY(-2px);
  box-shadow:var(--shadow-card), var(--shadow-glow);
}
.tool-card:hover::after { opacity:1; }

.card-icon {
  width:44px; height:44px;
  background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.2);
  border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  font-size:1.45rem; flex-shrink:0;
}
.card-body { flex:1; }
.card-body h3 { font-family:var(--f-head); font-size:1.05rem; font-weight:700; color:#fff; margin-bottom:.3rem; line-height:1.35; }
.card-body p { color:var(--text-2); font-size:.83rem; line-height:1.55; }

.btn-open {
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem;
  background:linear-gradient(135deg,#10b981,#059669);
  color:#000; font-weight:700; font-size:.88rem;
  padding:.65rem 1rem; border-radius:var(--r-md);
  border:none; width:100%;
  transition:all .18s;
  box-shadow:0 4px 14px rgba(16,185,129,.28);
}
.btn-open:hover { background:linear-gradient(135deg,#34d399,#10b981); transform:translateY(-1px); box-shadow:0 6px 20px rgba(16,185,129,.38); color:#000; }

/* ─── Ads Hidden ─────────────────────────────────────────────────────────── */
.ad-slot { display:none !important; }
.ad-slot:has(ins.adsbygoogle) { display:block !important; margin:2rem 0; width:100%; }

/* ─── Category Hub Section Dividers ─────────────────────────────────────── */
.cat-section { margin-bottom:4rem; }
.cat-title {
  font-family:var(--f-head); font-size:1.4rem; font-weight:800; color:#fff;
  margin-bottom:.4rem; display:flex; align-items:center; gap:.6rem;
}
.cat-desc { color:var(--text-2); font-size:.9rem; margin-bottom:1.5rem; }
hr.section-div { border:none; border-top:1px solid var(--border); margin:3rem 0; }

/* ─── Calculator Page Layout ─────────────────────────────────────────────── */
.tool-page-header { margin-bottom:2rem; }
.tool-back { color:var(--text-2); font-size:.88rem; display:inline-flex; align-items:center; gap:.4rem; margin-bottom:1rem; }
.tool-back:hover { color:#fff; }
.tool-page-header h1 { font-family:var(--f-head); font-size:clamp(1.7rem,4vw,2.4rem); font-weight:800; color:#fff; letter-spacing:-.3px; margin-bottom:.5rem; }
.tool-page-header p { color:var(--text-2); font-size:.96rem; max-width:680px; }

.calc-layout {
  display:grid; grid-template-columns:1fr 1fr; gap:1.75rem; align-items:start;
}
@media(max-width:768px){ .calc-layout { grid-template-columns:1fr; } }

/* Form Panel */
.calc-panel {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-xl); padding:1.75rem;
  backdrop-filter:blur(12px);
}
.calc-panel h2 { font-family:var(--f-head); font-size:1.15rem; font-weight:700; color:#fff; margin-bottom:1.25rem; }

.field { margin-bottom:1.1rem; }
.field label { display:block; font-size:.83rem; font-weight:600; color:var(--text-1); margin-bottom:.35rem; }
.field input, .field select {
  width:100%; padding:.8rem 1rem;
  background:rgba(6,10,16,.85); border:1px solid var(--border);
  border-radius:var(--r-md); color:#fff; font-size:.92rem; font-family:var(--f-body);
  transition:border-color .15s;
}
.field input:focus, .field select:focus { outline:none; border-color:var(--green); }
.field select option { background:#0b1120; }

.btn-calc {
  width:100%; padding:.85rem 1rem;
  background:linear-gradient(135deg,#10b981,#059669);
  color:#000; font-weight:700; font-size:1rem;
  border:none; border-radius:var(--r-md);
  margin-top:.5rem;
  box-shadow:0 4px 16px rgba(16,185,129,.3);
  transition:all .18s;
}
.btn-calc:hover { background:linear-gradient(135deg,#34d399,#10b981); transform:translateY(-1px); box-shadow:0 6px 20px rgba(16,185,129,.38); }

/* Result Panel */
.result-panel {
  background:linear-gradient(145deg,rgba(16,185,129,.12),rgba(11,17,32,.95));
  border:1px solid rgba(16,185,129,.3);
  border-radius:var(--r-xl); padding:1.75rem;
  display:flex; flex-direction:column; gap:1rem;
}
.result-panel h2 { font-family:var(--f-head); font-size:1.1rem; font-weight:700; color:var(--green-light); margin-bottom:.5rem; }

.stat { text-align:center; padding:.75rem; background:rgba(0,0,0,.25); border-radius:var(--r-lg); }
.stat-val {
  font-family:var(--f-head); font-size:clamp(2rem,5vw,2.8rem); font-weight:900;
  background:linear-gradient(135deg,#34d399,#10b981);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  line-height:1.1;
}
.stat-lbl { font-size:.75rem; text-transform:uppercase; letter-spacing:1px; color:var(--text-2); font-weight:600; margin-top:.2rem; }

.stat-row { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; }

/* Rating Widget */
.rating-box {
  background:rgba(0,0,0,.3); border:1px solid var(--border);
  border-radius:var(--r-md); padding:.85rem 1rem;
  display:flex; flex-direction:column; align-items:center; gap:.4rem;
  margin-top:.5rem;
}
.stars { display:flex; gap:.3rem; cursor:pointer; }
.stars .s { font-size:1.3rem; color:var(--text-3); transition:color .12s, transform .12s; }
.stars .s.on, .stars .s:hover { color:#f59e0b; transform:scale(1.18); }
.stars.locked { pointer-events:none; }
.rating-lbl { font-size:.78rem; color:var(--text-2); }

/* Report Link */
.report-link {
  display:inline-flex; align-items:center; gap:.3rem;
  font-size:.78rem; color:var(--text-3); margin-top:.75rem; cursor:pointer;
}
.report-link:hover { color:#ef4444; }

/* ─── FAQ / Guide Section ────────────────────────────────────────────────── */
.guide-box {
  background:var(--surface); border:1px solid var(--border);
  border-radius:var(--r-xl); padding:2rem;
  margin-top:2.5rem; backdrop-filter:blur(12px);
}
.guide-box h2 { font-family:var(--f-head); font-size:1.4rem; font-weight:700; color:#fff; margin-bottom:.85rem; }
.guide-box h3 { font-family:var(--f-head); font-size:1.1rem; color:var(--green-light); margin:1.5rem 0 .4rem; }
.guide-box p, .guide-box ul { color:var(--text-2); font-size:.9rem; line-height:1.7; }
.guide-box ul { margin-left:1.2rem; }
.guide-box strong { color:var(--text-1); }

@media(max-width:600px){ .guide-box { padding:1.35rem; } }

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.modal-bg {
  display:none; position:fixed; inset:0;
  background:rgba(0,0,0,.82); backdrop-filter:blur(14px);
  z-index:1000; align-items:center; justify-content:center; padding:1rem;
}
.modal-bg.show { display:flex; }
.modal-box {
  background:#0b1120; border:1px solid var(--border);
  border-radius:var(--r-xl); max-width:460px; width:100%; padding:1.75rem;
  box-shadow:0 25px 60px rgba(0,0,0,.7);
}
.modal-head { display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--border); padding-bottom:.75rem; margin-bottom:1.1rem; }
.modal-head h3 { font-family:var(--f-head); font-size:1.1rem; color:#fff; }
.modal-close { background:none; border:none; color:var(--text-2); font-size:1.5rem; line-height:1; }
.modal-close:hover { color:#fff; }

/* ─── Cookie Banner ───────────────────────────────────────────────────────── */
.cookie-bar {
  position:fixed; bottom:0; left:0; right:0;
  background:rgba(11,17,32,.97); backdrop-filter:blur(20px);
  border-top:1px solid var(--border);
  padding:.9rem 1.5rem;
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  z-index:900; transition:transform .3s;
}
.cookie-bar.gone { transform:translateY(100%); }
.cookie-bar p { font-size:.82rem; color:var(--text-2); }
.cookie-bar p a { text-decoration:underline; }
.btn-accept {
  flex-shrink:0; padding:.5rem 1.25rem;
  background:linear-gradient(135deg,#10b981,#059669);
  color:#000; font-weight:700; font-size:.85rem;
  border:none; border-radius:var(--r-sm);
  transition:all .18s;
}
.btn-accept:hover { background:linear-gradient(135deg,#34d399,#10b981); }
@media(max-width:600px){ .cookie-bar { flex-direction:column; text-align:center; padding:1rem; } }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background:rgba(6,10,16,.95);
  border-top:1px solid var(--border);
  padding:2.25rem 1.25rem;
  font-size:.85rem; color:var(--text-3);
}
.footer-inner {
  max-width:1100px; margin:0 auto;
  display:flex; justify-content:space-between; align-items:center;
  flex-wrap:wrap; gap:1rem;
}
.footer-links { display:flex; flex-wrap:wrap; gap:.2rem .5rem; }
.footer-links a { color:var(--text-2); padding:.2rem .5rem; border-radius:var(--r-sm); }
.footer-links a:hover { color:#fff; }
@media(max-width:640px){ .footer-inner { flex-direction:column; text-align:center; } }

/* ─── Utility ────────────────────────────────────────────────────────────── */
.text-green { color:var(--green-light); }
.mb-1 { margin-bottom:.5rem; }
.mb-2 { margin-bottom:1rem; }
.mt-2 { margin-top:1rem; }
