body {
    font-family: 'Inter', sans-serif;
    background-color: #0f172a;
    background-image:
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.3) 0px, transparent 50%);
    color: #e2e8f0;
    min-height: 100vh;
}

.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.section-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
}

.feature-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.45));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 0.9rem;
    transition: all 0.25s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.45);
}

.feature-scroll {
    max-height: 90px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    line-height: 1.35;
    scrollbar-width: thin;
    scrollbar-color: #38bdf8 rgba(255, 255, 255, 0.08);
    mask-image: linear-gradient(to bottom, transparent 0, black 8px, black calc(100% - 8px), transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 8px, black calc(100% - 8px), transparent 100%);
}

.feature-scroll::-webkit-scrollbar {
    width: 8px;
}

.feature-scroll::-webkit-scrollbar-track {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.08), rgba(30, 41, 59, 0.3));
    border-radius: 9999px;
}

.feature-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #0ea5e9, #3b82f6);
    border-radius: 9999px;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-scroll::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #22d3ee, #2563eb);
}

.blue-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

.plans-chip {
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: #bfdbfe;
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
    font-size: 11px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.plan-top-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.75rem;
}

.plan-top-card {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.18), transparent 40%),
        linear-gradient(180deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.55));
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 0.9rem;
    padding: 1rem 0.85rem;
    text-align: center;
    transition: all 0.25s ease;
    width: 100%;
}

.plan-top-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    opacity: 0.55;
}

.plan-top-card::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    right: -36px;
    top: -56px;
    border-radius: 9999px;
    pointer-events: none;
    opacity: 0.6;
    filter: blur(4px);
}

.plan-top-card:hover {
    transform: translateY(-2px);
    border-color: rgba(56, 189, 248, 0.7);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.plan-top-card.plan-active {
    border-color: rgba(34, 211, 238, 0.75);
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.35);
    background: linear-gradient(180deg, rgba(8, 47, 73, 0.8), rgba(15, 23, 42, 0.55));
}

.plan-pro {
    background:
        radial-gradient(circle at 14% 14%, rgba(125, 211, 252, 0.26), transparent 42%),
        linear-gradient(180deg, rgba(14, 116, 144, 0.3), rgba(15, 23, 42, 0.58));
    border-color: rgba(56, 189, 248, 0.52);
}

.plan-pro::after {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.55), rgba(14, 116, 144, 0));
}

.plan-pro_stream {
    background:
        radial-gradient(circle at 14% 14%, rgba(251, 191, 36, 0.24), transparent 42%),
        linear-gradient(180deg, rgba(146, 64, 14, 0.34), rgba(15, 23, 42, 0.58));
    border-color: rgba(251, 191, 36, 0.48);
}

.plan-pro_stream::after {
    background: radial-gradient(circle, rgba(251, 191, 36, 0.5), rgba(146, 64, 14, 0));
}

.plan-pro_host {
    background:
        radial-gradient(circle at 14% 14%, rgba(192, 132, 252, 0.24), transparent 42%),
        linear-gradient(180deg, rgba(107, 33, 168, 0.34), rgba(15, 23, 42, 0.58));
    border-color: rgba(192, 132, 252, 0.48);
}

.plan-pro_host::after {
    background: radial-gradient(circle, rgba(192, 132, 252, 0.5), rgba(107, 33, 168, 0));
}

.plan-pro_plus {
    background:
        radial-gradient(circle at 14% 14%, rgba(74, 222, 128, 0.24), transparent 42%),
        linear-gradient(180deg, rgba(20, 83, 45, 0.36), rgba(15, 23, 42, 0.58));
    border-color: rgba(74, 222, 128, 0.46);
}

.plan-pro_plus::after {
    background: radial-gradient(circle, rgba(74, 222, 128, 0.5), rgba(20, 83, 45, 0));
}

.plan-pro_ultimate {
    background:
        radial-gradient(circle at 14% 14%, rgba(191, 219, 254, 0.28), transparent 42%),
        linear-gradient(180deg, rgba(30, 64, 175, 0.42), rgba(15, 23, 42, 0.58));
    border-color: rgba(147, 197, 253, 0.56);
}

.plan-pro_ultimate::after {
    background: radial-gradient(circle, rgba(147, 197, 253, 0.56), rgba(30, 64, 175, 0));
}

.plan-code {
    color: #7dd3fc;
    letter-spacing: 0.14em;
}

.plan-name {
    color: #f8fafc;
    letter-spacing: 0.03em;
    text-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
}

.plan-price-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
}

.plan-price-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0.3rem 0.35rem;
    border-radius: 0.65rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 8px 14px rgba(2, 6, 23, 0.22);
}

.plan-price-card::after {
    content: '';
    position: absolute;
    top: -18px;
    left: -22px;
    width: 72px;
    height: 36px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.25);
    opacity: 0.55;
    pointer-events: none;
}

.plan-price-label {
    font-size: 10px;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.plan-price-value {
    font-size: 13px;
    font-weight: 700;
    color: #e0f2fe;
}

.plan-top-card:focus-visible {
    outline: 2px solid rgba(34, 211, 238, 0.7);
    outline-offset: 2px;
}

.section-empty-note {
    display: none;
}

.section-empty-note.visible {
    display: block;
}

@media (max-width: 900px) {
    .plan-top-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .plan-top-grid {
        grid-template-columns: 1fr;
    }
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #3b82f6; }

/* plans.php theme overrides */
html.light body {
    background-color: #f8fafc;
    background-image: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.18) 0px, transparent 46%), radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.16) 0px, transparent 50%);
    color: #0f172a;
}

html.dark body {
    background-color: #0f172a;
    background-image: none;
    color: #e2e8f0;
}

html.light .section-title-blue {
    color: #1d4ed8;
}

html.dark .section-title-blue {
    color: #93c5fd;
}

html.light .section-badge {
    background: rgba(219, 234, 254, 0.92);
    border-color: rgba(147, 197, 253, 0.95);
    color: #1e40af;
}

html.dark .section-badge {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(96, 165, 250, 0.35);
    color: #bfdbfe;
}

html.light .glass {
    background: rgba(255, 255, 255, 0.86);
    border-color: rgba(148, 163, 184, 0.28);
}

html.dark .glass {
    background: rgba(15, 23, 42, 0.72);
    border-color: rgba(51, 65, 85, 0.74);
}

html.light .section-card {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(226, 232, 240, 1);
}

html.dark .section-card {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(51, 65, 85, 0.9);
}

html.light .feature-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
    border-color: rgba(148, 163, 184, 0.34);
}

html.dark .feature-card {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96));
    border-color: rgba(99, 102, 241, 0.42);
}

html.light .feature-scroll {
    color: #334155;
}

html.dark .feature-scroll {
    color: #cbd5e1;
}

html.light .included-row {
    color: #1e3a8a;
}

html.dark .included-row {
    color: #bfdbfe;
}

html.light .plans-chip {
    background: rgba(239, 246, 255, 0.95);
    border-color: rgba(147, 197, 253, 0.95);
    color: #1d4ed8;
}

html.dark .plans-chip {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.42);
    color: #dbeafe;
}

html.light #plan-filter-state {
    color: #334155 !important;
    font-weight: 500;
}

html.light #funciones-disponibles {
    color: #1d4ed8 !important;
}

html.dark #funciones-disponibles {
    color: rgba(103, 232, 249, 0.8) !important;
}

html.light .text-slate-300,
html.light .text-slate-400,
html.light .text-slate-500 {
    color: #475569 !important;
}

html.light .bg-white\/\[0\.03\],
html.light .bg-white\/\[0\.02\] {
    background: rgba(241, 245, 249, 0.92) !important;
}

html.light .blue-dot {
    background: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}

html.light .brand-title {
    color: #0f172a;
}

html.light .brand-title-accent {
    color: #2563eb;
}

html.dark .brand-title {
    color: #e2e8f0;
}

html.dark .brand-title-accent {
    color: #60a5fa;
}

html.light .plan-price-label {
    color: #1e3a8a;
    font-weight: 700;
}

html.dark .plan-price-label {
    color: #93c5fd;
}

html.light .plan-price-value {
    color: #eff6ff;
}

html.dark .plan-price-value {
    color: #e0f2fe;
}
