*{margin:0;padding:0;box-sizing:border-box;font-family:Inter}
body{overflow-x:hidden}
html, body {
  max-width: 100%;
  overflow-x: hidden;
}
/* THEME */
:root{
  --bg:#0a0f1f;
  --card:#11182d;
  --text:#fff;
  --muted:#9aa4b2;
}
body.light{
  --bg:#f5f7ff;
  --card:#fff;
  --text:#0f172a;
  --muted:#5b6475;
}
body{background:var(--bg);color:var(--text)}

/* HEADER */
.header{
  position:fixed;top:0;width:100%;height:65px;
  display:flex;justify-content:space-between;align-items:center;
  padding:0 20px;backdrop-filter:blur(20px);z-index:1000;
}
.logo{width:85px}
.right{display:flex;gap:15px;align-items:center}

/* THEME */
.theme-toggle{width:50px;height:26px;background:var(--card);border-radius:50px;cursor:pointer;position:relative}
.orb{width:20px;height:20px;background:linear-gradient(135deg,#7b61ff,#00d4ff);border-radius:50%;position:absolute;top:3px;left:4px;transition:.3s}
body.light .orb{transform:translateX(24px)}

/* HAMBURGER */
.hamburger{display:none;flex-direction:column;gap:4px}
.hamburger span{width:22px;height:2px;background:var(--text)}

/* LAYOUT */
.layout{display:flex;margin-top:65px}

/* SIDEBAR */
.sidebar{width:260px;height:calc(100vh - 65px);background:var(--card);padding:15px;overflow-y:auto}

/* DEMO */
.demo-box{display:flex;justify-content:space-between;margin-bottom:10px}
.demo-toggle{width:40px;height:20px;background:#444;border-radius:20px;cursor:pointer;position:relative}
.demo-toggle::after{content:"";width:14px;height:14px;background:#fff;position:absolute;top:3px;left:4px;border-radius:50%}
.demo-toggle.active::after{transform:translateX(18px)}

/* SEARCH */
.sidebar input{width:100%;padding:10px;border-radius:10px;border:none;margin-bottom:10px}
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  
  z-index: 999; /* increase */
}

.sidebar {
  z-index: 1001; /* above overlay */
}

.header {
  z-index: 1100; /* always top */
}

/* CATEGORY */
.category{margin-top:10px}
.cat-title{padding:6px;border-radius:8px;color:#fff;font-size:12px}
.green{background:#10b981}
.purple{background:#7c3aed}
.pink{background:#ec4899}
.orange{background:#f97316}
.blue{background:#06b6d4}
.violet{background:#8b5cf6}

/* ITEMS */
.item{padding:10px;border-radius:8px;cursor:pointer;margin-top:4px}
.item:hover{transform:translateX(4px)}
.item.active{border:2px solid #7b61ff;color:#7b61ff}

/* MAIN */
.main{flex:1;padding:20px}

/* HERO */
.hero{text-align:center;margin-top:80px}
.hero-logo{width:120px}

/* PANELS */
.panel{display:none}
.panel.active {
  display: block !important;
  animation: fade .3s ease;
}
@keyframes fade{from{opacity:0;transform:translateY(10px)}to{opacity:1}}

/* MOBILE */
@media(max-width:768px){
  .hamburger{display:flex}
  .sidebar{position:fixed;left:-260px;top:65px;transition:.3s}
  .sidebar.open{left:0}
  #overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);display:none}
  #overlay.show{display:block}
}
/* ===== CHARACTER TOOL ===== */

/* MAIN WRAPPER */
.char-wrapper {
  max-width: 850px;
  margin: auto;
  padding: 25px;
  border-radius: 20px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,0.08);
}

/* HEADER */
.char-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BUTTONS */
.actions button {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;

  background: linear-gradient(135deg,#7b61ff,#00d4ff);
  color: white;
}

.actions .ghost {
  background: rgba(255,255,255,0.08);
}

/* TEXTAREA */
#charInput {
  width: 100%;
  height: 180px;
  margin-top: 15px;

  border-radius: 14px;
  border: none;
  outline: none;

  padding: 14px;

  background: rgba(255,255,255,0.05);
  color: var(--text);

  font-size: 14px;
}

#charInput:focus {
  box-shadow: 0 0 0 2px #00d4ff;
}

/* STATS GRID (THIS FIXES YOUR ISSUE) */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 25px;
}

/* STAT */
.stat {
  text-align: center;
}

/* PERFECT CIRCLE */
.circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  font-size: 18px;

  margin: auto;

  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  transition: 0.3s;
}

.circle:hover {
  transform: scale(1.1);
}

/* COLORS */
.purple {background: linear-gradient(135deg,#7b61ff,#a78bfa);}
.blue {background: linear-gradient(135deg,#00d4ff,#38bdf8);}
.pink {background: linear-gradient(135deg,#ff4ecd,#f472b6);}
.green {background: linear-gradient(135deg,#00ffa3,#4ade80);}

/* LABEL */
.stat p {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}

/* MOBILE */
@media(max-width:768px){
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
.char-wrapper {
  overflow: hidden; /* 🔥 stops blur leaking */
}
.panel {
  width: 100%;
  max-width: 100%;
  display: none;
}




/* ===== DIFF TOOL ===== */

.diff-wrapper {
  max-width: 1000px;
  margin: auto;
  padding: 25px;
  border-radius: 20px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);

  border: 1px solid var(--border, rgba(255,255,255,0.1));
}

/* HEADER */
.diff-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* BUTTONS */
.actions button {
  padding: 8px 14px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;

  background: linear-gradient(135deg,#7b61ff,#00d4ff);
  color: white;
}

.actions .ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text);
}

/* SUBTEXT */
.diff-sub {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

/* INPUT AREA */
.diff-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.diff-inputs textarea {
  height: 180px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);

  padding: 12px;
  resize: none;

  background: var(--bg-soft, rgba(0,0,0,0.3));
  color: var(--text);

  font-size: 14px;
}

.diff-inputs textarea:focus {
  outline: none;
  border-color: #00d4ff;
  box-shadow: 0 0 0 2px rgba(0,212,255,0.2);
}

/* OUTPUT BOX */
/* OUTPUT BOX (FIXED VISIBILITY) */
.diff-output {
  margin-top: 20px;
  padding: 18px;
  border-radius: 16px;

  border: 1px solid var(--border, rgba(255,255,255,0.15));

  background: var(--card); /* 🔥 FIX */
  color: var(--text);

  min-height: 120px;
  line-height: 1.7;
  font-size: 14px;

  overflow-x: auto;
}

/* ADDED (VERY CLEAR GREEN) */
.added {
  background: #16a34a;   /* strong green */
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* REMOVED (VERY CLEAR RED) */
.removed {
  background: #dc2626;  /* strong red */
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  text-decoration: line-through;
  font-weight: 600;
}

/* SAME TEXT */
.same {
  color: var(--text);
  opacity: 0.9;
}

/* EMPTY TEXT */
.diff-output span {
  opacity: 0.6;
  font-style: italic;
}

/* MOBILE */
@media(max-width:768px){
  .diff-inputs {
    grid-template-columns: 1fr;
  }
}


/* WRAPPER */
.color-wrapper {
  max-width: 700px;
  margin: auto;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* HEADER */
.color-header p {
  font-size: 13px;
  color: var(--muted);
}

/* PREVIEW */
.color-preview {
  height: 120px;
  border-radius: 16px;
  margin-top: 15px;

  display: flex;
  align-items: flex-end;
  justify-content: flex-end;

  padding: 10px;
  font-weight: bold;
  color: white;

  background: #3498db;
}

/* PICKER */
#colorPicker {
  width: 100%;
  height: 50px;
  margin-top: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

/* GROUP */
.color-group {
  margin-top: 15px;
}

/* INPUT ROW */
.input-row input {
  flex: 1;
  min-width: 0; /* 🔥 critical fix */
}

.rgb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
}

/* INPUT */
.color-group input {
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: var(--card);
  color: var(--text);
}

/* COPY BUTTON */
.copyBtn {
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;

  background: linear-gradient(135deg,#7b61ff,#00d4ff);
  color: white;
}

.copyBtn:hover {
  transform: scale(1.05);
}
.color-wrapper {
  position: relative;
  z-index: 1; /* prevent blocking */
}
.main {
  position: relative;
  z-index: 1;
}
.panel {
  position: relative;
  z-index: 1;
}
@media(max-width:768px){
  .rgb-grid {
    grid-template-columns: 1fr 1fr; /* 2 per row */
  }

  .rgb-grid input {
    width: 100%;
  }

  .rgb-grid button {
    grid-column: span 2; /* button full width */
  }
}
/* WRAPPER */
.pass-wrapper {
  max-width: 700px;
  margin: auto;
  padding: 25px;
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* OUTPUT */
.pass-output {
  display: flex;
  margin-top: 15px;
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
}

.pass-output input {
  flex: 1;
  padding: 14px;
  border: none;
  background: transparent;
  color: var(--text);
}

.pass-output button {
  padding: 0 15px;
  border: none;
  cursor: pointer;
  font-size: 18px;
}

/* STRENGTH */
.bar {
  height: 8px;
  background: #333;
  border-radius: 10px;
  margin-top: 15px;
}

#strengthFill {
  height: 100%;
  width: 0%;
  background: red;
  border-radius: 10px;
  transition: 0.4s;
}

.strength span {
  font-size: 12px;
  color: var(--muted);
}

/* LENGTH */
.length-box {
  margin-top: 20px;
}

.length-head {
  display: flex;
  justify-content: space-between;
}

.quick {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.quick button {
  padding: 6px 10px;
  border-radius: 20px;
  border: none;
  background: var(--card);
  cursor: pointer;
}

.quick .active {
  background: linear-gradient(135deg,#7b61ff,#00d4ff);
  color: white;
}

/* OPTIONS */
.options {
  margin-top: 20px;
  display: grid;
  gap: 12px;
}

.opt {
  display: flex;
  justify-content: space-between;
}

/* SWITCH */
.switch {
  position: relative;
  width: 40px;
  height: 20px;
}

.switch input {
  display: none;
}

.switch span {
  position: absolute;
  inset: 0;
  background: #444;
  border-radius: 20px;
  cursor: pointer;
}

.switch span::after {
  content: "";
  width: 14px;
  height: 14px;
  background: white;
  position: absolute;
  top: 3px;
  left: 4px;
  border-radius: 50%;
  transition: 0.3s;
}

.switch input:checked + span {
  background: #7b61ff;
}

.switch input:checked + span::after {
  transform: translateX(18px);
}

/* BUTTON */
.generate {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg,#7b61ff,#00d4ff);
  color: white;
  cursor: pointer;
}

/* DESTROY */
.destroy {
  font-size: 12px;
  color: orange;
  margin-top: 5px;
}
#overlay {
  display: none; /* 🔥 THIS LINE FIXES EVERYTHING */
}

/* ================= WHATSAPP TOOL FINAL ================= */

.wa-wrapper {
  max-width: 720px;
  margin: auto;
  padding: 30px;
  border-radius: 24px;

  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* TITLE */
.wa-wrapper h2 {
  font-size: 26px;
}

.sub {
  color: var(--muted);
  font-size: 14px;
}

/* GROUP */
.wa-group {
  margin-top: 20px;
}

.wa-group label {
  font-size: 13px;
  color: var(--muted);
}

/* PHONE ROW */
.wa-phone-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* INPUT BASE */
.wa-wrapper input,
.wa-wrapper textarea,
.wa-wrapper select {
  width: 100%;
  padding: 14px;
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,0.08);
  background: var(--bg);
  color: var(--text);

  font-size: 14px;
  transition: 0.2s;
}

/* 🔥 SELECT FIX (THIS FIXES YOUR MAIN ISSUE) */
.wa-wrapper select {
  appearance: none;
  cursor: pointer;
}

/* Fix dropdown options */
.wa-wrapper select option {
  background: #111;
  color: #fff;
}

/* Light mode dropdown fix */
body.light .wa-wrapper select option {
  background: #fff;
  color: #000;
}

/* FOCUS */
.wa-wrapper input:focus,
.wa-wrapper textarea:focus,
.wa-wrapper select:focus {
  border-color: #25D366;
  box-shadow: 0 0 0 2px rgba(37,211,102,0.25);
}

/* ERROR */
.error {
  border-color: #ef4444 !important;
}

/* BUTTON */
.wa-btn {
  width: 100%;
  margin-top: 25px;
  padding: 15px;
  border-radius: 14px;

  border: none;
  background: linear-gradient(135deg,#25D366,#128C7E);

  color: white;
  font-weight: 600;
  cursor: pointer;

  transition: 0.25s;
}

.wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37,211,102,0.4);
}

/* OUTPUT */
.wa-output {
  margin-top: 20px;
  padding: 15px;

  border-radius: 14px;
  border: 1px solid rgba(34,197,94,0.3);

  background: rgba(34,197,94,0.08);

  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;

  transition: 0.3s;
}

.wa-output.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* ACTION BUTTONS */
.wa-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.wa-actions button {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  cursor: pointer;

  transition: 0.2s;
}

#waCopy {
  background: #6366f1;
  color: white;
}

#waCopy.active {
  background: #22c55e;
}

#waOpen {
  background: #22c55e;
  color: white;
}

/* MOBILE */
@media(max-width:768px){
  .wa-phone-row {
    flex-direction: column;
  }
}


























.decision-wrapper{
  max-width:800px;
  margin:auto;
  padding:30px;
  border-radius:24px;
  background:linear-gradient(135deg,#020617,#0f172a);
  color:white;
  text-align:center;
  box-shadow:0 20px 80px rgba(0,0,0,0.6);
}

/* TABS */
.tabs{
  display:flex;
  gap:10px;
  margin:20px 0;
}
.tab{
  flex:1;
  padding:12px;
  border-radius:12px;
  border:none;
  cursor:pointer;
  background:#111827;
  color:white;
  transition:.3s;
}
.tab.active{
  background:linear-gradient(135deg,#7b61ff,#00d4ff);
}

/* PANELS */


/* COIN */
.coin{
  width:130px;
  height:130px;
  margin:30px auto;
  border-radius:50%;
  background:radial-gradient(circle,#ffd700,#f59e0b);
  display:flex;
  align-items:center;
  justify-content:center;
  perspective:1000px;
}

.coin-face{
  font-size:42px;
  font-weight:bold;
}

.flip{
  animation:coinFlip 1s cubic-bezier(.3,.7,.4,1.3);
}

@keyframes coinFlip{
  0%{transform:rotateY(0)}
  100%{transform:rotateY(1440deg)}
}

/* DICE */
.dice-box{
  position:relative;
  display:inline-block;
}

.dice{
  font-size:90px;
}

.dice-number{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  font-size:28px;
  font-weight:bold;
  color:#fff;
}

.roll{
  animation:diceRoll 0.6s ease;
}

@keyframes diceRoll{
  0%{transform:rotate(0)}
  50%{transform:rotate(200deg) scale(1.3)}
  100%{transform:rotate(360deg)}
}

/* BUTTON */
button{
  padding:12px 18px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:white;
  cursor:pointer;
  margin-top:10px;
  transition:.2s;
}
button:hover{
  transform:scale(1.05);
}

/* INPUT */
input{
  padding:10px;
  border-radius:10px;
  border:none;
  margin-top:10px;
  width:100%;
  max-width:100%;
}
/* DECISION INTERNAL PANELS */
.decision-panel{
  display:none;
}

.decision-panel.active{
  display:block;
}





/* ===== BMI TOOL ===== */

.bmi-wrapper {
  max-width: 900px;
  margin: auto;
  padding: 10px 0;
}

/* HERO */
.bmi-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #e91e8c, #ff6b35);
  padding: 24px 28px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.bmi-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 6px;
}

.bmi-hero h2 {
  font-size: 26px;
  color: #fff;
  margin-bottom: 4px;
}

.bmi-hero p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.bmi-hero-icon {
  font-size: 48px;
  opacity: 0.9;
}

/* UNIT ROW */
.bmi-unit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.bmi-unit-label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.bmi-unit-row select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa4b2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.bmi-unit-row select:focus {
  outline: none;
  border-color: #e91e8c;
  box-shadow: 0 0 0 3px rgba(233,30,140,0.15);
}

/* INPUT CARDS */
.bmi-inputs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.bmi-input-card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.bmi-input-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.bmi-input-icon {
  font-size: 20px;
}

.bmi-input-title {
  font-weight: 700;
  font-size: 15px;
  flex: 1;
}

.bmi-input-val {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #e91e8c, #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bmi-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0 10px;
}

.bmi-num {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin-top: 6px;
}

.bmi-num:focus {
  outline: none;
  border-color: #e91e8c;
  box-shadow: 0 0 0 3px rgba(233,30,140,0.15);
}

.bmi-ft-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* RESULTS */
.bmi-results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.bmi-result-main {
  border-radius: 20px;
  padding: 28px 24px;
  position: relative;
  background: linear-gradient(135deg, #00b09b, #00d4aa);
  transition: background 0.5s ease;
  overflow: hidden;
}

.bmi-result-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}

.bmi-result-number {
  font-size: 52px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.bmi-result-cat {
  font-size: 16px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  margin-top: 8px;
}

.bmi-result-emoji {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 32px;
  opacity: 0.8;
}

.bmi-result-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.bmi-side-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 20px;
  flex: 1;
  border: 1px solid rgba(255,255,255,0.06);
}

.bmi-side-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.bmi-side-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
}

.bmi-side-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* SCALE */
.bmi-scale-box {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.bmi-scale-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.bmi-scale-track {
  height: 16px;
  border-radius: 50px;
  background: linear-gradient(to right,
    #4fc3f7 0%,
    #66bb6a 22%,
    #66bb6a 48%,
    #ffa726 65%,
    #ef5350 82%,
    #b71c1c 100%
  );
  position: relative;
  margin-bottom: 10px;
}

.bmi-needle {
  position: absolute;
  top: -6px;
  width: 5px;
  height: 28px;
  background: var(--text);
  border-radius: 3px;
  transform: translateX(-50%);
  transition: left 0.6s cubic-bezier(.34,1.56,.64,1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.bmi-needle::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--text);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.bmi-scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.5;
}

.bmi-scale-ticks b {
  color: var(--text);
}

/* ADVICE */
.bmi-advice-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bmi-advice-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.bmi-advice-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.bmi-advice-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.bmi-advice-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* MOBILE */
@media(max-width:768px){
  .bmi-inputs-grid,
  .bmi-results,
  .bmi-unit-row {
    grid-template-columns: 1fr;
  }
  .bmi-result-number {
    font-size: 40px;
  }
}















/* ===== SLEEP TOOL ===== */

.sleep-wrapper {
  max-width: 900px;
  margin: auto;
  padding: 10px 0 20px;
}

/* HERO */
.sleep-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #e91e8c, #7b61ff);
  padding: 24px 28px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.sleep-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 6px;
}

.sleep-hero h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 4px;
}

.sleep-hero p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.sleep-hero-icon {
  font-size: 52px;
}

/* AGE BOX */
.sleep-age-box {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.sleep-age-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sleep-section-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.sleep-age-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, #e91e8c, #7b61ff);
  color: #fff;
  letter-spacing: 0.5px;
}

.sleep-age-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.sleep-age-row input[type=range] {
  flex: 1;
}

.sleep-num {
  width: 72px;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.sleep-num:focus {
  outline: none;
  border-color: #e91e8c;
  box-shadow: 0 0 0 3px rgba(233,30,140,0.15);
}

.sleep-age-info {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(123,97,255,0.08);
  border-left: 3px solid #7b61ff;
  margin-top: 6px;
}

/* MODE TOGGLE */
.sleep-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 16px;
  gap: 6px;
}

.sleep-mode-btn {
  padding: 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  transition: all 0.25s;
}

.sleep-mode-btn.active {
  background: linear-gradient(135deg, #e91e8c, #7b61ff);
  color: #fff;
  box-shadow: 0 4px 15px rgba(123,97,255,0.35);
}

/* TIME BOX */
.sleep-time-box {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 22px;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.06);
}

.sleep-time-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sleep-now-btn {
  padding: 7px 18px;
  border-radius: 20px;
  border: none;
  background: linear-gradient(135deg, #e91e8c, #7b61ff);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.sleep-now-btn:hover {
  transform: scale(1.05);
}

#sleepTimeInput {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: var(--bg);
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
  text-align: center;
}

#sleepTimeInput:focus {
  outline: none;
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123,97,255,0.2);
}

.sleep-fall-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.sleep-fall-val {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #e91e8c, #7b61ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sleep-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
}

/* RESULTS */
.sleep-results-label {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}

.sleep-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.sleep-card {
  border-radius: 18px;
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}

.sleep-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.sleep-card.best {
  background: linear-gradient(135deg, #00b09b, #00d4aa);
  border: none;
}

.sleep-card.good {
  background: linear-gradient(135deg, #7b61ff, #a78bfa);
  border: none;
}

.sleep-card.ok {
  background: var(--card);
}

.sleep-card-cycles {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.sleep-card.best .sleep-card-cycles,
.sleep-card.good .sleep-card-cycles {
  color: rgba(255,255,255,0.75);
}

.sleep-card.ok .sleep-card-cycles {
  color: var(--muted);
}

.sleep-card-time {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
}

.sleep-card.best .sleep-card-time,
.sleep-card.good .sleep-card-time {
  color: #fff;
}

.sleep-card.ok .sleep-card-time {
  color: var(--text);
}

.sleep-card-hours {
  font-size: 12px;
  margin-top: 5px;
  font-weight: 600;
}

.sleep-card.best .sleep-card-hours,
.sleep-card.good .sleep-card-hours {
  color: rgba(255,255,255,0.85);
}

.sleep-card.ok .sleep-card-hours {
  color: var(--muted);
}

.sleep-card-star {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 16px;
}

.sleep-card-quality {
  font-size: 11px;
  margin-top: 4px;
  font-weight: 700;
}

.sleep-card.best .sleep-card-quality { color: rgba(255,255,255,0.9); }
.sleep-card.good .sleep-card-quality { color: rgba(255,255,255,0.85); }
.sleep-card.ok .sleep-card-quality { color: var(--muted); }

/* TIPS */
.sleep-tips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sleep-tip-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.sleep-tip-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.sleep-tip-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sleep-tip-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* MOBILE */
@media(max-width:768px){
  .sleep-cards {
    grid-template-columns: 1fr 1fr;
  }
  .sleep-mode-row {
    grid-template-columns: 1fr;
  }
  .sleep-hero {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}



/* ===== EMI TOOL ===== */

.emi-wrapper {
  max-width: 960px;
  margin: auto;
  padding: 10px 0 30px;
}

.emi-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f97316, #dc2626);
  padding: 24px 28px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.emi-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 6px;
}

.emi-hero h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 4px;
}

.emi-hero p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.emi-hero-icon {
  font-size: 52px;
}

/* PARAMS */
.emi-params-box {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.06);
}

.emi-params-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.emi-params-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.emi-field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.emi-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.08);
  overflow: hidden;
  margin-bottom: 8px;
}

.emi-input-wrap input {
  flex: 1;
  padding: 11px 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  min-width: 0;
}

.emi-input-wrap input:focus {
  outline: none;
}

.emi-input-wrap:focus-within {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249,115,22,0.15);
}

.emi-prefix, .emi-suffix {
  padding: 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.emi-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* RESULTS */
.emi-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.emi-res-card {
  background: var(--card);
  border-radius: 16px;
  padding: 20px 18px;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s;
}

.emi-res-card:hover {
  transform: translateY(-3px);
}

.emi-res-card.orange {
  background: rgba(249,115,22,0.1);
  border-color: rgba(249,115,22,0.2);
}

.emi-res-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.emi-res-val {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}

.emi-res-val.red { color: #ef4444; }
.emi-res-val.orange { color: #f97316; }

.emi-res-words {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.emi-res-sub {
  font-size: 11px;
  color: #f97316;
  font-weight: 600;
}

/* EXPORT */
.emi-export-box {
  background: var(--card);
  border-radius: 16px;
  padding: 16px 20px;
  margin-bottom: 16px;
  border: 1px solid rgba(255,255,255,0.06);
}

.emi-export-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.emi-export-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.emi-export-row button {
  padding: 8px 16px;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,0.12);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.emi-export-row button:hover {
  border-color: #f97316;
  color: #f97316;
  transform: translateY(-1px);
}

/* TABS */
.emi-tabs {
  display: flex;
  gap: 6px;
  background: var(--card);
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.emi-tab {
  flex: 1;
  padding: 10px 8px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  transition: all 0.25s;
  white-space: nowrap;
}

.emi-tab.active {
  background: linear-gradient(135deg, #f97316, #dc2626);
  color: #fff;
  box-shadow: 0 4px 15px rgba(249,115,22,0.35);
}

/* TAB PANELS */
.emi-tab-panel {
  display: none;
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.06);
}

.emi-tab-panel.active {
  display: block;
}

.emi-chart-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* DONUT */
.emi-donut-row {
  display: flex;
  align-items: center;
  gap: 30px;
}

.emi-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.emi-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.emi-legend-dot {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.emi-legend-label { color: var(--muted); }
.emi-legend-val { font-weight: 700; font-size: 15px; }

/* TABLE */
.emi-amort-scroll {
  overflow-x: auto;
  border-radius: 12px;
}

.emi-table {
  width: 100%;
  border-collapse: separate; /* 🔥 important */
  border-spacing: 0;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
}

/* HEAD */
.emi-table th {
  padding: 12px;
  background: rgba(249,115,22,0.15);
  color: #f97316;
  font-weight: 700;
  text-align: right;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.emi-table th:last-child {
  border-right: none;
}

/* CELLS */
.emi-table td {
  padding: 12px;
  text-align: right;
  color: var(--text);

  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* REMOVE LAST BORDERS */
.emi-table td:last-child {
  border-right: none;
}

.emi-table tr:last-child td {
  border-bottom: none;
}

/* FIRST COLUMN */
.emi-table td:first-child,
.emi-table th:first-child {
  text-align: left;
  font-weight: 600;
}

/* HOVER */
.emi-table tr:hover td {
  background: rgba(249,115,22,0.08);
}

/* PREPAY */
.emi-prepay-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.emi-prepay-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.emi-prepay-card {
  background: var(--bg);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.emi-prepay-card .label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.emi-prepay-card .val {
  font-size: 20px;
  font-weight: 900;
}

.emi-prepay-card .val.green { color: #22c55e; }
.emi-prepay-card .val.red { color: #ef4444; }

/* CASHFLOW */
.emi-cashflow-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.emi-cf-card {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}

.emi-cf-card .cf-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}

.emi-cf-card .cf-val {
  font-size: 18px;
  font-weight: 800;
}

/* MOBILE */
@media(max-width:768px){
  .emi-params-grid { grid-template-columns: 1fr 1fr; }
  .emi-results-grid { grid-template-columns: 1fr 1fr; }
  .emi-prepay-results { grid-template-columns: 1fr; }
  .emi-cashflow-summary { grid-template-columns: 1fr 1fr; }
  .emi-donut-row { flex-direction: column; }
  .emi-tabs { gap: 4px; }
  .emi-tab { font-size: 11px; padding: 8px 6px; }
}
* {
  max-width: 100%;
}
textarea {
  width: 100%;
  max-width: 100%;
}
  .diff-wrapper,
  .char-wrapper,
  .color-wrapper,
  .pass-wrapper,
  .wa-wrapper{
    padding:15px;
  }




/* ===================================================
   AGE CALCULATOR TOOL
   =================================================== */

.age-wrapper {
  max-width: 900px;
  margin: auto;
  padding: 10px 0 30px;
}

.age-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #7b61ff, #e91e8c);
  padding: 24px 28px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.age-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 6px;
}

.age-hero h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 4px;
}

.age-hero p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.age-hero-icon {
  font-size: 52px;
}

/* INPUT BOX */
.age-input-box {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.06);
}

.age-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.age-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.age-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.age-optional {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.6;
  text-transform: none;
  letter-spacing: 0;
}

.age-input-box input[type="date"],
.age-input-box input[type="time"] {
  width: 100%;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s;
}

.age-input-box input:focus {
  outline: none;
  border-color: #7b61ff;
  box-shadow: 0 0 0 3px rgba(123,97,255,0.2);
}

.age-calc-btn {
  width: 100%;
  padding: 15px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, #7b61ff, #e91e8c);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
  letter-spacing: 0.5px;
}

.age-calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(123,97,255,0.4);
}

/* EXACT BOX */
.age-exact-box {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.age-exact-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: 4px;
}

/* BIG GRID */
.age-big-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.age-big-card {
  border-radius: 18px;
  padding: 20px 10px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.age-big-card.purple { background: linear-gradient(135deg, #7b61ff, #a78bfa); }
.age-big-card.blue   { background: linear-gradient(135deg, #00d4ff, #38bdf8); }
.age-big-card.pink   { background: linear-gradient(135deg, #e91e8c, #f472b6); }
.age-big-card.green  { background: linear-gradient(135deg, #00ffa3, #4ade80); }
.age-big-card.orange { background: linear-gradient(135deg, #f97316, #fbbf24); }
.age-big-card.red    { background: linear-gradient(135deg, #ef4444, #f87171); }

.age-big-num {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  transition: 0.2s;
}

.age-big-label {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* Pulsing seconds */
#ageSeconds {
  animation: secondPulse 1s ease-in-out infinite;
}

@keyframes secondPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* TOTALS */
.age-totals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.age-total-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s;
}

.age-total-card:hover {
  transform: translateY(-3px);
}

.age-total-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.age-total-num {
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #7b61ff, #e91e8c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.age-total-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* LIFE COUNTDOWN */
.age-life-box {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(123,97,255,0.2);
  position: relative;
  overflow: hidden;
}

.age-life-box::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(123,97,255,0.12), transparent 70%);
  border-radius: 50%;
}

.age-life-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.age-life-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
}

.age-life-sub {
  font-size: 12px;
  color: var(--muted);
}

.age-life-pct-badge {
  font-size: 24px;
  font-weight: 900;
  padding: 8px 18px;
  border-radius: 50px;
  background: linear-gradient(135deg, #7b61ff, #e91e8c);
  color: #fff;
  white-space: nowrap;
}

/* PROGRESS */
.age-life-track {
  height: 20px;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
  position: relative;
  overflow: visible;
  margin-bottom: 10px;
}

.age-life-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #7b61ff, #e91e8c, #f97316);
  transition: width 1s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}

.age-life-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  width: 28px;
  height: 28px;
  background: #fff;
  border-radius: 50%;
  border: 4px solid #7b61ff;
  box-shadow: 0 4px 12px rgba(123,97,255,0.5);
}

.age-life-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 18px;
  font-weight: 600;
}

/* REMAINING */
.age-remain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.age-remain-card {
  background: rgba(255,255,255,0.04);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.age-remain-num {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.age-remain-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 4px;
}

/* MESSAGE */
.age-life-message {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
}

/* BIRTHDAY */
.age-birthday-box {
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(251,191,36,0.08));
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.age-birthday-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.age-birthday-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.age-birthday-sub {
  font-size: 13px;
  color: var(--muted);
}

.age-birthday-count {
  margin-left: auto;
  font-size: 22px;
  font-weight: 900;
  color: #f97316;
  white-space: nowrap;
}

/* FUN FACTS */
.age-facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.age-fact-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.age-fact-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.age-fact-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.age-fact-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* MOBILE */
@media(max-width:768px) {
  .age-big-grid { grid-template-columns: repeat(3, 1fr); }
  .age-totals-grid { grid-template-columns: repeat(2, 1fr); }
  .age-remain-grid { grid-template-columns: repeat(2, 1fr); }
  .age-facts-grid { grid-template-columns: 1fr; }
  .age-input-row { grid-template-columns: 1fr; }
  .age-hero { flex-direction: column; gap: 10px; }
  .age-big-num { font-size: 22px; }
}

@media(max-width:480px) {
  .age-big-grid { grid-template-columns: repeat(2, 1fr); }
  .age-big-num { font-size: 26px; }
}


/* ===================================================
   DAYS BETWEEN TOOL
   =================================================== */

.day-wrapper {
  max-width: 900px;
  margin: auto;
  padding: 10px 0 30px;
}

.day-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  padding: 24px 28px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.day-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 6px;
}

.day-hero h2 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 4px;
}

.day-hero p {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
}

.day-hero-icon {
  font-size: 52px;
}

/* INPUT BOX */
.day-input-box {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.06);
}

.day-dates-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.day-date-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid rgba(255,255,255,0.06);
  transition: 0.2s;
}

.day-date-card.from {
  border-color: rgba(6,182,212,0.25);
}

.day-date-card.to {
  border-color: rgba(239,68,68,0.25);
}

.day-date-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.day-date-card input[type="date"],
.day-date-card input[type="time"] {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: 0.2s;
}

.day-date-card input:focus {
  outline: none;
  border-color: #06b6d4;
  box-shadow: 0 0 0 3px rgba(6,182,212,0.15);
}

.day-today-btn {
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  background: rgba(6,182,212,0.15);
  color: #06b6d4;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  align-self: flex-start;
}

.day-today-btn:hover {
  background: rgba(6,182,212,0.3);
}

/* SWAP */
.day-swap-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.day-swap-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.day-swap-btn:hover {
  transform: rotate(180deg) scale(1.1);
}

.day-arrow {
  font-size: 22px;
  color: var(--muted);
  opacity: 0.5;
}

/* PRESETS */
.day-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.day-presets-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.day-preset {
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(6,182,212,0.25);
  background: transparent;
  color: #06b6d4;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.day-preset:hover {
  background: rgba(6,182,212,0.15);
  transform: translateY(-1px);
}

/* RESULTS */
.day-results-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* HERO NUM */
.day-hero-result {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.day-hero-result::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.day-hero-num {
  font-size: 72px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.day-hero-label {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.day-hero-dates {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}

/* BREAKDOWN */
.day-breakdown-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.day-break-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 10px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform 0.2s;
}

.day-break-card:hover {
  transform: translateY(-2px);
}

.day-break-icon {
  font-size: 18px;
  margin-bottom: 6px;
}

.day-break-num {
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
}

.day-break-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 3px;
}

/* CALENDAR GRID */
.day-calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.day-cal-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
}

.day-cal-card.workdays {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.2);
}

.day-cal-card.weekends {
  background: rgba(249,115,22,0.08);
  border-color: rgba(249,115,22,0.2);
}

.day-cal-icon {
  font-size: 22px;
  margin-bottom: 8px;
}

.day-cal-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.day-cal-card.workdays .day-cal-num { color: #22c55e; }
.day-cal-card.weekends .day-cal-num { color: #f97316; }

.day-cal-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

/* PROGRESS BOX */
.day-progress-box {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.06);
}

.day-progress-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 16px;
}

.day-perspective-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.day-persp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.day-persp-icon { font-size: 18px; flex-shrink: 0; width: 24px; }
.day-persp-label { width: 160px; color: var(--muted); flex-shrink: 0; }
.day-persp-bar-wrap { flex: 1; background: rgba(255,255,255,0.05); border-radius: 50px; height: 8px; }
.day-persp-bar { height: 100%; border-radius: 50px; background: linear-gradient(90deg, #06b6d4, #3b82f6); transition: width 0.8s ease; }
.day-persp-val { font-weight: 700; width: 40px; text-align: right; flex-shrink: 0; }

/* TIMELINE */
.day-timeline-box {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.06);
}

.day-timeline-title {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
}

.day-timeline-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-timeline-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  font-size: 13px;
}

.day-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  flex-shrink: 0;
}

/* COPY */
.day-copy-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(6,182,212,0.25);
  transition: 0.2s;
}

.day-copy-btn:hover {
  background: rgba(6,182,212,0.1);
  border-color: #06b6d4;
}

/* MOBILE */
@media(max-width:768px) {
  .day-dates-row {
    grid-template-columns: 1fr;
  }
  .day-swap-col {
    flex-direction: row;
    justify-content: center;
  }
  .day-arrow { display: none; }
  .day-breakdown-grid { grid-template-columns: repeat(3, 1fr); }
  .day-calendar-grid { grid-template-columns: repeat(2, 1fr); }
  .day-hero-num { font-size: 52px; }
  .day-hero { flex-direction: column; gap: 10px; }
}

@media(max-width:480px) {
  .day-breakdown-grid { grid-template-columns: repeat(2, 1fr); }
}








/* ===================================================
   GROCERY PRICE COMPARATOR
   =================================================== */

.groc-wrapper {
  max-width: 960px;
  margin: auto;
  padding: 10px 0 30px;
}

.groc-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  padding: 24px 28px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.groc-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 6px;
}

.groc-hero h2 { font-size: 24px; color: #fff; margin-bottom: 4px; }
.groc-hero p { font-size: 13px; color: rgba(255,255,255,0.8); }
.groc-hero-icon { font-size: 52px; }

/* INSIGHTS */
.groc-insights {
  background: var(--card);
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 16px;
  border: 1px solid rgba(34,197,94,0.2);
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.groc-insight-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 130px;
  padding: 6px 16px;
}

.groc-insight-icon { font-size: 22px; }

.groc-insight-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.groc-insight-val {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  margin-top: 2px;
}

.groc-insight-val.green { color: #000000; }

.groc-insight-sep {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.08);
}

/* CONTROLS */
.groc-controls {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.groc-ctrl-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: block;
  margin-bottom: 8px;
}

.groc-unit-group select {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239aa4b2' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px;
}

.groc-add-btn {
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s;
  white-space: nowrap;
}

.groc-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(34,197,94,0.35);
}

/* PACKS GRID */
.groc-packs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

/* PACK CARD */
.groc-pack-card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  border: 2px solid rgba(255,255,255,0.06);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.groc-pack-card:hover {
  border-color: rgba(34,197,94,0.3);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
}

.groc-pack-card.best-deal {
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.15), 0 12px 30px rgba(34,197,94,0.2);
}

.groc-pack-card.best-deal::before {
  content: '🏆 BEST VALUE';
  position: absolute;
  top: 0; right: 0;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 0 16px 0 12px;
  letter-spacing: 1px;
}

.groc-pack-card.worst-deal {
  border-color: rgba(239,68,68,0.3);
}

.groc-pack-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.groc-pack-num {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.groc-pack-del {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: 0.2s;
}

.groc-pack-del:hover {
  background: rgba(239,68,68,0.25);
  transform: scale(1.1);
}

.groc-pack-name-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1.5px solid rgba(255,255,255,0.08);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  transition: 0.2s;
}

.groc-pack-name-input:focus {
  outline: none;
  border-color: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.12);
}

.groc-pack-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.groc-pack-field label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: block;
  margin-bottom: 6px;
}

.groc-pack-input-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.07);
  overflow: hidden;
  transition: 0.2s;
}

.groc-pack-input-wrap:focus-within {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34,197,94,0.1);
}

.groc-pack-input-wrap input {
  flex: 1;
  padding: 10px 10px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
}

.groc-pack-input-wrap input:focus { outline: none; }

.groc-inp-prefix, .groc-inp-suffix {
  padding: 0 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
  flex-shrink: 0;
}

.groc-pack-unit-select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,0.07);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
}

/* RATE DISPLAY */
.groc-pack-rate {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.15);
  font-size: 13px;
  font-weight: 700;
  color: #22c55e;
  text-align: center;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.groc-pack-rate.worst {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.15);
  color: #ef4444;
}

/* DISCOUNT BADGE */
.groc-discount-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  background: rgba(234,179,8,0.15);
  color: #eab308;
  border: 1px solid rgba(234,179,8,0.25);
  margin-top: 6px;
}

/* RESULTS BOX */
.groc-results-box {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.06);
}

.groc-results-title {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 16px;
}

/* TABLE */
.groc-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  margin-bottom: 22px;
}

.groc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}

.groc-table th {
  padding: 13px 14px;
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  font-weight: 700;
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.groc-table th:last-child { border-right: none; }

.groc-table td {
  padding: 13px 14px;
  border-right: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
  vertical-align: middle;
}

.groc-table td:last-child { border-right: none; }
.groc-table tr:last-child td { border-bottom: none; }
.groc-table tr:hover td { background: rgba(34,197,94,0.04); }

.groc-best-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.groc-worst-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(239,68,68,0.1);
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(239,68,68,0.2);
}

.groc-ok-badge {
  color: var(--muted);
  font-size: 12px;
}

/* BARS */
.groc-bars-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.groc-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.groc-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.groc-bar-name {
  width: 80px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.groc-bar-wrap {
  flex: 1;
  height: 28px;
  background: rgba(255,255,255,0.05);
  border-radius: 50px;
  overflow: hidden;
  position: relative;
}

.groc-bar-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(.34,1.56,.64,1);
  display: flex;
  align-items: center;
  padding-left: 12px;
}

.groc-bar-label {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}

.groc-bar-price {
  width: 90px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  text-align: right;
  flex-shrink: 0;
}

/* VERDICT */
.groc-verdict {
  padding: 20px 22px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(22,163,74,0.12), rgba(34,197,94,0.06));
  border: 1px solid rgba(34,197,94,0.2);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

/* MOBILE */
@media(max-width:768px) {
  .groc-hero { flex-direction: column; gap: 10px; }
  .groc-insight-sep { display: none; }
  .groc-packs-grid { grid-template-columns: 1fr; }
}


/* ===================================================
   INTEREST CALCULATOR
   =================================================== */

.int-wrapper {
  max-width: 960px;
  margin: auto;
  padding: 10px 0 30px;
}

.int-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  padding: 24px 28px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.int-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  display: block;
  margin-bottom: 6px;
}

.int-hero h2 { font-size: 24px; color: #fff; margin-bottom: 4px; }
.int-hero p { font-size: 13px; color: rgba(255,255,255,0.8); }
.int-hero-icon { font-size: 52px; }

/* MODE */
.int-mode-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--card);
  border-radius: 16px;
  padding: 6px;
  margin-bottom: 18px;
  gap: 6px;
}

.int-mode-btn {
  padding: 13px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  color: var(--muted);
  transition: all 0.25s;
}

.int-mode-btn.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 4px 15px rgba(99,102,241,0.35);
}

/* INPUTS */
.int-inputs-box {
  background: var(--card);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.int-field-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.int-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.int-field-val {
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

input[type=range] {
  width: 100%;
  accent-color: #6366f1;
  height: 6px;
  border-radius: 50px;
}

.int-range-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0 10px;
  font-size: 11px;
  color: var(--muted);
  gap: 8px;
}

.int-quick-btns {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.int-quick {
  padding: 5px 10px;
  border-radius: 20px;
  border: 1.5px solid rgba(99,102,241,0.3);
  background: transparent;
  color: #6366f1;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

.int-quick:hover, .int-quick.active-q {
  background: rgba(99,102,241,0.15);
}

.int-num-wrap {
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.08);
  overflow: hidden;
  transition: 0.2s;
}

.int-num-wrap:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.int-num-wrap input {
  flex: 1;
  padding: 12px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  min-width: 0;
}

.int-num-wrap input:focus { outline: none; }

.int-prefix, .int-suffix {
  padding: 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.int-hint {
  padding: 0 12px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* FREQ */
.int-freq-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.int-freq-btn {
  padding: 9px 6px;
  border-radius: 10px;
  border: 1.5px solid rgba(99,102,241,0.2);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}

.int-freq-btn.active, .int-freq-btn:hover {
  background: rgba(99,102,241,0.15);
  border-color: #6366f1;
  color: #6366f1;
}

/* RESULT CARDS */
.int-result-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.int-res-card {
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
  transition: transform 0.2s;
}

.int-res-card:hover { transform: translateY(-3px); }

.int-res-card.principal-card { background: var(--card); border: 1px solid rgba(255,255,255,0.07); }
.int-res-card.interest-card { background: linear-gradient(135deg, rgba(6,182,212,0.12), rgba(34,211,238,0.06)); border: 1px solid rgba(6,182,212,0.2); }
.int-res-card.total-card { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.int-res-card.growth-card { background: linear-gradient(135deg, rgba(34,197,94,0.12), rgba(74,222,128,0.06)); border: 1px solid rgba(34,197,94,0.2); }

.int-res-icon { font-size: 22px; margin-bottom: 8px; }

.int-res-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 8px;
}

.int-res-card.total-card .int-res-label { color: rgba(255,255,255,0.75); }

.int-res-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.int-res-card.total-card .int-res-val { color: #fff; }
.int-res-card.interest-card .int-res-val { color: #06b6d4; }
.int-res-card.growth-card .int-res-val { color: #22c55e; }

.int-res-words {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}

.int-res-card.total-card .int-res-words { color: rgba(255,255,255,0.65); }

/* FORMULA */
.int-formula-box {
  background: var(--card);
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 18px;
  border: 1px solid rgba(99,102,241,0.15);
  text-align: center;
}

.int-formula-title {
  font-size: 16px;
  font-weight: 800;
  color: #6366f1;
  margin-bottom: 10px;
  font-family: 'Courier New', monospace;
}

.int-formula-parts {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}

.int-formula-parts b { color: var(--text); }

/* CHART */
.int-chart-box {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.06);
}

.int-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.int-chart-title { font-size: 15px; font-weight: 800; }

.int-chart-legend {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  gap: 6px;
  flex-wrap: wrap;
}

.int-leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}

/* TABLE */
.int-table-box {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.06);
}

.int-table-title { font-size: 15px; font-weight: 800; margin-bottom: 14px; }

.int-table-scroll { overflow-x: auto; border-radius: 12px; }

.int-year-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  overflow: hidden;
}

.int-year-table th {
  padding: 12px 14px;
  background: rgba(99,102,241,0.12);
  color: #6366f1;
  font-weight: 700;
  text-align: right;
  border-right: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  white-space: nowrap;
}

.int-year-table th:first-child { text-align: left; }
.int-year-table th:last-child { border-right: none; }

.int-year-table td {
  padding: 11px 14px;
  text-align: right;
  border-right: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text);
}

.int-year-table td:first-child { text-align: left; font-weight: 700; }
.int-year-table td:last-child { border-right: none; }
.int-year-table tr:last-child td { border-bottom: none; }
.int-year-table tr:hover td { background: rgba(99,102,241,0.05); }
.int-year-table .highlight-row td { background: rgba(99,102,241,0.08); }

/* COMPARE */
.int-compare-box {
  background: var(--card);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.06);
}

.int-compare-title { font-size: 15px; font-weight: 800; margin-bottom: 16px; }

.int-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.int-compare-card {
  border-radius: 16px;
  padding: 20px;
  text-align: center;
}

.int-compare-card.si {
  background: rgba(6,182,212,0.1);
  border: 1px solid rgba(6,182,212,0.2);
}

.int-compare-card.ci {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
}

.int-compare-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.int-compare-total {
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 5px;
}

.int-compare-card.si .int-compare-total { color: #06b6d4; }
.int-compare-card.ci .int-compare-total { color: #6366f1; }

.int-compare-interest {
  font-size: 13px;
  color: var(--muted);
}

.int-compare-vs {
  font-size: 18px;
  font-weight: 900;
  color: var(--muted);
  text-align: center;
}

.int-compare-diff {
  padding: 14px;
  border-radius: 12px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #8b5cf6;
}

/* COPY */
.int-copy-btn {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid rgba(99,102,241,0.25);
  transition: 0.2s;
}

.int-copy-btn:hover {
  background: rgba(99,102,241,0.1);
  border-color: #6366f1;
}

/* MOBILE */
@media(max-width:768px) {
  .int-hero { flex-direction: column; gap: 10px; }
  .int-result-cards { grid-template-columns: 1fr 1fr; }
  .int-freq-grid { grid-template-columns: repeat(3, 1fr); }
  .int-compare-grid { grid-template-columns: 1fr; }
  .int-compare-vs { display: none; }
  .groc-pack-row { grid-template-columns: 1fr; }
}

@media(max-width:480px) {
  .int-result-cards { grid-template-columns: 1fr 1fr; }
  .int-res-val { font-size: 16px; }
}








.unit-container{
  max-width:500px;
  margin:auto;
  padding:20px;
}

.unit-container h2{
  text-align:center;
  margin-bottom:15px;
}

/* TABS */
.unit-tabs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:center;
  margin-bottom:15px;
}

.unit-tab{
  padding:8px 14px;
  border-radius:20px;
  background:#1e293b;
  color:#fff;
  cursor:pointer;
  font-size:13px;
}

.unit-tab.active{
  background:linear-gradient(135deg,#6366f1,#22c55e);
}

/* CARD */
.unit-card{
  background:#111827;
  padding:20px;
  border-radius:16px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* ROW */
.unit-row{
  display:flex;
  gap:10px;
}

.unit-row select{
  flex:1;
  padding:12px;
  border-radius:10px;
  border:none;
  background:#1e293b;
  color:white;
}

/* INPUT */
#fromValue{
  padding:12px;
  border-radius:10px;
  border:none;
  background:#1e293b;
  color:white;
}

/* BUTTONS */
#swapBtn{
  padding:10px;
  border:none;
  border-radius:10px;
  background:#374151;
  color:white;
  cursor:pointer;
}

#convertBtn{
  padding:12px;
  border:none;
  border-radius:12px;
  background:linear-gradient(135deg,#22c55e,#6366f1);
  color:white;
  font-weight:600;
  cursor:pointer;
}

/* RESULT */
.unit-result{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:20px;
  font-weight:bold;
  color:#22c55e;
}

#copyUnit{
  border:none;
  background:#374151;
  color:white;
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
}
/* ===================================================
   DECISION ROULETTE
   =================================================== */
.roul-wrapper { max-width: 960px; margin: auto; padding: 10px 0 30px; }
.roul-hero { display:flex; justify-content:space-between; align-items:center; background:linear-gradient(135deg,#7c3aed,#6d28d9); padding:24px 28px; border-radius:20px; margin-bottom:20px; }
.roul-tag { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.75); display:block; margin-bottom:6px; }
.roul-hero h2 { font-size:24px; color:#fff; margin-bottom:4px; }
.roul-hero p { font-size:13px; color:rgba(255,255,255,0.8); }
.roul-hero-icon { font-size:52px; }

.roul-main { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }

/* WHEEL */
.roul-wheel-area { display:flex; flex-direction:column; align-items:center; gap:0; background:var(--card); border-radius:20px; padding:24px; border:1px solid rgba(255,255,255,0.06); }
.roul-pointer { font-size:28px; color:#7b61ff; margin-bottom:4px; filter:drop-shadow(0 0 6px #7b61ff); }
.roul-canvas-wrap { position:relative; display:flex; align-items:center; justify-content:center; }
.roul-canvas-wrap canvas { border-radius:50%; box-shadow:0 8px 40px rgba(0,0,0,0.5); }
.roul-spin-btn {
  position:absolute;
  width:76px; height:76px;
  border-radius:50%;
  border:none;
  background:linear-gradient(135deg,#7b61ff,#a855f7);
  color:#fff;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  letter-spacing:1px;
  box-shadow:0 4px 20px rgba(123,97,255,0.6);
  transition:0.25s;
  z-index:10;
}
.roul-spin-btn:hover { transform:scale(1.08); box-shadow:0 6px 30px rgba(123,97,255,0.8); }
.roul-spin-btn:disabled { opacity:0.6; cursor:not-allowed; }

/* OPTIONS */
.roul-options-area { background:var(--card); border-radius:20px; padding:20px; border:1px solid rgba(255,255,255,0.06); display:flex; flex-direction:column; gap:12px; max-height:520px; overflow-y:auto; }
.roul-options-header { display:flex; justify-content:space-between; align-items:center; }
.roul-options-title { font-size:15px; font-weight:800; }
.roul-count { font-size:12px; padding:3px 10px; border-radius:20px; background:rgba(123,97,255,0.15); color:#7b61ff; font-weight:700; margin-left:6px; }
.roul-reset-btn { padding:7px 14px; border-radius:20px; border:1.5px solid rgba(239,68,68,0.3); background:transparent; color:#ef4444; font-size:12px; font-weight:700; cursor:pointer; transition:0.2s; }
.roul-reset-btn:hover { background:rgba(239,68,68,0.1); }

.roul-add-row { display:flex; gap:8px; }
.roul-add-row input { flex:1; padding:11px 14px; border-radius:12px; border:1.5px solid rgba(255,255,255,0.08); background:var(--bg); color:var(--text); font-size:14px; }
.roul-add-row input:focus { outline:none; border-color:#7b61ff; box-shadow:0 0 0 3px rgba(123,97,255,0.15); }
.roul-add-btn { width:42px; height:42px; border-radius:12px; border:none; background:linear-gradient(135deg,#7b61ff,#a855f7); color:#fff; font-size:20px; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; transition:0.2s; flex-shrink:0; }
.roul-add-btn:hover { transform:scale(1.08); }

.roul-list { display:flex; flex-direction:column; gap:8px; }
.roul-option-item { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px; background:var(--bg); border:1.5px solid rgba(255,255,255,0.06); transition:0.2s; }
.roul-option-item:hover { border-color:rgba(123,97,255,0.25); }
.roul-option-dot { width:14px; height:14px; border-radius:50%; flex-shrink:0; }
.roul-option-name { flex:1; font-size:14px; font-weight:600; color:var(--text); background:transparent; border:none; outline:none; }
.roul-option-del { width:28px; height:28px; border-radius:8px; border:none; background:rgba(239,68,68,0.1); color:#ef4444; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:14px; transition:0.15s; padding:0; flex-shrink:0; }
.roul-option-del:hover { background:rgba(239,68,68,0.2); }

.roul-templates-title, .roul-history-title { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.8px; }
.roul-templates { display:flex; flex-wrap:wrap; gap:7px; }
.roul-tmpl { padding:7px 13px; border-radius:20px; border:1.5px solid rgba(123,97,255,0.2); background:transparent; color:#a78bfa; font-size:12px; font-weight:600; cursor:pointer; transition:0.2s; }
.roul-tmpl:hover { background:rgba(123,97,255,0.1); }

.roul-history { display:flex; flex-wrap:wrap; gap:6px; }
.roul-hist-tag { padding:5px 12px; border-radius:20px; background:rgba(255,255,255,0.06); font-size:12px; font-weight:600; color:var(--muted); }

/* POPUP */
.roul-popup-overlay { position:fixed; inset:0; background:rgba(0,0,0,0.75); z-index:2000; display:none; align-items:center; justify-content:center; backdrop-filter:blur(4px); }
.roul-popup-overlay.show { display:flex; animation:fade .25s ease; }
.roul-popup { background:var(--card); border-radius:24px; padding:40px 36px; text-align:center; max-width:380px; width:90%; border:1px solid rgba(123,97,255,0.3); box-shadow:0 30px 80px rgba(0,0,0,0.6); animation:roulPopIn .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes roulPopIn { from{transform:scale(0.6) translateY(40px);opacity:0} to{transform:scale(1) translateY(0);opacity:1} }
.roul-popup-emoji { font-size:60px; margin-bottom:12px; animation:roulBounce 0.6s ease; }
@keyframes roulBounce { 0%,100%{transform:scale(1)} 40%{transform:scale(1.3)} }
.roul-popup-label { font-size:13px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:1px; margin-bottom:10px; }
.roul-popup-result { font-size:32px; font-weight:900; color:var(--text); margin-bottom:8px; background:linear-gradient(135deg,#7b61ff,#e91e8c); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.roul-popup-sub { font-size:13px; color:var(--muted); margin-bottom:24px; }
.roul-popup-btns { display:flex; gap:10px; }
.roul-popup-again { flex:1; padding:13px; border-radius:12px; border:none; background:rgba(123,97,255,0.15); color:#7b61ff; font-weight:700; cursor:pointer; transition:0.2s; }
.roul-popup-again:hover { background:rgba(123,97,255,0.25); }
.roul-popup-close { flex:1; padding:13px; border-radius:12px; border:none; background:linear-gradient(135deg,#7b61ff,#e91e8c); color:#fff; font-weight:700; cursor:pointer; transition:0.2s; }
.roul-popup-close:hover { transform:translateY(-1px); }

@media(max-width:768px) {
  .roul-main { grid-template-columns:1fr; }
  .roul-options-area { max-height:none; }
  .roul-hero { flex-direction:column; gap:10px; }
}

/* ===================================================
   INDIAN NUMBER FORMAT
   =================================================== */
.ind-wrapper { max-width:860px; margin:auto; padding:10px 0 30px; }
.ind-hero { display:flex; justify-content:space-between; align-items:center; background:linear-gradient(135deg,#f97316,#dc2626); padding:24px 28px; border-radius:20px; margin-bottom:18px; }
.ind-tag { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.75); display:block; margin-bottom:6px; }
.ind-hero h2 { font-size:24px; color:#fff; margin-bottom:4px; }
.ind-hero p { font-size:13px; color:rgba(255,255,255,0.8); }
.ind-hero-icon { font-size:52px; font-weight:900; color:#fff; opacity:0.9; }

.ind-mode-row { display:grid; grid-template-columns:1fr 1fr; background:var(--card); border-radius:16px; padding:5px; margin-bottom:16px; gap:5px; }
.ind-mode-btn { padding:12px; border-radius:12px; border:none; cursor:pointer; font-size:13px; font-weight:700; background:transparent; color:var(--muted); transition:all 0.25s; }
.ind-mode-btn.active { background:linear-gradient(135deg,#f97316,#dc2626); color:#fff; box-shadow:0 4px 15px rgba(249,115,22,0.35); }

.ind-input-box { background:var(--card); border-radius:18px; padding:22px; margin-bottom:16px; border:1px solid rgba(255,255,255,0.06); }
.ind-input-label { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.8px; margin-bottom:10px; }
.ind-input-wrap { display:flex; align-items:center; background:var(--bg); border-radius:14px; border:1.5px solid rgba(255,255,255,0.1); overflow:hidden; margin-bottom:12px; }
.ind-input-wrap:focus-within { border-color:#f97316; box-shadow:0 0 0 3px rgba(249,115,22,0.15); }
.ind-rupee { padding:0 14px; font-size:20px; font-weight:900; color:#f97316; flex-shrink:0; }
.ind-input-wrap input { flex:1; padding:14px 10px; border:none; background:transparent; color:var(--text); font-size:20px; font-weight:800; min-width:0; }
.ind-input-wrap input:focus { outline:none; }
.ind-clear-btn { padding:0 14px; border:none; background:transparent; color:var(--muted); font-size:18px; cursor:pointer; }

.ind-quick-row { display:flex; flex-wrap:wrap; gap:8px; }
.ind-q { padding:7px 14px; border-radius:20px; border:1.5px solid rgba(249,115,22,0.25); background:transparent; color:#f97316; font-size:12px; font-weight:700; cursor:pointer; transition:0.2s; }
.ind-q:hover { background:rgba(249,115,22,0.12); }

.ind-output-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:16px; }
.ind-out-card { background:var(--card); border-radius:16px; padding:18px 20px; border:1px solid rgba(255,255,255,0.06); position:relative; transition:transform 0.2s; }
.ind-out-card:hover { transform:translateY(-2px); }
.ind-out-card.main-card { background:linear-gradient(135deg,#f97316,#dc2626); }
.ind-out-card.words-card { background:rgba(99,102,241,0.1); border-color:rgba(99,102,241,0.2); }
.ind-out-card.intl-card { background:rgba(34,197,94,0.08); border-color:rgba(34,197,94,0.2); }
.ind-out-card.sci-card { background:rgba(6,182,212,0.08); border-color:rgba(6,182,212,0.2); }
.ind-out-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1px; color:var(--muted); margin-bottom:8px; }
.ind-out-card.main-card .ind-out-label { color:rgba(255,255,255,0.75); }
.ind-out-val { font-size:22px; font-weight:900; color:var(--text); font-variant-numeric:tabular-nums; line-height:1.2; padding-right:32px; }
.ind-out-card.main-card .ind-out-val { color:#fff; }
.ind-out-words { font-size:18px; font-weight:800; color:var(--text); padding-right:32px; line-height:1.4; }
.ind-copy-small { position:absolute; top:14px; right:14px; background:rgba(255,255,255,0.1); border:none; border-radius:8px; padding:5px 8px; cursor:pointer; font-size:14px; transition:0.2s; }
.ind-copy-small:hover { background:rgba(255,255,255,0.2); }

.ind-ref-box { background:var(--card); border-radius:18px; padding:22px; border:1px solid rgba(255,255,255,0.06); }
.ind-ref-title { font-size:14px; font-weight:800; margin-bottom:14px; }
.ind-ref-grid { display:flex; flex-direction:column; gap:8px; margin-bottom:14px; }
.ind-ref-row { display:grid; grid-template-columns:1fr 1fr 1fr; padding:9px 12px; border-radius:10px; font-size:13px; background:var(--bg); }
.ind-ref-row span:last-child { text-align:right; color:#06b6d4; font-weight:700; }
.ind-ref-row span:first-child { font-variant-numeric:tabular-nums; font-weight:700; color:#f97316; }
.ind-fact-box { padding:14px 16px; border-radius:12px; background:rgba(99,102,241,0.08); border:1px solid rgba(99,102,241,0.15); font-size:13px; color:var(--text); line-height:1.6; }

@media(max-width:768px) {
  .ind-output-grid { grid-template-columns:1fr; }
  .ind-hero { flex-direction:column; gap:10px; }
}

/* ===================================================
   FINANCIAL GOAL PLANNER
   =================================================== */
.plan-wrapper { max-width:960px; margin:auto; padding:10px 0 30px; }
.plan-hero { display:flex; justify-content:space-between; align-items:center; background:linear-gradient(135deg,#f59e0b,#f97316); padding:24px 28px; border-radius:20px; margin-bottom:18px; }
.plan-tag { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.75); display:block; margin-bottom:6px; }
.plan-hero h2 { font-size:24px; color:#fff; margin-bottom:4px; }
.plan-hero p { font-size:13px; color:rgba(255,255,255,0.8); }
.plan-hero-icon { font-size:52px; }

.plan-tab-row { display:grid; grid-template-columns:1fr 1fr; background:var(--card); border-radius:14px; padding:5px; margin-bottom:16px; gap:5px; }
.plan-tab { padding:12px; border-radius:10px; border:none; cursor:pointer; font-size:14px; font-weight:700; background:transparent; color:var(--muted); transition:0.25s; }
.plan-tab.active { background:linear-gradient(135deg,#f59e0b,#f97316); color:#fff; box-shadow:0 4px 15px rgba(245,158,11,0.35); }

.plan-panel { display:none; }
.plan-panel.active { display:block; }

.plan-fields-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.plan-field { background:var(--card); border-radius:16px; padding:18px; border:1px solid rgba(255,255,255,0.06); }
.plan-label { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:0.8px; display:block; margin-bottom:10px; }
.plan-inp-wrap { display:flex; align-items:center; background:var(--bg); border-radius:10px; border:1.5px solid rgba(255,255,255,0.08); overflow:hidden; margin-top:8px; }
.plan-inp-wrap:focus-within { border-color:#f59e0b; box-shadow:0 0 0 3px rgba(245,158,11,0.15); }
.plan-inp-wrap input { flex:1; padding:11px 10px; border:none; background:transparent; color:var(--text); font-size:15px; font-weight:700; min-width:0; }
.plan-inp-wrap input:focus { outline:none; }
.plan-pre { padding:0 10px; font-size:13px; font-weight:700; color:var(--muted); }
.plan-suf { padding:0 10px; font-size:13px; font-weight:700; color:var(--muted); }
.plan-hint { font-size:11px; color:var(--muted); margin-top:5px; }
.plan-range-labels { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); margin:5px 0 6px; }

.plan-inflation-toggle { background:var(--card); border-radius:14px; padding:16px 18px; border:1px solid rgba(255,255,255,0.06); margin-top:14px; }
.plan-toggle-label { display:flex; align-items:center; gap:12px; font-size:14px; font-weight:600; cursor:pointer; }
.plan-toggle-wrap { position:relative; width:44px; height:22px; flex-shrink:0; }
.plan-toggle-wrap input { display:none; }
.plan-toggle-slider { position:absolute; inset:0; background:#444; border-radius:50px; transition:0.3s; cursor:pointer; }
.plan-toggle-slider::after { content:''; position:absolute; width:16px; height:16px; background:#fff; border-radius:50%; top:3px; left:4px; transition:0.3s; }
.plan-toggle-wrap input:checked + .plan-toggle-slider { background:#f59e0b; }
.plan-toggle-wrap input:checked + .plan-toggle-slider::after { transform:translateX(20px); }

.plan-calc-btn { width:100%; margin-top:14px; padding:15px; border-radius:14px; border:none; background:linear-gradient(135deg,#f59e0b,#f97316); color:#fff; font-size:15px; font-weight:700; cursor:pointer; transition:0.25s; }
.plan-calc-btn:hover { transform:translateY(-2px); box-shadow:0 12px 30px rgba(245,158,11,0.4); }

.plan-result-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:16px; }
.plan-res-card { border-radius:18px; padding:20px 16px; text-align:center; transition:transform 0.2s; }
.plan-res-card:hover { transform:translateY(-3px); }
.plan-res-card.target-card { background:var(--card); border:1px solid rgba(255,255,255,0.07); }
.plan-res-card.corpus-card { background:linear-gradient(135deg,#f59e0b,#f97316); }
.plan-res-card.invested-card { background:rgba(6,182,212,0.1); border:1px solid rgba(6,182,212,0.2); }
.plan-res-card.gain-card { background:rgba(34,197,94,0.1); border:1px solid rgba(34,197,94,0.2); }
.plan-res-icon { font-size:22px; margin-bottom:8px; }
.plan-res-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; color:var(--muted); margin-bottom:8px; }
.plan-res-card.corpus-card .plan-res-label { color:rgba(255,255,255,0.75); }
.plan-res-val { font-size:19px; font-weight:900; color:var(--text); font-variant-numeric:tabular-nums; }
.plan-res-card.corpus-card .plan-res-val { color:#fff; }
.plan-res-card.invested-card .plan-res-val { color:#06b6d4; }
.plan-res-card.gain-card .plan-res-val { color:#22c55e; }
.plan-res-words { font-size:10px; color:var(--muted); margin-top:4px; }
.plan-res-card.corpus-card .plan-res-words { color:rgba(255,255,255,0.65); }

.plan-status-box { padding:16px 20px; border-radius:14px; margin-bottom:16px; font-size:14px; font-weight:600; line-height:1.6; }

.plan-chart-box { background:var(--card); border-radius:20px; padding:22px; margin-bottom:16px; border:1px solid rgba(255,255,255,0.06); }
.plan-chart-title { font-size:15px; font-weight:800; margin-bottom:16px; }

.plan-table-box { background:var(--card); border-radius:20px; padding:22px; margin-bottom:16px; border:1px solid rgba(255,255,255,0.06); }
.plan-table-title { font-size:15px; font-weight:800; margin-bottom:14px; }
.plan-table-scroll { overflow-x:auto; border-radius:12px; }
.plan-table { width:100%; border-collapse:separate; border-spacing:0; font-size:13px; border:1px solid rgba(255,255,255,0.08); border-radius:12px; overflow:hidden; }
.plan-table th { padding:12px 14px; background:rgba(245,158,11,0.12); color:#f59e0b; font-weight:700; text-align:right; border-right:1px solid rgba(255,255,255,0.05); border-bottom:1px solid rgba(255,255,255,0.08); white-space:nowrap; }
.plan-table th:first-child { text-align:left; }
.plan-table th:last-child { border-right:none; }
.plan-table td { padding:11px 14px; text-align:right; border-right:1px solid rgba(255,255,255,0.04); border-bottom:1px solid rgba(255,255,255,0.04); color:var(--text); }
.plan-table td:first-child { text-align:left; font-weight:700; }
.plan-table td:last-child { border-right:none; }
.plan-table tr:last-child td { border-bottom:none; }
.plan-table tr:hover td { background:rgba(245,158,11,0.05); }
.plan-table .goal-row td { background:rgba(34,197,94,0.08); }

.plan-copy-btn { width:100%; padding:14px; border-radius:14px; border:none; background:var(--card); color:var(--text); font-size:14px; font-weight:700; cursor:pointer; border:1.5px solid rgba(245,158,11,0.25); transition:0.2s; }
.plan-copy-btn:hover { background:rgba(245,158,11,0.1); border-color:#f59e0b; }

@media(max-width:768px) {
  .plan-fields-grid { grid-template-columns:1fr; }
  .plan-result-grid { grid-template-columns:1fr 1fr; }
  .plan-hero { flex-direction:column; gap:10px; }
}

/* ===================================================
   ROI CALCULATOR
   =================================================== */
.roi-wrapper { max-width:960px; margin:auto; padding:10px 0 30px; }
.roi-hero { display:flex; justify-content:space-between; align-items:center; background:linear-gradient(135deg,#22c55e,#16a34a); padding:24px 28px; border-radius:20px; margin-bottom:18px; }
.roi-tag { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.75); display:block; margin-bottom:6px; }
.roi-hero h2 { font-size:24px; color:#fff; margin-bottom:4px; }
.roi-hero p { font-size:13px; color:rgba(255,255,255,0.8); }
.roi-hero-icon { font-size:52px; }

.roi-mode-row { display:grid; grid-template-columns:1fr 1fr; background:var(--card); border-radius:14px; padding:5px; margin-bottom:16px; gap:5px; }
.roi-mode-btn { padding:12px; border-radius:10px; border:none; cursor:pointer; font-size:14px; font-weight:700; background:transparent; color:var(--muted); transition:0.25s; }
.roi-mode-btn.active { background:linear-gradient(135deg,#22c55e,#16a34a); color:#fff; box-shadow:0 4px 15px rgba(34,197,94,0.35); }

.roi-inputs-box { background:var(--card); border-radius:20px; padding:24px; margin-bottom:18px; border:1px solid rgba(255,255,255,0.06); display:flex; flex-direction:column; gap:22px; }
.roi-field-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.roi-label { font-size:13px; font-weight:700; color:var(--text); }
.roi-field-val { font-size:20px; font-weight:900; background:linear-gradient(135deg,#22c55e,#16a34a); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.roi-range-row { display:flex; justify-content:space-between; align-items:center; margin:6px 0 10px; font-size:11px; color:var(--muted); gap:8px; }
.roi-quick-btns { display:flex; gap:5px; flex-wrap:wrap; justify-content:center; }
.roi-q { padding:5px 9px; border-radius:20px; border:1.5px solid rgba(34,197,94,0.3); background:transparent; color:#22c55e; font-size:11px; font-weight:700; cursor:pointer; transition:0.15s; white-space:nowrap; }
.roi-q:hover { background:rgba(34,197,94,0.1); }
.roi-num-wrap { display:flex; align-items:center; background:var(--bg); border-radius:12px; border:1.5px solid rgba(255,255,255,0.08); overflow:hidden; transition:0.2s; }
.roi-num-wrap:focus-within { border-color:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,0.15); }
.roi-num-wrap input { flex:1; padding:12px; border:none; background:transparent; color:var(--text); font-size:16px; font-weight:800; min-width:0; }
.roi-num-wrap input:focus { outline:none; }
.roi-pre, .roi-suf { padding:0 12px; font-size:14px; font-weight:700; color:var(--muted); }
.roi-hint { padding:0 12px; font-size:11px; color:var(--muted); }

.roi-result-hero { background:linear-gradient(135deg,#22c55e,#16a34a); border-radius:20px; padding:28px; display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
.roi-res-label { font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:1.2px; color:rgba(255,255,255,0.75); margin-bottom:8px; }
.roi-res-big { font-size:40px; font-weight:900; color:#fff; line-height:1; font-variant-numeric:tabular-nums; }
.roi-res-words { font-size:14px; color:rgba(255,255,255,0.8); margin-top:6px; }
.roi-multiplier { font-size:44px; font-weight:900; color:#fff; text-align:center; line-height:1; }
.roi-multi-label { font-size:12px; color:rgba(255,255,255,0.75); text-align:center; font-weight:600; }

.roi-stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:16px; }
.roi-stat-card { background:var(--card); border-radius:16px; padding:18px; text-align:center; border:1px solid rgba(255,255,255,0.06); transition:transform 0.2s; }
.roi-stat-card:hover { transform:translateY(-3px); }
.roi-stat-card.profit-card { background:rgba(34,197,94,0.1); border-color:rgba(34,197,94,0.2); }
.roi-stat-card.roi-card { background:rgba(99,102,241,0.1); border-color:rgba(99,102,241,0.2); }
.roi-stat-card.cagr-card { background:rgba(245,158,11,0.1); border-color:rgba(245,158,11,0.2); }
.roi-stat-icon { font-size:22px; margin-bottom:8px; }
.roi-stat-val { font-size:18px; font-weight:900; color:var(--text); font-variant-numeric:tabular-nums; }
.roi-stat-card.profit-card .roi-stat-val { color:#22c55e; }
.roi-stat-card.roi-card .roi-stat-val { color:#6366f1; }
.roi-stat-card.cagr-card .roi-stat-val { color:#f59e0b; }
.roi-stat-label { font-size:11px; color:var(--muted); font-weight:600; margin-top:4px; text-transform:uppercase; letter-spacing:0.6px; }

.roi-funny-box { padding:18px 20px; border-radius:16px; background:rgba(123,97,255,0.08); border:1px solid rgba(123,97,255,0.2); font-size:14px; font-weight:600; line-height:1.6; margin-bottom:16px; color:#a78bfa; }

.roi-chart-box { background:var(--card); border-radius:20px; padding:22px; margin-bottom:16px; border:1px solid rgba(255,255,255,0.06); }
.roi-chart-title { font-size:15px; font-weight:800; margin-bottom:16px; }

.roi-compare-box { background:var(--card); border-radius:20px; padding:22px; margin-bottom:16px; border:1px solid rgba(255,255,255,0.06); }
.roi-compare-title { font-size:15px; font-weight:800; margin-bottom:14px; }
.roi-compare-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.roi-comp-card { background:var(--bg); border-radius:14px; padding:16px; text-align:center; border:1px solid rgba(255,255,255,0.06); }
.roi-comp-card.current { border-color:rgba(34,197,94,0.3); background:rgba(34,197,94,0.06); }
.roi-comp-label { font-size:11px; color:var(--muted); font-weight:700; text-transform:uppercase; letter-spacing:0.6px; margin-bottom:8px; }
.roi-comp-val { font-size:17px; font-weight:900; color:var(--text); }
.roi-comp-card.current .roi-comp-val { color:#22c55e; }
.roi-comp-sub { font-size:11px; color:var(--muted); margin-top:4px; }

.roi-copy-btn { width:100%; padding:14px; border-radius:14px; border:none; background:var(--card); color:var(--text); font-size:14px; font-weight:700; cursor:pointer; border:1.5px solid rgba(34,197,94,0.25); transition:0.2s; }
.roi-copy-btn:hover { background:rgba(34,197,94,0.1); border-color:#22c55e; }

@media(max-width:768px) {
  .roi-stats-grid { grid-template-columns:1fr 1fr; }
  .roi-compare-grid { grid-template-columns:1fr; }
  .roi-result-hero { flex-direction:column; gap:16px; text-align:center; }
  .roi-hero { flex-direction:column; gap:10px; }
}

/* ===================================================
   DISCOUNT CALCULATOR
   =================================================== */
.disc-wrapper { max-width:860px; margin:auto; padding:10px 0 30px; }
.disc-hero { display:flex; justify-content:space-between; align-items:center; background:linear-gradient(135deg,#ec4899,#f97316); padding:24px 28px; border-radius:20px; margin-bottom:18px; }
.disc-tag { font-size:11px; font-weight:700; letter-spacing:1.5px; text-transform:uppercase; color:rgba(255,255,255,0.75); display:block; margin-bottom:6px; }
.disc-hero h2 { font-size:24px; color:#fff; margin-bottom:4px; }
.disc-hero p { font-size:13px; color:rgba(255,255,255,0.8); }
.disc-hero-icon { font-size:52px; }

.disc-price-box { background:var(--card); border-radius:18px; padding:22px; margin-bottom:16px; border:1px solid rgba(255,255,255,0.06); }
.disc-price-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; }
.disc-label { font-size:13px; font-weight:700; color:var(--text); }
.disc-price-display { font-size:22px; font-weight:900; background:linear-gradient(135deg,#ec4899,#f97316); -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text; }
.disc-range-row { display:flex; justify-content:space-between; font-size:11px; color:var(--muted); margin:5px 0 10px; }
.disc-inp-wrap { display:flex; align-items:center; background:var(--bg); border-radius:12px; border:1.5px solid rgba(255,255,255,0.08); overflow:hidden; margin-bottom:10px; }
.disc-inp-wrap:focus-within { border-color:#ec4899; box-shadow:0 0 0 3px rgba(236,72,153,0.15); }
.disc-inp-wrap input { flex:1; padding:12px; border:none; background:transparent; color:var(--text); font-size:18px; font-weight:800; min-width:0; }
.disc-inp-wrap input:focus { outline:none; }
.disc-pre { padding:0 12px; font-size:16px; font-weight:700; color:var(--muted); }
.disc-quick-row { display:flex; flex-wrap:wrap; gap:8px; }
.disc-q { padding:7px 14px; border-radius:20px; border:1.5px solid rgba(236,72,153,0.25); background:transparent; color:#ec4899; font-size:12px; font-weight:700; cursor:pointer; transition:0.2s; }
.disc-q:hover { background:rgba(236,72,153,0.1); }

.disc-list-box { background:var(--card); border-radius:18px; padding:22px; margin-bottom:16px; border:1px solid rgba(255,255,255,0.06); }
.disc-list-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.disc-add-btn { padding:8px 16px; border-radius:20px; border:none; background:linear-gradient(135deg,#ec4899,#f97316); color:#fff; font-size:13px; font-weight:700; cursor:pointer; transition:0.2s; }
.disc-add-btn:hover { transform:translateY(-1px); box-shadow:0 6px 15px rgba(236,72,153,0.35); }

.disc-discount-item { display:flex; align-items:center; gap:10px; padding:12px 14px; background:var(--bg); border-radius:12px; margin-bottom:8px; border:1.5px solid rgba(255,255,255,0.06); }
.disc-item-label { font-size:12px; font-weight:700; color:#ec4899; width:70px; flex-shrink:0; }
.disc-item-tabs { display:flex; border-radius:8px; overflow:hidden; border:1px solid rgba(255,255,255,0.1); }
.disc-item-tab { padding:6px 12px; font-size:11px; font-weight:700; cursor:pointer; background:transparent; border:none; color:var(--muted); transition:0.2s; }
.disc-item-tab.active { background:linear-gradient(135deg,#ec4899,#f97316); color:#fff; }
.disc-item-inp { flex:1; padding:8px 12px; border-radius:10px; border:1.5px solid rgba(255,255,255,0.08); background:var(--card); color:var(--text); font-size:15px; font-weight:700; min-width:0; }
.disc-item-inp:focus { outline:none; border-color:#ec4899; }
.disc-item-unit { font-size:14px; font-weight:700; color:var(--muted); width:20px; flex-shrink:0; }
.disc-item-del { width:32px; height:32px; border-radius:8px; border:none; background:rgba(239,68,68,0.1); color:#ef4444; cursor:pointer; display:flex; align-items:center; justify-content:center; padding:0; font-size:16px; transition:0.2s; }
.disc-item-del:hover { background:rgba(239,68,68,0.2); }

.disc-result-cards { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:16px; }
.disc-res-big { background:linear-gradient(135deg,#22c55e,#16a34a); border-radius:18px; padding:26px; display:flex; align-items:center; justify-content:space-between; }
.disc-res-big-label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:1.5px; color:rgba(255,255,255,0.75); margin-bottom:8px; }
.disc-res-big-val { font-size:38px; font-weight:900; color:#fff; font-variant-numeric:tabular-nums; }
.disc-copy-price { background:rgba(255,255,255,0.15); border:none; border-radius:10px; padding:8px 12px; color:#fff; cursor:pointer; font-size:18px; transition:0.2s; }
.disc-copy-price:hover { background:rgba(255,255,255,0.25); }
.disc-res-saves { display:flex; flex-direction:column; gap:12px; }
.disc-res-card { border-radius:16px; padding:18px; display:flex; align-items:center; gap:14px; }
.disc-res-card.save-card { background:rgba(239,68,68,0.1); border:1px solid rgba(239,68,68,0.2); }
.disc-res-card.orig-card { background:var(--card); border:1px solid rgba(255,255,255,0.06); }
.disc-res-icon { font-size:22px; flex-shrink:0; }
.disc-res-val { font-size:20px; font-weight:900; color:var(--text); }
.disc-res-card.save-card .disc-res-val { color:#ef4444; }
.disc-res-label { font-size:11px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:0.6px; margin-top:2px; }
.disc-save-pct { font-size:13px; font-weight:800; color:#ef4444; margin-top:4px; }

.disc-breakdown-box { background:var(--card); border-radius:18px; padding:22px; margin-bottom:14px; border:1px solid rgba(255,255,255,0.06); }
.disc-breakdown-title { font-size:14px; font-weight:800; margin-bottom:14px; }
.disc-break-row { display:flex; justify-content:space-between; padding:10px 14px; border-radius:10px; font-size:13px; margin-bottom:6px; }
.disc-break-row.original { background:rgba(255,255,255,0.04); }
.disc-break-row.discount { background:rgba(239,68,68,0.06); }
.disc-break-row.final { background:linear-gradient(135deg,rgba(34,197,94,0.1),rgba(22,163,74,0.06)); border:1px solid rgba(34,197,94,0.2); font-weight:800; }
.disc-break-label { font-weight:600; }
.disc-break-val { font-weight:800; }
.disc-break-row.discount .disc-break-val { color:#ef4444; }
.disc-break-row.final .disc-break-val { color:#22c55e; }

.disc-tip-box { padding:16px 18px; border-radius:14px; background:rgba(99,102,241,0.08); border:1px solid rgba(99,102,241,0.15); display:flex; align-items:flex-start; gap:12px; font-size:13px; line-height:1.6; color:var(--text); }
.disc-tip-icon { font-size:20px; flex-shrink:0; }

@media(max-width:768px) {
  .disc-result-cards { grid-template-columns:1fr; }
  .disc-hero { flex-direction:column; gap:10px; }
  .disc-discount-item { flex-wrap:wrap; }
}
button:hover {
  transform: translateY(-2px) scale(1.02);
}
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}




/* ===== ABOUT SECTION ===== */

.about-wrapper {
  max-width: 900px;
  margin: auto;
  padding: 25px;
  border-radius: 24px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);

  border: 1px solid rgba(255,255,255,0.08);
}

/* HERO */
.about-hero {
  display: flex;
  align-items: center;
  gap: 15px;
}

.about-logo {
  width: 100px;
  height: 60px;
  border-radius: 5px;
}

.about-tag {
  font-size: 13px;
  color: var(--muted);
}

/* CONTENT */
.about-content {
  margin-top: 20px;
  line-height: 1.7;
  color: var(--muted);
}

/* CREATOR */
.about-creator {
  margin-top: 25px;
  padding: 15px;
  border-radius: 14px;

  background: rgba(123,97,255,0.08);
  border: 1px solid rgba(123,97,255,0.2);
}

/* LINK BOX */
.about-link-box {
  margin-top: 25px;
  padding: 18px;
  border-radius: 16px;

  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.25);
}

/* LINK */
.link-container {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.link-container input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: var(--card);
  color: var(--text);
}

.link-container button {
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: white;
  cursor: pointer;
}

/* MOBILE 🔥 */
@media(max-width:768px){
  .about-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .link-container {
    flex-direction: column;
  }
}
/* ── FIXED SIDEBAR (DESKTOP) ─────────────────────── */
@media(min-width:769px){
  .sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    height: calc(100vh - 65px);
    width: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.12) transparent;
  }
  .sidebar::-webkit-scrollbar { width: 4px; }
  .sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius:4px; }
  .layout { margin-left: 260px; }
  .main { min-height: calc(100vh - 65px); }
}

/* ── SIDEBAR ITEM WITH FAV BUTTON ────────────────── */
.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
  transition: transform 0.15s, background 0.15s;
}
.item:hover { transform: translateX(3px); }
.item.active { border: 2px solid #7b61ff; color: #7b61ff; background: rgba(123,97,255,0.08); }
.item-label {
  flex: 1; min-width: 0; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px;
}
.fav-btn {
  width: 22px; height: 22px; border: none; background: transparent;
  cursor: pointer; font-size: 15px; line-height: 1; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  opacity: 0; transition: opacity 0.15s, transform 0.2s, background 0.15s;
  padding: 0; color: var(--muted);
}
.fav-btn:hover { transform: scale(1.25) !important; background: rgba(255,255,255,0.08); }
.item:hover .fav-btn, .item.active .fav-btn { opacity: 1; }
.fav-btn.active { opacity: 1; color: #f59e0b; }




/* ── ACTIVE TOOL IN HEADER ───────────────────────── */
.active-tool-name {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  opacity: 0; transition: opacity 0.3s; white-space: nowrap;
  max-width: 200px; overflow: hidden; text-overflow: ellipsis;
}
.active-tool-name.visible { opacity: 1; }

/* ── SEARCH KEYBOARD HINT ────────────────────────── */
.search-wrapper { position: relative; }
.search-kbd {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 10px; padding: 2px 6px; border-radius: 5px;
  background: rgba(255,255,255,0.08); color: var(--muted);
  pointer-events: none; font-weight: 700;
}
body.light .search-kbd { background: rgba(0,0,0,0.08); }

/* ── SCROLL TO TOP ───────────────────────────────── */
#scrollTopBtn {
  position: fixed; bottom: 24px; right: 24px; width: 40px; height: 40px;
  border-radius: 50%; border: none;
  background: linear-gradient(135deg, #7b61ff, #00d4ff);
  color: white; font-size: 18px; cursor: pointer; z-index: 999;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(123,97,255,0.4);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
#scrollTopBtn.visible { opacity: 1; transform: translateY(0); pointer-events: all; }

/* ── CATEGORY COLLAPSE ───────────────────────────── */
.cat-title { cursor: pointer; user-select: none; transition: opacity 0.2s; }
.cat-title:hover { opacity: 0.85; }
.cat-chevron { font-size: 10px; transition: transform 0.25s; margin-left: 4px; }
.cat-title.collapsed .cat-chevron { transform: rotate(-90deg); }
.category-items {
  overflow: hidden; transition: max-height 0.3s ease, opacity 0.25s;
  max-height: 1000px; opacity: 1;
}
.category-items.collapsed { max-height: 0 !important; opacity: 0; }
.tool-count {
  font-size: 10px; padding: 1px 6px; border-radius: 10px;
  background: rgba(255,255,255,0.18); font-weight: 700; margin-left: 4px;
}

/* ── MOBILE ──────────────────────────────────────── */
@media(max-width:768px){
  .fav-btn { opacity: 1; }
  #scrollTopBtn { bottom: 16px; right: 16px; }
  .layout { margin-left: 0 !important; }
}
/* BASE ITEM */
.item {
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  padding: 10px 14px;
  margin: 6px 0;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: 0.25s ease;
}

/* HOVER */
.item:hover {
  border-color: #6366f1;
  transform: translateX(4px);
}

/* ACTIVE TOOL */
.item.active {
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: #fff;
  border-color: transparent;
}

/* STAR */
.fav-star {
  font-size: 14px;
  opacity: 0.6;
  transition: 0.2s;
}

/* FAVORITED */
.item.favorited {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
  border-color: transparent;
}

.item.favorited .fav-star {
  content: "★";
  opacity: 1;
}

/* SMOOTH CLICK FEEDBACK */
.item:active {
  transform: scale(0.96);
}
/* FAVORITE STAR */
.fav-star {
  cursor: pointer;
  font-size: 14px;
  opacity: 0.6;
  transition: 0.2s;
}

.fav-star:hover {
  transform: scale(1.2);
}

/* FAVORITED STATE */
.item.favorited {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff;
}

/* HERO FAVORITES */
.hero-favs {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-fav-btn {
  padding: 8px 14px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  transition: 0.2s;
}

.hero-fav-btn:hover {
  background: #6366f1;
  color: #fff;
}

.cg-wrapper {
  max-width: 720px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Inter', sans-serif;
}

/* HEADINGS */
.cg-wrapper h2 {
  text-align: center;
  color: #ff4d6d;
}

.cg-wrapper .sub {
  text-align: center;
  color: #555;
}

/* INPUT */
.cg-wrapper textarea {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: 2px solid #eee;
  background: #ffffff;
  color: #111;
  font-size: 14px;
  transition: 0.2s;
}

.cg-wrapper textarea:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
  outline: none;
}

/* BUTTON */
.generate {
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff4d6d, #6c63ff);
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.generate:hover {
  transform: scale(1.03);
}

/* OUTPUT */
.cg-output {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cg-box {
  background: #f9f9ff;
  padding: 16px;
  border-radius: 16px;
  border-left: 6px solid #6c63ff;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cg-box:nth-child(1) {
  border-left-color: #ff4d6d;
}

.cg-box:nth-child(2) {
  border-left-color: #00c9a7;
}

.cg-box:nth-child(3) {
  border-left-color: #ffc300;
}

.cg-box h3 {
  margin-bottom: 8px;
}

/* COPY BUTTON */
.cg-box button {
  margin-top: 10px;
  padding: 8px 12px;
  border: none;
  border-radius: 10px;
  background: #6c63ff;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.cg-box button:hover {
  background: #ff4d6d;
}
.about-feedback{
  margin-top:20px;
  padding:16px;
  border-radius:14px;
  background:rgba(255,255,255,0.05);
}

.about-small{
  font-size:12px;
  opacity:0.7;
  margin-top:8px;
}
.ai-btn{
  width:40px;
  height:40px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  font-size:18px;

  background:linear-gradient(135deg,#7b61ff,#00d4ff);
  color:white;

  box-shadow:0 10px 25px rgba(0,0,0,0.4);
  transition:0.3s;
}

.ai-btn:hover{
  transform:scale(1.1) rotate(10deg);
}
.ai-wrapper{
  max-width:800px;
  margin:auto;
  padding:25px;
  border-radius:20px;

  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(20px);
}

#aiInput{
  width:100%;
  height:120px;
  margin-top:10px;
  padding:12px;
  border-radius:12px;
  border:none;
}

#aiOutput{
  margin-top:15px;
  padding:15px;
  border-radius:12px;
  background:var(--card);
}
 .qr-wrapper{
  max-width:800px;
  margin:auto;
  padding:25px;
  border-radius:20px;
  background:rgba(255,255,255,0.05);
}




.big-btn{
  width:100%;
  padding:15px;
  margin-top:10px;
  background:linear-gradient(135deg,#7b61ff,#00d4ff);
  border:none;
  border-radius:12px;
  color:white;
  font-weight:600;
}

.huge-btn{
  width:100%;
  padding:18px;
  margin-top:20px;
  font-size:18px;
  background:linear-gradient(135deg,#ff6a00,#ff00ff);
  border:none;
  border-radius:14px;
  color:white;
}
.sports-wrapper{
  max-width:800px;
  margin:auto;
  padding:25px;
}

.sport-box{
  margin-top:25px;
  padding:20px;
  border-radius:18px;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(20px);
}

.calc{
  margin-top:15px;
}

.calc input{
  width:100%;
  padding:12px;
  margin:6px 0;
  border-radius:10px;
  border:none;
  background:rgba(255,255,255,0.08);
  color:white;
}

.calc button{
  width:100%;
  padding:12px;
  border:none;
  border-radius:10px;
  margin-top:5px;
  background:linear-gradient(135deg,#7b61ff,#00d4ff);
  color:white;
  font-weight:600;
  cursor:pointer;
}

.result{
  margin-top:10px;
  padding:12px;
  border-radius:10px;
  background:rgba(0,0,0,0.4);
  color:#00d4ff;
  font-weight:600;

  opacity:0;
  transform:translateY(10px);
  transition:0.3s;
}

.result.show{
  opacity:1;
  transform:translateY(0);
}
.prospero-float{
  position: fixed;
  bottom: 15px;
  right: 15px; /* ✅ moved to right */
  z-index: 9999;

  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;

  border-radius: 12px;

  background: linear-gradient(135deg,#7b61ff,#00d4ff);
  color: white;
  text-decoration: none;

  box-shadow: 0 10px 25px rgba(0,0,0,0.4);

  transition: 0.3s;
}

/* HOVER EFFECT */
.prospero-float:hover{
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
}

/* MOBILE */
@media(max-width:768px){
  .prospero-float{
    font-size: 11px;
    padding: 8px 12px;
    bottom: 10px;
    right: 10px; /* ✅ also update here */
  }
}
.prospero-float{
  animation: glow 2s infinite alternate;
}

@keyframes glow{
  from{box-shadow:0 0 10px #7b61ff;}
  to{box-shadow:0 0 20px #00d4ff;}
}