@layer reset, tokens, base, components;

@layer tokens {
  :root {
    color-scheme: dark;
    --bg-main: #080b11;
    --bg-header: rgba(7, 9, 14, 0.94);
    --bg-surface: #111622;
    --bg-surface-soft: rgba(255, 255, 255, 0.04);
    --bg-surface-hover: rgba(255, 255, 255, 0.07);
    --bg-pill-selected: #2c3340;
    --bg-code: #0b0f17;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --color-tizen: #38bdf8;
    --color-tv: #a855f7;
    --color-ok: #34d399;
    --color-warn: #facc15;
    --color-bad: #fb7185;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  }
}

@layer reset {
  :where(*, *::before, *::after) {
    box-sizing: border-box;
  }

  body, h1, h2, h3, h4, p, ul, ol, pre, figure, dialog {
    margin: 0;
  }

  button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
  }
}

@layer base {
  html {
    scroll-behavior: smooth;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  body {
    min-height: 100vh;
    background-color: var(--bg-main);
    color: var(--text-main);
  }

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

  .container {
    width: 100%;
    max-width: 1240px;
    margin-inline: auto;
    padding-inline: 24px;
  }

  .lucide {
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
  }
}

@layer components {
  /* ==========================================================================
     Top Header (matches .app-header in TizenXuper TV)
     ========================================================================== */
  .app-header {
    position: sticky;
    top: 0;
    z-index: 40;
    min-height: 68px;
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
  }

  .app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
  }

  .brand-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
  }

  .brand-logo-img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: contain;
  }

  .brand-title {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.4px;
  }

  .brand-title .tizen { color: var(--color-tizen); }
  .brand-title .xuper { color: #ffffff; margin-inline: 2px; }
  .brand-title .tv { color: var(--color-tv); }

  .navbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
  }

  .nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding-block: 6px;
    transition: color 0.15s ease;
  }

  .nav-link:hover {
    color: #ffffff;
  }

  .nav-link.is-active {
    color: #ffffff;
    font-weight: 700;
  }

  .nav-link.is-active::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: -2px;
    height: 2px;
    background: var(--color-tizen);
    border-radius: 1px;
  }

  .header-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .header-cta {
    padding: 7px 16px;
    font-size: 13px;
  }

  .header-cta .lucide {
    width: 14px;
    height: 14px;
  }

  .mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }

  .mobile-menu-toggle:hover {
    background: var(--bg-surface-hover);
    color: #ffffff;
    border-color: var(--border-strong);
  }

  .mobile-menu-toggle .lucide {
    width: 20px;
    height: 20px;
  }

  .mobile-menu-toggle .icon-close {
    display: none;
  }

  .mobile-menu-toggle.is-active .icon-burger {
    display: none;
  }

  .mobile-menu-toggle.is-active .icon-close {
    display: block;
  }

  /* Mobile Drawer */
  .mobile-nav-drawer {
    display: none;
  }

  /* ==========================================================================
     Buttons (matches .pf-btn in TizenXuper TV)
     ========================================================================== */
  .pf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 9999px;
    background: var(--bg-surface-soft);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  }

  .pf-btn:hover {
    background: var(--bg-pill-selected);
    border-color: var(--border-strong);
    color: #ffffff;
  }

  .pf-btn-primary {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
  }

  .pf-btn-primary:hover {
    background: #e2e8f0;
    color: #000000;
    border-color: #e2e8f0;
  }

  /* ==========================================================================
     Hero + Interactive TV Screen Showcase
     ========================================================================== */
  .hero-section {
    padding-block: 52px 36px;
  }

  .hero-grid {
    display: grid;
    /* The screenshot is what sells the interface: it gets the larger column */
    grid-template-columns: 0.82fr 1.3fr;
    gap: 44px;
    align-items: center;
  }

  .status-line {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 9999px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 18px;
  }

  .pf-diag-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-ok);
    flex-shrink: 0;
  }

  .hero-title {
    font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.15;
    color: #ffffff;
  }

  .hero-lead {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 520px;
  }

  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
  }

  /* Requirements section: one card per thing needed before installing */
  .req-card .lucide {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
  }

  .req-card h3 {
    margin-top: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
  }

  .req-card p {
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
  }

  /* The .wgt is for people who already know how to install it: a link, not a second button */
  .hero-wgt-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .hero-wgt-link:hover,
  .hero-wgt-link:focus-visible {
    color: #ffffff;
  }

  .hero-wgt-link .lucide {
    width: 16px;
    height: 16px;
  }

  .hero-trust {
    margin-top: 14px;
    font-size: 13px;
    color: var(--text-dim);
  }

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

  /* TV Realistic Mockup Showcase */
  .tv-showcase {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* A grid column grows to fit its content unless told it may shrink: the tabs then scroll inside it on a phone */
    min-width: 0;
  }

  .hero-text-wrap {
    min-width: 0;
  }

  .tv-mockup {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tv-mockup-bezel {
    width: 100%;
    background: #141721;
    border: 3px solid #232938;
    border-radius: 14px 14px 8px 8px;
    padding: 10px 10px 0 10px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
  }

  .tv-mockup-inner {
    position: relative;
    border-radius: 6px;
    background: #000000;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .tv-mockup-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .tv-mockup-chin {
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .tv-mockup-logo {
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.28);
    user-select: none;
  }

  .tv-mockup-led {
    position: absolute;
    right: 18px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 6px #38bdf8;
  }

  /* TV Stand Pedestal */
  .tv-mockup-stand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tv-mockup-neck {
    width: 72px;
    height: 14px;
    background: linear-gradient(180deg, #181d29 0%, #0d1017 100%);
    border-inline: 1px solid rgba(255, 255, 255, 0.08);
  }

  .tv-mockup-base {
    width: 220px;
    height: 7px;
    border-radius: 4px 4px 1px 1px;
    background: linear-gradient(180deg, #252d3d 0%, #151a24 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
  }

  /* Tabs that switch the screenshot above. They are not actions: plain text with a line under the chosen one, so
     they do not read as buttons next to the real one ("Instalar") */
  .screen-switcher {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 6px;
    border-bottom: 1px solid var(--border-subtle);
  }

  .screen-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 10px;
    margin-bottom: -1px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: none;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.12s ease, border-color 0.12s ease;
  }

  .screen-pill:hover {
    color: #ffffff;
  }

  .screen-pill.is-selected {
    color: #ffffff;
    border-bottom-color: #ffffff;
  }

  /* ==========================================================================
     Dividers & Sections
     ========================================================================== */
  .pf-hr {
    height: 1px;
    background: var(--border-subtle);
    margin-block: 28px;
  }

  .pf-section {
    padding-block: 6px 18px;
    scroll-margin-top: 76px;
  }

  .pf-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .pf-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #ffffff;
    margin-bottom: 6px;
  }

  .pf-subtitle {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
  }

  .pf-note {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--text-muted);
    max-width: 820px;
  }

  /* ==========================================================================
     Cards, Grids & Interface Slider
     ========================================================================== */
  .pf-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .pf-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  /* Slider controls & carousel container */
  .slider-controls {
    display: flex;
    gap: 8px;
    align-items: center;
  }

  .screen-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }

  .screen-slider {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    outline: none;
  }

  .screen-slider::-webkit-scrollbar {
    display: none;
  }

  .slide-item {
    flex: 0 0 calc(70% - 12px);
    scroll-snap-align: center;
    border-radius: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .slide-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    background: #05070b;
    border-bottom: 1px solid var(--border-subtle);
  }

  .slide-caption {
    padding: 12px 18px 14px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    background: var(--bg-surface);
  }

  .slide-caption strong {
    color: #ffffff;
  }

  .slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
  }

  .slider-dot {
    width: 26px;
    height: 6px;
    border-radius: 3px;
    background: var(--border-subtle);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.15s ease, width 0.15s ease;
  }

  .slider-dot:hover {
    background: var(--text-dim);
  }

  .slider-dot.is-selected {
    width: 44px;
    background: #ffffff;
  }

  .pf-card {
    padding: 20px 22px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    min-width: 0;
  }

  /* About / Philosophy Cards (clean structured list instead of wall of text) */
  .pf-about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
  }

  .pf-about-card {
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .pf-about-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.14);
  }

  .pf-about-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }

  .pf-about-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .pf-about-card-icon .lucide {
    width: 20px;
    height: 20px;
  }

  .pf-about-card-icon.is-tizen {
    color: var(--color-tizen);
    background: rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.25);
  }

  .pf-about-card-icon.is-warn {
    color: var(--color-warn);
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.25);
  }

  .pf-about-card-icon.is-tv {
    color: var(--color-tv);
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.25);
  }

  .pf-about-card-title {
    font-size: 17.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    margin: 0;
  }

  .pf-about-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
  }

  .pf-about-list li {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 10px;
  }

  .pf-about-list li .lucide {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    flex-shrink: 0;
  }

  /* Telegram Channels & Community with QR codes (matches Perfil › Sobre nosotros) */
  .pf-tg-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 18px;
  }

  .pf-tg-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    min-width: 0;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  }

  .pf-tg-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
  }

  .pf-tg-qr {
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
    line-height: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .pf-tg-qr img {
    display: block;
    width: 96px;
    height: 96px;
  }

  .pf-tg-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
  }

  .pf-tg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
  }

  .pf-tg-name {
    font-size: 16.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
  }

  .pf-tg-desc {
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
  }

  .pf-tg-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-tizen);
    margin-top: 4px;
    transition: color 0.15s ease;
  }

  .pf-tg-action .lucide {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
  }

  .pf-tg-card:hover .pf-tg-action {
    color: #ffffff;
  }

  .pf-tg-card:hover .pf-tg-action .lucide {
    transform: translateX(3px);
  }

  /* ==========================================================================
     Donations / Support Section
     ========================================================================== */
  .donate-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 18px;
  }

  .donate-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    min-width: 0;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .donate-card:hover {
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.16);
  }

  .donate-qr-wrap {
    padding: 8px;
    border-radius: 12px;
    background: #ffffff;
    line-height: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  }

  .donate-qr-wrap img {
    display: block;
    width: 110px;
    height: 110px;
  }

  .donate-stars-icon-wrap {
    width: 126px;
    height: 126px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fbbf24;
  }

  .donate-stars-icon-wrap .lucide {
    width: 54px;
    height: 54px;
    stroke-width: 1.8;
  }

  .donate-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
  }

  .donate-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
  }

  .donate-title {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
    margin: 0;
  }

  .donate-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 4px;
  }

  .gallery-card-meta {
    padding: 10px 12px;
  }

  .gallery-card-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .gallery-card-desc {
    margin-top: 3px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.35;
  }

  /* ==========================================================================
     Step 1: TV Developer Mode Steps Timeline
     ========================================================================== */
  .tv-steps-timeline {
    display: flex;
    flex-direction: column;
    max-width: 860px;
  }

  .tv-step-timeline-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 18px;
    position: relative;
  }

  /* Seamless connecting vertical line between steps */
  .tv-step-timeline-item:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 36px;
    bottom: -4px;
    width: 2px;
    background: rgba(255, 255, 255, 0.14);
    z-index: 1;
  }

  .tv-step-timeline-marker {
    display: flex;
    justify-content: center;
    padding-top: 2px;
    position: relative;
    z-index: 2;
  }

  .tv-step-timeline-badge {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111622;
    border: 2px solid #2c3852;
    box-shadow: 0 0 0 4px var(--bg-main);
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .tv-step-timeline-line {
    display: none;
  }

  .tv-step-timeline-content {
    padding-bottom: 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tv-step-timeline-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
  }

  .tv-step-timeline-title {
    font-size: 16.5px;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff;
    margin: 0;
  }

  .tv-step-timeline-tag {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-dim);
    padding: 2px 8px;
    border-radius: 9999px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
  }

  .tv-step-timeline-text {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0;
  }

  .tv-step-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-dim);
  }

  .tv-step-tip .lucide {
    color: var(--color-tizen);
    margin-top: 2px;
  }

  /* ==========================================================================
     Host PC IP Helper Box (¿Cómo saber tu IP?)
     ========================================================================== */
  .tv-ip-helper {
    margin-top: 12px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    max-width: 720px;
  }

  .tv-ip-helper-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 700;
    color: #ffffff;
    user-select: none;
    transition: background-color 0.15s ease;
  }

  .tv-ip-helper-summary::-webkit-details-marker {
    display: none;
  }

  .tv-ip-helper-summary:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .tv-ip-helper-title {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .tv-ip-helper-title .lucide {
    color: var(--color-tizen);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .tv-ip-helper-chevron {
    width: 16px;
    height: 16px;
    color: var(--text-dim);
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .tv-ip-helper[open] .tv-ip-helper-chevron {
    transform: rotate(180deg);
  }

  .tv-ip-helper-body {
    padding: 12px 14px 14px 14px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tv-ip-cmd-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #080b11;
    border: 1px solid var(--border-subtle);
  }

  .tv-ip-cmd-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
  }

  .tv-ip-os-badge {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
  }

  .tv-ip-code {
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    color: var(--color-tizen);
    white-space: nowrap;
  }

  .tv-ip-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 6px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.12s ease;
    flex-shrink: 0;
  }

  .tv-ip-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }

  .tv-ip-copy-btn .lucide {
    width: 12px;
    height: 12px;
  }

  .tv-ip-gui-note {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
  }

  .tv-ip-auto-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.45;
    background: rgba(0, 229, 255, 0.05);
    border: 1px solid rgba(0, 229, 255, 0.15);
    border-radius: 8px;
    padding: 8px 10px;
    margin-top: 2px;
  }

  .tv-ip-auto-note .lucide {
    width: 15px;
    height: 15px;
    color: var(--color-tizen);
    flex-shrink: 0;
    margin-top: 1px;
  }

  .tv-step-visual {
    margin-top: 14px;
    border-radius: 12px;
    background: #000000;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    max-width: 720px;
  }

  .tv-step-visual img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    cursor: zoom-in;
    background: #000000;
    border-bottom: 1px solid var(--border-subtle);
  }

  .tv-step-visual figcaption {
    padding: 10px 14px;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--text-muted);
  }

  /* ==========================================================================
     Step 2: OS Tabs & Installer Panels
     ========================================================================== */
  .os-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .os-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  .os-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  }

  .os-tab:hover {
    color: #ffffff;
    background: var(--bg-surface-hover);
    border-color: rgba(255, 255, 255, 0.18);
  }

  .os-tab.is-selected {
    color: #ffffff;
    background: var(--bg-pill-selected);
    border-color: rgba(255, 255, 255, 0.22);
    font-weight: 800;
  }

  /* Insignia de opción recomendada por sistema operativo */
  .hero-quick-downloads {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .hero-quick-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 700;
    margin-right: 2px;
  }
  .hero-quick-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
  }
  .hero-quick-pill:hover {
    background: rgba(56, 189, 248, 0.16);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    transform: translateY(-1px);
  }
  .hero-quick-pill svg {
    width: 14px;
    height: 14px;
    color: #38bdf8;
  }

  .pf-opt-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 26px;
    margin-bottom: 6px;
    flex-wrap: wrap;
  }
  .pf-opt-header .pf-subtitle {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  .pf-opt-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.12);
    letter-spacing: 0.2px;
  }
  .pf-opt-badge.is-rec {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.42);
  }
  .pf-opt-badge svg {
    width: 13px;
    height: 13px;
  }

  /* Callout de recomendación dentro del panel */
  .os-recommend-callout {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(56, 189, 248, 0.32);
    border-radius: 16px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .os-recommend-callout-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11.5px;
    font-weight: 800;
    color: #38bdf8;
    letter-spacing: 0.5px;
  }
  .os-recommend-callout-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
  }
  .os-recommend-callout-desc {
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0;
  }

  /* Nota tranquilizadora para instaladores de PC */
  .os-easy-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #94a3b8;
  }
  .os-easy-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #38bdf8;
    margin-top: 1px;
  }
  .os-easy-note strong {
    color: #f1f5f9;
  }

  .os-detected-note {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dim);
  }

  .os-panel {
    display: none;
    padding: 24px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
  }

  .os-panel.active {
    display: block;
  }

  .os-panel-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
  }

  .os-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
  }

  /* Code / Command box */
  .cmd-box {
    background: var(--bg-code);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px 16px;
    margin-block: 10px 14px;
  }

  .cmd-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-dim);
  }

  .cmd-box-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .cmd-code {
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: #ffffff;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
    user-select: all;
  }

  .copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 9999px;
    background: var(--bg-surface-soft);
    color: var(--text-main);
    border: 1px solid var(--border-subtle);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .copy-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
  }

  .copy-btn.copied {
    background: #14532d;
    color: #dcfce7;
    border-color: #14532d;
  }

  /* Ordered steps list inside OS panel */
  .step-table {
    margin-top: 14px;
  }

  .step-row {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding-block: 10px;
    font-size: 14px;
    color: var(--text-muted);
    align-items: start;
  }

  .step-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .step-row strong {
    color: #ffffff;
  }

  /* Mini visual guide strip inside Android / Windows panels */
  .guide-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 16px;
  }

  .guide-thumb-card {
    border-radius: 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
  }

  .guide-thumb-card img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: #0b0f17;
    display: block;
    padding: 8px;
    border-bottom: 1px solid var(--border-subtle);
    cursor: zoom-in;
  }

  .guide-thumb-caption {
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--text-muted);
  }

  /* ==========================================================================
     Bottom Update / Release Bar (matches .pf-update-bar in TizenXuper TV)
     ========================================================================== */
  .pf-update-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 18px 22px;
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    margin-top: 16px;
  }

  .pf-update-bar-title {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .pf-update-bar-desc {
    margin-top: 4px;
    font-size: 14px;
    color: var(--text-muted);
  }

  .pf-update-bar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* ==========================================================================
     FAQ Table / Rows
     ========================================================================== */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .faq-item {
    border-radius: 16px;
    background: var(--bg-surface-soft);
    border: 1px solid var(--border-subtle);
    padding: 16px 20px;
  }

  .faq-item summary {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

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

  .faq-chevron {
    color: var(--text-muted);
    transition: transform 0.15s ease;
  }

  .faq-item[open] .faq-chevron {
    transform: rotate(180deg);
    color: #ffffff;
  }

  .faq-body {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
  }

  /* ==========================================================================
     Native Dialog Lightbox for Screenshots
     ========================================================================== */
  .lightbox-dialog {
    margin: auto;
    padding: 0;
    max-width: min(1120px, 94vw);
    width: 100%;
    border-radius: 16px;
    background: #0b0f17;
    border: 1px solid var(--border-strong);
    color: var(--text-main);
  }

  .lightbox-dialog::backdrop {
    background: rgba(4, 6, 10, 0.86);
  }

  .lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 14px;
    font-weight: 700;
  }

  .lightbox-img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    background: #05070b;
  }

  /* ==========================================================================
     Footer
     ========================================================================== */
  .site-footer {
    margin-top: 36px;
    padding-block: 24px 40px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-dim);
  }

  .footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
  }

  .footer-disclaimer {
    max-width: 760px;
    line-height: 1.55;
  }

  /* ==========================================================================
     Floating Telegram Support Button
     ========================================================================== */
  .floating-tg-btn {
    position: fixed;
    bottom: 26px;
    right: 26px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #229ed9;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45), 0 10px 30px rgba(0, 0, 0, 0.55);
    z-index: 100;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, opacity 0.22s ease, visibility 0.22s ease;
    text-decoration: none;
    outline: none;
    opacity: 1;
    visibility: visible;
  }

  .floating-tg-btn.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(0.6) translateY(20px);
  }

  .floating-tg-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 26px rgba(34, 158, 217, 0.65), 0 14px 38px rgba(0, 0, 0, 0.65);
  }

  .floating-tg-btn:active {
    transform: scale(0.95);
  }

  .floating-tg-btn .tg-icon {
    width: 26px;
    height: 26px;
    stroke-width: 2.2;
    transform: translate(-1px, 1px);
    color: #ffffff;
  }

  /* Accessibility fallback for Windows High Contrast / Forced Colors Mode */
  @media (forced-colors: active) {
    .pf-card,
    .tv-step-card,
    .os-panel,
    .pf-update-bar,
    .faq-item,
    .pf-btn,
    .nav-tab-btn,
    .screen-pill {
      border: 1px solid CanvasText;
    }
  }

  /* Responsive adjustments */
  @media (max-width: 1024px) {
    .hero-grid {
      grid-template-columns: 1fr;
      gap: 36px;
    }
    .pf-grid-5 {
      grid-template-columns: repeat(3, 1fr);
    }
    .pf-grid-4 {
      grid-template-columns: repeat(2, 1fr);
    }
    .pf-grid-3,
    .pf-about-cards,
    .pf-tg-grid,
    .donate-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 680px) {
    .container {
      padding-inline: 16px;
    }

    body.has-mobile-menu-open {
      overflow: hidden;
    }

    /* Mobile Header & Single-Row Top Bar */
    .app-header {
      min-height: 58px;
      padding-block: 8px;
      position: sticky;
      top: 0;
      z-index: 60;
    }

    .app-header-inner {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .brand-container {
      align-self: center;
      gap: 10px;
    }

    .brand-logo-img {
      width: 30px;
      height: 30px;
    }

    .brand-title {
      font-size: 18px;
    }

    /* Hide desktop inline links & CTA on mobile */
    .navbar-links {
      display: none;
    }

    .header-cta {
      display: none;
    }

    .mobile-menu-toggle {
      display: inline-flex;
    }

    /* Mobile Navigation Drawer */
    .mobile-nav-drawer {
      display: block;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: rgba(12, 16, 24, 0.98);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-subtle);
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
      box-shadow: 0 24px 48px rgba(0, 0, 0, 0.7);
    }

    .mobile-nav-drawer.is-open {
      max-height: calc(100vh - 58px);
      opacity: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-inner {
      padding: 14px 16px 22px 16px;
    }

    .mobile-nav-list {
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .mobile-nav-link {
      display: flex;
      align-items: center;
      gap: 14px;
      padding: 12px 14px;
      border-radius: 12px;
      text-decoration: none;
      color: var(--text-main);
      background: transparent;
      transition: background-color 0.15s ease;
      min-height: 48px;
    }

    .mobile-nav-link:hover,
    .mobile-nav-link:active {
      background: rgba(255, 255, 255, 0.06);
    }

    .mobile-nav-icon {
      width: 36px;
      height: 36px;
      border-radius: 10px;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-subtle);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      color: var(--text-dim);
    }

    .mobile-nav-icon .lucide {
      width: 18px;
      height: 18px;
    }

    .mobile-nav-icon.is-donate {
      color: #f7a93b;
      background: rgba(247, 169, 59, 0.1);
      border-color: rgba(247, 169, 59, 0.25);
    }

    .mobile-nav-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .mobile-nav-text strong {
      font-size: 14.5px;
      font-weight: 700;
      color: #ffffff;
      line-height: 1.25;
    }

    .mobile-nav-text small {
      font-size: 12px;
      color: var(--text-muted);
      line-height: 1.35;
    }

    .mobile-nav-footer {
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1px solid var(--border-subtle);
    }

    /* Hero */
    .hero-section {
      padding-block: 24px 20px;
    }

    .hero-grid {
      gap: 28px;
    }

    .status-line {
      font-size: 11.5px;
      padding: 4px 12px;
      margin-bottom: 12px;
    }

    .hero-title {
      font-size: clamp(25px, 7vw, 32px);
      line-height: 1.18;
    }

    .hero-lead {
      font-size: 14.5px;
      line-height: 1.55;
      margin-top: 10px;
    }

    .hero-actions {
      flex-direction: column;
      width: 100%;
      gap: 10px;
      margin-top: 20px;
    }

    .hero-actions .pf-btn {
      width: 100%;
      justify-content: center;
      padding: 11px 18px;
      font-size: 13.5px;
    }

    /* TV Mockup & Screen pills */
    .tv-mockup-stand {
      display: none;
    }

    .tv-mockup-bezel {
      padding: 6px 6px 0 6px;
      border-radius: 10px 10px 6px 6px;
      border-width: 2px;
    }

    .tv-mockup-chin {
      height: 18px;
    }

    .tv-mockup-logo {
      font-size: 7.5px;
      letter-spacing: 1.5px;
    }

    .screen-switcher {
      display: flex;
      justify-content: flex-start;
      overflow-x: auto;
      white-space: nowrap;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      flex-wrap: nowrap;
      padding-inline: 4px;
      padding-bottom: 0;
      width: 100%;
      gap: 2px;
    }

    .screen-switcher::-webkit-scrollbar {
      display: none;
    }

    /* On a phone the five tabs fit in one row without scrolling: icons, and the name only on the chosen one. The
       other names stay in the page for screen readers */
    .screen-switcher {
      justify-content: space-between;
      overflow-x: visible;
    }

    .screen-pill {
      flex-shrink: 0;
      font-size: 13px;
      padding: 8px 10px 10px;
      gap: 7px;
    }

    .screen-pill .lucide {
      width: 20px;
      height: 20px;
    }

    .screen-pill:not(.is-selected) span {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip: rect(0 0 0 0);
      white-space: nowrap;
    }

    /* Step 1: TV Timeline */
    .tv-steps-timeline {
      width: 100%;
    }

    .tv-step-timeline-item {
      grid-template-columns: 28px 1fr;
      gap: 12px;
      position: relative;
    }

    .tv-step-timeline-item:not(:last-child)::before {
      content: '';
      position: absolute;
      left: 14px;
      top: 28px;
      bottom: -22px;
      width: 2px;
      background: var(--border-subtle);
      transform: translateX(-50%);
    }

    .tv-step-timeline-badge {
      width: 28px;
      height: 28px;
      font-size: 12.5px;
    }

    .tv-step-timeline-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
    }

    .tv-step-timeline-title {
      font-size: 15px;
      line-height: 1.35;
    }

    .tv-step-timeline-tag {
      font-size: 11px;
      padding: 2px 7px;
    }

    .tv-step-timeline-text {
      font-size: 13.5px;
      line-height: 1.5;
    }

    .tv-step-tip {
      font-size: 12px;
      padding: 8px 12px;
      border-radius: 8px;
    }

    .tv-step-visual {
      margin-top: 10px;
    }

    .tv-step-visual img {
      border-radius: 8px;
      max-width: 100%;
      height: auto;
    }

    .tv-step-visual figcaption {
      font-size: 11.5px;
      padding: 6px 10px;
    }

    .tv-ip-helper-summary {
      font-size: 13px;
      padding: 10px 12px;
    }

    .tv-ip-cmd-row {
      flex-direction: column;
      align-items: stretch;
      gap: 6px;
    }

    .tv-ip-cmd-left {
      justify-content: space-between;
      width: 100%;
    }

    .tv-ip-copy-btn {
      width: 100%;
      justify-content: center;
      padding: 6px;
    }

    /* Step 2: OS Tabs & Panels */
    .os-tabs-bar {
      flex-direction: column;
      align-items: flex-start;
      gap: 8px;
      margin-bottom: 12px;
    }

    .os-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 8px;
      width: 100%;
    }

    .os-tab {
      justify-content: center;
      padding: 9px 10px;
      font-size: 12px;
      border-radius: 10px;
      min-height: 40px;
    }

    .os-panel {
      padding: 16px 14px;
      border-radius: 14px;
    }

    .os-panel .hero-actions {
      flex-direction: column;
      width: 100%;
      gap: 8px;
    }

    .os-panel .hero-actions .pf-btn {
      width: 100%;
      justify-content: center;
    }

    .os-panel-top {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      margin-bottom: 14px;
    }

    .cmd-box {
      padding: 10px 12px;
      margin-block: 8px 12px;
      border-radius: 10px;
    }

    .cmd-box-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
    }

    .cmd-box-title {
      font-size: 11.5px;
    }

    .copy-btn {
      padding: 4px 8px;
      font-size: 11px;
    }

    .cmd-code {
      font-size: 11.5px;
      padding: 8px 0 2px;
    }

    /* Sobre el proyecto */
    .pf-about-cards {
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .pf-about-card {
      padding: 18px 16px;
      border-radius: 14px;
    }

    .pf-about-card-title {
      font-size: 16px;
    }

    .pf-about-list {
      gap: 8px;
    }

    .pf-about-list li {
      font-size: 13px;
      line-height: 1.45;
    }

    /* Telegram Grid on mobile: Clean Touch Cards */
    .pf-tg-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .pf-tg-card {
      padding: 16px 16px;
      gap: 12px;
      flex-direction: column;
      align-items: flex-start;
      border-radius: 14px;
    }

    /* Hide QR on mobile where user cannot scan their own screen */
    .pf-tg-qr {
      display: none;
    }

    .pf-tg-info {
      width: 100%;
      gap: 6px;
    }

    .pf-tg-name {
      font-size: 16px;
    }

    .pf-tg-desc {
      font-size: 13px;
      line-height: 1.5;
    }

    .pf-tg-action {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 13px;
      font-weight: 700;
      color: var(--color-tizen);
      margin-top: 6px;
      padding-top: 10px;
      border-top: 1px solid var(--border-subtle);
      width: 100%;
    }

    /* Donations on mobile */
    .donate-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .donate-card {
      flex-direction: column;
      text-align: center;
      align-items: center;
      padding: 20px 16px;
      gap: 16px;
      border-radius: 14px;
    }

    .donate-qr-wrap {
      padding: 8px;
      background: #ffffff;
      border-radius: 12px;
      display: inline-flex;
    }

    .donate-qr-wrap img {
      width: 105px;
      height: 105px;
      display: block;
    }

    .donate-stars-icon-wrap {
      width: 86px;
      height: 86px;
      border-radius: 50%;
    }

    .donate-stars-icon-wrap .lucide {
      width: 42px;
      height: 42px;
    }

    .donate-info {
      align-items: center;
      width: 100%;
      gap: 8px;
    }

    .donate-info .pf-btn {
      width: 100%;
      justify-content: center;
      padding: 11px 16px;
      font-size: 13.5px;
    }

    .donate-actions {
      flex-direction: column;
      width: 100%;
      gap: 8px;
    }

    .donate-actions .pf-btn {
      width: 100%;
      justify-content: center;
    }

    /* Floating Telegram Button */
    .floating-tg-btn {
      bottom: 16px;
      right: 16px;
      width: 48px;
      height: 48px;
      z-index: 30;
    }

    .floating-tg-btn .tg-icon {
      width: 22px;
      height: 22px;
    }

    /* Update bar */
    .pf-update-bar {
      padding: 16px 14px;
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
      border-radius: 14px;
    }

    .pf-update-bar-actions {
      flex-direction: column;
      width: 100%;
      gap: 8px;
    }

    .pf-update-bar-actions .pf-btn {
      width: 100%;
      justify-content: center;
    }

    /* FAQ */
    .faq-item {
      padding: 14px 16px;
      border-radius: 12px;
    }

    .faq-item summary {
      font-size: 14px;
      min-height: 44px;
    }

    .faq-body {
      font-size: 13px;
      line-height: 1.55;
    }

    /* Footer */
    .site-footer {
      padding-block: 20px 32px;
    }

    .footer-inner {
      flex-direction: column;
      gap: 12px;
      text-align: left;
    }
  }
}

/* Instalar: the one tested method (Apps2Samsung), as a numbered timeline like step 1 */
.tv-step-visual-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 900px; }
.tv-step-visual-pair .tv-step-visual { margin-top: 14px; }
@media (max-width: 720px) { .tv-step-visual-pair { grid-template-columns: 1fr; } }
.a2s-guide { margin-top: 18px; }

/* Install options: a two-tab switch (our Android installer / Apps2Samsung), each tab half the width */
.install-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 520px; margin: 4px 0 14px; padding: 4px;
  border-radius: 14px; background: var(--bg-surface-soft); border: 1px solid var(--border-subtle); }
.install-tab { appearance: none; border: 0; background: none; cursor: pointer; font-family: inherit; color: var(--text-muted);
  font-size: 14px; font-weight: 700; padding: 9px 10px; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; gap: 1px; line-height: 1.25; transition: background-color 0.12s ease, color 0.12s ease; }
.install-tab small { font-size: 11.5px; font-weight: 600; color: var(--text-dim); }
.install-tab:hover { color: #ffffff; }
.install-tab[aria-selected="true"] { color: #ffffff; background: var(--bg-pill-selected); }
.install-tab[aria-selected="true"] small { color: var(--text-muted); }
.install-tab:focus-visible { outline: 2px solid var(--color-tizen); outline-offset: 2px; }
.install-panel[hidden] { display: none; }
.install-option-note { margin: 0 0 6px; color: var(--text-muted); font-size: 14px; }
.install-option-actions { margin-top: 12px; }

/* Step tags read as a small label above the title, not a pill beside it (it squeezed the title on phones) */
.tv-step-timeline-header { flex-direction: column; align-items: flex-start; gap: 2px; }
.tv-step-timeline-tag { order: -1; padding: 0; border: 0; background: none; border-radius: 0;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }

/* Developer Mode animated guide (#devguide). devmode-guide.js sets data-step, data-state and the cue-* classes;
   everything on the TV screen is sized in em from the screen's own width, so it scales with the mockup. */
.dg { max-width: 860px; margin: 4px 0 28px; padding: 16px; border-radius: 16px; background: var(--bg-surface);
  border: 1px solid var(--border-subtle); }
.dg-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 18px; align-items: center; }
.dg-tv { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.dg-tv .tv-mockup-bezel { box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.dg-tv .tv-mockup-base { width: 34%; }
.dg-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #05070c;
  container-type: inline-size; }
.dg-scene { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; font-size: clamp(6px, 2.4cqw, 15px);
  line-height: 1.3; color: #e8edf5; }
.dg[data-step="1"]:not(.cue-open) .dg-scene-home,
.dg[data-step="1"].cue-open .dg-scene-apps,
.dg[data-step="2"] .dg-scene-apps,
.dg[data-step="2"].cue-dialog .dg-scene-dialog,
.dg[data-step="3"] .dg-scene-net,
.dg[data-step="4"] .dg-scene-apps { opacity: 1; }
.dg[data-step="2"].cue-dialog .dg-scene-apps { opacity: 0.3; }

/* Home and Apps */
.dg-scene-home { background: linear-gradient(160deg, #16233b, #0a0f1a 60%); display: flex; flex-direction: column;
  padding: 4%; gap: 1.2em; }
.dg-home-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.6em; }
.dg-home-hero span { height: 1em; width: 38%; border-radius: 0.3em; background: rgba(255, 255, 255, 0.14); }
.dg-home-hero span + span { width: 24%; background: rgba(255, 255, 255, 0.08); }
.dg-home-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.7em; }
.dg-tile { aspect-ratio: 16 / 10; border-radius: 0.45em; display: flex; align-items: center; justify-content: center;
  font-size: 0.85em; font-weight: 700; outline: 0.18em solid transparent; outline-offset: 0.14em;
  transition: outline-color 0.25s ease, transform 0.25s ease; }
.dg-tile-sys { background: #232c3f; color: #cbd5e1; }
.dg-tile-c1 { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.dg-tile-c2 { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.dg-tile-c3 { background: linear-gradient(135deg, #22c55e, #15803d); }
.dg-tile-c4 { background: linear-gradient(135deg, #f59e0b, #b45309); }
.dg-tile-c5 { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.dg:not(.cue-apps) .dg-tile-first,
.dg.cue-apps .dg-tile-apps { outline-color: #ffffff; transform: scale(1.06); }
.dg-scene-apps { background: #0b111c; padding: 4%; display: flex; flex-direction: column; gap: 1em; }
.dg-apps-head { display: flex; align-items: center; justify-content: space-between; }
.dg-apps-title { font-size: 1.5em; font-weight: 800; }
.dg-devbadge { font-size: 0.8em; font-weight: 700; padding: 0.2em 0.7em; border-radius: 9999px;
  background: rgba(52, 211, 153, 0.16); color: var(--color-ok); opacity: 0; transition: opacity 0.4s ease; }
.dg-apps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9em; }
.dg-apps-search { margin: 0 auto 0 1.2em; font-size: 0.8em; padding: 0.25em 3em 0.25em 0.9em; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.07); color: var(--text-dim); }
.dg-apps-settings { align-self: flex-start; display: flex; align-items: center; gap: 0.5em; padding: 0.45em 1em;
  border-radius: 0.5em; background: #232c3f; color: #cbd5e1; font-size: 0.9em; font-weight: 700;
  outline: 0.18em solid transparent; outline-offset: 0.14em; transition: outline-color 0.25s ease, transform 0.25s ease; }
.dg-apps-settings .lucide { width: 1.1em; height: 1.1em; }
.dg-scene-apps .dg-tile-first { outline-color: #ffffff; }
.dg.cue-settings .dg-scene-apps .dg-tile-first { outline-color: transparent; transform: none; }
.dg[data-step="1"].cue-settings .dg-apps-settings { outline-color: #ffffff; transform: scale(1.04); }
.dg:not([data-step="1"]) .dg-scene-apps .dg-tile-first { outline-color: transparent; transform: none; }
.dg-digits { position: absolute; left: 50%; bottom: 7%; transform: translate(-50%, 0.6em); display: flex; gap: 0.3em;
  padding: 0.45em; border-radius: 0.7em; background: #1b2333; border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 0.6em 1.6em rgba(0, 0, 0, 0.5); opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; }
.dg[data-step="1"].cue-pad .dg-digits { opacity: 1; transform: translate(-50%, 0); }
.dg-digits span { width: 1.9em; height: 1.9em; border-radius: 0.4em; display: grid; place-items: center; font-weight: 800;
  background: rgba(255, 255, 255, 0.07); color: #cbd5e1; transition: background-color 0.15s ease, color 0.15s ease; }
.dg[data-step="1"].cue-k1 .dg-digits [data-k="1"],
.dg[data-step="1"].cue-k2 .dg-digits [data-k="2"],
.dg[data-step="1"].cue-k3 .dg-digits [data-k="3"],
.dg[data-step="1"].cue-k4 .dg-digits [data-k="4"],
.dg[data-step="1"].cue-k5 .dg-digits [data-k="5"] { background: var(--color-tizen); color: #04121c; }
.dg-done { position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%); display: flex; align-items: center;
  gap: 0.5em; padding: 0.5em 1em; border-radius: 9999px; background: #0d2a22; color: var(--color-ok); font-weight: 700;
  white-space: nowrap; opacity: 0; transition: opacity 0.4s ease; }
.dg-done .lucide { width: 1.1em; height: 1.1em; }
.dg[data-step="4"].cue-done .dg-done,
.dg[data-step="4"].cue-done .dg-devbadge { opacity: 1; }

/* Developer mode dialog */
.dg-scene-dialog { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.8em; }
.dg-dialog { width: 62%; background: #1b2333; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0.8em;
  padding: 1.1em 1.3em; display: flex; flex-direction: column; gap: 0.75em; box-shadow: 0 1em 2.4em rgba(0, 0, 0, 0.55); }
.dg-dialog-title { font-size: 1.15em; font-weight: 800; }
.dg-dialog-row { display: flex; align-items: center; justify-content: space-between; gap: 1em; color: #cbd5e1; }
.dg-switch { display: inline-flex; border-radius: 0.45em; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.16); }
.dg-switch i { font-style: normal; font-weight: 700; padding: 0.25em 0.9em; transition: background-color 0.25s ease, color 0.25s ease; }
.dg:not(.cue-on) .dg-switch-off,
.dg.cue-on .dg-switch-on { background: #ffffff; color: #000000; }
.dg-input { min-width: 9.5em; height: 1.9em; padding: 0 0.6em; display: inline-flex; align-items: center;
  border-radius: 0.45em; background: #0b0f17; border: 0.14em solid rgba(255, 255, 255, 0.16);
  font-family: var(--font-mono); color: #ffffff; transition: border-color 0.25s ease; }
.dg-input b { font-weight: 600; }
.dg-caret { width: 0.12em; height: 1.1em; margin-left: 0.1em; background: var(--color-tizen); opacity: 0; }
.dg.cue-field:not(.cue-ok) .dg-input { border-color: var(--color-tizen); }
.dg.cue-field:not(.cue-ok) .dg-caret { opacity: 1; animation: dg-blink 1s steps(1) infinite; }
.dg-dialog-actions { display: flex; justify-content: flex-end; gap: 0.7em; }
.dg-dbtn { padding: 0.3em 1.2em; border-radius: 0.45em; background: rgba(255, 255, 255, 0.08); font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.dg.cue-ok .dg-dbtn-ok { background: #ffffff; color: #000000; transform: scale(1.06); }
.dg-chip { font-size: 0.85em; font-weight: 700; padding: 0.35em 0.9em; border-radius: 9999px; text-align: center;
  background: #0c2a3a; color: var(--color-tizen); opacity: 0; transform: translateY(0.4em);
  transition: opacity 0.35s ease, transform 0.35s ease; }
.dg.cue-host .dg-chip-host,
.dg.cue-note .dg-chip-note { opacity: 1; transform: none; }

/* Network status */
.dg-scene-net { background: #0b111c; padding: 5%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 1em; }
.dg-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em; font-size: 0.9em; font-weight: 700; }
.dg-crumbs span { padding: 0.25em 0.7em; border-radius: 9999px; background: rgba(255, 255, 255, 0.06); color: var(--text-dim);
  transition: background-color 0.25s ease, color 0.25s ease; }
.dg.cue-c1 .dg-crumbs [data-c="1"],
.dg.cue-c2 .dg-crumbs [data-c="2"],
.dg.cue-c3 .dg-crumbs [data-c="3"],
.dg.cue-c4 .dg-crumbs [data-c="4"] { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.dg-panel { width: 64%; background: #1b2333; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 0.8em;
  padding: 1em 1.2em; display: flex; flex-direction: column; gap: 0.5em; opacity: 0; transform: translateY(0.5em);
  transition: opacity 0.35s ease, transform 0.35s ease; }
.dg.cue-panel .dg-panel { opacity: 1; transform: none; }
.dg-panel-title { font-weight: 800; }
.dg-panel-row { display: flex; justify-content: space-between; gap: 1em; padding: 0.2em 0.5em; border-radius: 0.4em;
  color: #94a3b8; transition: background-color 0.3s ease, color 0.3s ease; }
.dg-panel-row b { font-family: var(--font-mono); font-weight: 600; color: #cbd5e1; transition: color 0.3s ease; }
.dg.cue-ip .dg-row-ip { background: rgba(56, 189, 248, 0.18); color: #ffffff; }
.dg.cue-ip .dg-row-ip b { color: var(--color-tizen); }

/* Deep restart */
.dg-off { position: absolute; inset: 0; display: grid; place-items: center; background: #000000; opacity: 0;
  transition: opacity 0.5s ease; font-size: clamp(8px, 3.4cqw, 22px); }
.dg[data-step="4"].cue-off:not(.cue-done) .dg-off { opacity: 1; }
.dg-bootlogo { font-weight: 800; letter-spacing: 0.35em; color: #ffffff; opacity: 0; transition: opacity 0.6s ease; }
.dg.cue-logo .dg-bootlogo { opacity: 1; }

/* Remote control (Samsung-style slim remote) */
.dg-remote { justify-self: center; width: 100%; max-width: 92px; padding: 14px 12px 22px; border-radius: 30px;
  background: linear-gradient(180deg, #1c2231, #0f131b); border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5); }
.dg-rkey { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #262e40;
  color: #cbd5e1; font-size: 10px; font-weight: 700;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease; }
.dg-rkey .lucide { width: 13px; height: 13px; }
.dg-rtop { position: relative; width: 100%; display: flex; align-items: center; }
.dg-rmic { position: absolute; left: 50%; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-radius: 50%;
  background: #05070c; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.dg-rkey-power { position: relative; width: 22px; height: 22px; color: var(--color-bad); }
.dg-rkey-power .lucide { width: 12px; height: 12px; }
.dg-rkey-power::after { content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: conic-gradient(var(--color-tizen) calc(var(--dg-hold, 0) * 1turn), transparent 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px)); }
.dg.cue-off .dg-rkey-power::after { opacity: 0; }
.dg[data-step="4"].cue-hold:not(.cue-off) .dg-rkey-power { background: var(--color-bad); color: #1a0509; transform: scale(0.92); }
.dg-rrow { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.dg-rkey-123 { position: relative; width: 34px; border-radius: 9999px; font-size: 9.5px; letter-spacing: 0.02em; }
.dg-rkey-123 i { position: absolute; left: 50%; bottom: 3px; width: 14px; height: 2px; margin-left: -7px; border-radius: 1px;
  background: linear-gradient(90deg, #ef4444 0 25%, #22c55e 25% 50%, #eab308 50% 75%, #3b82f6 75%); }
.dg[data-step="1"].cue-b123 .dg-rkey-123 { background: var(--color-tizen); color: #04121c; }
.dg[data-step="1"].cue-b123:not(.cue-pad) .dg-rkey-123 { animation: dg-pulse 0.9s ease-in-out infinite; }
.dg-rdpad { width: 64px; height: 64px; border-radius: 50%; background: #262e40; display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.dg-rdpad i { width: 28px; height: 28px; border-radius: 50%; background: #141925; transition: background-color 0.2s ease; }
.dg[data-step="1"].cue-pad .dg-rdpad i { background: var(--color-tizen); animation: dg-pulse 0.5s ease-in-out infinite; }
.dg[data-step="1"].cue-k5 .dg-rdpad i { animation: none; background: #141925; }
.dg[data-step="2"].cue-ok .dg-rdpad i { background: var(--color-tizen); }
.dg-rrow-rockers { justify-content: space-around; }
.dg-rrocker { width: 22px; height: 46px; border-radius: 9999px; background: #262e40; display: grid; place-items: center;
  color: #94a3b8; font-size: 7.5px; font-weight: 800; letter-spacing: 0.04em; writing-mode: vertical-rl; }
@keyframes dg-pulse { 50% { transform: scale(1.1); } }
@keyframes dg-blink { 50% { opacity: 0; } }

/* Start overlay, caption and controls */
.dg-start { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px;
  border-radius: 12px; background: rgba(8, 11, 17, 0.8); color: #ffffff; text-align: left; }
.dg:not([data-state="idle"]) .dg-start { display: none; }
.dg-start-icon { width: 56px; height: 56px; flex: none; border-radius: 50%; background: #ffffff; color: #000000;
  display: grid; place-items: center; transition: transform 0.15s ease; }
.dg-start:hover .dg-start-icon { transform: scale(1.06); }
.dg-start-icon .lucide { width: 22px; height: 22px; fill: currentColor; margin-left: 3px; }
.dg-start-text { display: flex; flex-direction: column; font-size: 17px; font-weight: 800; }
.dg-start-text small { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.dg-caption { margin: 14px 2px 12px; min-height: 3.1em; font-size: 14.5px; line-height: 1.55; color: var(--text-main); }
.dg-controls { display: flex; align-items: center; gap: 8px; }
.dg-btn { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-surface-soft); border: 1px solid var(--border-subtle); color: var(--text-main);
  transition: background-color 0.12s ease; }
.dg-btn:hover { background: var(--bg-pill-selected); }
.dg-btn-main { background: #ffffff; border-color: #ffffff; color: #000000; }
.dg-btn-main:hover { background: #e2e8f0; }
.dg-ico-play, .dg-ico-pause { fill: currentColor; }
.dg-ico-pause, .dg-ico-replay, .dg-ico-muted { display: none; }
.dg[data-state="playing"] .dg-ico-play, .dg[data-state="ended"] .dg-ico-play { display: none; }
.dg[data-state="playing"] .dg-ico-pause, .dg[data-state="ended"] .dg-ico-replay { display: block; }
[data-dg="mute"][aria-pressed="true"] .dg-ico-sound { display: none; }
[data-dg="mute"][aria-pressed="true"] .dg-ico-muted { display: block; }
.dg-progress { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; margin-inline: 6px; }
.dg-seg { position: relative; height: 24px; display: flex; align-items: center; }
.dg-seg::before { content: ""; position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.dg-seg span { position: relative; display: block; width: 100%; height: 4px; border-radius: 2px; background: #ffffff;
  transform: scaleX(0); transform-origin: left center; }
.dg-count { font-size: 12.5px; font-weight: 700; color: var(--text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dg-start:focus-visible, .dg-btn:focus-visible, .dg-seg:focus-visible { outline: 2px solid var(--color-tizen); outline-offset: 2px; }

@media (max-width: 680px) {
  .dg { padding: 12px; }
  .dg-stage { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dg-remote { max-width: none; flex-direction: row; justify-content: space-between; padding: 8px 16px; border-radius: 9999px; gap: 10px; }
  .dg-rtop, .dg-rrow { width: auto; gap: 8px; }
  .dg-rmic, .dg-rrow-rockers, .dg-rkey-aux { display: none; }
  .dg-rdpad { width: 48px; height: 48px; flex: none; }
  .dg-rdpad i { width: 20px; height: 20px; }
  .dg-start-text { font-size: 15px; }
  .dg-caption { font-size: 14px; }
  .dg-count { display: none; }
}

/* Send-the-app animated guide (#sendguide): a phone running the Android app next to the TV.
   Phone screens are sized in em from the phone's own width. Later steps keep what earlier ones achieved
   (TV online from step 3, certificate from step 4, app installed in step 5). */
.dg-send .dg-stage { grid-template-columns: 200px minmax(0, 1fr); gap: 22px; }
.dg-phone { aspect-ratio: 9 / 18.5; padding: 3.2%; border-radius: 13% / 6.4%; background: #141721; border: 2px solid #232938;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.dg-pscreen { position: relative; width: 100%; height: 100%; border-radius: 10.5% / 5%; overflow: hidden;
  background: var(--bg-main); container-type: inline-size; }
.dg-pscene { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 6.4cqw; line-height: 1.3;
  color: var(--text-main); background: var(--bg-main); opacity: 0; transition: opacity 0.35s ease; }
.dg-pscene img { display: block; }
.dg-p-btn { align-self: stretch; text-align: center; padding: 0.7em 0.5em; border-radius: 9999px; background: #ffffff;
  color: #000000; font-size: 0.95em; font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.25s ease, color 0.25s ease; }
.dg-p-note { display: none; font-size: 0.78em; font-weight: 700; color: var(--color-ok); }
.dg-p-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6em; font-size: 0.9em; color: #cbd5e1; }

/* Step 1: browser */
.dg-send[data-step="1"] .dg-p-web { opacity: 1; }
.dg-p-web { padding: 1.2em 1em; gap: 1em; align-items: center; }
.dg-p-url { align-self: stretch; padding: 0.35em 0.9em; border-radius: 9999px; background: rgba(255, 255, 255, 0.07);
  color: var(--text-muted); font-size: 0.8em; text-align: center; }
.dg-p-hero { display: flex; flex-direction: column; align-items: center; gap: 0.3em; margin-top: 1.4em; text-align: center; }
.dg-p-hero img { width: 4.4em; height: 4.4em; border-radius: 1em; margin-bottom: 0.4em; }
.dg-p-hero b { font-size: 1.3em; }
.dg-p-hero span { font-size: 0.85em; color: var(--text-muted); }
.dg-send.cue-tap:not(.cue-perm) .dg-p-download,
.dg-send.cue-pressinst:not(.cue-installed) .dg-p-doinst,
.dg-send[data-step="3"].cue-signin .dg-p-signin,
.dg-send[data-step="4"].cue-press:not(.cue-run) .dg-p-install,
.dg-send[data-step="5"].cue-confirm .dg-p-confirm { transform: scale(0.95); box-shadow: 0 0 0 0.3em rgba(56, 189, 248, 0.6); }
.dg-p-sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.2em 1em 1.5em; border-radius: 1.2em 1.2em 0 0;
  background: #1b2333; border-top: 1px solid rgba(255, 255, 255, 0.14); display: flex; flex-direction: column; gap: 0.8em;
  transform: translateY(105%); transition: transform 0.4s ease; }
.dg-send.cue-perm:not(.cue-inst) .dg-p-perm, .dg-send.cue-inst .dg-p-inst { transform: none; }
.dg-p-toggle { position: relative; flex: none; width: 2.4em; height: 1.3em; border-radius: 9999px; background: #3a4257;
  transition: background-color 0.25s ease; }
.dg-p-toggle::after { content: ""; position: absolute; top: 0.15em; left: 0.15em; width: 1em; height: 1em; border-radius: 50%;
  background: #ffffff; transition: transform 0.25s ease; }
.dg-send.cue-allow .dg-p-toggle { background: var(--color-ok); }
.dg-send.cue-allow .dg-p-toggle::after { transform: translateX(1.1em); }
.dg-p-inst .dg-p-row { justify-content: flex-start; font-size: 1em; color: #ffffff; }
.dg-p-inst img { width: 2em; height: 2em; border-radius: 0.5em; }
.dg-p-ask { font-size: 0.85em; color: var(--text-muted); }
.dg-send.cue-installed .dg-p-doinst { display: none; }
.dg-send.cue-installed .dg-p-appok { display: block; font-size: 0.95em; text-align: center; padding: 0.6em 0; }

/* Step 2: the app's home. Steps 3 to 5: its Install screen */
.dg-send[data-step="2"] .dg-p-home, .dg-send:is([data-step="3"], [data-step="4"], [data-step="5"]) .dg-p-app { opacity: 1; }
.dg-p-home { padding: 1em 0.9em; gap: 0.7em; }
.dg-p-what { font-size: 0.78em; color: var(--text-muted); }
.dg-p-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; }
.dg-p-what, .dg-p-options { opacity: 0; transition: opacity 0.35s ease; }
.dg-send.cue-opts .dg-p-what, .dg-send.cue-opts .dg-p-options { opacity: 1; }
.dg-p-opt { display: flex; flex-direction: column; align-items: center; gap: 0.25em; padding: 1em 0.4em; border-radius: 0.9em;
  background: var(--bg-surface); border: 1px solid rgba(255, 255, 255, 0.08); text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease; }
.dg-p-opt .lucide { width: 2em; height: 2em; margin-bottom: 0.3em; }
.dg-p-opt b { font-size: 0.9em; }
.dg-p-opt span { font-size: 0.66em; line-height: 1.25; color: var(--text-muted); }
.dg-send.cue-choose .dg-p-opt-install { transform: scale(0.96); box-shadow: 0 0 0 0.3em rgba(56, 189, 248, 0.6); }
.dg-p-app { padding: 1em 0.9em 0; gap: 0.75em; }
.dg-p-back { display: flex; align-items: center; gap: 0.4em; font-size: 1em; }
.dg-p-back .lucide { width: 1.2em; height: 1.2em; }
.dg-p-head { display: flex; align-items: center; gap: 0.6em; }
.dg-p-head img { width: 2.2em; height: 2.2em; border-radius: 0.5em; }
.dg-p-head b { display: block; font-size: 1.05em; }
.dg-p-head em { font-style: normal; color: var(--color-tizen); }
.dg-p-head span { display: block; font-size: 0.68em; color: var(--text-muted); }
.dg-p-step { display: grid; grid-template-columns: 1.5em minmax(0, 1fr); gap: 0.6em; }
.dg-p-step > i { width: 1.9em; height: 1.9em; border-radius: 50%; display: grid; place-items: center; background: #1a2030;
  border: 1px solid rgba(255, 255, 255, 0.14); font-style: normal; font-size: 0.78em; font-weight: 800;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.dg-p-step > div { display: flex; flex-direction: column; gap: 0.45em; min-width: 0; }
.dg-p-step > div > b { font-size: 0.95em; }
.dg-p-tv { display: flex; flex-direction: column; gap: 0.4em; padding: 0.55em 0.6em; border-radius: 0.6em; background: #0b0f17;
  border: 1px solid rgba(255, 255, 255, 0.14); }
.dg-p-tvhead { display: flex; align-items: center; justify-content: space-between; font-size: 0.8em; font-weight: 700; }
.dg-p-badge { font-style: normal; }
.dg-p-badge u { text-decoration: none; padding: 0.1em 0.55em; border-radius: 9999px; font-size: 0.9em; }
.dg-p-searching { background: rgba(56, 189, 248, 0.16); color: var(--color-tizen); }
.dg-p-online { display: none; background: rgba(52, 211, 153, 0.16); color: var(--color-ok); }
.dg-p-tvmsg { font-size: 0.72em; color: var(--text-muted); }
.dg-p-tvrows { display: none; flex-direction: column; gap: 0.25em; }
.dg-p-tvrows p { margin: 0; display: flex; justify-content: space-between; gap: 0.5em; font-size: 0.72em; color: var(--text-dim); }
.dg-p-tvrows b { color: var(--text-main); }
.dg-p-tvrows b.ok { color: var(--color-ok); }
.dg-p-pill { text-align: center; padding: 0.45em 0.3em; border-radius: 9999px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14); font-size: 0.78em; font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease; }
.dg-send[data-step="2"].cue-manual:not(.cue-manualoff) .dg-p-manual,
.dg-send[data-step="3"].cue-login:not(.cue-sam) .dg-p-login { transform: scale(0.96); box-shadow: 0 0 0 0.3em rgba(56, 189, 248, 0.6); }
.dg-p-run { display: none; flex-direction: column; gap: 0.35em; }
.dg-p-bar { height: 0.45em; border-radius: 9999px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.dg-p-bar s { display: block; height: 100%; background: var(--color-tizen); transform-origin: left center;
  transform: scaleX(var(--dg-prog, 0)); }
.dg-p-status { font-size: 0.72em; color: var(--text-muted); }
.dg-p-status u { display: none; text-decoration: none; }
.dg-send[data-step="4"].cue-run:not(.cue-fin) .dg-p-run { display: flex; }
.dg-send.cue-run:not(.cue-sign) .dg-p-st1, .dg-send.cue-sign:not(.cue-send) .dg-p-st2, .dg-send.cue-send .dg-p-st3 { display: inline; }
.dg-p-bottom { margin: auto -0.9em 0; padding: 0.7em 0.9em 1em; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.dg-p-install { background: #2a3142; color: var(--text-dim); }

/* TV online: at the cue on the home screen, and always on the Install screen */
.dg-send.cue-online .dg-p-home .dg-p-searching, .dg-send.cue-online .dg-p-home .dg-p-tvmsg, .dg-send.cue-online .dg-p-manual,
.dg-p-tv.is-online .dg-p-searching, .dg-p-tv.is-online .dg-p-tvmsg { display: none; }
.dg-send.cue-online .dg-p-home .dg-p-online, .dg-p-tv.is-online .dg-p-online { display: inline; }
.dg-send.cue-online .dg-p-home .dg-p-tvrows, .dg-p-tv.is-online .dg-p-tvrows { display: flex; }
.dg-p-step1 > i,
.dg-send[data-step="3"].cue-cert .dg-p-step2 > i, .dg-send:is([data-step="4"], [data-step="5"]) .dg-p-step2 > i,
.dg-send[data-step="4"].cue-fin .dg-p-step3 > i, .dg-send[data-step="5"] .dg-p-step3 > i {
  background: var(--color-ok); border-color: var(--color-ok); color: #04121c; }
/* Certificate ready: from the cue in step 3 onwards */
.dg-send[data-step="3"].cue-cert .dg-p-login, .dg-send:is([data-step="4"], [data-step="5"]) .dg-p-login { display: none; }
.dg-send[data-step="3"].cue-cert .dg-p-cert, .dg-send:is([data-step="4"], [data-step="5"]) .dg-p-cert { display: block; }
.dg-send[data-step="3"].cue-cert .dg-p-install, .dg-send:is([data-step="4"], [data-step="5"]) .dg-p-install { background: #ffffff; color: #000000; }
/* Installed: from the cue in step 4 onwards */
.dg-send[data-step="4"].cue-fin .dg-p-installed, .dg-send[data-step="5"] .dg-p-installed { display: block; }

/* Step 3: Samsung account page */
.dg-send[data-step="3"].cue-sam:not(.cue-cert) .dg-p-samsung { opacity: 1; }
.dg-p-samsung { background: #ffffff; color: #111827; }
.dg-p-samhead { display: flex; align-items: center; justify-content: space-between; padding: 0.8em 1em; background: var(--bg-main);
  color: var(--text-main); font-size: 0.9em; }
.dg-p-samhead span { font-size: 0.85em; color: var(--text-muted); }
.dg-p-sambody { display: flex; flex-direction: column; gap: 0.9em; padding: 1.4em 1em; }
.dg-p-sambody > b { font-size: 1.25em; }
.dg-p-sambody label { display: flex; flex-direction: column; font-size: 0.72em; color: #6b7280; }
.dg-p-field { display: flex; align-items: center; height: 2.1em; border-bottom: 1px solid #c9ced8; font-size: 1.2em; color: #111827; }
.dg-p-signin { margin-top: 0.4em; background: #111827; color: #ffffff; }

/* Step 5: QR scan and Telegram */
.dg-send[data-step="5"].cue-scan:not(.cue-tg) .dg-p-scan, .dg-send[data-step="5"].cue-tg .dg-p-tg { opacity: 1; }
.dg-p-scan { align-items: center; justify-content: center; gap: 1.2em; background: #000000; font-size: 4.8cqw; color: #e5e7eb; }
.dg-p-finder { position: relative; width: 66%; padding: 6%; border-radius: 0.8em; border: 0.2em solid var(--color-tizen); overflow: hidden; }
.dg-p-finder i { position: absolute; left: 0; right: 0; top: 0; height: 0.2em; background: var(--color-tizen);
  box-shadow: 0 0 0.8em var(--color-tizen); animation: dg-scan 1.4s ease-in-out infinite alternate; }
@keyframes dg-scan { to { top: calc(100% - 0.2em); } }
.dg-qr { display: block; width: 100%; aspect-ratio: 1; background: #ffffff; fill: #000000; border-radius: 0.3em; }
.dg-p-tg { background: #0e1621; }
.dg-p-tghead { display: flex; align-items: center; gap: 0.6em; padding: 0.7em 1em; background: #17212b; font-size: 0.9em; }
.dg-p-tghead img { width: 2em; height: 2em; border-radius: 50%; }
.dg-p-tghead b, .dg-p-tghead span { display: block; }
.dg-p-tghead span { font-size: 0.75em; color: var(--text-muted); }
.dg-p-tgbody { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 0.6em; padding: 0.9em; }
.dg-p-bubble { display: none; flex-direction: column; gap: 0.35em; align-self: flex-start; max-width: 92%; padding: 0.7em 0.8em;
  border-radius: 0.9em 0.9em 0.9em 0.2em; background: #182533; font-size: 0.82em; }
.dg-p-bubble span { color: #b6c2cf; }
.dg-p-inline { margin-top: 0.3em; padding: 0.55em 0.4em; border-radius: 0.5em; background: rgba(255, 255, 255, 0.12); text-align: center;
  font-weight: 700; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.dg-p-tgstart { padding: 0.9em; background: #17212b; color: #5eb5f7; text-align: center; font-size: 0.9em; font-weight: 800;
  letter-spacing: 0.04em; transition: background-color 0.2s ease, color 0.2s ease; }
.dg-send.cue-startp:not(.cue-prompt) .dg-p-tgstart { background: #2ea6ff; color: #ffffff; }
.dg-send.cue-prompt .dg-p-tgstart { display: none; }
.dg-send.cue-prompt:not(.cue-tgok) .dg-p-ask3, .dg-send.cue-tgok .dg-p-tgok { display: flex; }

/* The TV */
.dg-s-apps { opacity: 1; display: flex; flex-direction: column; gap: 1em; padding: 4%; background: #0b111c; }
.dg-send .dg-devbadge { opacity: 1; }
.dg-s-splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9em;
  background: radial-gradient(circle at 50% 40%, #16233b, #080b11 75%); }
.dg-s-splash img { width: 6.5em; height: 6.5em; border-radius: 1.5em; }
.dg-s-splash .brand-title { font-size: 2.1em; font-weight: 800; }
.dg-send[data-step="4"].cue-tvopen .dg-s-splash, .dg-send[data-step="5"] .dg-s-splash { opacity: 1; }
.dg-s-login { display: flex; align-items: center; justify-content: center; gap: 3em; padding: 6%; background: #080b11; }
.dg-s-logintext { display: flex; flex-direction: column; gap: 0.5em; max-width: 46%; }
.dg-s-logintext img { width: 3em; height: 3em; border-radius: 0.7em; margin-bottom: 0.4em; }
.dg-s-logintext b { font-size: 1.5em; line-height: 1.2; }
.dg-s-logintext span { color: var(--text-muted); }
.dg-s-logintext em { margin-top: 0.5em; font-style: normal; font-family: var(--font-mono); font-size: 1.3em; font-weight: 700; letter-spacing: 0.08em; color: var(--color-tizen); }
.dg-s-login .dg-qr { width: 11em; flex: none; border-radius: 0.5em; }
.dg-send[data-step="5"].cue-qr .dg-s-login, .dg-send[data-step="5"].cue-home .dg-s-home { opacity: 1; }
.dg-s-home img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 680px) {
  .dg-send .dg-stage { grid-template-columns: minmax(0, 0.52fr) minmax(0, 1fr); gap: 10px; }
}

/* Change-the-DNS animated guide (#dnsguide, inside the FAQ): the app failing and its diagnostic, the TV's IP
   settings with the DNS in manual, and the app loading again */
.faq-body .dg { margin: 16px 0 6px; }
.dg-dns[data-step="1"]:not(.cue-diag) .dg-d-app,
.dg-dns[data-step="1"].cue-diag .dg-d-diag,
.dg-dns[data-step="2"] .dg-d-net,
.dg-dns[data-step="3"] .dg-d-net,
.dg-dns[data-step="4"] .dg-d-net,
.dg-dns[data-step="5"] .dg-d-app { opacity: 1; }

/* The app: failing, closed, splash, loaded */
.dg-d-app { background: #0a0e16; }
.dg-d-app > * { position: absolute; inset: 0; transition: opacity 0.4s ease; }
.dg-d-fail { display: flex; flex-direction: column; justify-content: center; gap: 1.4em; padding: 5%; }
.dg-d-skel { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8em; }
.dg-d-skel span { aspect-ratio: 16 / 10; border-radius: 0.45em; background: rgba(255, 255, 255, 0.06); }
.dg-d-error { align-self: center; display: flex; align-items: center; gap: 0.6em; padding: 0.55em 1.1em; border-radius: 0.6em;
  background: rgba(248, 113, 113, 0.14); color: #fca5a5; font-weight: 700; }
.dg-d-error .lucide { width: 1.3em; height: 1.3em; }
.dg-d-closed { background: #000000; opacity: 0; }
.dg-d-splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9em;
  background: radial-gradient(circle at 50% 40%, #16233b, #080b11 75%); opacity: 0; }
.dg-d-splash img { width: 6.5em; height: 6.5em; border-radius: 1.5em; }
.dg-d-splash .brand-title { font-size: 2.1em; font-weight: 800; }
.dg-d-home { width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.dg-dns[data-step="5"].cue-close:not(.cue-reopen) .dg-d-closed,
.dg-dns[data-step="5"].cue-reopen:not(.cue-loaded) .dg-d-splash,
.dg-dns[data-step="5"].cue-loaded .dg-d-home { opacity: 1; }
.dg-dns[data-step="5"].cue-close .dg-d-fail { opacity: 0; }
.dg-d-tips { inset: 0; display: grid; align-content: center; justify-items: center; gap: 0.6em; padding: 0 6%;
  background: rgba(5, 7, 12, 0); transition: background-color 0.4s ease; }
.dg-dns[data-step="5"].cue-other .dg-d-tips { background: rgba(5, 7, 12, 0.78); }
.dg-d-tips .dg-chip { font-size: 1em; padding: 0.5em 1.1em; box-shadow: 0 0.4em 1.2em rgba(0, 0, 0, 0.6); }
.dg-d-tip-ok { grid-area: 1 / 1; align-self: end; background: #0d2a22; color: var(--color-ok); }
.dg-d-tip-other { grid-area: 1 / 1; }
.dg-dns[data-step="5"].cue-loaded:not(.cue-other) .dg-d-tips { align-content: end; padding-bottom: 5%; }
.dg-dns[data-step="5"].cue-loaded:not(.cue-other) .dg-d-tip-ok,
.dg-dns[data-step="5"].cue-other .dg-d-tip-other,
.dg-dns[data-step="5"].cue-isp .dg-d-tip-isp { opacity: 1; transform: none; }

/* Ajustes > Diagnóstico */
.dg-d-diag { background: #0b111c; padding: 5% 6%; display: flex; flex-direction: column; gap: 0.9em; }
.dg-d-diag-title { font-size: 1.4em; font-weight: 800; }
.dg-d-diag-actions { display: flex; gap: 0.7em; }
.dg-d-btn { padding: 0.45em 1.1em; border-radius: 0.5em; background: #232c3f; color: #cbd5e1; font-weight: 700;
  outline: 0.18em solid transparent; outline-offset: 0.14em; transition: outline-color 0.25s ease, transform 0.2s ease; }
.dg-d-btn-run { outline-color: #ffffff; }
.dg-dns.cue-run:not(.cue-verdict) .dg-d-btn-run { transform: scale(0.96); }
.dg-d-diag [data-s] { font-style: normal; display: none; }
.dg-dns:not(.cue-run) .dg-d-diag [data-s="idle"],
.dg-dns.cue-run:not(.cue-verdict) .dg-d-diag [data-s="run"],
.dg-dns.cue-run:not(.cue-verdict) .dg-d-card [data-s="idle"],
.dg-dns.cue-verdict .dg-d-diag [data-s="res"] { display: inline; }
.dg-d-verdict { padding: 0.6em 1em; border-radius: 0.6em; background: rgba(255, 255, 255, 0.06); color: #cbd5e1; font-weight: 700;
  transition: background-color 0.3s ease, color 0.3s ease; }
.dg-dns.cue-verdict .dg-d-verdict { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
.dg-d-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7em; }
.dg-d-card { display: flex; flex-direction: column; gap: 0.35em; padding: 0.7em 0.9em; border-radius: 0.6em; background: #1b2333;
  border: 1px solid rgba(255, 255, 255, 0.1); }
.dg-d-card span { display: flex; align-items: center; gap: 0.45em; font-size: 0.8em; font-weight: 700; color: #94a3b8; }
.dg-d-card em { width: 0.6em; height: 0.6em; flex: none; border-radius: 50%; background: #475569; transition: background-color 0.3s ease; }
.dg-d-card b { font-size: 1.1em; font-weight: 800; }
.dg-dns.cue-verdict .dg-d-card em { background: var(--color-bad); }

/* IP settings */
.dg-d-net { background: #0b111c; padding: 3.5% 5%; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.7em; }
.dg-dns:not([data-step="2"]) .dg-crumbs span { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
.dg-d-crumb-gen i, .dg-d-mode i { font-style: normal; }
.dg-d-crumb-gen i + i, .dg-d-mode i + i { display: none; }
.dg-dns[data-step="2"].cue-newer .dg-d-crumb-gen { background: var(--color-tizen); color: #04121c; }
.dg-dns[data-step="2"].cue-newer .dg-d-crumb-gen i:first-child { display: none; }
.dg-dns[data-step="2"].cue-newer .dg-d-crumb-gen i + i { display: inline; }
.dg-dns .dg-panel { width: 74%; gap: 0.15em; padding: 0.8em 1.1em; }
.dg-dns:not([data-step="2"]) .dg-panel { opacity: 1; transform: none; }
.dg-dns .dg-panel-title { margin-bottom: 0.25em; }
.dg-dns .dg-panel-row { align-items: center; outline: 0.16em solid transparent; transition: outline-color 0.25s ease,
  background-color 0.3s ease, color 0.3s ease; }
.dg-dns .dg-panel-row b { display: inline-flex; align-items: center; }
.dg-dns .dg-panel-row b.dg-d-mode { font-family: var(--font-sans); }
/* Step 3: the DNS setting goes to manual and the server is typed */
.dg-dns[data-step="3"].cue-dnsrow:not(.cue-server) .dg-d-row-dnsmode,
.dg-dns[data-step="3"].cue-server:not(.cue-accept) .dg-d-row-server,
.dg-dns[data-step="4"].cue-iprow:not(.cue-same) .dg-d-row-ipmode { outline-color: #ffffff; color: #ffffff; }
.dg-dns[data-step="3"].cue-manual .dg-d-row-dnsmode .dg-d-mode i:first-child,
.dg-dns[data-step="4"] .dg-d-row-dnsmode .dg-d-mode i:first-child,
.dg-dns[data-step="4"].cue-ipmanual .dg-d-row-ipmode .dg-d-mode i:first-child { display: none; }
.dg-dns[data-step="3"].cue-manual .dg-d-row-dnsmode .dg-d-mode i + i,
.dg-dns[data-step="4"] .dg-d-row-dnsmode .dg-d-mode i + i,
.dg-dns[data-step="4"].cue-ipmanual .dg-d-row-ipmode .dg-d-mode i + i { display: inline; color: var(--color-tizen); }
.dg-d-oldns { font-style: normal; }
.dg-dns[data-step="3"].cue-server .dg-d-oldns, .dg-dns[data-step="4"] .dg-d-oldns { display: none; }
.dg-dns .dg-t-dns { color: var(--color-tizen); }
.dg-dns[data-step="3"].cue-server:not(.cue-accept) .dg-caret { opacity: 1; animation: dg-blink 1s steps(1) infinite; }
.dg-d-accept { align-self: flex-end; margin-top: 0.35em; padding: 0.25em 1.2em; border-radius: 0.45em; font-weight: 700;
  background: rgba(255, 255, 255, 0.08); transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.dg-dns[data-step="3"].cue-accept .dg-d-accept { background: #ffffff; color: #000000; transform: scale(1.06); }
/* Step 4: IP to manual too, keeping the same address, mask and gateway */
.dg-dns[data-step="4"].cue-same:not(.cue-onlydns) .dg-d-row-same,
.dg-dns[data-step="4"].cue-onlydns .dg-d-row-server { background: rgba(56, 189, 248, 0.18); color: #ffffff; }
.dg-d-notes { display: grid; justify-items: center; }
.dg-d-notes .dg-chip { grid-area: 1 / 1; }
.dg-dns[data-step="3"].cue-alt8 .dg-d-note-alt,
.dg-dns[data-step="4"].cue-same .dg-d-note-same { opacity: 1; transform: none; }

/* Remote: OK is pressed when something is confirmed on screen */
.dg-dns[data-step="1"].cue-run:not(.cue-verdict) .dg-rdpad i,
.dg-dns[data-step="3"].cue-manual:not(.cue-server) .dg-rdpad i,
.dg-dns[data-step="3"].cue-accept .dg-rdpad i,
.dg-dns[data-step="4"].cue-ipmanual:not(.cue-same) .dg-rdpad i { background: var(--color-tizen); }
