/* ==========================================================
   CALVO — premium layer (Oct 2026)
   Loads after style.css / tools.css. Only restyles; no logic.
   Idea: the page is the calculator's own LCD + amber key colour,
   lit by a slow aurora, with one hero moment (the live readout).
   ========================================================== */

:root {
  --p-ink: #0b0b0e;
  --p-panel: #131318;
  --p-line: rgba(255, 255, 255, 0.08);
  --p-paper: #f1ede4;
  --p-mute: #a8a396;
  --p-amber: #ff8a1f;
  --p-amber-soft: rgba(var(--p-amber-rgb), 0.14);
  --p-lcd: #b7d98f;
  --p-lcd-dim: #6f8f52;
  --p-amber-rgb: 255, 138, 31;
  --p-amber-hi: #ffa24a;
  --p-amber-hi2: #ffb066;
  --p-amber-lo: #e2700a;
  --p-on-amber: #1a1205;
  --page-bg: #0d0d10;
  --page-bg-rgb: 11, 11, 14;
  --p-display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
}

/* ---------- Aurora backdrop behind the home screen ---------- */
#tab-home { position: relative; isolation: isolate; }
#tab-home::before,
#tab-home::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .55;
}
#tab-home::before {
  top: -30vmax; left: -20vmax;
  background: radial-gradient(circle at 40% 40%, rgba(var(--p-amber-rgb),.38), transparent 62%);
  animation: p-drift-a 28s ease-in-out infinite alternate;
}
#tab-home::after {
  bottom: -35vmax; right: -25vmax;
  background: radial-gradient(circle at 60% 60%, rgba(120,170,90,.26), transparent 62%);
  animation: p-drift-b 34s ease-in-out infinite alternate;
}
@keyframes p-drift-a { to { transform: translate(14vmax, 10vmax) scale(1.12); } }
@keyframes p-drift-b { to { transform: translate(-12vmax, -8vmax) scale(1.1); } }

/* ---------- Navbar: glass, thin, quiet ---------- */
.topbar {
  background: rgba(var(--page-bg-rgb), 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--p-line);
}
.topbar-mark {
  border-radius: 9px;
  background: linear-gradient(145deg, var(--p-amber-hi), var(--p-amber) 55%, var(--p-amber-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 18px rgba(var(--p-amber-rgb),.35);
}
.topbar-name { font-family: var(--p-display); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.01em; }
.topbar-tabs { background: rgba(255,255,255,.04); border: 1px solid var(--p-line); border-radius: 999px; padding: 3px; }
.topbar-tab { border-radius: 999px; transition: color .2s ease, background .2s ease; }
.topbar-tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.topbar-tab.active {
  color: var(--p-on-amber); background: var(--p-amber);
  box-shadow: 0 4px 16px rgba(var(--p-amber-rgb),.35);
}

/* ---------- Home wrapper ---------- */
#tab-home .home-wrap { max-width: 1120px; padding: 40px 20px 72px; }

/* ---------- HERO ---------- */
.p-hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(8px, 3vw, 28px) 0 clamp(28px, 5vw, 56px);
}
.p-hero h2 {
  font-family: var(--p-display); font-weight: 800; color: var(--p-paper);
  font-size: clamp(2.3rem, 6.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em;
  margin: 0; text-wrap: balance;
}
.p-hero h2 span { display: block; color: var(--p-mute); font-weight: 600; }
.p-lede {
  margin-top: 20px; max-width: 46ch; color: var(--p-mute);
  font-size: clamp(1rem, 1.6vw, 1.12rem); line-height: 1.6;
}
.p-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.p-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none;
  padding: 13px 22px; border-radius: 14px; font: 700 .95rem 'Inter', sans-serif;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.p-btn.primary {
  color: var(--p-on-amber); border: 0;
  background: linear-gradient(180deg, var(--p-amber-hi), var(--p-amber));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 28px rgba(var(--p-amber-rgb),.35);
}
.p-btn.primary:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 16px 34px rgba(var(--p-amber-rgb),.45); }
.p-btn.ghost { color: var(--p-paper); background: rgba(255,255,255,.04); border: 1px solid var(--p-line); }
.p-btn.ghost:hover { border-color: rgba(var(--p-amber-rgb),.6); background: rgba(var(--p-amber-rgb),.08); }
.p-btn:active { transform: translateY(1px) scale(.99); }

/* Trust row: real numbers from the site, plain text */
.p-proof { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--p-line); }
.p-proof div { font-size: .85rem; color: var(--p-mute); }
.p-proof b { display: block; font: 800 1.35rem var(--p-display); color: var(--p-paper); letter-spacing: -0.02em; }

/* ---------- The live LCD readout (the memorable thing) ---------- */
.p-lcd {
  position: relative; border-radius: 26px; padding: 14px;
  background: linear-gradient(160deg, #26262d, #15151a);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 40px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.6),
              0 0 120px rgba(var(--p-amber-rgb),.12);
  transform: perspective(1100px) rotateY(-5deg) rotateX(3deg);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.p-lcd:hover, .p-lcd:focus-within { transform: perspective(1100px) rotateY(0) rotateX(0); }
.p-screen {
  border-radius: 16px; padding: 18px 18px 16px; min-height: 190px;
  background: linear-gradient(180deg, #a9c982, #93b46d);
  box-shadow: inset 0 4px 14px rgba(0,0,0,.35), inset 0 -2px 0 rgba(255,255,255,.12);
  color: #15240c; font-family: 'JetBrains Mono', ui-monospace, monospace;
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
}
.p-screen-top { display: flex; justify-content: space-between; font-size: .68rem; color: #3a5226; font-weight: 700; }
.p-in {
  width: 100%; background: transparent; border: 0; outline: 0; color: #15240c;
  font: 500 1.05rem 'JetBrains Mono', ui-monospace, monospace; padding: 4px 0;
  border-bottom: 1px dashed rgba(21,36,12,.35); caret-color: #15240c;
}
.p-in::placeholder { color: rgba(21,36,12,.45); }
.p-in:focus { border-bottom-color: #15240c; }
.p-out {
  font: 700 clamp(1.7rem, 4.2vw, 2.5rem) 'JetBrains Mono', ui-monospace, monospace;
  text-align: right; letter-spacing: -0.02em; overflow-x: auto; white-space: nowrap; min-height: 1.3em;
}
.p-out.err { font-size: 1rem; font-weight: 500; opacity: .6; }
.p-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.p-chip {
  cursor: pointer; padding: 7px 12px; border-radius: 10px; font: 600 .78rem 'JetBrains Mono', monospace;
  color: #d9d4c7; background: #2d2d35; border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 3px 0 #0c0c10;
  transition: transform .08s ease, box-shadow .08s ease, color .15s ease;
}
.p-chip:hover { color: #fff; }
.p-chip:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 #0c0c10; }
.p-hand { margin-top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; color: var(--p-mute); }
.p-hand a, .p-hand button { color: var(--p-amber); background: none; border: 0; cursor: pointer; font: 700 .78rem 'Inter', sans-serif; text-decoration: none; }
.p-hand a:hover, .p-hand button:hover { text-decoration: underline; }

/* One orchestrated entrance — hero only, once */
.p-hero > div:first-child > * { opacity: 0; transform: translateY(14px); animation: p-in .7s cubic-bezier(.2,.7,.2,1) forwards; }
.p-hero > div:first-child > :nth-child(1) { animation-delay: .05s; }
.p-hero > div:first-child > :nth-child(2) { animation-delay: .16s; }
.p-hero > div:first-child > :nth-child(3) { animation-delay: .26s; }
.p-hero > div:first-child > :nth-child(4) { animation-delay: .36s; }
.p-lcd { opacity: 0; animation: p-fade .9s .2s ease forwards; }
@keyframes p-fade { to { opacity: 1; } }
@keyframes p-in { to { opacity: 1; transform: none; } }

/* ---------- Section heading ---------- */
#tab-home .home-all-title {
  font-family: var(--p-display); font-size: 1.6rem; letter-spacing: -0.02em; color: var(--p-paper);
  border: 0; margin-top: 56px; padding: 0;
}
.p-sub { color: var(--p-mute); font-size: .95rem; margin-top: 6px; }

/* ---------- Primary tiles: flatter glass + cursor spotlight ---------- */
#tab-home .home-primary { gap: 14px; margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
#tab-home .home-big {
  --mx: 50%; --my: 0%;
  padding: 22px 20px 20px; border-radius: 22px; overflow: hidden;
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--p-amber-rgb),.16), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--p-line);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 18px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(6px);
}
#tab-home .home-big:hover, #tab-home .home-big:focus-visible {
  border-color: rgba(var(--p-amber-rgb),.55);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 24px 50px rgba(var(--p-amber-rgb),.14), 0 18px 40px rgba(0,0,0,.45);
}
#tab-home .home-big:active { box-shadow: 0 6px 16px rgba(0,0,0,.4); }
#tab-home .home-ic {
  width: 50px; height: 50px; border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 10px 22px rgba(var(--p-amber-rgb),.32);
}
#tab-home .home-big b { font-family: var(--p-display); font-size: 1.12rem; letter-spacing: -0.01em; }
#tab-home .home-big small { font-size: .82rem; line-height: 1.45; }

/* ---------- All-tools list ---------- */
#tab-home .home-groups { gap: 22px 30px; }
#tab-home .home-group h3 { font-family: var(--p-display); font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--p-paper); }
#tab-home .tool-row { border-radius: 14px; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
#tab-home .tool-row:hover { transform: translateX(3px); background: rgba(var(--p-amber-rgb),.07); border-color: rgba(var(--p-amber-rgb),.3); }
#tab-home .tool-gl { border-radius: 12px; box-shadow: none; background: rgba(var(--p-amber-rgb),.1); }
#tab-home .tool-row:hover .tool-gl { transform: none; }
#tab-home .tool-search { border-radius: 16px; background: rgba(255,255,255,.04); box-shadow: none; padding-top: 14px; padding-bottom: 14px; }
#tab-home .tool-search:focus { box-shadow: 0 0 0 4px rgba(var(--p-amber-rgb),.15); }

/* ---------- FAQ + footer (they use inline styles, hence !important) ---------- */
details { transition: border-color .2s ease, background .2s ease; }
details[open] { border-color: rgba(var(--p-amber-rgb),.45) !important; background: rgba(var(--p-amber-rgb),.05) !important; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--p-amber); font-weight: 700; transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
footer a { transition: color .15s ease; }
footer a:hover { color: #fff !important; }

/* ---------- Mobile ---------- */
@media (max-width: 860px) {
  .p-hero { grid-template-columns: 1fr; }
  .p-lcd { transform: none; }
  #tab-home .home-wrap { padding: 22px 14px 56px; }
  /* Two tiles per row on every phone; an odd last tile spans the full row */
  #tab-home .home-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  #tab-home .home-primary .home-big:last-child:nth-child(odd) { grid-column: 1 / -1; }
  #tab-home .home-big { padding: 16px 14px 14px; border-radius: 18px; }
  #tab-home .home-ic { width: 42px; height: 42px; border-radius: 13px; margin-bottom: 8px; }
  #tab-home .home-big b { font-size: 1rem; }
  #tab-home .home-big small { font-size: .74rem; padding-right: 0; }
  #tab-home .home-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  #tab-home::before, #tab-home::after { animation: none; }
  .p-hero > div:first-child > *, .p-lcd { opacity: 1; animation: none; }
  .p-hero > div:first-child > * { transform: none; }
  .p-lcd { transform: none; }
}


/* ==========================================================
   TOOL PANELS — Formulas, Convert, Percent/GPA, AI Solver, Quiz,
   Graph, Equations, Matrix, Programmer, Statistics, Subject Tools,
   Timer, History. (The Calculator tab keeps its own hardware look.)
   Same language as the home screen: glass card, amber keys,
   LCD-green readouts.
   ========================================================== */

/* Aurora behind every tool panel (home already has it) */
.tab-panel:not(#tab-calc):not(#tab-home) { position: relative; isolation: isolate; }
.tab-panel:not(#tab-calc):not(#tab-home)::before,
.tab-panel:not(#tab-calc):not(#tab-home)::after {
  content: ""; position: fixed; z-index: -1; pointer-events: none;
  width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .4;
}
.tab-panel:not(#tab-calc):not(#tab-home)::before {
  top: -25vmax; right: -20vmax;
  background: radial-gradient(circle at 50% 50%, rgba(var(--p-amber-rgb),.32), transparent 62%);
}
.tab-panel:not(#tab-calc):not(#tab-home)::after {
  bottom: -30vmax; left: -22vmax;
  background: radial-gradient(circle at 50% 50%, rgba(120,170,90,.2), transparent 62%);
}

/* ---------- Card ---------- */
.tab-panel .formulas-card {
  border-radius: 26px; padding: 24px 22px;
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 45%), rgba(19,19,24,.88);
  background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.012) 45%),
              color-mix(in srgb, var(--case-bg) 84%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--p-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 80px rgba(0,0,0,.5);
}
.tab-panel .formulas-title { font-family: var(--p-display); font-weight: 800; letter-spacing: -0.03em; color: var(--p-paper); }
.tab-panel .formulas-title::before {
  border-radius: 14px;
  background: var(--tool-ic, none) center / 22px 22px no-repeat, linear-gradient(145deg, var(--p-amber-hi), var(--p-amber) 55%, var(--p-amber-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 20px rgba(var(--p-amber-rgb),.32);
}
.tab-panel .formulas-subtitle { color: var(--p-mute); }
.tab-panel .tool-back, .tab-panel .subject-back-btn { border-radius: 999px; }

/* ---------- Inputs ---------- */
.tab-panel .formula-search,
.tab-panel .convert-input,
.tab-panel .convert-select,
.tab-panel .ai-question-input,
.tab-panel .graph-data-textarea {
  border-radius: 14px; border: 1px solid var(--p-line);
  background-color: rgba(0,0,0,.28);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35);
}
.tab-panel .formula-search:hover { border-color: rgba(255,255,255,.2); }
.tab-panel .formula-search:focus,
.tab-panel .convert-input:focus,
.tab-panel .convert-select:focus,
.tab-panel .ai-question-input:focus,
.tab-panel .graph-data-textarea:focus {
  border-color: var(--p-amber); background-color: rgba(0,0,0,.4);
  box-shadow: inset 0 2px 6px rgba(0,0,0,.35), 0 0 0 4px rgba(var(--p-amber-rgb),.16);
}

/* ---------- Pills: segmented chips ---------- */
.tab-panel .subject-pill {
  border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--p-line); color: var(--p-mute);
  transition: color .15s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.tab-panel .subject-pill:hover { color: #fff; border-color: rgba(var(--p-amber-rgb),.45); background: rgba(var(--p-amber-rgb),.07); }
.tab-panel .subject-pill.active {
  color: var(--p-on-amber); border-color: transparent; font-weight: 700;
  background: linear-gradient(180deg, var(--p-amber-hi), var(--p-amber));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 16px rgba(var(--p-amber-rgb),.32);
}

/* ---------- Buttons ---------- */
.tab-panel .pill-btn {
  border-radius: 999px; border: 1px solid var(--p-line); background: rgba(255,255,255,.05); color: var(--p-paper);
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .2s ease;
}
.tab-panel .pill-btn:hover { background: rgba(var(--p-amber-rgb),.1); border-color: rgba(var(--p-amber-rgb),.5); color: #fff; }
.tab-panel .pill-btn.active { color: var(--p-on-amber); background: var(--p-amber); border-color: transparent; font-weight: 700; }
.tab-panel .pill-btn.save-btn {
  border-radius: 14px; color: var(--p-on-amber); font-weight: 800; padding: 13px;
  background: linear-gradient(180deg, var(--p-amber-hi), var(--p-amber));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 26px rgba(var(--p-amber-rgb),.32);
}
.tab-panel .pill-btn.save-btn:hover { color: var(--p-on-amber); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 16px 34px rgba(var(--p-amber-rgb),.42); }
.tab-panel .pill-btn.save-btn:active { transform: translateY(1px); }
.tab-panel .pill-btn.whatsapp-pill-btn { color: #25D366; }

/* ---------- Tiles / links (Formulas, Subject Tools, Percent) ---------- */
.tab-panel .subject-tile, .tab-panel .merit-link, .tab-panel .subject-tool-row {
  --mx: 50%; --my: 0%;
  border: 1px solid var(--p-line); border-radius: 18px;
  background:
    radial-gradient(360px circle at var(--mx) var(--my), rgba(var(--p-amber-rgb),.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 12px 28px rgba(0,0,0,.28);
}
.tab-panel .subject-tile:hover, .tab-panel .merit-link:hover, .tab-panel .subject-tool-row:hover {
  border-color: rgba(var(--p-amber-rgb),.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 40px rgba(var(--p-amber-rgb),.12), 0 12px 28px rgba(0,0,0,.4);
}
.tab-panel .subject-tile:active { box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.tab-panel .subject-tile-icon {
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 8px 18px rgba(var(--p-amber-rgb),.28);
}
.tab-panel .subject-tile-name, .tab-panel .merit-link b, .tab-panel .subject-tool-row-name { font-family: var(--p-display); letter-spacing: -0.01em; }
.tab-panel .subject-tile-count { color: var(--p-mute); }
.tab-panel .merit-links-title { font-family: var(--p-display); color: var(--p-paper); letter-spacing: -0.01em; }

/* ---------- Formula list ---------- */
.tab-panel .formula-item { transition: background .15s ease; }
.tab-panel .formula-item:hover { background: rgba(var(--p-amber-rgb),.06); }
.tab-panel .formula-name { font-family: var(--p-display); }

/* ---------- Readouts: results glow LCD green (Statistics, Subject Tools, Programmer) ---------- */
.tab-panel .stats-result-grid { gap: 12px; }
.tab-panel .stats-result-cell {
  --mx: 50%; --my: 0%;
  border-radius: 16px; border: 1px solid var(--p-line); text-align: left; padding: 16px 16px 16px 20px;
  background:
    radial-gradient(260px circle at var(--mx) var(--my), rgba(183,217,143,.10), transparent 60%),
    linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
}
.tab-panel .stats-result-cell::before { background: linear-gradient(180deg, var(--p-lcd), var(--p-lcd-dim)); width: 3px; }
.tab-panel .stats-result-cell:hover { border-color: rgba(183,217,143,.4); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.tab-panel .stats-result-cell .stats-label { text-transform: none; letter-spacing: 0; font-size: .76rem; color: var(--p-mute); }
.tab-panel .stats-result-cell .stats-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--p-lcd);
  text-shadow: 0 0 22px rgba(183,217,143,.28);
}
.tab-panel .prog-bitwise-result, .tab-panel .grade-result-box, .tab-panel .cgpa-result {
  border-radius: 16px; border-color: rgba(183,217,143,.28);
  background: linear-gradient(160deg, rgba(183,217,143,.08), rgba(0,0,0,.2));
}

/* ---------- Programmer ---------- */
.tab-panel .prog-base-item { gap: 12px; }
.tab-panel .prog-base-tag {
  width: 46px; border-radius: 10px; padding: 9px 0; color: var(--p-on-amber); font-weight: 800;
  background: linear-gradient(180deg, var(--p-amber-hi), var(--p-amber));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 0 #a8560a;
}
.tab-panel .prog-base-item .formula-search { color: var(--p-lcd); letter-spacing: .02em; }

/* ---------- Matrix: keycap cells ---------- */
.tab-panel .matrix-grid input {
  border-radius: 10px; border: 1px solid var(--p-line); background: rgba(0,0,0,.3);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.4); color: var(--p-lcd);
}
.tab-panel .matrix-grid input:focus { border-color: var(--p-amber); box-shadow: inset 0 2px 5px rgba(0,0,0,.4), 0 0 0 3px rgba(var(--p-amber-rgb),.18); }
.tab-panel .matrix-block-label { color: var(--p-amber); }

/* ---------- Equations / AI result blocks ---------- */
.tab-panel .eq-steps, .tab-panel .ai-result-box, .tab-panel .ai-simple-explain-box {
  border-radius: 16px; border: 1px solid var(--p-line); background: rgba(0,0,0,.22);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.25);
}
.tab-panel .ai-key-box { border-radius: 16px; border-color: var(--p-line); background: rgba(255,255,255,.03); }

/* ---------- Graph ---------- */
.tab-panel .graph-canvas-wrap {
  border-radius: 18px; border: 1px solid var(--p-line); background: rgba(0,0,0,.35);
  box-shadow: inset 0 3px 12px rgba(0,0,0,.5), 0 0 0 1px rgba(0,0,0,.4);
}
.tab-panel .graph-type-btn, .tab-panel .graph-tool-toggle { border-radius: 999px; }
.tab-panel .graph-group-label { font-family: var(--p-display); color: var(--p-paper); }

/* ---------- Quiz + flashcards ---------- */
.tab-panel .quiz-question-card {
  border-radius: 20px; border: 1px solid var(--p-line); padding: 24px 18px;
  background: linear-gradient(165deg, rgba(var(--p-amber-rgb),.07), rgba(255,255,255,.02) 55%);
}
.tab-panel .quiz-question-cat { text-transform: none; letter-spacing: 0; font-size: .74rem; }
.tab-panel .quiz-question-text { font-family: var(--p-display); font-size: 1.12rem; letter-spacing: -0.01em; color: var(--p-paper); }
.tab-panel .quiz-option-btn {
  border-radius: 14px; border: 1px solid var(--p-line); background: rgba(255,255,255,.035);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 3px 0 rgba(0,0,0,.35);
  transition: transform .1s ease, border-color .15s ease, background .15s ease, box-shadow .1s ease;
}
.tab-panel .quiz-option-btn:hover:not(:disabled) { border-color: rgba(var(--p-amber-rgb),.6); background: rgba(var(--p-amber-rgb),.08); transform: translateY(-1px); }
.tab-panel .quiz-option-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: none; }
.tab-panel .quiz-progress-bar { border-radius: 999px; overflow: hidden; }
.tab-panel .quiz-progress-fill { background: linear-gradient(90deg, var(--p-amber), #ffc069); box-shadow: 0 0 14px rgba(var(--p-amber-rgb),.5); }
.tab-panel .flashcard-face { border-radius: 22px; border-color: var(--p-line); background: linear-gradient(165deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.tab-panel .flashcard-name { font-family: var(--p-display); }
.tab-panel .flashcard-back { background: linear-gradient(145deg, rgba(var(--p-amber-rgb),.16), rgba(183,217,143,.06)); border-color: rgba(var(--p-amber-rgb),.35); }

/* ---------- Timer ---------- */
.tab-panel .timer-ring-bg { stroke: rgba(255,255,255,.06); }
.tab-panel .timer-ring-progress { filter: drop-shadow(0 0 8px rgba(var(--p-amber-rgb),.55)); }
.tab-panel .timer-ring-progress.timer-break-color { filter: drop-shadow(0 0 8px rgba(63,191,111,.55)); }
.tab-panel .timer-time { font-family: 'JetBrains Mono', ui-monospace, monospace; color: var(--p-lcd); text-shadow: 0 0 26px rgba(183,217,143,.3); letter-spacing: -0.02em; }
.tab-panel .timer-phase { text-transform: none; letter-spacing: 0; color: var(--p-mute); }

/* ---------- Percent/GPA tables ---------- */
.tab-panel .cgpa-table { border-radius: 14px; overflow: hidden; }
.tab-panel .cgpa-table tr:hover td { background: rgba(var(--p-amber-rgb),.05); }
.tab-panel .add-subject-btn { border-radius: 14px; }

/* ---------- Phones ---------- */
@media (max-width: 520px) {
  .tab-panel .formulas-card { border-radius: 22px; padding: 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel .quiz-option-btn, .tab-panel .subject-tile { transition: none; }
}


/* ==========================================================
   3D KEYS, STUDENT WELCOME, "PICKED FOR YOU"
   Pure CSS 3D (no libraries) so it stays smooth on cheap phones.
   ========================================================== */

/* ---------- Floating 3D keycaps ---------- */
.p-scene { perspective: 900px; pointer-events: none; }
.p-scene-inner {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateY(calc(var(--px, 0) * 10deg)) rotateX(calc(var(--py, 0) * -8deg));
  transition: transform .25s ease-out;
}
.p-key {
  position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%);
  width: var(--s); height: var(--s); margin: calc(var(--s) * -.5) 0 0 calc(var(--s) * -.5);
  display: grid; place-items: center; border-radius: calc(var(--s) * .26);
  font: 700 calc(var(--s) * .38) var(--p-display); color: #fff3e2; line-height: 1;
  background: linear-gradient(160deg, var(--p-amber-hi2), var(--p-amber) 55%, var(--p-amber-lo));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.5), inset 0 -4px 0 rgba(0,0,0,.16),
              0 calc(var(--s) * .1) 0 #a8560a, 0 calc(var(--s) * .38) calc(var(--s) * .45) rgba(0,0,0,.45);
  transform: translate3d(0, 0, var(--z)) rotateX(var(--rx)) rotateY(var(--ry));
  animation: p-float var(--d) ease-in-out var(--dl) infinite alternate;
  will-change: transform;
}
.p-key.dark {
  color: var(--p-lcd);
  background: linear-gradient(160deg, #4a4a54, #2e2e36 60%, #25252c);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.14), inset 0 -4px 0 rgba(0,0,0,.3),
              0 calc(var(--s) * .1) 0 #0c0c10, 0 calc(var(--s) * .38) calc(var(--s) * .45) rgba(0,0,0,.5);
}
@keyframes p-float {
  to { transform: translate3d(0, -16px, var(--z)) rotateX(calc(var(--rx) * -.6)) rotateY(calc(var(--ry) * -.6)); }
}

/* Hero: keys orbit the live calculator (desktop only; phones keep the hero clean) */
.p-stage { position: relative; min-width: 0; }
.p-stage .p-scene { position: absolute; inset: -34px; z-index: 0; }
.p-stage .p-lcd { position: relative; z-index: 1; }
@media (max-width: 860px) { .p-stage .p-scene { display: none; } }

/* ---------- Student welcome ---------- */
.p-welcome {
  position: fixed; inset: 0; z-index: 3000; overflow: auto; outline: 0;
  display: grid; place-items: center; padding: 20px;
  background:
    radial-gradient(60vmax 60vmax at 15% 10%, rgba(var(--p-amber-rgb),.28), transparent 60%),
    radial-gradient(55vmax 55vmax at 90% 95%, rgba(120,170,90,.2), transparent 60%),
    #0b0b0e;
  transition: opacity .5s ease, transform .5s ease;
}
.p-welcome .p-scene { position: absolute; inset: 0; overflow: hidden; }
.p-welcome.leaving { opacity: 0; transform: scale(1.04); pointer-events: none; }
.p-w-card {
  position: relative; z-index: 2; width: min(520px, 100%); border-radius: 28px; padding: 28px 24px 22px;
  background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.02) 55%), rgba(19,19,24,.82);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--p-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 40px 90px rgba(0,0,0,.6);
  animation: p-rise .7s .1s cubic-bezier(.2,.7,.2,1) both;
}
.p-w-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--p-paper); font: 800 1.1rem var(--p-display); }
.p-w-brand .mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff;
  font: 700 .74rem 'JetBrains Mono', monospace;
  background: linear-gradient(145deg, var(--p-amber-hi), var(--p-amber) 55%, var(--p-amber-lo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 18px rgba(var(--p-amber-rgb),.35);
}
.p-w-card h2 { font: 800 clamp(1.6rem, 5.5vw, 2.15rem)/1.08 var(--p-display); letter-spacing: -0.03em; color: var(--p-paper); text-wrap: balance; }
.p-w-card > p { margin-top: 10px; color: var(--p-mute); font-size: .95rem; line-height: 1.55; }
.p-w-label { display: block; margin: 20px 0 8px; color: var(--p-paper); font: 600 .86rem 'Inter', sans-serif; }
.p-w-input {
  width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--p-line); color: #fff;
  background: rgba(0,0,0,.3); box-shadow: inset 0 2px 6px rgba(0,0,0,.35); font: 500 16px 'Inter', sans-serif; outline: 0;
}
.p-w-input::placeholder { color: #7d786c; }
.p-w-input:focus { border-color: var(--p-amber); box-shadow: inset 0 2px 6px rgba(0,0,0,.35), 0 0 0 4px rgba(var(--p-amber-rgb),.16); }
.p-levels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.p-levels .p-level:last-child:nth-child(odd) { grid-column: 1 / -1; }
.p-level {
  text-align: left; cursor: pointer; padding: 12px 14px; border-radius: 16px; color: var(--p-paper);
  background: rgba(255,255,255,.04); border: 1px solid var(--p-line); font-family: 'Inter', sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 3px 0 rgba(0,0,0,.35);
  transition: transform .1s ease, border-color .15s ease, background .15s ease, box-shadow .1s ease;
}
.p-level b { display: block; font: 700 .92rem var(--p-display); }
.p-level small { display: block; margin-top: 2px; color: var(--p-mute); font-size: .75rem; line-height: 1.35; }
.p-level:hover { border-color: rgba(var(--p-amber-rgb),.5); }
.p-level:active { transform: translateY(3px); box-shadow: none; }
.p-level[aria-checked="true"] {
  border-color: var(--p-amber); background: rgba(var(--p-amber-rgb),.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 3px rgba(var(--p-amber-rgb),.18);
}
.p-w-go { width: 100%; justify-content: center; margin-top: 22px; }
.p-w-skip { display: block; margin: 12px auto 0; background: none; border: 0; cursor: pointer; color: var(--p-mute); font: 600 .85rem 'Inter', sans-serif; padding: 6px 10px; }
.p-w-skip:hover { color: #fff; }
@keyframes p-rise { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Picked for you (home) ---------- */
.p-foryou { margin: 0 0 40px; }
.p-fy-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.p-fy-head h3 { font: 800 1.35rem var(--p-display); letter-spacing: -0.02em; color: var(--p-paper); }
.p-fy-head p { margin-top: 4px; color: var(--p-mute); font-size: .88rem; }
.p-link { background: none; border: 0; cursor: pointer; color: var(--p-amber); font: 700 .85rem 'Inter', sans-serif; white-space: nowrap; padding: 6px 2px; }
.p-link:hover { text-decoration: underline; }
.p-fy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.p-pick {
  --mx: 50%; --my: 0%;
  display: block; width: 100%; text-align: left; text-decoration: none; cursor: pointer; color: var(--p-paper);
  padding: 14px 16px; border-radius: 16px; border: 1px solid var(--p-line); font-family: 'Inter', sans-serif;
  background:
    radial-gradient(300px circle at var(--mx) var(--my), rgba(var(--p-amber-rgb),.15), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px rgba(0,0,0,.28);
  transition: border-color .15s ease, transform .15s ease, box-shadow .2s ease;
}
.p-pick:hover { border-color: rgba(var(--p-amber-rgb),.55); transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 16px 34px rgba(var(--p-amber-rgb),.12); }
.p-pick b { display: block; font: 700 .98rem var(--p-display); letter-spacing: -0.01em; }
.p-pick small { display: block; margin-top: 3px; color: var(--p-mute); font-size: .76rem; line-height: 1.35; }
@media (max-width: 860px) { .p-fy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Tool pages: the card rises in when you open a tool ---------- */
.tab-panel:not(#tab-calc):not(#tab-home).active .formulas-card { animation: p-rise .45s cubic-bezier(.2,.7,.2,1) both; }

@media (prefers-reduced-motion: reduce) {
  .p-key, .p-w-card, .tab-panel .formulas-card { animation: none !important; }
  .p-scene-inner { transform: none !important; transition: none; }
  .p-welcome { transition: none; }
}


/* ==========================================================
   ABOUT US: full-screen page (was a small 380px popup)
   ========================================================== */
#aboutOverlay {
  padding: 0; align-items: stretch; justify-content: stretch;
  background:
    radial-gradient(60vmax 60vmax at 90% -10%, rgba(var(--p-amber-rgb),.22), transparent 60%),
    radial-gradient(50vmax 50vmax at 0% 100%, rgba(120,170,90,.16), transparent 60%),
    #0b0b0e;
}
#aboutOverlay .app-modal {
  max-width: none; max-height: none; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
#aboutOverlay .app-modal-header {
  position: sticky; top: 0; z-index: 2; margin: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 14px;
  background: rgba(var(--page-bg-rgb), .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--p-line);
  font: 800 1.15rem var(--p-display); letter-spacing: -0.01em; text-transform: none; color: var(--p-paper);
}
#aboutOverlay .theme-close {
  width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  color: var(--p-paper); font-size: 1rem; background: rgba(255,255,255,.06); border: 1px solid var(--p-line);
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
#aboutOverlay .theme-close:hover { background: rgba(var(--p-amber-rgb),.14); border-color: rgba(var(--p-amber-rgb),.5); }
#aboutOverlay .theme-close:active { transform: scale(.94); }
#aboutOverlay .about-body {
  width: 100%; max-width: 720px; margin: 0 auto; gap: 18px;
  padding: 32px 20px calc(64px + env(safe-area-inset-bottom, 0px));
  font-size: 1rem; line-height: 1.75; color: #d6d2c6;
}
#aboutOverlay .about-body p { font-size: 1rem !important; line-height: 1.75 !important; }
#aboutOverlay .about-brand { gap: 14px; margin-bottom: 6px; }
#aboutOverlay .about-name { font: 800 clamp(1.8rem, 6vw, 2.6rem) var(--p-display); letter-spacing: -0.03em; color: var(--p-paper); line-height: 1.05; }
#aboutOverlay .about-tag { font-size: .95rem; color: var(--p-mute); margin-top: 4px; }
#aboutOverlay .about-body b { color: var(--p-paper); }
#aboutOverlay .about-contact { padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--p-line); }
#aboutOverlay .about-contact a { color: var(--p-amber); }
@media (min-width: 861px) { #aboutOverlay .app-modal-header { padding-left: max(24px, calc((100vw - 720px) / 2)); padding-right: max(24px, calc((100vw - 720px) / 2)); } }

/* ==========================================================
   THEME-AWARE ACCENTS (dark mode)
   style.css only re-colours the calculator body per theme. This layer
   re-colours the rest of the site (navbar, buttons, glows, page tint)
   from the same theme, so every theme visibly works everywhere.
   Specificity (html[data-theme]) is higher than :root above on purpose.
   ========================================================== */
html[data-theme="midnight"] {
  --offline-bg: #ae5300;
  --p-amber: #ff8a1f; --p-amber-rgb: 255,138,31;
  --p-amber-hi: #ff9d43; --p-amber-hi2: #ffad61; --p-amber-lo: #f57500;
  --p-amber-soft: rgba(255,138,31, 0.14); --p-on-amber: #1a1205;
  --brand-orange: #ff8a1f; --brand-orange-deep: #e16b00;
  --p-lcd: #93b077; --p-lcd-dim: #587e45;
  --page-bg: #0d0d0f; --page-bg-rgb: 13,13,15;
}
html[data-theme="ocean"] {
  --offline-bg: #0062c9;
  --p-amber: #3a9aff; --p-amber-rgb: 58,154,255;
  --p-amber-hi: #5eacff; --p-amber-hi2: #7cbcff; --p-amber-lo: #1185ff;
  --p-amber-soft: rgba(58,154,255, 0.14); --p-on-amber: #1a1205;
  --brand-orange: #3a9aff; --brand-orange-deep: #007bfc;
  --p-lcd: #9bcab8; --p-lcd-dim: #568d6f;
  --page-bg: #0b0e11; --page-bg-rgb: 11,14,17;
}
html[data-theme="rose"] {
  --offline-bg: #b41852;
  --p-amber: #e8548b; --p-amber-rgb: 232,84,139;
  --p-amber-hi: #ec73a0; --p-amber-hi2: #f08eb3; --p-amber-lo: #e33073;
  --p-amber-soft: rgba(232,84,139, 0.14); --p-on-amber: #1a1205;
  --brand-orange: #e8548b; --brand-orange-deep: #e11e66;
  --p-lcd: #dbc6c0; --p-lcd-dim: #9a796e;
  --page-bg: #100c0e; --page-bg-rgb: 16,12,14;
}
html[data-theme="slate"] {
  --offline-bg: #005eea;
  --p-amber: #5b9dff; --p-amber-rgb: 91,157,255;
  --p-amber-hi: #7fb2ff; --p-amber-hi2: #9dc5ff; --p-amber-lo: #3285ff;
  --p-amber-soft: rgba(91,157,255, 0.14); --p-on-amber: #1a1205;
  --brand-orange: #5b9dff; --brand-orange-deep: #1e78ff;
  --p-lcd: #a8b9c5; --p-lcd-dim: #678092;
  --page-bg: #0b0d11; --page-bg-rgb: 11,13,17;
}
html[data-theme="forest"] {
  --offline-bg: #205227;
  --p-amber: #3fa34d; --p-amber-rgb: 63,163,77;
  --p-amber-hi: #4cba5b; --p-amber-hi2: #62c26f; --p-amber-lo: #34863f;
  --p-amber-soft: rgba(63,163,77, 0.14); --p-on-amber: #1a1205;
  --brand-orange: #3fa34d; --brand-orange-deep: #2e7738;
  --p-lcd: #a7ca9b; --p-lcd-dim: #578f44;
  --page-bg: #0b110d; --page-bg-rgb: 11,17,13;
}
html[data-theme="grape"] {
  --offline-bg: #531da2;
  --p-amber: #8a4fe0; --p-amber-rgb: 138,79,224;
  --p-amber-hi: #9e6de5; --p-amber-hi2: #af87ea; --p-amber-lo: #732cda;
  --p-amber-soft: rgba(138,79,224, 0.14); --p-on-amber: #ffffff;
  --brand-orange: #8a4fe0; --brand-orange-deep: #6924ce;
  --p-lcd: #d0c0db; --p-lcd-dim: #876f9f;
  --page-bg: #0e0b11; --page-bg-rgb: 14,11,17;
}
html[data-theme="mint"] {
  --offline-bg: #0f5e4c;
  --p-amber: #1fbf9a; --p-amber-rgb: 31,191,154;
  --p-amber-hi: #26dcb2; --p-amber-hi2: #40e0bb; --p-amber-lo: #199c7e;
  --p-amber-soft: rgba(31,191,154, 0.14); --p-on-amber: #1a1205;
  --brand-orange: #1fbf9a; --brand-orange-deep: #168a70;
  --p-lcd: #a4d7c0; --p-lcd-dim: #568d74;
  --page-bg: #0b110f; --page-bg-rgb: 11,17,15;
}
html[data-theme="ember"] {
  --offline-bg: #972316;
  --p-amber: #e34b3a; --p-amber-rgb: 227,75,58;
  --p-amber-hi: #e76859; --p-amber-hi2: #eb8074; --p-amber-lo: #d6311e;
  --p-amber-soft: rgba(227,75,58, 0.14); --p-on-amber: #1a1205;
  --brand-orange: #e34b3a; --brand-orange-deep: #c42d1c;
  --p-lcd: #debca5; --p-lcd-dim: #a46d5b;
  --page-bg: #110c0b; --page-bg-rgb: 17,12,11;
}
html[data-theme="sunflower"] {
  --offline-bg: #7e6412;
  --p-amber: #e0b220; --p-amber-rgb: 224,178,32;
  --p-amber-hi: #e4bd3f; --p-amber-hi2: #e8c65a; --p-amber-lo: #bd961a;
  --p-amber-soft: rgba(224,178,32, 0.14); --p-on-amber: #1a1205;
  --brand-orange: #e0b220; --brand-orange-deep: #ab8818;
  --p-lcd: #d6d095; --p-lcd-dim: #9d944a;
  --page-bg: #11100b; --page-bg-rgb: 17,16,11;
}
html[data-theme="coral"] {
  --offline-bg: #e33200;
  --p-amber: #ff7a54; --p-amber-rgb: 255,122,84;
  --p-amber-hi: #ff9678; --p-amber-hi2: #ffae96; --p-amber-lo: #ff5a2b;
  --p-amber-soft: rgba(255,122,84, 0.14); --p-on-amber: #1a1205;
  --brand-orange: #ff7a54; --brand-orange-deep: #ff4a17;
  --p-lcd: #e1ccc2; --p-lcd-dim: #9f7f6f;
  --page-bg: #110d0b; --page-bg-rgb: 17,13,11;
}
html[data-theme="lavender"] {
  --offline-bg: #4f35c6;
  --p-amber: #9b8ce0; --p-amber-rgb: 155,140,224;
  --p-amber-hi: #b3a8e8; --p-amber-hi2: #c8c0ee; --p-amber-lo: #7f6cd7;
  --p-amber-soft: rgba(155,140,224, 0.14); --p-on-amber: #1a1205;
  --brand-orange: #9b8ce0; --brand-orange-deep: #715cd3;
  --p-lcd: #d5d0e3; --p-lcd-dim: #88819d;
  --page-bg: #0d0c10; --page-bg-rgb: 13,12,16;
}

/* ---------- Static home text (crawlable HTML) ---------- */
#tab-home .home-static { max-width: 860px; margin-top: 14px; color: var(--p-mute, #b9b5aa); font-size: .97rem; line-height: 1.8; }
#tab-home .home-static p { margin: 0 0 14px; }
#tab-home .home-static h3 { margin: 26px 0 8px; font-size: 1.08rem; color: var(--p-paper, #e8e5db); }
#tab-home .home-static a { color: #ff8a1f; text-decoration: none; border-bottom: 1px solid rgba(255,138,31,.35); }
#tab-home .home-static a:hover { border-bottom-color: #ff8a1f; }
