/* Website: src/app/static/css/pages/platforms/runwai/upgrades.css v2.0 */

.runwai-upgrade-section {
    margin-top: 30px;
}

.runwai-upgrade-stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: relative;
}

.brand-panel {
    background: var(--brand-color-container-foreground-dark);
    border-radius: 22px;
    border: 1px solid rgba(46, 217, 231, 0.28);
    padding: 22px 24px;
    box-shadow: 0 26px 52px rgba(0, 0, 0, 0.38);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 12%, rgba(46, 217, 231, 0.2), transparent 42%),
                radial-gradient(circle at 0% 100%, rgba(20, 80, 110, 0.18), transparent 45%);
    pointer-events: none;
    opacity: 0.9;
    z-index: 0;
}

.brand-panel > * {
    position: relative;
    z-index: 1;
}

.hero-panel {
    padding: 26px 24px;
}

.neuron-glow {
    position: absolute;
    width: 240px;
    height: 240px;
    top: -80px;
    right: -40px;
    background: radial-gradient(circle, rgba(46, 217, 231, 0.28), transparent 60%);
    filter: blur(30px);
    opacity: 0.8;
    z-index: 0;
}

.section-eyebrow-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-color-primary, #6dd5fa);
    font-size: 0.85rem;
    margin: 0;
    font-weight: 700;
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pill-soft {
    background: rgba(109, 213, 250, 0.12);
    color: var(--brand-color-primary, #6dd5fa);
    border: 1px solid rgba(109, 213, 250, 0.25);
    box-shadow: 0 4px 18px rgba(109, 213, 250, 0.16);
}

.pill-free {
    background: rgba(99, 235, 169, 0.16);
    color: #7cf0ba;
    border: 1px solid rgba(99, 235, 169, 0.35);
}

.hero-heading-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.hero-heading-row h2 {
    margin: 0 0 8px 0;
}

.hero-heading-row p {
    margin: 0;
    color: var(--brand-color-on-dark-strong, #e7f7ff);
}

.hero-support {
    max-width: 320px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(46, 217, 231, 0.22);
    border-radius: 16px;
}

.platform-logo-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.platform-logo-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(109, 213, 250, 0.26);
    background: rgba(255, 255, 255, 0.04);
    color: #e7f7ff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.platform-logo-chip img {
    height: 28px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
}

.platform-panel,
.plan-panel {
    border-top: 4px solid rgba(46, 217, 231, 0.45);
    padding-top: 18px;
}

.plan-panel {
    border-top-color: rgba(46, 217, 231, 0.3);
}

.plan-products-container {
    margin-top: 18px;
}

.plan-section,
.scope-section {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.plan-section.is-hidden,
.scope-section.is-hidden {
    display: none;
}

.plan-tiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.scope-tiles-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.plan-tiles-grid .product-tile {
    aspect-ratio: auto;
    min-height: 280px;
    justify-content: space-between;
}

.plan-logo img {
    object-fit: contain;
}

.plan-tiles-grid .product-tile-body {
    flex: 1;
}

.plan-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 6px;
}

.subscribe-button {
    width: 100%;
    justify-content: center;
}

.plan-chip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

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

.panel-heading h3 {
    margin: 4px 0 0 0;
    color: var(--brand-color-primary);
}

.panel-support {
    max-width: 480px;
    margin: 0;
    color: var(--brand-color-on-dark, #dfe9f3);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.platform-card {
    background: linear-gradient(145deg, rgba(17, 29, 38, 0.92), rgba(10, 18, 30, 0.94));
    border: 1px solid rgba(46, 217, 231, 0.32);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.platform-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(46, 217, 231, 0.08), transparent 45%);
    pointer-events: none;
}

.platform-card:hover {
    transform: translateY(-3px);
    border-color: rgba(46, 217, 231, 0.45);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
}

.platform-card-header h3 {
    margin: 8px 0 6px 0;
    color: var(--brand-color-primary);
}

.platform-summary {
    color: var(--brand-color-on-dark-strong, #e5f5ff);
    margin: 0 0 12px 0;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(99, 235, 169, 0.14);
    color: #8af2c3;
    border: 1px solid rgba(99, 235, 169, 0.35);
}

.status-badge.available {
    background: rgba(109, 213, 250, 0.16);
    color: #a0e6ff;
    border: 1px solid rgba(109, 213, 250, 0.3);
}

.status-badge.coming_soon,
.status-badge.coming-soon,
.status-badge.comingsoon {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.platform-card-top,
.plan-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.platform-logo {
    height: 44px;
    width: 44px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(109, 213, 250, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.platform-logo img {
    max-height: 32px;
    width: auto;
    display: block;
}

.plan-logo {
    height: 82px;
    width: 82px;
    padding: 10px;
}

.plan-logo img {
}

.platform-actions,
.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-actions .cta-button {
    width: 100%;
    text-align: center;
}

.plan-actions .plan-note {
    text-align: center;
}

.platform-note,
.plan-note {
    color: #c8d6e5;
    margin: 0;
    font-size: 0.95rem;
}

.platform-state-active,
.plan-state-active {
    opacity: 1;
}

.platform-state-available,
.plan-state-available {
    opacity: 0.88;
}

.platform-state-coming_soon,
.plan-state-coming_soon {
    opacity: 0.58;
    cursor: not-allowed;
    pointer-events: none;
}

.cta-button.disabled {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.6);
    cursor: not-allowed;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.plan-card {
    background: linear-gradient(145deg, rgba(24, 34, 58, 0.92), rgba(12, 18, 32, 0.94));
    border: 1px solid rgba(109, 213, 250, 0.25);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.plan-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(109, 213, 250, 0.12), transparent 45%);
    pointer-events: none;
}

.plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(109, 213, 250, 0.38);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.plan-card-header h3 {
    margin: 8px 0 6px 0;
    color: var(--brand-color-primary);
}

.plan-summary {
    color: #dfe9f3;
    margin: 0 0 10px 0;
}

.plan-intro {
    padding-bottom: 12px;
}

.plan-platform-label {
    color: var(--brand-color-primary);
}

@media (max-width: 900px) {
    .hero-heading-row {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .brand-panel {
        padding: 18px 16px;
    }

    .platform-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}
