/* Auto-generated site theme from app.html design */

:root {
  --bg-main: #0d1117;
  --bg-panel: #161b22;
  --bg-panel-soft: #21262d;
  --border-soft: #30363d;

  --accent: #238636;
  --accent-soft: #1f6feb;
  --danger: #9b111e;

  --text-main: #e6edf3;
  --text-muted: #8b949e;

  /* aliases for some components */
  --bg: var(--bg-main);
  --text: var(--text-main);
  --card: var(--bg-panel);
  --border: var(--border-soft);

  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition-fast: 0.16s ease-out;
}

* {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top left, #171b24 0, #0c0f15 45%, #050609 100%);
      color: var(--text-main);
      line-height: 1.5;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    img {
      max-width: 100%;
      display: block;
    }

    .page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .shell {
      width: 100%;
      max-width: 1355px;
      margin: 0 auto;
      padding: 16px 16px 40px;
    }

    /* HEADER */

    .header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 10px 18px;
      margin-bottom: 18px;
      background: rgba(9, 11, 18, 0.85);
      border: 1px solid var(--border-soft);
      border-radius: 0 0 var(--radius-xl) var(--radius-xl);
      backdrop-filter: blur(16px);
      position: sticky;
      top: 0;
      z-index: 20;
    }

    .logo-link {
      display: inline-flex;
      align-items: center;
    }

    .logo-link img {
      height: 32px;
      width: auto;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 14px;
      row-gap: 6px;
      font-size: 11px;
      color: var(--text-muted);
      flex-wrap: nowrap;
      white-space: nowrap;
      flex: 1 1 auto;
      min-width: 0;
      justify-content: center;
    }

    .nav a {
      position: relative;
      padding-bottom: 3px;
      cursor: pointer;
      white-space: nowrap;
    }

    .nav a::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width var(--transition-fast);
    }

    .nav a:hover::after {
      width: 100%;
    }

    .header-controls {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .btn {
      border: none;
      cursor: pointer;
      font-family: inherit;
      font-size: 13px;
      border-radius: 7px;
      padding: 7px 14px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast), border-color var(--transition-fast);
      white-space: nowrap;
    }

    .btn.btn-primary {
      background: linear-gradient(135deg, var(--accent), var(--accent-soft));
      color: #ffffff;
      text-shadow: 0 1px 0 rgba(0,0,0,0.25);
      box-shadow: 0 0 0 1px rgba(31,111,235,0.35), 0 0 22px rgba(35,134,54,0.28);}

    .btn.btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 0 0 1px rgba(31,111,235,0.60), 0 0 30px rgba(35,134,54,0.34);}

    .btn-ghost {
      background: #141722;
      color: var(--text-muted);
      border: 1px solid var(--border-soft);
    }

    .btn-ghost:hover {
      border-color: var(--accent);
      color: var(--text-main);
    }

    /* HERO */

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr);
      gap: 26px;
      margin-top: 24px;
      margin-bottom: 32px;
    }

    .hero-left {
      display: flex;
      flex-direction: column;
      gap: 18px;
      padding: 22px 22px 24px;
      border-radius: var(--radius-xl);
      background: linear-gradient(145deg, rgba(24,28,36,0.96), rgba(17,21,30,0.98));
      border: 1px solid var(--border-soft);
      box-shadow: 0 20px 50px rgba(0,0,0,0.55);
    }

    .hero-label {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      color: var(--accent-soft);
    }

    .hero-title {
      font-size: 30px;
      font-weight: 650;
    }

    .hero-title span {
      color: var(--accent-soft);
    }

    .hero-sub {
      font-size: 14px;
      color: var(--text-muted);
      max-width: 520px;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 4px;
    }

    .hero-note {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 6px;
      max-width: 520px;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 18px;
      margin-top: 10px;
      font-size: 12px;
      color: var(--text-muted);
    }

    .hero-meta span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .badge-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
    }

    .hero-right {
      border-radius: var(--radius-xl);
      background: radial-gradient(circle at top, #252b3a 0, #151822 55%, #090b10 100%);
      border: 1px solid var(--border-soft);
      padding: 14px 14px 10px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 18px 45px rgba(0,0,0,0.7);
      max-height: 420px;
      display: flex;
      align-items: center;
    }

    /* SLIDER */

    .slider {
      position: relative;
      border-radius: 9px;
      overflow: hidden;
      background: #10131b;
      border: 1px solid #242938;
      height: auto;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .slider-track {
      display: flex;
      width: 400%;
      transition: transform 0.4s ease-out;
    }

    .slide {
      width: 100%;
      flex-shrink: 0;
    }

    .slide a {
      display: block;
      width: 100%;
      height: 100%;
      cursor: zoom-in;
    }

    .slide img {
      width: 100%;
      height: auto;
      max-height: 380px;
      object-fit: contain;
    }

    .slider-dots {
      position: absolute;
      bottom: 8px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      gap: 6px;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(5,7,12,0.7);
      backdrop-filter: blur(8px);
    }

    .slider-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #4b4f5e;
      border: none;
      padding: 0;
      cursor: pointer;
    }

    .slider-dot.active {
      background: var(--accent-soft);
      box-shadow: 0 0 8px rgba(63,192,255,0.9);
    }

    .slider-arrow {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: none;
      background: rgba(7,10,16,0.8);
      color: var(--text-muted);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      backdrop-filter: blur(6px);
    }

    .slider-arrow-left { left: 10px; }
    .slider-arrow-right { right: 10px; }

    .slider-arrow span {
      display: inline-block;
      font-size: 14px;
      line-height: 1;
    }

    /* LIGHTBOX */

    .lightbox {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.88);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      cursor: zoom-out;
    }

    .lightbox.open {
      display: flex;
    }

    .lightbox img {
      max-width: 95vw;
      max-height: 95vh;
      border-radius: 10px;
      box-shadow: 0 18px 60px rgba(0,0,0,0.9);
      background: #05060a;
    }

    /* SECTIONS */

    .section {
      margin-bottom: 32px;
    }

    .section-title {
      font-size: 18px;
      margin-bottom: 12px;
    }

    .section-sub {
      font-size: 13px;
      color: var(--text-muted);
      margin-bottom: 16px;
      max-width: 720px;
    }

    .feature-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 14px;
    }

    .card {
      background: var(--bg-panel);
      border-radius: var(--radius-lg);
      padding: 14px 14px 15px;
      border: 1px solid var(--border-soft);
      box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    }

    .card-title {
      font-size: 14px;
      margin-bottom: 6px;
    }

    .card-body {
      font-size: 12px;
      color: var(--text-muted);
    }

    .card-tag {
      font-size: 10px;
      color: var(--accent-soft);
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 4px;
    }

    .badge-row {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      margin-top: 8px;
      font-size: 11px;
    }

    .badge {
      padding: 3px 8px;
      border-radius: 999px;
      background: #141824;
      border: 1px solid #262b36;
      color: var(--text-muted);
    }

    /* DOWNLOAD / CTA */

    .cta {
      display: flex;
      flex-wrap: wrap;
      gap: 14px;
      align-items: center;
      justify-content: space-between;
      padding: 16px 16px 14px;
      background: linear-gradient(135deg, #181d28, #131722);
      border-radius: var(--radius-xl);
      border: 1px solid var(--border-soft);
      box-shadow: 0 16px 42px rgba(0,0,0,0.65);
    }

    .cta-main {
      max-width: 520px;
    }

    .cta-title {
      font-size: 16px;
      margin-bottom: 6px;
    }

    .cta-text {
      font-size: 12px;
      color: var(--text-muted);
    }

    .cta-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .cta-note {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 4px;
    }

    /* FOOTER */

    .footer {
      padding-top: 22px;
      font-size: 11px;
      color: var(--text-muted);
      border-top: 1px solid #191d26;
      margin-top: 26px;
    }

    .footer-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      gap: 8px;
      align-items: center;
    }

    .footer-links {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
    }

    .footer-links a {
      color: var(--text-muted);
      font-size: 11px;
    }

    .footer-links a:hover {
      color: var(--accent-soft);
    }

    /* RESPONSIVE */

    
    @media (max-width: 1180px) {
      .header {
        padding: 10px 14px;
      }
      .nav {
        gap: 14px;
        font-size: 11px;
      }
      .header-controls {
        gap: 8px;
      }
      .btn.btn-ghost {
        padding: 10px 12px;
      }
    }

    @media (max-width: 1020px) {
      .nav {
        gap: 10px;
        font-size: 10.5px;
      }
      .nav a {
        letter-spacing: 0;
      }
    }

@media (max-width: 880px) {
      .hero {
        grid-template-columns: 1fr;
      }

      .header {
        flex-wrap: wrap;
        border-radius: 0 0 16px 16px;
      }

      .nav {
        display: none;
      }

      .hero-title {
        font-size: 24px;
      }
    }

    @media (max-width: 600px) {
      .shell {
        padding: 12px 12px 28px;
      }
      .card {
        padding: 12px 12px 13px;
      }
      .cta {
        padding: 14px 12px 12px;
      }
    }
  
    .contact-badge{
      display:inline-flex;
      align-items:center;
      gap:10px;
      padding:7px 12px;
      border-radius:10px;
      border:1px solid rgba(46, 204, 113, 0.55);
      background: rgba(16, 40, 24, 0.55);
      color:#dfffee;
      box-shadow: 0 0 0 1px rgba(46,204,113,0.15), 0 10px 25px rgba(0,0,0,0.35);
      font-size:12px;
      white-space:nowrap;
    }
    .contact-badge .wa{
      width:18px;height:18px;flex:0 0 18px;
      filter: drop-shadow(0 0 8px rgba(46,204,113,0.35));
    }
    .contact-badge a{
      color:#dfffee;
      text-decoration:none;
      font-weight:600;
    }
    .contact-badge small{
      display:block;
      color: rgba(223,255,238,0.75);
      font-weight:500;
      font-size:10px;
      margin-top:-2px;
    }
    .contact-badge:hover{
      border-color: rgba(46,204,113,0.9);
      box-shadow: 0 0 0 1px rgba(46,204,113,0.3), 0 0 22px rgba(46,204,113,0.25);
    }
    .download-pill{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid var(--border-soft);
      background:#10131b;
      color: var(--text-muted);
      font-size:11px;
    }

  
    .changelog-wrap{
      margin-top:18px;
      padding:16px;
      border-radius:14px;
      border:1px solid #222a3a;
      background: rgba(12, 15, 22, 0.65);
      box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    }
    .changelog-toolbar{
      display:flex;
      gap:10px;
      align-items:center;
      margin-bottom:12px;
      flex-wrap:wrap;
    }
    .changelog-toolbar .input{
      flex:1 1 240px;
      min-width:180px;
      height:34px;
      padding:0 10px;
      border-radius:10px;
      border:1px solid var(--border-soft);
      background: rgba(255,255,255,0.04);
      color: var(--text);
      outline:none;
    }
    .changelog-list{
      display:flex;
      flex-direction:column;
      gap:10px;
    }
    .cl-card{
      border:1px solid #232b3b;
      border-radius:12px;
      overflow:hidden;
      background: rgba(10, 12, 18, 0.55);
    }
    .cl-head{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:10px;
      padding:10px 12px;
      cursor:pointer;
      user-select:none;
    }
    .cl-left{
      display:flex;
      flex-direction:column;
      gap:2px;
      min-width:0;
    }
    .cl-ver{
      font-weight:700;
      letter-spacing:0.2px;
      font-size:13px;
      white-space:nowrap;
    }
    .cl-date{
      font-size:11px;
      color: var(--text-muted);
      white-space:nowrap;
    }
    .cl-badges{
      display:flex;
      gap:6px;
      flex-wrap:wrap;
      justify-content:flex-end;
    }
    .cl-badge{
      font-size:10px;
      padding:3px 8px;
      border-radius:999px;
      border:1px solid var(--border-soft);
      color: var(--text-muted);
      background: rgba(255,255,255,0.04);
      white-space:nowrap;
    }
    .cl-chevron{
      width:18px;height:18px;flex:0 0 18px;
      opacity:0.8;
      transition: transform .15s ease;
    }
    .cl-card[data-open="1"] .cl-chevron{ transform: rotate(180deg); }
    .cl-body{
      padding:0 12px 12px;
      display:none;
    }
    .cl-card[data-open="1"] .cl-body{ display:block; }
    .cl-body ul{
      margin:8px 0 0 18px;
      padding:0;
      color: var(--text);
    }
    .cl-body li{
      margin:6px 0;
      color: var(--text-muted);
      line-height:1.35;
      font-size:12px;
    }

  
    .note{
      padding:12px 14px;
      border-radius:14px;
      border:1px solid var(--border-soft);
      background: rgba(16, 19, 27, 0.75);
      color: var(--text-muted);
      font-size:12px;
      line-height:1.4;
    }
    .faq{
      margin-top:12px;
      display:flex;
      flex-direction:column;
      gap:10px;
    }
    .faq-item{
      border:1px solid #232b3b;
      border-radius:12px;
      padding:10px 12px;
      background: rgba(10, 12, 18, 0.55);
    }
    .faq-item summary{
      cursor:pointer;
      font-weight:700;
      font-size:13px;
      outline:none;
    }
    .faq-body{
      margin-top:8px;
      color: var(--text-muted);
      font-size:12px;
      line-height:1.45;
    }

  
    /* === Supported vehicles table polish === */
    .sv-pill{
      display:inline-flex;
      align-items:center;
      padding:2px 8px;
      margin-left:8px;
      border-radius:999px;
      border:1px solid var(--border-soft);
      background: rgba(255,255,255,0.04);
      color: var(--text-muted);
      font-size:10px;
      letter-spacing:0.08em;
      text-transform:uppercase;
      vertical-align:middle;
    }

    .sv-table{
      width:100%;
      max-width: 920px;
      margin: 10px auto 0;
      border-collapse: collapse;
      border-spacing: 0;
      table-layout: fixed;
      background: rgba(22, 27, 34, 0.35);
      border: 1px solid var(--border-soft);
      border-radius: 12px;
      overflow: hidden;
    }
    .sv-table thead th{
      text-align:center;
      font-size:12px;
      color: var(--text-main);
      padding:10px 10px;
      border-bottom: 1px solid var(--border-soft);
      background: rgba(22, 27, 34, 0.85);
    }
    .sv-table tbody td{
      padding:10px 12px;
      font-size:12px;
      color: var(--text-muted);
      border-top: 1px solid rgba(48,54,61,0.7);
      border-right: 1px solid rgba(48,54,61,0.7);
      vertical-align:middle;
      word-wrap: break-word;
    }
    .sv-table tbody tr td:last-child{ border-right: none; }
    .sv-table tbody tr:nth-child(odd){
      background: rgba(13, 17, 23, 0.35);
    }
    .sv-table tbody tr:hover{
      background: rgba(31,111,235,0.08);
    }
    .sv-table tbody td:nth-child(1){
      width: 62%;
      color: #b9c2d8;
    }
    .sv-table tbody td:nth-child(2){
      width: 38%;
      text-align:center;
      color: #a7b0c7;
    }

    /* Make "Typical jobs" list breathe a bit */
    .card-body ul{
      margin: 10px 0 0 18px;
      padding: 0;
    }
    .card-body li{
      margin: 6px 0;
      padding-left: 2px;
    }

/* ===== FCA PROXI Tool — Global UI skin (v3) ===== */
:root{
  --ui-radius: 16px;
  --ui-radius-sm: 10px;
  --ui-gap: 10px;

  --ui-bg0: #070a10;
  --ui-bg1: #0b1120;
  --ui-surface: rgba(255,255,255,0.06);
  --ui-surface2: rgba(255,255,255,0.085);
  --ui-border: rgba(255,255,255,0.14);
  --ui-border2: rgba(255,255,255,0.22);
  --ui-shadow: 0 14px 40px rgba(0,0,0,0.45);
  --ui-shadow2: 0 10px 26px rgba(0,0,0,0.35);
  --ui-text: var(--text, #e6edf3);
  --ui-muted: rgba(230,237,243,0.72);

  /* keep existing vars compatible */
  --bg: var(--ui-bg0);
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.14);

  --accent: var(--accent, #238636);
  --accent-soft: var(--accent-soft, #1f6feb);
  --danger: var(--danger, #9b111e);

  --ui-focus: rgba(31,111,235,0.60);
  --ui-ok: rgba(35,134,54,0.75);
  --ui-warn: rgba(242,193,79,0.80);
}

body.light{
  --ui-bg0: #f5f7fb;
  --ui-bg1: #ffffff;
  --ui-surface: rgba(0,0,0,0.04);
  --ui-surface2: rgba(0,0,0,0.055);
  --ui-border: rgba(0,0,0,0.10);
  --ui-border2: rgba(0,0,0,0.16);
  --ui-shadow: 0 18px 45px rgba(0,0,0,0.10);
  --ui-shadow2: 0 12px 28px rgba(0,0,0,0.08);
  --ui-muted: rgba(0,0,0,0.62);
  --ui-focus: rgba(0,102,204,0.42);

  --bg: var(--ui-bg0);
  --card: rgba(255,255,255,0.75);
  --border: rgba(0,0,0,0.10);
}

/* Background vibe */
body{
  background:
    radial-gradient(1200px 800px at 18% 12%, rgba(31,111,235,0.22), transparent 55%),
    radial-gradient(900px 700px at 82% 18%, rgba(35,134,54,0.18), transparent 60%),
    radial-gradient(1100px 900px at 55% 92%, rgba(242,193,79,0.10), transparent 62%),
    linear-gradient(180deg, var(--ui-bg0), var(--ui-bg1));
  color: var(--ui-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before,
body::after{
  content:"";
  position: fixed;
  inset: -200px;
  pointer-events:none;
  z-index: -1;
  filter: blur(55px);
  opacity: 0.7;
}
body::before{
  background:
    radial-gradient(520px 520px at 20% 30%, rgba(31,111,235,0.35), transparent 60%),
    radial-gradient(560px 560px at 85% 20%, rgba(35,134,54,0.28), transparent 62%);
  animation: uiFloatA 14s ease-in-out infinite;
}
body::after{
  background:
    radial-gradient(620px 620px at 60% 80%, rgba(31,111,235,0.22), transparent 65%),
    radial-gradient(460px 460px at 30% 85%, rgba(242,193,79,0.14), transparent 66%);
  animation: uiFloatB 18s ease-in-out infinite;
  opacity: 0.55;
}
@keyframes uiFloatA{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(60px, -40px, 0) scale(1.06); }
}
@keyframes uiFloatB{
  0%,100%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(-70px, 55px, 0) scale(1.05); }
}

/* Header */
header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.045));
  border-bottom: 1px solid var(--ui-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}
body.light header{
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.72));
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}
header h2{ letter-spacing: .4px; }

/* Tabs */
.tabs{
  position: sticky;
  top: 62px;
  z-index: 40;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border-bottom: 1px solid var(--ui-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px 16px 0;
  gap: 8px;
}
.tab-btn{
  position: relative;
  border-radius: 999px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ui-muted);
  transition: transform .12s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.tab-btn:hover{
  transform: translateY(-1px);
  color: var(--ui-text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}
.tab-btn.active{
  color: var(--ui-text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 10px 22px rgba(0,0,0,0.20);
}
body.light .tab-btn.active{
  background: linear-gradient(180deg, rgba(0,0,0,0.03), rgba(0,0,0,0.02));
  box-shadow: 0 10px 22px rgba(0,0,0,0.07);
}

/* Main container */
main{ padding-top: 14px; }

/* Cards become glass panels */
.card{
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-border);
  background: linear-gradient(180deg, var(--ui-surface2), var(--ui-surface));
  box-shadow: var(--ui-shadow2);
  padding: 12px 14px;
  transition: transform .14s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.card:hover{
  transform: translateY(-2px);
  border-color: var(--ui-border2);
  box-shadow: var(--ui-shadow);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
}
.card h3{
  margin: 0 0 8px 0;
  font-size: 13px;
  letter-spacing: .6px;
  text-transform: uppercase;
  opacity: .92;
}
.hint, .small{ color: var(--ui-muted); }

/* Buttons & controls */
.btn, button{
  flex: 0 0 auto;
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  color: var(--ui-text);
  box-shadow: 0 10px 20px rgba(0,0,0,0.20);
  transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}
.btn:hover, button:hover{
  transform: translateY(-1px);
  border-color: var(--ui-border2);
  box-shadow: 0 16px 28px rgba(0,0,0,0.28);
}
.btn:active, button:active{
  transform: translateY(0px) scale(0.99);
  box-shadow: 0 10px 20px rgba(0,0,0,0.20);
}
.btn:focus, button:focus{
  outline: none;
}
.btn:focus-visible, button:focus-visible{
  box-shadow: 0 0 0 3px var(--ui-focus), 0 12px 24px rgba(0,0,0,0.25);
  border-color: rgba(31,111,235,0.55);
}
.btn:disabled, button:disabled{
  opacity: 0.48;
  cursor: not-allowed;
  transform: none !important;
}

.btn-row button{ flex: 1 1 0; }

/* Ghost buttons */
.btn.btn-ghost, .btn-ghost{
  background: transparent !important;
  box-shadow: none !important;
}
.btn.btn-ghost:hover, .btn-ghost:hover{
  background: rgba(255,255,255,0.06) !important;
  box-shadow: 0 12px 22px rgba(0,0,0,0.18) !important;
}

/* Accent action (optional) */
.btn.btn-accent{
  border-color: rgba(35,134,54,0.45);
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,0.16), transparent 62%),
    linear-gradient(180deg, rgba(35,134,54,0.55), rgba(35,134,54,0.20));
}
body.light .btn.btn-accent{
  background:
    radial-gradient(120% 120% at 20% 10%, rgba(255,255,255,0.24), transparent 62%),
    linear-gradient(180deg, rgba(0,102,204,0.38), rgba(0,102,204,0.16));
}

/* Inputs/selects */
input[type="text"], input[type="number"], select, textarea{
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  background: rgba(0,0,0,0.22);
  color: var(--ui-text);
  transition: box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
body.light input[type="text"], body.light input[type="number"], body.light select, body.light textarea{
  background: rgba(255,255,255,0.75);
}
input[type="text"]:focus, input[type="number"]:focus, select:focus, textarea:focus{
  outline: none;
  border-color: rgba(31,111,235,0.55);
  box-shadow: 0 0 0 3px var(--ui-focus);
}

/* Nice file input button */
input[type="file"]{
  color: var(--ui-muted);
}
input[type="file"]::file-selector-button{
  margin-right: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--ui-border);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
  color: var(--ui-text);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
input[type="file"]::file-selector-button:hover{
  transform: translateY(-1px);
  border-color: var(--ui-border2);
  box-shadow: 0 16px 28px rgba(0,0,0,0.24);
}

/* Checkboxes */
input[type="checkbox"]{
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1px solid var(--ui-border);
  background: rgba(0,0,0,0.22);
  vertical-align: -3px;
  margin-right: 6px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.10);
  cursor: pointer;
  transition: transform .10s ease, border-color .14s ease, background .14s ease, box-shadow .14s ease;
}
body.light input[type="checkbox"]{ background: rgba(255,255,255,0.75); }
input[type="checkbox"]:hover{ transform: translateY(-1px); border-color: var(--ui-border2); }
input[type="checkbox"]:checked{
  border-color: rgba(35,134,54,0.55);
  background: linear-gradient(180deg, rgba(35,134,54,0.55), rgba(35,134,54,0.22));
}
body.light input[type="checkbox"]:checked{
  border-color: rgba(0,102,204,0.40);
  background: linear-gradient(180deg, rgba(0,102,204,0.40), rgba(0,102,204,0.16));
}
input[type="checkbox"]:checked::after{
  content:"";
  position:absolute;
  left: 4px; top: 1px;
  width: 5px; height: 9px;
  border: solid rgba(255,255,255,0.92);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
body.light input[type="checkbox"]:checked::after{
  border-color: rgba(255,255,255,0.92);
}

/* Tables */
table.compare, #proxiTable{
  border-radius: var(--ui-radius);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  box-shadow: var(--ui-shadow2);
}
table.compare th, table.compare td,
#proxiTable thead th, #proxiTable tbody td{
  border-color: rgba(255,255,255,0.10) !important;
}
#proxiTable thead th{
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04)) !important;
}
#proxiTable tbody tr:hover{
  background: rgba(255,255,255,0.06) !important;
}

/* Bytes viewer */
#bytes{
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-border);
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.12));
  box-shadow: var(--ui-shadow2);
}
.byte{
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,0.10), transparent 60%),
    rgba(0,0,0,0.18);
}
.byte:hover{
  background:
    radial-gradient(120% 140% at 20% 10%, rgba(255,255,255,0.12), transparent 60%),
    rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.16);
}
.byte.selected{
  outline: 3px solid rgba(31,111,235,0.55);
  outline-offset: 2px;
}

/* Modal */
.modal-overlay{
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.modal-box{
  border-radius: calc(var(--ui-radius) + 2px);
  border: 1px solid var(--ui-border);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05));
  box-shadow: var(--ui-shadow);
}
.modal-head{
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.04));
}

/* View transitions (safe: only animate enter) */
.view.active.view-anim{
  animation: viewIn 220ms cubic-bezier(.2,.9,.2,1) both;
}
@keyframes viewIn{
  from{ opacity: 0; transform: translateY(10px); filter: blur(2px); }
  to{ opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* License overlay matches the vibe */
#license-overlay{
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(31,111,235,0.22), transparent 60%),
    radial-gradient(900px 650px at 85% 20%, rgba(35,134,54,0.18), transparent 62%),
    rgba(0,0,0,0.78) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
#license-box{
  border-radius: 18px !important;
  border: 1px solid var(--ui-border) !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.05)) !important;
  box-shadow: var(--ui-shadow) !important;
}
#license-box button{
  border-radius: 12px !important;
}

/* Scrollbars */
*::-webkit-scrollbar{ width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(0,0,0,0.0);
  border-radius: 999px;
}
body.light *::-webkit-scrollbar-thumb{ background: rgba(0,0,0,0.18); }
*::-webkit-scrollbar-track{ background: rgba(0,0,0,0.0); }

/* Reduce motion support */
@media (prefers-reduced-motion: reduce){
  body::before, body::after{ animation: none !important; }
  .card, .btn, button, .tab-btn{ transition: none !important; }
  .view.active.view-anim{ animation: none !important; }
}


/* Custom Select: center label */
/* Make the value (e.g., EN) visually centered while keeping the caret on the right */
.cs-btn {
  display: grid !important;
  grid-template-columns: 1fr auto;
  align-items: center;
}
.cs-btn .cs-label {
  justify-self: center;
  text-align: center;
  width: 100%;
  pointer-events: none;
}
.cs-btn .cs-caret {
  justify-self: end;
  pointer-events: none;
}

/* ===== Site bridge to app UI (marketing pages) ===== */

html { scroll-behavior: smooth; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid rgba(31,111,235,0.55);
  outline-offset: 2px;
  border-radius: 10px;
}

.nav a{
  border-radius: 10px !important;
}

.nav a:hover{
  background: rgba(255,255,255,0.04) !important;
  color: var(--text-main) !important;
}

.hero-label{
  letter-spacing: .18em !important;
}

.hero-title span{
  color: var(--accent-soft) !important;
}

.section-title{
  letter-spacing: .12em !important;
}

code, pre {
  font-family: Consolas, ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", monospace;
}

pre{
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 12px 14px;
  overflow: auto;
}


/* Language switcher */
.lang-switch{display:flex;align-items:center;gap:6px;margin-left:10px}
.lang-link{font-weight:700;font-size:12px;letter-spacing:.08em;text-transform:uppercase;opacity:.75}
.lang-link:hover{opacity:1}
.lang-link.lang-active{opacity:1;text-decoration:underline;text-underline-offset:3px}
.lang-sep{opacity:.35;font-size:12px}
@media (max-width: 820px){
  .lang-switch{display:none}
}

/* --- Legal footer links + FOP info --- */
.footer-legal{
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-muted);
}
.footer-legal a{
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal a:hover{
  opacity: .9;
}
.footer-fop{
  margin-left: 6px;
  display: inline;
}

/* --- Legal pages --- */
.legal-page{
  max-width: 860px;
}
.legal-page h1{
  margin: 0 0 14px;
}
.legal-page h2{
  margin-top: 18px;
}
.legal-page ul{
  padding-left: 18px;
}
