:root {
      --bg-body: #050505;
      --bg-panel: #0f0f11;
      --bg-panel-alt: #18181d;
      --bg-card: #1f2027;
      --bg-card-hover: #2a2b34;
      --accent: #ff8a00;
      --accent-2: #ffd152;
      --text-primary: #fdf6eb;
      --text-muted: #9ea0b5;
      --border: rgba(255, 255, 255, 0.12);
      --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.45);
      --radius-lg: 22px;
      --radius-md: 14px;
      --radius-sm: 10px;
      color-scheme: dark;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      overflow-x: hidden;
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
      background: linear-gradient(180deg, #040404 0%, #09090d 45%, #15151c 100%);
      color: var(--text-primary);
      padding-top: 130px;
    }

    .page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      background: radial-gradient(circle at 12% 18%, rgba(255, 138, 0, 0.18), transparent 40%),
        radial-gradient(circle at 88% 0%, rgba(255, 209, 82, 0.12), transparent 45%);
    }

    header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 30;
      background: var(--bg-panel);
      border-bottom: 3px solid rgba(255, 138, 0, 0.25);
    }

    .header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 6px clamp(1.5rem, 4vw, 4rem);
      min-height: 78px;
    }

    .login-btn {
      border: 1px solid rgba(255, 255, 255, 0.2);
      border-radius: 999px;
      padding: 8px 16px;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #1a1105;
      font-weight: 600;
      cursor: pointer;
    }

    .provider-bar {
      padding: 8px clamp(1rem, 4vw, 3rem) 14px;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
      background: linear-gradient(90deg, rgba(255, 138, 0, 0.15), transparent);
      overflow-x: auto;
      scrollbar-width: none;
    }

    .provider-bar::-webkit-scrollbar {
      display: none;
    }

    .provider-bar-list {
      display: flex;
      gap: 10px;
      min-width: max-content;
    }

    .provider-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      border: 1px solid rgba(255, 255, 255, 0.22);
      padding: 6px 12px;
      background: rgba(0, 0, 0, 0.45);
      font-weight: 600;
      color: var(--text-primary);
      cursor: pointer;
    }

    .provider-pill img {
      width: 26px;
      height: 26px;
      object-fit: contain;
    }

    .provider-pill.active {
      border-color: var(--accent);
      background: rgba(255, 138, 0, 0.25);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-weight: 700;
      letter-spacing: 0.04em;
    }

    .brand img {
      height: 50px;
      width: auto;
      display: block;
    }

    .brand span {
      padding: 4px 10px;
      border-radius: var(--radius-sm);
      background: var(--accent);
      color: #1a1006;
      font-size: 0.78rem;
      text-transform: uppercase;
    }

    .top-links {
      display: flex;
      gap: 16px;
      font-weight: 500;
      color: var(--text-muted);
    }

    .top-links a {
      text-decoration: none;
      color: inherit;
      padding-bottom: 4px;
      border-bottom: 2px solid transparent;
      transition: color 0.2s ease, border-color 0.2s ease;
    }

    .top-links a:hover {
      color: var(--text-primary);
      border-color: var(--accent);
    }

    .primary-btn {
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #1d1204;
      font-weight: 600;
      border: none;
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      box-shadow: 0 8px 20px rgba(255, 138, 0, 0.35);
    }

    .primary-btn:hover {
      transform: translateY(-1px);
    }

    .layout {
      display: grid;
      grid-template-columns: 300px minmax(0, 1fr);
      gap: 24px;
      padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2rem, 6vw, 4rem);
      flex: 1;
    }

    .provider-nav {
      background: var(--bg-panel);
      border-radius: var(--radius-lg);
      padding: 20px;
      border: 1px solid var(--border);
      position: sticky;
      top: 110px;
      height: fit-content;
      max-height: calc(100vh - 140px);
      overflow-y: auto;
      box-shadow: var(--shadow-card);
    }

    .provider-nav h3 {
      margin-top: 0;
      font-size: 0.9rem;
      letter-spacing: 0.08em;
      color: var(--text-muted);
    }

    .provider-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .provider {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      border-radius: var(--radius-md);
      background: var(--bg-panel-alt);
      border: 1px solid transparent;
      cursor: pointer;
      transition: border-color 0.2s ease, background 0.2s ease;
      color: var(--text-primary);
    }

    .provider.active,
    .provider:hover {
      border-color: var(--accent);
      background: rgba(255, 138, 0, 0.12);
    }

    .provider span {
      display: flex;
      gap: 10px;
      align-items: center;
      font-weight: 600;
    }

    .provider span img {
      width: 26px;
      height: 26px;
      object-fit: contain;
    }

    .provider small {
      color: var(--text-muted);
      font-size: 0.72rem;
    }

    .content {
      display: flex;
      flex-direction: column;
      gap: 28px;
      padding-top: 8px;
    }

    .filters {
      display: flex;
      flex-direction: column;
      gap: 14px;
      margin-top: 10px;
    }

    .filter-card {
      background: rgba(10, 12, 20, 0.9);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 12px 16px;
      display: flex;
      gap: 12px;
      align-items: center;
      box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
    }

    .filter-search {
      height: 46px;
    }

    .search-icon {
      font-size: 0.9rem;
      opacity: 0.8;
    }

    .filter-search input {
      flex: 1;
      background: transparent;
      border: none;
      color: var(--text-primary);
      height: 100%;
      font-size: 0.95rem;
      appearance: none;
      -webkit-appearance: none;
    }

    .filter-search input::placeholder {
      color: var(--text-muted);
    }

    .filter-range {
      flex-direction: column;
      gap: 10px;
    }

    .filter-range__header {
      display: flex;
      justify-content: space-between;
      color: var(--text-muted);
      font-size: 0.85rem;
    }

    .filter-range input[type="range"] {
      accent-color: var(--accent);
      width: 100%;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 20px;
    }

    .card {
      background: var(--bg-card);
      border-radius: var(--radius-lg);
      border: 1px solid rgba(255, 255, 255, 0.08);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      position: relative;
      min-height: 320px;
      box-shadow: var(--shadow-card);
      transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
    }

    .card:hover {
      border-color: rgba(255, 138, 0, 0.6);
      background: var(--bg-card-hover);
      transform: translateY(-3px);
    }

    .card img {
      width: 100%;
      height: 150px;
      object-fit: cover;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .rtp-meter {
      position: relative;
      padding: 10px 16px;
      background: #15161c;
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .rtp-meter-track {
      width: 100%;
      height: 18px;
      background: rgba(255, 255, 255, 0.08);
      border-radius: 999px;
      overflow: hidden;
      position: relative;
    }

    .rtp-meter-fill {
      position: absolute;
      inset: 0;
      width: 0;
      background: linear-gradient(135deg, #00ff88, var(--accent));
      border-radius: 999px;
      transition: width 0.4s ease;
    }

    .rtp-meter-value {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      color: #0b0b0b;
      font-size: 0.82rem;
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    }

    .card-body {
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      flex: 1;
    }

    .card-body h3 {
      margin: 0;
    }

    .card-body p {
      margin: 0;
      color: var(--text-muted);
    }

    .volatility {
      font-size: 0.78rem;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.08em;
    }

    .card-footer {
      margin-top: auto;
      display: flex;
      gap: 10px;
    }

    .card-footer button,
    .card-footer a {
      flex: 1;
      border: none;
      border-radius: var(--radius-sm);
      padding: 10px 0;
      cursor: pointer;
      font-weight: 600;
      text-align: center;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .secondary-btn {
      background: rgba(255, 255, 255, 0.08);
      color: var(--text-primary);
      border: 1px solid rgba(255, 255, 255, 0.15);
    }

    footer {
      padding: 32px clamp(1.5rem, 4vw, 3.5rem);
      border-top: 1px solid var(--border);
      color: var(--text-muted);
      font-size: 0.86rem;
      text-align: center;
      background: var(--bg-panel);
    }

    .mobile-footer-nav {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(180deg, #0d0d11 0%, #050505 100%);
      border-top: 2px solid rgba(255, 138, 0, 0.35);
      display: flex;
      justify-content: space-around;
      padding: 8px 6px;
      z-index: 25;
    }

    .mobile-footer-nav button {
      flex: 1;
      background: transparent;
      border: none;
      color: var(--text-muted);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      font-size: 0.78rem;
      cursor: pointer;
    }

    .mobile-footer-nav .nav-icon {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      background: rgba(255, 255, 255, 0.08);
      color: var(--accent-2);
      font-size: 1.1rem;
    }

    .mobile-footer-nav .nav-icon img {
      width: 18px;
      height: 18px;
      object-fit: contain;
      display: block;
    }

    .back-to-top {
      position: fixed;
      right: 16px;
      bottom: 90px;
      padding: 10px 14px;
      border-radius: 999px;
      border: none;
      background: linear-gradient(135deg, var(--accent), var(--accent-2));
      color: #1a1105;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 12px 22px rgba(0, 0, 0, 0.4);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.2s ease;
      z-index: 30;
    }

    .back-to-top.visible {
      opacity: 1;
      pointer-events: auto;
    }

    body {
      padding-bottom: 90px;
    }

    @media (min-width: 1024px) {
      .mobile-footer-nav {
        display: none;
      }

      body {
        padding-bottom: 0;
        padding-top: 120px;
      }

      .back-to-top {
        bottom: 30px;
      }
    }

    @media (max-width: 1024px) {
      .layout {
        grid-template-columns: 1fr;
      }

      .provider-nav {
        position: relative;
        top: 0;
        max-height: none;
        display: none;
      }
    }

    @media (min-width: 1024px) {
      .provider-bar {
        display: none;
      }
    }

    @media (max-width: 640px) {
      header {
        flex-direction: column;
        gap: 12px;
      }

      .layout {
        padding: 0 1rem 2.5rem;
      }

      .filters {
        flex-direction: column;
        align-items: stretch;
        margin-top: 18px;
      }

      .filter-card {
        padding: 10px 12px;
      }

      .filter-search {
        height: 40px;
      }

      .filter-search input {
        font-size: 0.85rem;
      }

      .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
      }

      .card {
        min-height: 210px;
      }

      .card img {
        height: 90px;
      }

      .card-body {
        padding: 12px;
        gap: 6px;
      }

      .card-body h3 {
        font-size: 0.9rem;
      }

      .card-footer {
        flex-direction: column;
      }

      .card-footer button {
        padding: 8px 0;
        font-size: 0.78rem;
      }
    }
