.eu-shell {
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
    padding: 24px 18px 60px;
    box-sizing: border-box;
}
.eu-shell,
.eu-shell * {
    box-sizing: border-box;
}

.eu-head-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
    min-width: 0;
}
.eu-head-row .eu-display {
    min-width: 0;
    flex: 1;
}
.eu-center { text-align: center; }
.eu-mono {
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Consolas, monospace;
}

.eu-overline {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted, #8e8e98);
}
.eu-display {
    font-family: var(--al-display, 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin: 0;
    color: var(--text-main, #111);
    text-wrap: balance;
}
.eu-fecha-linea {
    color: var(--al-coral-enlace);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 10px;
}
.eu-fecha-linea.is-ok { color: #059669; }
.eu-fecha-linea.is-warn { color: #d97706; }
.eu-fecha-linea.is-bad { color: #dc2626; }
[data-theme="dark"] .eu-fecha-linea.is-ok { color: #34d399; }
[data-theme="dark"] .eu-fecha-linea.is-warn { color: #fbbf24; }
[data-theme="dark"] .eu-fecha-linea.is-bad { color: #f87171; }
.eu-club { color: var(--text-muted, #8e8e98); font-size: 0.92rem; margin: 6px 0 0; }
.eu-meta { color: var(--text-muted, #8e8e98); font-size: 0.82rem; }

.eu-bloque { margin-top: 30px; width: 100%; max-width: 100%; min-width: 0; }
.eu-bloque > .eu-overline { margin-bottom: 12px; }
.eu-hairlines { width: 100%; max-width: 100%; min-width: 0; }
.eu-hairlines > * { border-bottom: 1px solid var(--border-color, #e5e7eb); }
.eu-hairlines > *:last-child { border-bottom: none; }

.eu-tk {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #fff;
    color: #101013;
    margin-top: 18px;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(16, 16, 19, 0.07),
                0 1px 2px rgba(16, 16, 19, 0.04),
                0 10px 28px rgba(16, 16, 19, 0.10);
}
.eu-tk-head {
    background: var(--al-coral-texto);
    color: #fff;
    padding: 20px 20px 22px;
}
.eu-tk-head .eu-overline { color: rgba(255, 255, 255, 0.78); }
.eu-tk-head h2 {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 6px 0 0;
    color: #fff;
    text-wrap: balance;
}
.eu-tk-perf {
    position: relative;
    height: 0;
    border-top: 2px dashed rgba(16, 16, 19, 0.18);
}
.eu-tk-perf::before, .eu-tk-perf::after {
    content: '';
    position: absolute;
    top: -11px;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--al-noche, #f8fafc);
}
.eu-tk-perf::before { left: -11px; }
.eu-tk-perf::after { right: -11px; }
.eu-tk-body { padding: 20px; }
.eu-tk-datos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    text-align: left;
    width: 100%;
}
.eu-tk-datos > div { min-width: 0; }
.eu-tk-datos .eu-overline { color: #9a9aa2; font-size: 0.58rem; }
.eu-tk-datos b {
    display: block;
    font-size: 0.86rem;
    font-weight: 700;
    margin-top: 3px;
    letter-spacing: -0.01em;
    color: #101013;
    overflow-wrap: anywhere;
}
.eu-tk-qr { display: grid; place-items: center; padding: 4px 0; }
.eu-tk-qr img { width: min(210px, 58vw); height: auto; }
.eu-tk-code {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    margin: 12px 0 0;
    color: #101013;
    overflow-wrap: anywhere;
}
.eu-tk-hint { text-align: center; color: #9a9aa2; font-size: 0.72rem; margin: 6px 0 0; }
.eu-tk-scan {
    text-align: center;
    color: var(--al-coral-texto);
    font-size: 0.72rem;
    font-weight: 700;
    margin: 4px 0 0;
}

.eu-li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.eu-li-fecha { text-align: center; min-width: 44px; flex-shrink: 0; }
.eu-li-fecha b { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-main, #111); }
.eu-li-fecha span {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--al-coral-enlace);
    font-weight: 700;
}
.eu-li-info { flex: 1; min-width: 0; }
.eu-li-info b {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--text-main, #111);
}
.eu-li-info span { display: block; color: var(--text-muted, #8e8e98); font-size: 0.78rem; margin-top: 2px; }
.eu-li-estado {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    flex-shrink: 0;
}
.eu-li-estado.is-ok { color: #059669; }
.eu-li-estado.is-warn { color: #d97706; }
.eu-li-estado.is-bad { color: #dc2626; }
[data-theme="dark"] .eu-li-estado.is-ok { color: #34d399; }
[data-theme="dark"] .eu-li-estado.is-warn { color: #fbbf24; }
[data-theme="dark"] .eu-li-estado.is-bad { color: #f87171; }

.eu-scan-aviso {
    color: var(--text-muted, #8e8e98);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: -4px 0 10px;
}
.eu-hist {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.eu-hist-info { flex: 1; min-width: 0; }
.eu-hist-info b {
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--text-main, #111);
}
.eu-hist-info span { display: block; color: var(--text-muted, #8e8e98); font-size: 0.76rem; margin-top: 2px; }
.eu-badge {
    flex-shrink: 0;
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}
.eu-badge.is-ok { background: rgba(5, 150, 105, 0.11); color: #047857; }
.eu-badge.is-muted { background: var(--bg-secondary, #f1f5f9); color: var(--text-muted, #8e8e98); }
[data-theme="dark"] .eu-badge.is-ok { background: rgba(52, 211, 153, 0.15); color: #34d399; }

.eu-tarifa {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 4px;
}
.eu-tarifa-info { flex: 1; min-width: 0; }
.eu-tarifa-info b { display: block; font-size: 0.95rem; font-weight: 700; color: var(--text-main, #111); }
.eu-tarifa-info span { display: block; color: var(--text-muted, #8e8e98); font-size: 0.76rem; margin-top: 2px; }
.eu-precio {
    font-size: 1rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text-main, #111);
    flex-shrink: 0;
}
.eu-precio.is-gratis {
    color: #059669;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
[data-theme="dark"] .eu-precio.is-gratis { color: #34d399; }

.eu-btn-mini {
    border: 0;
    border-radius: 999px;
    background: var(--al-coral-texto);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 10px 18px;
    font-family: inherit;
    flex-shrink: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, opacity 0.15s ease;
}
.eu-btn-mini:active { transform: scale(0.97); }
.eu-btn-mini:hover { color: #fff; }
.eu-btn-mini.is-fantasma {
    background: transparent;
    color: var(--text-main, #111);
    box-shadow: inset 0 0 0 1.5px var(--border-color, #d1d5db);
}
.eu-btn-mini.is-fantasma:hover { color: var(--text-main, #111); }
.eu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 13px 18px;
    border-radius: 999px;
    border: 0;
    font-size: 0.98rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.12s ease, opacity 0.15s ease;
}
.eu-btn:active { transform: scale(0.985); }
.eu-btn-primary { background: var(--al-coral-texto); color: #fff; }
.eu-btn-primary:hover { color: #fff; }
.eu-btn-ok { background: #059669; color: #fff; }
.eu-btn-ok:hover { color: #fff; }
.eu-btn-fantasma {
    background: transparent;
    color: var(--text-main, #111);
    box-shadow: inset 0 0 0 1.5px var(--border-color, #d1d5db);
}
.eu-btn-fantasma:hover { color: var(--text-main, #111); }

.eu-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 14px;
    padding: 6px 6px 6px 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.eu-pill code {
    flex: 1;
    min-width: 0;
    font-size: 0.8rem;
    color: var(--text-muted, #8e8e98);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    font-family: ui-monospace, 'SF Mono', Consolas, monospace;
}
.eu-pill button {
    background: var(--text-main, #111);
    color: var(--al-noche, #fff);
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 0.84rem;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
}
.eu-wa {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 2px 0;
    color: #1ebd57;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
}
.eu-wa:hover { color: #1ebd57; }
[data-theme="dark"] .eu-wa { color: #25D366; }
[data-theme="dark"] .eu-wa:hover { color: #25D366; }
.eu-wa svg { flex-shrink: 0; }

.eu-invitar {
    margin-top: 30px;
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 18px;
    padding: 18px;
    text-align: left;
}
.eu-invitar .eu-txt {
    color: var(--text-muted, #8e8e98);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 8px 0 14px;
}
.eu-invitar .eu-txt strong { color: var(--text-main, #111); }
.eu-invitar .eu-pill { background: var(--al-noche, #fff); }

.eu-acceso {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
    padding: 15px 16px;
    border-radius: 18px;
    background: var(--bg-secondary, #f1f5f9);
    box-shadow: inset 0 0 0 1px var(--al-hairline);
    text-decoration: none;
    color: inherit;
    transition: transform 0.12s ease;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.eu-acceso:active { transform: scale(0.99); }
.eu-acceso-ico {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(244, 63, 94, 0.13);
    color: var(--al-coral-enlace);
    flex-shrink: 0;
}
.eu-acceso-txt { flex: 1; min-width: 0; }
.eu-acceso-txt b {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main, #111);
}
.eu-acceso-txt span {
    display: block;
    color: var(--text-muted, #8e8e98);
    font-size: 0.78rem;
    line-height: 1.4;
    margin-top: 2px;
}
.eu-acceso-chev { color: var(--al-coral-enlace); flex-shrink: 0; }
@media (prefers-reduced-motion: reduce) {
    .eu-acceso { transition: none; }
    .eu-acceso:active { transform: none; }
}

.eu-stats {
    display: flex;
    margin-top: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
.eu-stats > div {
    flex: 1 1 0;
    padding: 4px;
    min-width: 0;
}
.eu-stats > div + div {
    border-left: 1px solid var(--border-color, #e5e7eb);
    padding-left: 14px;
}
.eu-stats b {
    display: block;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--text-main, #111);
    overflow-wrap: anywhere;
}
.eu-stats span {
    color: var(--text-muted, #8e8e98);
    font-size: 0.7rem;
    line-height: 1.35;
    display: block;
    margin-top: 2px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.eu-alert {
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.07);
    color: #dc2626;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}
[data-theme="dark"] .eu-alert { color: #f87171; }
.eu-nota {
    background: var(--bg-secondary, #f1f5f9);
    border-radius: 16px;
    padding: 20px;
    color: var(--text-muted, #8e8e98);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 16px;
}
.eu-nota strong { color: var(--text-main, #111); }
.eu-foot-note {
    color: var(--text-muted, #9ca3af);
    font-size: 0.72rem;
    line-height: 1.55;
    margin-top: 24px;
    text-align: center;
}
.eu-link { color: var(--al-coral-enlace); font-weight: 700; text-decoration: none; }

.eu-spinner {
    display: block;
    width: 26px; height: 26px;
    margin: 0 auto 12px;
    border-radius: 50%;
    border: 3px solid rgba(244, 63, 94, 0.2);
    border-top-color: var(--al-coral-enlace);
    animation: eu-girar 0.9s linear infinite;
}
@keyframes eu-girar { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .eu-spinner { animation: none; }
}

@media (max-width: 480px) {
    .eu-shell {
        padding: 20px 16px 56px;
    }
    .eu-display {
        font-size: 1.75rem;
    }
    .eu-stats > div + div {
        padding-left: 10px;
    }
    .eu-stats b {
        font-size: 1.45rem;
    }
    .eu-stats span {
        font-size: 0.68rem;
    }
    .eu-tk-head {
        padding: 18px 16px 20px;
    }
    .eu-tk-body {
        padding: 16px;
    }
    .eu-tk-head h2 {
        font-size: 1.35rem;
    }
}

@media (max-width: 360px) {
    .eu-shell {
        padding: 18px 12px 48px;
    }
    .eu-display {
        font-size: 1.55rem;
    }
    .eu-tk-code {
        letter-spacing: 0.16em;
    }
    .eu-stats > div + div {
        padding-left: 8px;
    }
    .eu-stats b {
        font-size: 1.25rem;
    }
}
