/* ==========================================================================
   TLS DIRECT — DOWNLOAD PAGE STYLES
   ========================================================================== */

:root {
      --bg-base: #070a12;
      --bg-card: rgba(15, 23, 42, 0.78);
      --bg-card-hover: rgba(30, 41, 59, 0.88);
      --border-color: rgba(148, 163, 184, 0.14);
      --border-glow: rgba(56, 189, 248, 0.35);
      --primary: #38bdf8;
      --primary-dark: #0284c7;
      --accent-purple: #818cf8;
      --accent-emerald: #10b981;
      --accent-amber: #f59e0b;
      --text-main: #f8fafc;
      --text-muted: #94a3b8;
      --text-dim: #64748b;
      --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.18);
    }

    [data-theme="light"] {
      --bg-base: #f1f5f9;
      --bg-card: rgba(255, 255, 255, 0.92);
      --bg-card-hover: #ffffff;
      --border-color: rgba(100, 116, 139, 0.18);
      --border-glow: rgba(2, 132, 199, 0.25);
      --primary: #0284c7;
      --primary-dark: #0369a1;
      --text-main: #0f172a;
      --text-muted: #475569;
      --text-dim: #94a3b8;
      --shadow-glow: 0 10px 30px rgba(2, 132, 199, 0.12);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background: radial-gradient(circle at top center, rgba(56, 189, 248, 0.14), transparent 45%),
                  radial-gradient(circle at 10% 80%, rgba(129, 140, 248, 0.08), transparent 40%),
                  radial-gradient(circle at 90% 60%, rgba(16, 185, 129, 0.06), transparent 35%),
                  var(--bg-base);
      color: var(--text-main);
      font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
      min-height: 100vh;
      line-height: 1.6;
      overflow-x: hidden;
      transition: background 0.3s ease, color 0.3s ease;
    }

    [dir="rtl"] {
      font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
      text-align: right;
    }

    /* ══ NAVBAR ══ */
    .dl-navbar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 16px 36px;
      background: rgba(7, 10, 18, 0.82);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-color);
      position: sticky;
      top: 0;
      z-index: 100;
    }
    [data-theme="light"] .dl-navbar {
      background: rgba(241, 245, 249, 0.88);
    }

    .brand-logo {
      display: flex;
      align-items: center;
      gap: 12px;
      font-family: 'Outfit', sans-serif;
      font-size: 1.35rem;
      font-weight: 800;
      color: #fff;
      text-decoration: none;
      letter-spacing: -0.5px;
    }
    [data-theme="light"] .brand-logo { color: #0f172a; }

    .brand-logo .logo-icon {
      width: 38px;
      height: 38px;
      background: linear-gradient(135deg, #0284c7, #38bdf8);
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.15rem;
      box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
    }

    .nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .btn-nav {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: 10px;
      font-size: 0.9rem;
      font-weight: 600;
      text-decoration: none;
      transition: all 0.2s ease;
      cursor: pointer;
    }

    .btn-nav-outline {
      background: rgba(148, 163, 184, 0.08);
      border: 1px solid var(--border-color);
      color: var(--text-main);
    }
    .btn-nav-outline:hover {
      background: rgba(148, 163, 184, 0.16);
      border-color: var(--primary);
    }

    .btn-nav-primary {
      background: linear-gradient(135deg, #0284c7, #38bdf8);
      color: white;
      border: none;
      box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    }
    .btn-nav-primary:hover {
      box-shadow: 0 6px 20px rgba(56, 189, 248, 0.5);
      transform: translateY(-1px);
    }

    .theme-toggle-btn {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: rgba(148, 163, 184, 0.08);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      font-size: 1rem;
      transition: all 0.2s ease;
    }
    .theme-toggle-btn:hover {
      border-color: var(--primary);
      color: var(--primary);
    }

    /* ══ HERO SECTION ══ */
    .hero-container {
      max-width: 1100px;
      margin: 0 auto;
      padding: 50px 24px 20px;
      text-align: center;
    }

    .badge-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 18px;
      border-radius: 999px;
      font-size: 0.85rem;
      font-weight: 700;
      background: rgba(56, 189, 248, 0.12);
      border: 1px solid rgba(56, 189, 248, 0.35);
      color: var(--primary);
      margin-bottom: 22px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      animation: pulseGlow 2.5s infinite;
    }

    @keyframes pulseGlow {
      0%, 100% { box-shadow: 0 0 10px rgba(56, 189, 248, 0.2); }
      50% { box-shadow: 0 0 25px rgba(56, 189, 248, 0.45); }
    }

    .hero-title {
      font-family: 'Outfit', sans-serif;
      font-size: 3.1rem;
      font-weight: 800;
      line-height: 1.15;
      margin-bottom: 18px;
      letter-spacing: -1px;
    }

    .gradient-text {
      background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .hero-subtitle {
      font-size: 1.15rem;
      color: var(--text-muted);
      max-width: 860px;
      margin: 0 auto 30px;
      line-height: 1.7;
      white-space: normal !important;
      word-wrap: break-word;
      overflow-wrap: break-word;
      box-sizing: border-box;
      padding: 0 16px;
    }

    /* ══ SECTION DES GRANDS BADGES OFFICIELS EN HAUT ══ */
    .top-store-badges-container {
      margin: 25px auto 45px;
      max-width: 900px;
      padding: 26px 32px;
      background: rgba(15, 23, 42, 0.72);
      border: 1px solid rgba(56, 189, 248, 0.32);
      border-radius: 22px;
      backdrop-filter: blur(20px);
      box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(56, 189, 248, 0.15);
    }
    [data-theme="light"] .top-store-badges-container {
      background: rgba(255, 255, 255, 0.95);
      border-color: rgba(2, 132, 199, 0.25);
      box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12);
    }

    .top-store-badges-title {
      font-family: 'Outfit', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-main);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-bottom: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .top-store-badges-row {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
    }

    .top-store-col {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
    }

    .platform-dl-counter-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 5px 14px;
      background: rgba(15, 23, 42, 0.78);
      border: 1px solid rgba(148, 163, 184, 0.22);
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text-muted);
      backdrop-filter: blur(8px);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
      transition: all 0.3s ease;
    }
    .platform-dl-counter-badge:hover {
      border-color: rgba(56, 189, 248, 0.45);
      background: rgba(30, 41, 59, 0.9);
      transform: translateY(-1px);
    }
    [data-theme="light"] .platform-dl-counter-badge {
      background: rgba(255, 255, 255, 0.92);
      border-color: rgba(148, 163, 184, 0.28);
      color: #475569;
    }

    .platform-dl-counter-badge .dl-count-num {
      font-family: 'Outfit', sans-serif;
      font-size: 0.92rem;
      font-weight: 800;
      color: #38bdf8;
      letter-spacing: 0.3px;
    }
    .platform-dl-counter-badge.android .dl-count-num {
      color: #10b981;
    }

    .card-dl-counter-row {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      margin-top: 10px;
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--text-muted);
    }
    .card-dl-counter-row .card-dl-count {
      font-family: 'Outfit', sans-serif;
      font-size: 0.92rem;
      font-weight: 800;
      color: #38bdf8;
    }
    .card-dl-counter-row.android .card-dl-count {
      color: #10b981;
    }

    .hero-store-badge-card {
      display: flex;
      align-items: center;
      gap: 18px;
      padding: 14px 26px;
      background: rgba(30, 41, 59, 0.85);
      border: 1px solid rgba(148, 163, 184, 0.25);
      border-radius: 18px;
      text-decoration: none;
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    [data-theme="light"] .hero-store-badge-card {
      background: #f8fafc;
      border-color: rgba(148, 163, 184, 0.3);
    }

    .hero-store-badge-card:hover {
      transform: translateY(-4px) scale(1.02);
      border-color: var(--primary);
      box-shadow: 0 10px 32px rgba(56, 189, 248, 0.35);
      background: rgba(30, 41, 59, 1);
    }
    [data-theme="light"] .hero-store-badge-card:hover {
      background: #ffffff;
    }

    .hero-store-img-lg {
      height: 64px; /* Grand et immédiatement visible */
      width: auto;
      display: block;
      filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
      transition: transform 0.2s ease;
    }
    .hero-store-badge-card:hover .hero-store-img-lg {
      transform: scale(1.03);
    }

    .hero-store-badge-info {
      display: flex;
      flex-direction: column;
      text-align: left;
    }
    [dir="rtl"] .hero-store-badge-info {
      text-align: right;
    }

    .hero-store-badge-info .badge-edition {
      font-size: 0.82rem;
      color: var(--text-muted);
      font-weight: 600;
    }
    .hero-store-badge-info .badge-action {
      font-family: 'Outfit', sans-serif;
      font-size: 1.12rem;
      font-weight: 800;
      color: var(--text-main);
      display: flex;
      align-items: center;
      gap: 6px;
      margin-top: 2px;
    }
    .hero-store-badge-card:hover .badge-action {
      color: var(--primary);
    }

    .hero-stats-row {
      display: flex;
      justify-content: center;
      gap: 18px;
      flex-wrap: wrap;
      margin-bottom: 45px;
    }

    .stat-badge {
      display: flex;
      align-items: center;
      gap: 10px;
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      padding: 10px 20px;
      border-radius: 12px;
      backdrop-filter: blur(12px);
    }
    .stat-badge i { font-size: 1.1rem; color: var(--accent-emerald); }
    .stat-badge strong { font-size: 1.05rem; color: var(--text-main); }
    .stat-badge span { font-size: 0.85rem; color: var(--text-muted); }

    /* ══ APP CARDS GRID ══ */
    .download-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      width: 100%;
      box-sizing: border-box;
      gap: 30px;
      max-width: 1100px;
      margin: 0 auto 70px;
      padding: 0 24px;
    }

    .dl-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 24px;
      padding: 36px 32px;
      position: relative;
      overflow: hidden;
      backdrop-filter: blur(16px);
      transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .dl-card:hover {
      transform: translateY(-5px);
      border-color: var(--border-glow);
      box-shadow: var(--shadow-glow);
      background: var(--bg-card-hover);
    }

    .dl-card.highlight {
      border-color: rgba(56, 189, 248, 0.4);
      background: linear-gradient(180deg, rgba(56, 189, 248, 0.05) 0%, var(--bg-card) 40%);
    }

    .card-top-tag {
      position: absolute;
      top: 18px;
      right: 22px;
      font-size: 0.75rem;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 20px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }
    .tag-desktop {
      background: rgba(56, 189, 248, 0.15);
      color: var(--primary);
      border: 1px solid rgba(56, 189, 248, 0.3);
    }
    .tag-mobile {
      background: rgba(16, 185, 129, 0.15);
      color: var(--accent-emerald);
      border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .card-icon-box {
      width: 64px;
      height: 64px;
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 2rem;
      margin-bottom: 22px;
    }
    .icon-win {
      background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(56, 189, 248, 0.3));
      color: #38bdf8;
      border: 1px solid rgba(56, 189, 248, 0.3);
    }
    .icon-android {
      background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(52, 211, 153, 0.3));
      color: #34d399;
      border: 1px solid rgba(16, 185, 129, 0.3);
    }

    .card-title {
      font-family: 'Outfit', sans-serif;
      font-size: 1.7rem;
      font-weight: 800;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .card-version {
      font-size: 0.88rem;
      color: var(--primary);
      font-weight: 600;
      margin-bottom: 16px;
    }

    .card-desc {
      font-size: 0.98rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 24px;
    }

    .feature-list {
      list-style: none;
      margin-bottom: 28px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .feature-list li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      font-size: 0.92rem;
      color: var(--text-main);
    }
    .feature-list li i {
      color: var(--accent-emerald);
      font-size: 0.95rem;
      margin-top: 4px;
      flex-shrink: 0;
    }

    .btn-download-primary {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      width: 100%;
      padding: 16px 24px;
      border-radius: 14px;
      font-family: 'Outfit', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: white;
      text-decoration: none;
      transition: all 0.25s ease;
      cursor: pointer;
      border: none;
    }
    .btn-download-win {
      background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
      box-shadow: 0 8px 22px rgba(2, 132, 199, 0.35);
    }
    .btn-download-win:hover {
      background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
      box-shadow: 0 12px 28px rgba(56, 189, 248, 0.5);
      transform: translateY(-2px);
    }

    .btn-download-android {
      background: linear-gradient(135deg, #059669 0%, #047857 100%);
      box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
    }
    .btn-download-android:hover {
      background: linear-gradient(135deg, #047857 0%, #059669 100%);
      box-shadow: 0 12px 28px rgba(16, 185, 129, 0.5);
      transform: translateY(-2px);
    }

    .card-meta-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.8rem;
      color: var(--text-dim);
      margin-top: 18px;
      padding-top: 14px;
      border-top: 1px solid var(--border-color);
    }

    /* ══ COMPARISON SECTION ══ */
    .compare-section {
      max-width: 1000px;
      margin: 0 auto 80px;
      padding: 0 24px;
    }

    .section-header {
      text-align: center;
      margin-bottom: 36px;
    }

    .section-header h2 {
      font-family: 'Outfit', sans-serif;
      font-size: 2.2rem;
      font-weight: 800;
      margin-bottom: 10px;
    }
    .section-header p {
      color: var(--text-muted);
      font-size: 1.05rem;
    }

    .compare-table-wrap {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 20px;
      overflow: hidden;
      backdrop-filter: blur(14px);
    }

    .compare-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
    }
    .compare-table th, .compare-table td {
      padding: 18px 24px;
      border-bottom: 1px solid var(--border-color);
      font-size: 0.95rem;
    }
    .compare-table th {
      background: rgba(148, 163, 184, 0.05);
      font-family: 'Outfit', sans-serif;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-main);
    }
    .compare-table tr:last-child td { border-bottom: none; }

    .compare-table td.col-robot {
      background: rgba(56, 189, 248, 0.04);
      font-weight: 600;
      color: var(--primary);
    }
    .compare-table td.col-standard {
      color: var(--text-muted);
    }

    /* ══ HOW IT WORKS ══ */
    .steps-section {
      max-width: 1000px;
      margin: 0 auto 90px;
      padding: 0 24px;
    }

    .steps-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
      gap: 24px;
    }

    .step-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: 18px;
      padding: 28px;
      position: relative;
    }

    .step-number {
      width: 44px;
      height: 44px;
      background: linear-gradient(135deg, #0284c7, #38bdf8);
      color: white;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-family: 'Outfit', sans-serif;
      font-size: 1.3rem;
      font-weight: 800;
      margin-bottom: 18px;
    }

    .step-card h3 {
      font-family: 'Outfit', sans-serif;
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 10px;
    }

    .step-card p {
      font-size: 0.92rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* ══ FOOTER ══ */
    .dl-footer {
      border-top: 1px solid var(--border-color);
      padding: 40px 24px;
      text-align: center;
      background: rgba(7, 10, 18, 0.9);
      color: var(--text-muted);
      font-size: 0.9rem;
    }
    .dl-footer a {
      color: var(--primary);
      text-decoration: none;
      margin: 0 8px;
    }
    .dl-footer a:hover { text-decoration: underline; }

    /* ══ RESPONSIVE MOBILE & TABLET (DOWN TO 320px) ══ */
    @media (max-width: 900px) {
      .hero-title { font-size: 2.5rem; }
      .top-store-badges-row { gap: 16px; }
    }

    @media (max-width: 768px) {
      header {
        padding: 0.55rem 0.85rem;
        flex-wrap: wrap;
        gap: 8px;
      }
      .header-top-row {
        gap: 6px;
      }
      .header-center-group {
        order: 3;
        width: 100%;
        justify-content: center;
        margin: 6px 0 0;
        gap: 8px;
      }
      .header-tg-bot-btn {
        height: 32px;
        padding: 0.35rem 0.65rem;
        font-size: 0.8rem;
      }
      .header-right-group {
        gap: 6px;
      }
      .header-right-group .btn {
        padding: 5px 8px;
        font-size: 0.8rem;
      }
      .header-right-group .btn span {
        display: none;
      }
      .header-space-badge {
        display: none !important;
      }
      .hero-container {
        padding: 30px 16px 20px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }
      .hero-title {
        font-size: clamp(1.65rem, 6vw, 2.3rem);
        line-height: 1.25;
        letter-spacing: -0.5px;
        margin-bottom: 14px;
      }
      .hero-subtitle {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 8px;
        margin-bottom: 24px;
        max-width: 100%;
      }
      .top-store-badges-container {
        padding: 18px 14px;
        margin: 15px auto 30px;
        border-radius: 18px;
        width: 100%;
        box-sizing: border-box;
      }
      .top-store-badges-title {
        font-size: 0.88rem;
        margin-bottom: 14px;
        flex-wrap: wrap;
        text-align: center;
      }
      .top-store-badges-row {
        flex-direction: column;
        width: 100%;
        gap: 16px;
      }
      .top-store-col {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
      }
      .platform-dl-counter-badge {
        width: 100%;
        max-width: 320px;
        justify-content: center;
        font-size: 0.76rem;
        padding: 4px 12px;
      }
      .hero-store-badge-card {
        width: 100%;
        padding: 12px 14px;
        gap: 14px;
        justify-content: flex-start;
        border-radius: 14px;
        box-sizing: border-box;
      }
      .hero-store-img-lg {
        height: 44px;
        max-width: 125px;
        object-fit: contain;
        flex-shrink: 0;
      }
      .hero-store-badge-info .badge-action {
        font-size: 0.96rem;
      }
      .hero-store-badge-info .badge-edition {
        font-size: 0.75rem;
      }
      .hero-stats-row {
        gap: 10px;
        margin-bottom: 30px;
      }
      .stat-badge {
        width: 100%;
        justify-content: center;
        padding: 8px 14px;
      }
      .download-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 20px;
        margin-bottom: 40px;
        width: 100%;
        box-sizing: border-box;
      }
      .dl-card {
        padding: 24px 18px;
        border-radius: 20px;
      }
      .card-title {
        font-size: 1.4rem;
      }
      .card-desc {
        font-size: 0.92rem;
      }
      .btn-download-primary {
        padding: 14px 18px;
        font-size: 0.98rem;
      }
      .compare-section {
        padding: 0 10px;
        margin-bottom: 50px;
        width: 100%;
        box-sizing: border-box;
      }
      .section-header h2 {
        font-size: 1.65rem;
      }
      .section-header p {
        font-size: 0.92rem;
      }
      .compare-table-wrap {
        border-radius: 16px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        box-sizing: border-box;
      }
      .compare-table {
        min-width: 520px;
      }
      .compare-table th, .compare-table td {
        padding: 12px 14px;
        font-size: 0.85rem;
      }
      .steps-section {
        padding: 0 10px;
        margin-bottom: 50px;
        width: 100%;
        box-sizing: border-box;
      }
      .steps-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        box-sizing: border-box;
      }
      .step-card {
        padding: 20px 16px;
      }
    }

    @media (max-width: 480px) {
      .hero-title {
        font-size: 1.55rem;
      }
      .hero-subtitle {
        font-size: 0.92rem;
      }
      .hero-store-img-lg {
        height: 38px;
        max-width: 110px;
      }
      .hero-store-badge-card {
        padding: 10px 12px;
        gap: 10px;
      }
      .hero-store-badge-info .badge-action {
        font-size: 0.88rem;
      }
      .btn-download-primary {
        font-size: 0.92rem;
        padding: 12px 14px;
      }
    }


/* ══ Download Badges Live Counters ══ */
.store-badge-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 3px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge-counter:hover {
  transform: translateY(-1px);
}

.btn-counter-badge {
  margin-top: 8px;
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ══ GUIDE D'INSTALLATION BUTTONS & POPUP MODAL ══ */
.btn-guide-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(10px);
}

.btn-guide-win {
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.08);
}
.btn-guide-win:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: #38bdf8;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.28);
  color: #fff;
}

.btn-guide-android {
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.08);
}
.btn-guide-android:hover {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.28);
  color: #fff;
}

.btn-top-guide-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.5);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-top-guide-link:hover {
  color: #f8fafc;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  transform: translateY(-1px);
}

.btn-top-guide-link.android:hover {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

/* Modal specific styles */
.guide-modal-card {
  max-width: 660px !important;
  width: 94% !important;
  max-height: 90vh !important;
  display: flex !important;
  flex-direction: column !important;
  background: #0b1324 !important;
  border: 1px solid rgba(56, 189, 248, 0.25) !important;
  border-radius: 20px !important;
  padding: 1.6rem 1.75rem !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.92), 0 0 45px rgba(56, 189, 248, 0.14) !important;
  color: #f8fafc !important;
  overflow: hidden !important;
}

.guide-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.guide-modal-title-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guide-modal-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.guide-modal-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 3px 0 0 0;
}

.guide-tabs-bar {
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.75);
  padding: 5px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.guide-tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #94a3b8;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.guide-tab-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.05);
}

.guide-tab-btn.active#guide-tab-btn-win {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2);
}

.guide-tab-btn.active#guide-tab-btn-android {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2);
}

.guide-tab-content {
  overflow-y: auto;
  max-height: calc(85vh - 200px);
  padding-right: 4px;
}

.guide-tab-content::-webkit-scrollbar {
  width: 5px;
}
.guide-tab-content::-webkit-scrollbar-track {
  background: transparent;
}
.guide-tab-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.guide-step-card {
  display: flex;
  gap: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 11px;
  transition: border-color 0.2s ease;
}

.guide-step-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
}

#guide-content-android .guide-step-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
}

.guide-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.4);
}

#guide-content-android .guide-step-num {
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.guide-step-body {
  flex: 1;
}

.guide-step-body h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 5px 0;
}

.guide-step-body p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0 0 6px 0;
}

.guide-step-body code {
  background: rgba(0, 0, 0, 0.4);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 0.82rem;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

#guide-content-android .guide-step-body code {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.25);
}

.guide-tip-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid #38bdf8;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #93c5fd;
  margin-top: 6px;
}

.guide-tip-box.warning {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #f59e0b;
  color: #fcd34d;
}

.guide-tip-box.success {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10b981;
  color: #6ee7b7;
}

.guide-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.guide-modal-footer .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}

/* RTL Support */
html[dir="rtl"] .guide-modal-title-box {
  flex-direction: row-reverse;
  text-align: right;
}
html[dir="rtl"] .guide-step-card {
  flex-direction: row-reverse;
  text-align: right;
}
html[dir="rtl"] .guide-tip-box {
  border-left: none;
  border-right: 3px solid #38bdf8;
  flex-direction: row-reverse;
  text-align: right;
}
html[dir="rtl"] .guide-tip-box.warning {
  border-right-color: #f59e0b;
}
html[dir="rtl"] .guide-tip-box.success {
  border-right-color: #10b981;
}
html[dir="rtl"] .guide-modal-footer {
  justify-content: flex-start;
}

