/* ============================================================
   SuperTwentyPlus – SuperFX (Forex Comparison)
   New Neon Blueprint App 28.11.2025
   - Finance-Neon Hybrid (B2)
   - Comfortable density (D2)
   - Blueprint shell + SuperFX UI
============================================================ */

/* ===================== */
/* THEME (LOCKED-IN)     */
/* ===================== */

:root {
  --bg-0:#04012b;          /* main page background (deep base) */
  --bg-1:#060916;          /* secondary layer / gradient base */
  --card:#03050a;          /* card background (darker) */
  --text:#e9f4ff;          /* main text */
  --muted:#9bb4d0;         /* secondary text / hints */
  --cyan:#00fff9;          /* primary neon cyan */
  --cyan-2:#00baff;        /* secondary cyan */
  --pink:#ff66cc;          /* accent pink */
  --warn:#ff98b0;          /* warning / caveat */
  --border:rgba(255,255,255,.10);
  --border-cyan:rgba(0,255,255,.28);
  --inset:rgba(0,255,255,.08);
  --max-w:900px;
}

/* ===================== */
/* BASE RESET + BODY     */
/* ===================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top, rgba(0,255,249,0.12), transparent 55%),
    radial-gradient(circle at bottom, rgba(255,102,204,0.10), transparent 55%),
    var(--bg-0);
  color: var(--text);
}

/* ===================== */
/* BLUEPRINT SHELL       */
/* ===================== */

.stp-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 4.5rem;  /* equal to summary bar height */
}

/* Header / Brand / Hamburger */

.stp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 22, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 255, 249, 0.24);
}

.stp-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.stp-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.stp-brand-main {
  font-family: "Orbitron", system-ui;
  font-size: 1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}

.stp-brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

/* Hamburger toggle */

.stp-menu-toggle {
  display: none;
}

.stp-menu-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0,255,249,0.35);
  background: radial-gradient(circle at top, rgba(0,255,249,0.25), rgba(3,5,10,0.98));
  padding: 0.45rem;
  cursor: pointer;
}

.stp-menu-button span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

/* Transform into X when active */
#stp-menu-toggle:checked + .stp-menu-button span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
#stp-menu-toggle:checked + .stp-menu-button span:nth-child(2) {
  opacity: 0;
}
#stp-menu-toggle:checked + .stp-menu-button span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Hamburger menu panel (right) */

.stp-hamburger {
  position: fixed;
  top: 3.6rem;
  right: 1rem;
  min-width: 210px;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  background: rgba(3,5,10,0.98);
  border: 1px solid var(--border-cyan);
  box-shadow: 0 18px 48px rgba(0,0,0,0.78);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transform-origin: top right;
  transform: scale(0.95);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.stp-hamburger a {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--text);
  padding: 0.3rem 0.35rem;
  border-radius: 0.35rem;
}

.stp-hamburger a:hover {
  background: rgba(0,255,249,0.12);
  color: var(--cyan);
}

/* Show when checked */
#stp-menu-toggle:checked ~ .stp-hamburger {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* Main region */

.stp-main {
  flex: 1;
  padding: 1.2rem 1rem 0;
}

/* Footer */

.stp-footer {
  margin-top: 3.5rem;     
  margin-bottom: 1.5rem;    
  border-top: 1px solid var(--border);
  background: rgba(3,5,10,0.96);
  padding: 0.75rem 1rem 1rem;

}

.stp-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.stp-footer-links {
  display: flex;
  gap: 0.8rem;
}

.stp-footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.stp-footer-links a:hover {
  color: var(--cyan);
}

.stp-footer-copy {
  opacity: 0.85;
}

/* Stack footer columns on small screens */
@media (max-width: 600px) {
  .stp-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================ */
/* SUPERFX APP LAYOUT (c2-*)    */
/* ============================ */

.c2-app-shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-bottom: 4.8rem; /* space for fixed summary bar */
}

/* ---------- Page header ---------- */

.c2-header {
  margin-top: 1.3rem;
  padding: 0 0.15rem;
}

.c2-header-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.c2-title {
  margin: 0 0 0.1rem;
  font-family: "Orbitron", system-ui;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.c2-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Main stack ---------- */

.c2-main {
  margin-top: 0.85rem;
  padding-bottom: 0.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ---------- Card / slab styling (finance-neon hybrid) ---------- */

.c2-card {
  background: radial-gradient(circle at top left, rgba(0,255,249,0.07), transparent 55%),
              radial-gradient(circle at bottom right, rgba(255,102,204,0.06), transparent 55%),
              var(--card);
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  padding: 1rem 1.15rem;
  
  /* Deep Neon Blue Glow Enhancement */

box-shadow: 0 0px 50px rgba(0,174,255,0.98);,   /* outer neon glow */

    inset 0 0 14px rgba(0, 255, 249, 0.12),  /* inner glow */
    0 22px 50px rgba(0,0,0,0.78);       /* original depth shadow */
}

/* Neon Glow for Amount / From / To fields */
.c2-input-group input,
.c2-input-group select,
.c2-input-group-readonly .c2-input-display {
  box-shadow:
    0 0 12px rgba(0,186,255,0.5),       /* outer neon glow */
    inset 0 0 8px rgba(0,255,249,0.12);  /* subtle inner cyan glow */
}


/* ============================ */
/* INPUT PANEL                  */
/* ============================ */

.c2-input-panel {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Currency buttons */

.c2-currency-button-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.c2-cur-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem;
}

.c2-cur-group + .c2-cur-group {
  margin-top: 0.15rem;
}


.c2-cur-group-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-right: 0.25rem;
}



.c2-cur-btn {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(2,4,10,0.9);
  color: var(--text);
  font-size: 0.65rem;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease, color 0.16s ease,
              box-shadow 0.16s ease, transform 0.08s ease;
}

.c2-cur-btn:hover {
  border-color: var(--cyan-2);
  box-shadow: 0 0 0 1px rgba(0,255,249,0.18);
}

.c2-cur-btn.active {
  background: radial-gradient(circle at top, rgba(0,255,249,0.36), rgba(2,4,10,1));
  border-color: var(--border-cyan);
  color: var(--bg-0);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(0,255,249,0.45);
}

/* Amount + From/To row */

.c2-input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem !important;   /* reduce overall input spacing */
}

.c2-input-group {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 0.18rem !important;  /* reduce label → field spacing */
}

    /* ============================ */
    /* Drop Down background             */
    /* ============================ */

    /* Force dark dropdown list on all browsers */
    .c2-input-group select {
      color-scheme: dark;
      background-color: var(--bg-1) !important;
      color: var(--text) !important;
    }
    
    
    /* For Chrome, Edge, Brave (forces dark popup) */
    .c2-input-group select option {
      background-color: var(--bg-1) !important;
      color: var(--text) !important;
    }
    
    /* Firefox fallback */
    @-moz-document url-prefix() {
      .c2-input-group select {
        background-color: var(--bg-1) !important;
        color: var(--text) !important;
      }
      .c2-input-group select option {
        background-color: var(--bg-1) !important;
        color: var(--text) !important;
      }
    }




.c2-input-group label {
  font-size: 0.8rem;
  color: var(--muted);
}

.c2-input-group input,
.c2-input-group select {
  background: linear-gradient(135deg, rgba(4,6,18,0.98), rgba(2,4,10,1));
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}

.c2-input-group input:focus,
.c2-input-group select:focus {
  border-color: var(--cyan-2);
  box-shadow: 0 0 0 1px rgba(0,255,249,0.25);
}

/* From display */

.c2-input-group-readonly .c2-input-display {
  background: linear-gradient(135deg, rgba(6,9,22,1), rgba(3,5,10,0.96));
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 0.55rem 0.65rem;
  font-size: 0.9rem;
}

/* ============================ */
/* MID-MARKET BAR               */
/* ============================ */

.c2-midrate-bar {
  border-radius: 0.7rem;
  padding: 0.6rem 0.85rem;
  background: linear-gradient(
    90deg,
    rgba(0,255,249,0.16),
    rgba(0,186,255,0.12),
    rgba(2,4,10,1)
  );
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.c2-midrate-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(233,244,255,0.8);
}

.c2-midrate-values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.c2-midrate-value {
  font-size: 0.95rem;
  font-weight: 500;
}

.c2-midrate-meta {
  font-size: 0.7rem;
  color: rgba(233,244,255,0.75);
}

/* ============================ */
/* PROVIDER TABLE               */
/* ============================ */

.c2-table-panel {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.c2-table-header-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
}

.c2-table-title {
  font-size: 1rem;
  font-weight: 500;
}

.c2-table-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.c2-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.c2-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.c2-table th,
.c2-table td {
  padding: 0.55rem 0.45rem;
  text-align: left;
  border-bottom: 1px solid rgba(15,23,42,0.9);
  white-space: nowrap;
}

.c2-table th {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
}

.c2-provider-label {
  font-weight: 500;
}

/* Category header row */

.c2-row-category-header td {
  padding-top: 0.75rem;
  padding-bottom: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148,163,184,0.95);
  border-bottom: none;
}

/* Benchmark / best / worst highlighting */

.c2-row-benchmark {
  background: rgba(22,163,74,0.10);
}

.c2-row-best {
  background: rgba(34,197,94,0.14);
}

.c2-row-worst {
  background: rgba(239,68,68,0.16);
}

/* Extra cost intensity colours */

.c2-extra-low {
  color: #22c55e;
}

.c2-extra-mid {
  color: #facc15;
}

.c2-extra-high {
  color: #fb923c;
}

/* ============================ */
/* BEST PROVIDERS PANEL         */
/* ============================ */

.c2-best-panel {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.c2-section-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.c2-section-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.c2-best-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.c2-best-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.85rem;
}

.c2-best-label {
  color: var(--muted);
}

.c2-best-value {
  font-weight: 500;
}

.c2-divider {
  height: 1px;
  background: rgba(31,41,55,0.9);
}

.c2-overall-summary {
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.c2-disclaimer {
  font-size: 0.78rem;
  color: var(--warn);
}

/* ============================ */
/* SUMMARY BAR (BOTTOM FIXED)   */
/* ============================ */

.c2-summary-bar {
  margin-top: 0.5rem;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to top,
    rgba(3,5,10,0.98),
    rgba(3,5,10,0.92)
  );
  border-top: 1px solid rgba(0,255,249,0.22);
  padding: 0.4rem 0;
}

.c2-summary-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
}

.c2-summary-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
}

.c2-summary-label {
  color: var(--muted);
}

.c2-summary-value {
  font-weight: 500;
}

/* ============================ */
/* INFO BUTTON + MODAL          */
/* ============================ */

.c2-info-btn {
  border: none;
  background: var(--cyan-2);
  color: #02040a;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 0.85rem;
  cursor: pointer;
  line-height: 24px;
  text-align: center;
  padding: 0;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(0,186,255,0.55);
}

.c2-info-btn:hover {
  background: var(--cyan);
}

/* Modal overlay */
.c2-info-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(1,2,6,0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Modal box */
.c2-info-content {
    
        background:
        radial-gradient(circle at 20% 0%, rgba(0,255,249,0.25), transparent 60%),
        radial-gradient(circle at 80% 100%, rgba(0,186,255,0.20), transparent 70%),
        #02040a;
        border: 1px solid rgba(0,255,249,0.35);
        box-shadow: 0 0 40px rgba(0,255,249,0.25);

  max-width: 480px;
  width: 100%;
  padding: 1.4rem 1.5rem;
  border-radius: 1.3rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.45);
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid var(--border-cyan);
}

.c2-info-content h2 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.2rem;
  color: var(--cyan);
}

.c2-info-content h3 {
  margin-top: 0.9rem;
  margin-bottom: 0.3rem;
  font-size: 1.02rem;
  color: var(--text);
}

.c2-info-caveat {
  color: var(--warn);
  font-size: 0.82rem;
  margin-top: 0.6rem;
}

/* Close button */
.c2-info-close-btn {
  margin-top: 1.2rem;
  width: 100%;
  padding: 0.6rem 0;
  background: var(--cyan-2);
  color: #02040a;
  border: none;
  border-radius: 0.9rem;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
}

.c2-info-close-btn:hover {
  background: var(--cyan);
}

/* ============================ */
/* RESPONSIVE TUNING            */
/* ============================ */

@media (max-width: 720px) {
  .stp-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .c2-main {
    padding-bottom: 0.5rem;
  }

  .c2-summary-inner {

    gap: 0.25rem;
  }

  .c2-header-top {
    flex-direction: row;
    align-items: center;
  }

  .c2-title {
    font-size: 1.35rem;
  }
}



@media (max-width: 480px) {
  .c2-info-content {
    max-width: 95%;
    padding: 1.1rem 1.2rem;
  }

  /* Stack Amount / From / To on mobile,
     and tighten the vertical gaps ONLY on small screens */
  .c2-input-row {
  /*  flex-direction: column; */
    gap: .5rem ;        /* tighter spacing between Amount, From, To */
  }

  .c2-input-group {
    gap: 0.14rem;        /* tighter label → field spacing */
  }
}

