
    :root {
      --bg-dark: #02040a;
      --bg-alt-dark: #050814;
      --accent: #f5c84c;
      --accent-strong: #ffdf6e;
      --text-dark: #f5f5f5;
      --text-light: #0f172a;
      --muted-dark: #9ca3af;
      --muted-light: #6b7280;
      --card-border-dark: rgba(255, 255, 255, 0.06);
      --radius-lg: 14px;
      --radius-xl: 22px;
      --shadow-soft-dark: 0 28px 80px rgba(0, 0, 0, 0.7);
      --shadow-soft-light: 0 18px 40px rgba(15,23,42,0.25);
      --shadow-sm-light: 0 10px 22px rgba(15,23,42,0.18);
      --nav-height: 70px;
    }

    * { box-sizing: border-box; }
    html, body { margin: 0; padding: 0; scroll-behavior: smooth; }

    /* DEFAULT = LIGHT THEME (WHITE) */
    body {
      font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: #e5e7eb;
      color: var(--text-light);
      line-height: 1.6;
    }

    a { color: inherit; text-decoration: none; }
    img { max-width: 100%; display: block; }

    /* Hide WP title */
    .entry-title, .page-title, .wp-block-post-title {
      display: none !important;
    }

    /* NAVBAR */
    .nav {
      position: sticky;
      top: 0;
      z-index: 40;
      backdrop-filter: blur(16px);
      background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(255,255,255,0.93), transparent);
      border-bottom: 1px solid rgba(209,213,219,0.9);
      height: var(--nav-height);
      display: flex;
      align-items: center;
    }
    .nav-inner {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .brand { display: flex; align-items: center; gap: 10px; }
    .brand-logo {
      width: 42px; height: 42px; border-radius: 999px;
      border: 2px solid var(--accent);
      box-shadow: 0 0 22px rgba(245, 200, 76, 0.7);
      background: radial-gradient(circle at 30% 20%, #ffeeb4, #d1a12b 45%, #0b0b0f 100%);
      display: flex; align-items: center; justify-content: center;
      font-weight: 800; font-size: 20px; letter-spacing: 0.06em;
    }
    .brand-text { display: flex; flex-direction: column; gap: 2px; }
    .brand-title {
      font-weight: 700; letter-spacing: 0.2em;
      font-size: 13px; text-transform: uppercase;
    }
    .brand-sub { font-size: 11px; color: var(--muted-light); }

    .nav-links {
      display: flex; align-items: center; gap: 22px;
      font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em;
    }
    .nav-links a {
      position: relative; padding-bottom: 4px; color: var(--muted-light); cursor: pointer;
    }
    .nav-links a::after {
      content: ""; position: absolute; left: 0; bottom: 0;
      width: 0; height: 2px;
      background: linear-gradient(90deg, var(--accent), var(--accent-strong));
      transition: width 0.18s ease-out;
    }
    .nav-links a:hover { color: #111827; }
    .nav-links a:hover::after { width: 100%; }

    .nav-cta {
      display: flex;
      align-items: center;
      gap: 12px;
    }
    .nav-cta-main {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .btn {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 8px; border-radius: 999px; padding: 10px 18px;
      font-size: 13px; border: 1px solid transparent; cursor: pointer;
      font-weight: 500; white-space: nowrap; transition: all 0.18s ease-out;
    }
    .btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      color: #000; box-shadow: 0 18px 40px rgba(245, 200, 76, 0.25);
    }
    .btn-primary:hover { box-shadow: 0 22px 55px rgba(245,200,76,0.38); transform: translateY(-1px); }
    .btn-ghost {
      background: #ffffff;
      color: var(--muted-light);
      border-color: #d1d5db;
    }
    .btn-ghost:hover { border-color: #111827; color: #111827; transform: translateY(-1px); }

    .nav-mobile-toggle { display: none; }

    /* THEME SWITCH */
    .theme-switch {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 11px;
      color: var(--muted-light);
    }
    .theme-switch input { display: none; }
    .theme-switch-label {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
    }
    .ts-track {
      width: 40px;
      height: 20px;
      border-radius: 999px;
      background: #e5e7eb;
      border: 1px solid #d1d5db;
      position: relative;
      transition: background 0.18s ease-out, border-color 0.18s ease-out;
    }
    .ts-thumb {
      position: absolute;
      top: 1px;
      left: 1px;
      width: 16px;
      height: 16px;
      border-radius: 999px;
      background: #ffffff;
      box-shadow: 0 1px 4px rgba(0,0,0,0.35);
      transition: transform 0.18s ease-out;
    }
    .theme-switch input:checked + .theme-switch-label .ts-track {
      background: #111827;
      border-color: #111827;
    }
    .theme-switch input:checked + .theme-switch-label .ts-thumb {
      transform: translateX(18px);
    }
    .theme-switch-text { min-width: 42px; }

    .nav-mobile-toggle {
      display: none;
      padding: 8px 10px;
      border-radius: 999px;
      font-size: 16px;
      line-height: 1;
    }

    @media (max-width: 768px) {
      .nav-links { display: none; }
      .nav-cta-main { display: none; }

      .nav-mobile-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }

      .nav-links.open {
        display: flex;
        position: absolute;
        top: var(--nav-height);
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 12px;
        padding: 10px 20px 14px;
        background: rgba(255,255,255,0.98);
        border-bottom: 1px solid #e5e7eb;
      }

      html[data-theme="dark"] .nav-links.open {
        background: rgba(2,4,10,0.97);
        border-bottom-color: rgba(148,163,184,0.4);
      }
    }

    /* LAYOUT */
    .page {
      max-width: 1200px; margin: 0 auto;
      padding: 32px 20px 80px;
    }
    @media (min-width: 1100px) { .page { padding-top: 40px; } }
    @media (max-width: 600px) { .page { padding: 24px 16px 60px; } }

    section { margin-bottom: 56px; }
    section:last-of-type { margin-bottom: 0; }

    .badge {
      display: inline-flex; align-items: center; gap: 6px;
      border-radius: 999px; padding: 4px 10px;
      font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em;
      background: #f9fafb; border: 1px solid #d1d5db;
      color: var(--muted-light);
    }
    .badge-dot {
      width: 6px; height: 6px; border-radius: 999px;
      background: var(--accent); box-shadow: 0 0 12px rgba(245,200,76,0.8);
    }

    h1, h2, h3, h4 { margin: 0; font-weight: 700; }

    .section-header {
      display: flex; align-items: center; justify-content: space-between;
      gap: 16px; margin-bottom: 24px;
    }
    .section-title-group { display: flex; flex-direction: column; gap: 6px; }

    .section-title { font-size: 24px; }
    .section-subtitle { font-size: 13px; color: var(--muted-light); max-width: 520px; }

    @media (max-width: 700px) {
      .section-header { flex-direction: column; align-items: flex-start; gap: 10px; }
      .section-title { font-size: 22px; }
    }

    /* JURISDICTION / TERRITORY BANNER */
    .jurisdiction-banner {
      margin: 0 0 16px;
      padding: 8px 12px;
      border-radius: 999px;
      background: #fef2f2;
      border: 1px solid #fecaca;
      font-size: 11px;
      color: #7f1d1d;
      text-align: center;
      line-height: 1.5;
    }
    html[data-theme="dark"] .jurisdiction-banner {
      background: rgba(127,29,29,0.25);
      border-color: rgba(248,113,113,0.7);
      color: #fecaca;
    }
    /* HERO – DASHBOARD STYLE */
    .hero {
      margin-bottom: 40px;
    }
    .hero-header {
      text-align: center;
      margin-bottom: 24px;
    }
    .hero-title {
      font-size: 30px;
      line-height: 1.2;
      margin: 4px 0 6px;
    }
    .hero-title span.gold {
      background: linear-gradient(120deg, var(--accent), var(--accent-strong));
      -webkit-background-clip: text;
      color: transparent;
    }
    .hero-subtitle {
      font-size: 14px;
      color: var(--muted-light);
      max-width: 640px;
      margin: 0 auto;
    }

    .hero-tiles {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 14px;
      margin-bottom: 24px;
    }

    .hero-tile {
      min-width: 180px;
      max-width: 260px;
      flex: 1;
      padding: 10px 14px;
      border-radius: 999px;
      border: 1px solid #d1d5db;
      background: #f9fafb;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      font-size: 13px;
      cursor: pointer;
      transition: all 0.18s ease-out;
    }
    .hero-tile span.icon { font-size: 16px; }
    .hero-tile-label-main { font-weight: 600; }
    .hero-tile-label-sub { font-size: 11px; color: var(--muted-light); }
    .hero-tile:hover {
      border-color: #111827;
      background: #ffffff;
      box-shadow: 0 10px 24px rgba(15,23,42,0.16);
      transform: translateY(-1px);
    }

    .hero-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 20px;
      align-items: stretch;
    }
    @media (max-width: 900px) {
      .hero-grid { grid-template-columns: minmax(0,1fr); }
    }

    .hero-card {
      background: #ffffff;
      border-radius: var(--radius-xl);
      padding: 20px;
      border: 1px solid #e5e7eb;
      box-shadow: var(--shadow-soft-light);
      position: relative;
      overflow: hidden;
      height: 100%;
    }
    @media (max-width: 600px) { .hero-card { padding: 16px; } }

    .hero-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 10px;
      font-size: 13px;
    }

    .hero-chip {
      padding: 4px 9px;
      border-radius: 999px;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.14em;
      background: #f9fafb;
      border: 1px solid #d1d5db;
      color: var(--muted-light);
    }
    .hero-badge {
      font-size: 11px;
      color: var(--accent-strong);
    }

    .hero-ea-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 11px;
      margin-bottom: 10px;
    }
    .hero-ea-table th,
    .hero-ea-table td {
      padding: 4px 6px;
      text-align: left;
    }
    .hero-ea-table th {
      font-weight: 600;
      color: var(--muted-light);
      border-bottom: 1px solid #e5e7eb;
    }
    .hero-ea-table tr:nth-child(even) { background: #f9fafb; }
    .hero-ea-table tr:nth-child(odd) { background: #ffffff; }
    .hero-ea-table td.value-positive { color: #16a34a; }
    .hero-ea-table td.value-dd { color: #dc2626; }
    .hero-ea-table a {
      color: #111827;
      text-decoration: underline;
      text-decoration-style: dotted;
    }

    .hero-disclaimer {
      font-size: 10px;
      color: var(--muted-light);
      opacity: 0.95;
    }

    .hero-ribbon {
      position: absolute;
      top: 10px;
      right: -60px;
      transform: rotate(33deg);
      background: linear-gradient(130deg, #15803d, #22c55e);
      color: #e5ffe7;
      padding: 4px 90px;
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: 0.16em;
      box-shadow: 0 18px 38px rgba(22,163,74,0.7);
    }

    .hero-extra-card-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 6px;
    }
    .hero-extra-card-sub {
      font-size: 12px;
      color: var(--muted-light);
      margin-bottom: 12px;
    }

    /* GRID / PANELS */
    .grid {
      display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
    }
    @media (max-width: 980px) { .grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
    @media (max-width: 700px) { .grid { grid-template-columns: minmax(0,1fr); } }

    .card {
      background: #ffffff;
      border-radius: var(--radius-lg);
      padding: 18px 18px 16px;
      border: 1px solid #e5e7eb;
      box-shadow: var(--shadow-sm-light);
      display: flex; flex-direction: column; gap: 10px;
    }
    @media (max-width: 600px) { .card { padding: 15px 14px 14px; } }

    .card-main { display: flex; gap: 10px; align-items: center; flex: 1; }
    .ea-logo {
      width: 60px; height: 60px; border-radius: 12px;
      flex-shrink: 0; object-fit: cover;
      box-shadow: 0 8px 16px rgba(15,23,42,0.25);
    }
    .card-text { display: flex; flex-direction: column; gap: 4px; }
    .card-title { font-size: 15px; font-weight: 600; }
    .card-tagline {
      font-size: 11px; color: var(--muted-light);
      text-transform: uppercase; letter-spacing: 0.14em;
    }

    .badge-outline {
      padding: 4px 8px; border-radius: 999px; font-size: 10px;
      border: 1px solid #d1d5db;
      color: var(--muted-light); text-transform: uppercase;
      background: #f9fafb;
    }

    .card-body { font-size: 13px; color: #111827; }
    .card-tags {
      display: flex; flex-wrap: wrap; gap: 8px;
      margin-bottom: 4px; font-size: 11px;
    }
    .tag {
      padding: 3px 9px; border-radius: 999px;
      background: #f9fafb;
      border: 1px solid #d1d5db;
      color: var(--muted-light);
    }
    .card-footer {
      display: flex; flex-wrap: wrap;
      gap: 8px; font-size: 12px; margin-top: 2px;
    }

    .btn-mini {
      display: inline-flex; align-items: center; justify-content: center;
      gap: 6px; border-radius: 999px; padding: 6px 11px;
      font-size: 11px; border: 1px solid #d1d5db;
      cursor: pointer; background: #f9fafb;
      transition: all 0.17s ease-out; color: #111827;
    }
    .btn-mini:hover { border-color: #111827; transform: translateY(-1px); }
    .btn-mini.primary {
      background: linear-gradient(130deg, var(--accent), var(--accent-strong));
      color: #111827; border-color: rgba(0,0,0,0.3);
    }
    .btn-mini.primary:hover { box-shadow: 0 14px 34px rgba(245,200,76,0.35); }

    .stack {
      display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px;
    }
    @media (max-width: 900px) { .stack { grid-template-columns: minmax(0,1fr); } }

    .panel {
      background: #ffffff;
      border-radius: var(--radius-lg);
      padding: 18px 18px 16px;
      border: 1px solid #e5e7eb;
      box-shadow: var(--shadow-sm-light);
      font-size: 13px;
    }
    @media (max-width: 600px) { .panel { padding: 15px 14px 14px; } }

    .panel-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
    .panel-sub { font-size: 11px; color: var(--muted-light); margin-bottom: 10px; }

    .panel-list {
      list-style: none; padding: 0; margin: 0 0 10px;
      color: #111827;
    }
    .panel-list li {
      margin-bottom: 6px; display: flex; align-items: flex-start; gap: 6px;
    }
    .panel-list li::before {
      content: "•"; color: var(--accent-strong);
      margin-top: 0; font-size: 14px;
    }

    .panel-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
    .panel-pill-link {
      font-size: 12px; padding: 6px 11px;
      border-radius: 999px; border: 1px solid #e5d48c;
      background: linear-gradient(135deg,#fff7c2,#ffe27a);
      display: inline-flex; align-items: center; gap: 6px;
      color: #111827; cursor: pointer;
      font-weight: 500;
    }
    .panel-pill-link span.arrow { font-size: 11px; opacity: 0.9; }

    .panel-note { font-size: 11px; color: var(--muted-light); margin-top: 6px; }

    .panel-badge-row {
      display: flex; flex-wrap: wrap; gap: 7px;
      margin-top: 6px; font-size: 11px;
    }
    .panel-badge {
      padding: 2px 8px; border-radius: 999px;
      border: 1px solid #d1d5db; color: var(--muted-light);
      background: #f9fafb;
    }

    /* CONTACT / CUSTOM DEV FORM */
    .contact-grid {
      display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px;
    }
    @media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0,1fr); } }

    .contact-item { margin-bottom: 8px; font-size: 13px; }
    .contact-label {
      font-size: 11px; color: var(--muted-light);
      text-transform: uppercase; letter-spacing: 0.14em;
    }
    .contact-value { font-size: 14px; }

    .contact-pills {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 4px;
    }

    .contact-pill {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 10px;
      border-radius: 999px;
      border: 1px solid #e5e7eb;
      background: #f9fafb;
      font-size: 13px;
    }

    .contact-pill-icon {
      width: 20px;
      height: 20px;
      border-radius: 999px;
      background: #0f172a;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      color:#f9fafb;
      flex-shrink: 0;
    }

    .contact-pill-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .contact-pill-title {
      font-size: 12px;
      font-weight: 600;
    }

    .contact-pill-sub {
      font-size: 11px;
      color: var(--muted-light);
    }
    .legal-box {
      font-size: 11px; color: var(--muted-light);
      background: #ffffff;
      border-radius: var(--radius-lg);
      padding: 14px 16px;
      border: 1px solid #e5e7eb;
      line-height: 1.7;
      box-shadow: var(--shadow-sm-light);
    }
    .legal-box strong { color: #111827; }

    .telegram-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    /* Custom dev form */
    .custom-dev-form {
      margin-top: 10px;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 4px;
      font-size: 13px;
    }

    .form-label {
      font-size: 12px;
      color: var(--muted-light);
    }

    .form-label span.required {
      color: #b91c1c;
    }

    input[type="text"],
    input[type="email"],
    textarea {
      width: 100%;
      border-radius: 10px;
      border: 1px solid #d1d5db;
      padding: 8px 10px;
      font-family: inherit;
      font-size: 13px;
      background: #ffffff;
      color: #111827;
    }

    textarea {
      min-height: 90px;
      resize: vertical;
    }

    .custom-dev-actions {
      margin-top: 4px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .custom-dev-status {
      margin-top: 4px;
      font-size: 11px;
      min-height: 14px;
    }

    .custom-dev-note {
      margin-top: 6px;
      font-size: 11px;
      color: var(--muted-light);
    }

    /* FOOTER */
    footer {
      margin-top: 32px; padding: 20px 20px 26px;
      border-top: 1px solid #d1d5db;
      font-size: 11px; color: var(--muted-light);
      display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
      background:#f9fafb;
    }
    .footer-pill {
      padding: 5px 12px; border-radius: 999px;
      border: 1px solid #d1d5db;
      background: #ffffff;
      cursor:pointer;
      font-size:11px;
    }
    .footer-pill:hover{
      border-color:#111827;
      color:#111827;
    }

    /* BACK TO TOP */
    .back-to-top {
      position: fixed;
      bottom: 24px;
      right: 20px;
      z-index: 50;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid #111827;
      background: #111827;
      color: #f9f5f5;
      font-size: 12px;
      cursor: pointer;
      box-shadow: 0 10px 25px rgba(0,0,0,0.6);
      opacity: 0;
      pointer-events: none;
      transform: translateY(6px);
      transition: opacity 0.18s ease-out, transform 0.18s ease-out;
    }
    .back-to-top.show {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    .back-to-top:hover {
      border-color: var(--accent);
      color: var(--accent-strong);
    }
    @media (max-width: 768px){
      .back-to-top{
        bottom: 90px;
        right: 84px;
      }
    }

    /* Snapshot tag */
    .tag-snapshot {
      background: #dcfce7;
      border-color: #86efac;
      color: #166534;
      font-weight: 600;
    }
    /* DARK THEME */
    html[data-theme="dark"] body {
      background: radial-gradient(circle at top, #141b31 0, #02040a 55%, #000000 100%);
      color: var(--text-dark);
    }

    html[data-theme="dark"] .nav {
      background: linear-gradient(to bottom, rgba(2,4,10,0.93), rgba(2,4,10,0.78), transparent);
      border-bottom-color: rgba(255,255,255,0.04);
    }

    html[data-theme="dark"] .brand-sub,
    html[data-theme="dark"] .nav-links a,
    html[data-theme="dark"] .section-subtitle,
    html[data-theme="dark"] .hero-subtitle,
    html[data-theme="dark"] .panel-sub,
    html[data-theme="dark"] .panel-note,
    html[data-theme="dark"] footer {
      color: var(--muted-dark);
    }

    html[data-theme="dark"] .btn-ghost {
      border-color: rgba(156,163,175,0.4);
      color: var(--muted-dark);
      background: transparent;
    }
    html[data-theme="dark"] .btn-ghost:hover {
      border-color: var(--accent);
      color: var(--accent-strong);
    }

    html[data-theme="dark"] .hero-card,
    html[data-theme="dark"] .card,
    html[data-theme="dark"] .panel,
    html[data-theme="dark"] .legal-box {
      background: linear-gradient(145deg, #050816, #020308);
      border-color: var(--card-border-dark);
      box-shadow: var(--shadow-soft-dark);
      color: var(--text-dark);
    }

    html[data-theme="dark"] .card-body,
    html[data-theme="dark"] .panel,
    html[data-theme="dark"] .legal-box {
      color: var(--text-dark);
    }

    html[data-theme="dark"] .badge,
    html[data-theme="dark"] .badge-outline,
    html[data-theme="dark"] .panel-badge,
    html[data-theme="dark"] .tag,
    html[data-theme="dark"] .hero-tile,
    html[data-theme="dark"] .footer-pill,
    html[data-theme="dark"] .contact-pill {
      background: rgba(15,23,42,0.9);
      border-color: rgba(148,163,184,0.6);
      color: var(--muted-dark);
    }

    html[data-theme="dark"] .tag-snapshot {
      background: rgba(22, 101, 52, 0.35);
      border-color: #4ade80;
      color: #bbf7d0;
    }

    html[data-theme="dark"] .hero-ea-table tr:nth-child(even) {
      background: rgba(15,23,42,0.75);
    }
    html[data-theme="dark"] .hero-ea-table tr:nth-child(odd) {
      background: rgba(15,23,42,0.55);
    }
    html[data-theme="dark"] .hero-ea-table {
      color: #f5f5f5 !important;
      border-color: rgba(148,163,184,0.4);
    }
    html[data-theme="dark"] .hero-ea-table th {
      color: #f5f5f5 !important;
      border-bottom-color: rgba(148,163,184,0.4);
    }
    html[data-theme="dark"] .hero-ea-table td {
      color: #f5f5f5 !important;
    }
    html[data-theme="dark"] .hero-ea-table td.value-positive {
      color: #22c55e !important;
    }
    html[data-theme="dark"] .hero-ea-table td.value-dd {
      color: #ef4444 !important;
    }
    html[data-theme="dark"] .hero-ea-table a {
      color: #f5f5f5 !important;
      text-decoration-color: rgba(249,249,249,0.7);
    }

    html[data-theme="dark"] .panel-list,
    html[data-theme="dark"] .panel-list li {
      color: #f5f5f5;
    }
    html[data-theme="dark"] .panel-note {
      color: #9ca3af;
    }

    html[data-theme="dark"] .panel-badge,
    html[data-theme="dark"] .panel-badge-row a {
      color: #e5e7eb;
      border-color: rgba(148,163,184,0.7);
      background: rgba(15,23,42,0.9);
    }

    /* Yellow robot links – DARK MODE */
    html[data-theme="dark"] .panel-pill-link {
      background: linear-gradient(135deg,#fbbf24,#facc15) !important;
      border-color: #facc15 !important;
      color: #111827 !important;
    }

    html[data-theme="dark"] input[type="text"],
    html[data-theme="dark"] input[type="email"],
    html[data-theme="dark"] textarea {
      background: rgba(15,23,42,0.9);
      border-color: rgba(148,163,184,0.7);
      color: #f5f5f5;
    }

    html[data-theme="dark"] .section-title,
    html[data-theme="dark"] .panel-title {
      color: #ffffff;
    }
    html[data-theme="dark"] .contact-label,
    html[data-theme="dark"] .contact-value {
      color: #f5f5f5;
    }
    html[data-theme="dark"] .contact-value a {
      color: #f5f5f5;
      text-decoration-color: rgba(249,249,249,0.7);
    }

    html[data-theme="dark"] .legal-box,
    html[data-theme="dark"] .legal-box p {
      color: #f5f5f5 !important;
    }

    html[data-theme="dark"] footer {
      background: #020617;
      border-top-color: rgba(148,163,184,0.25);
    }
    html[data-theme="dark"] .back-to-top {
      background: rgba(15,23,42,0.9);
      color: #e5e7eb;
      border-color: rgba(148,163,184,0.6);
    }

    html[data-theme="dark"] .ts-track {
      background: #020617;
      border-color: #111827;
    }
    html[data-theme="dark"] .ts-thumb {
      background: #f9f5f5;
    }

    /* LEGAL ACCORDION (collapsible legal text) */
    .legal-accordion {
      margin-top: 6px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 12px;
    }

    .legal-item {
      border-radius: 12px;
      border: 1px solid #e5e7eb;
      background: #ffffff;
      overflow: hidden;
    }

    .legal-item > summary {
      list-style: none;
      cursor: pointer;
      padding: 8px 12px;
      font-weight: 600;
      font-size: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .legal-item > summary::-webkit-details-marker {
      display: none;
    }

    .legal-item > summary::after {
      content: "+";
      font-weight: 700;
      margin-left: 10px;
      font-size: 14px;
    }

    .legal-item[open] > summary::after {
      content: "–";
    }

    .legal-body {
      padding: 6px 12px 10px;
      font-size: 11px;
      line-height: 1.6;
      color: #4b5563;
    }

    .legal-body p {
      margin: 0 0 6px;
    }

    .legal-body p:last-child {
      margin-bottom: 0;
    }

    /* Dark mode styling for legal accordion */
    html[data-theme="dark"] .legal-item {
      border-color: rgba(148,163,184,0.6);
      background: rgba(15,23,42,0.96);
    }

    html[data-theme="dark"] .legal-item > summary {
      color: #e5e7eb;
    }

    html[data-theme="dark"] .legal-body {
      color: #e5e7eb;
    }

    /* Slightly tighter on mobile */
    @media (max-width: 768px) {
      .legal-item > summary {
        padding: 7px 10px;
        font-size: 11px;
      }
      .legal-body {
        padding: 6px 10px 9px;
        font-size: 11px;
        line-height: 1.4;
      }
    }

    /* CUSTOM BUILD COLLAPSE CSS */
    .custom-accordion {
      margin-top: 10px;
      border-radius: var(--radius-lg);
      border: 1px solid #e5e7eb;
      background: #ffffff;
      box-shadow: var(--shadow-sm-light);
      overflow: hidden;
    }

    .custom-accordion summary {
      list-style: none;
      cursor: pointer;
      padding: 12px 16px;
      font-size: 14px;
      font-weight: 600;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .custom-accordion summary::-webkit-details-marker {
      display: none;
    }

    .custom-accordion-summary-sub {
      font-size: 11px;
      color: var(--muted-light);
      font-weight: 400;
      margin-top: 2px;
    }

    .custom-accordion summary::after {
      content: "+";
      font-size: 16px;
      opacity: 0.8;
      margin-left: 10px;
    }

    .custom-accordion[open] summary::after {
      content: "–";
    }

    .custom-accordion-body {
      border-top: 1px solid #e5e7eb;
      padding: 10px 16px 14px;
      font-size: 13px;
    }

    .custom-accordion-body .panel-sub {
      margin-bottom: 10px;
    }

    /* Dark mode for custom build */
    html[data-theme="dark"] .custom-accordion {
      background: linear-gradient(145deg, #050816, #020308);
      border-color: var(--card-border-dark);
      box-shadow: var(--shadow-soft-dark);
    }

    html[data-theme="dark"] .custom-accordion summary {
      color: #f5f5f5;
    }

    html[data-theme="dark"] .custom-accordion-summary-sub {
      color: var(--muted-dark);
    }

    html[data-theme="dark"] .custom-accordion-body {
      border-top-color: rgba(148,163,184,0.55);
      color: #e5e7eb;
    }
  