/* ─── StemLab Tiers v2.0.0 ───
   Luxury dark theme. Subscription cards + credit pack cards.
   Nuclear resets at top to prevent stemlab-header interference. */

/* ═══════════════════════════════════════════════════════
   NUCLEAR RESET OVERRIDES
   Prevent stemlab-header / Elementor from killing spacing.
   ═══════════════════════════════════════════════════════ */

#stemlab-tiers-app,
#stemlab-tiers-app *,
.slt-page-header,
.slt-page-header * {
    box-sizing: border-box !important;
}

.slt-page-header {
    padding: 48px 20px 8px !important;
    margin: 0 auto !important;
    max-width: 900px !important;
    text-align: center !important;
}

.slt-wrap {
    padding: 0 !important;
    margin: 0 auto !important;
    max-width: 1140px !important;
}

/* Strip any Elementor widget padding bleeding into our container */
.elementor-widget-shortcode .elementor-widget-container {
    padding: 0 !important;
}

/* ═══════════════════════════════════════════════════════
   KEYFRAMES
   ═══════════════════════════════════════════════════════ */

@property --slt-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes slt-rotate-border {
    to { --slt-angle: 360deg; }
}

@keyframes slt-badge-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 46, 134, 0.40), 0 0 0 0 rgba(255, 46, 134, 0.0); }
    50%       { box-shadow: 0 0 14px rgba(255, 46, 134, 0.65), 0 0 0 4px rgba(255, 46, 134, 0.10); }
}

@keyframes slt-plus-glow-pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 46, 134, 0.12), 0 8px 40px rgba(0, 0, 0, 0.50); }
    50%       { box-shadow: 0 0 64px rgba(255, 46, 134, 0.22), 0 12px 52px rgba(0, 0, 0, 0.56); }
}

@keyframes slt-price-glow {
    0%, 100% { text-shadow: 0 0 16px rgba(255, 46, 134, 0.22); }
    50%       { text-shadow: 0 0 30px rgba(255, 46, 134, 0.40); }
}

@keyframes slt-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

/* ═══════════════════════════════════════════════════════
   PAGE HEADER
   ═══════════════════════════════════════════════════════ */

.slt-page-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #FF2E86;
    margin: 0;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
    text-shadow: 0 0 20px rgba(255, 46, 134, 0.35);
}

/* ═══════════════════════════════════════════════════════
   SUBSCRIPTION CARDS GRID
   ═══════════════════════════════════════════════════════ */

.slt-tiers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1140px;
    margin: 32px auto 0;
    padding: 0 24px;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    align-items: start;
}

/* ═══════════════════════════════════════════════════════
   SHARED CARD BASE
   ═══════════════════════════════════════════════════════ */

.slt-card {
    background: #1F1F2E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.36),
        0 1px 4px rgba(0, 0, 0, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* Top highlight line */
.slt-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent);
    pointer-events: none;
}

.slt-card:hover {
    background: #252538;
    transform: translateY(-3px);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.46),
        0 4px 12px rgba(0, 0, 0, 0.40),
        0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

/* ─── Plus card accent ─── */
.slt-card--plus {
    border-color: rgba(255, 46, 134, 0.30);
    background: conic-gradient(
        from var(--slt-angle),
        rgba(255, 46, 134, 0.00) 0%,
        rgba(255, 46, 134, 0.10) 15%,
        rgba(255, 46, 134, 0.00) 30%
    ) border-box, #1F1F2E;
    animation:
        slt-rotate-border 7s linear infinite,
        slt-plus-glow-pulse 3.5s ease-in-out infinite;
}

@supports not (background: conic-gradient(from 0deg, red, blue)) {
    .slt-card--plus { background: #1F1F2E; }
}

.slt-card--plus:hover {
    box-shadow:
        0 0 64px rgba(255, 46, 134, 0.22),
        0 16px 60px rgba(0, 0, 0, 0.55),
        0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

/* ─── Annual card: slightly deeper tint ─── */
.slt-card--annual {
    border-color: rgba(255, 46, 134, 0.36);
}

/* ─── Pro card: ghosted / dimmed ─── */
.slt-card--pro {
    border-color: rgba(255, 255, 255, 0.07);
    background: rgba(31, 31, 46, 0.55);
    opacity: 0.80;
}

.slt-card--pro:hover {
    opacity: 0.90;
    transform: none;
}

.slt-pro-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    background: linear-gradient(
        180deg,
        rgba(13, 13, 18, 0.00) 0%,
        rgba(13, 13, 18, 0.18) 50%,
        rgba(13, 13, 18, 0.42) 100%
    );
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════ */

.slt-card-badge {
    position: absolute;
    top: 0; left: 0; right: 0;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    z-index: 2;
}

.slt-card-badge--coupon {
    background: rgba(255, 46, 134, 0.14);
    color: #FF2E86;
    animation: slt-badge-pulse 2.6s ease-in-out infinite;
}

/* Annual card has the Save badge by default and coupon badge below it.
   We layer them: the Save badge is at top, coupon badge offset below. */
.slt-card--annual .slt-card-badge--save {
    background: rgba(255, 46, 134, 0.14);
    color: #FF2E86;
    position: absolute;
    top: 0; left: 0; right: 0;
}

.slt-card--annual .slt-card-badge--coupon-annual {
    position: absolute;
    top: 22px; left: 0; right: 0;
}

.slt-card-badge--soon {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.40);
}

/* Card header offset when badge is visible */
.slt-card--plus .slt-card-header,
.slt-card--annual .slt-card-header {
    margin-top: 24px;
}

.slt-card--pro .slt-card-header {
    margin-top: 28px;
    position: relative;
    z-index: 2;
}

.slt-card--annual .slt-card-header {
    margin-top: 28px; /* extra for stacked badges */
}

/* ═══════════════════════════════════════════════════════
   CARD HEADER
   ═══════════════════════════════════════════════════════ */

.slt-card-header {
    margin-bottom: 20px;
}

.slt-card-name {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.slt-card-name-tag {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    vertical-align: middle;
}

.slt-card-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 8px;
    font-style: italic;
}

.slt-pink {
    color: #FF2E86;
}

/* ─── Price ─── */
.slt-card-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.slt-card-amount {
    font-size: 36px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
    line-height: 1;
    animation: slt-price-glow 3.5s ease-in-out infinite;
}

.slt-card--plus .slt-card-amount {
    color: #FF2E86;
}

.slt-card-original {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: line-through;
    font-weight: 500;
    align-self: center;
}

.slt-card-period {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    font-weight: 400;
    align-self: flex-end;
}

.slt-coupon-hint {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin: 6px 0 0;
}

.slt-coupon-hint strong {
    color: #FF2E86;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════
   FEATURE LIST
   ═══════════════════════════════════════════════════════ */

.slt-card-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    flex: 1;
    position: relative;
    z-index: 2;
}

.slt-card-features li {
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.68);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 150ms ease;
}

.slt-card-features li:hover {
    color: rgba(255, 255, 255, 0.90);
}

.slt-card-features li:last-child {
    border-bottom: none;
}

/* Pink dot */
.slt-card-features li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #FF2E86;
    flex-shrink: 0;
    box-shadow: 0 0 8px rgba(255, 46, 134, 0.45);
}

/* Highlighted feature item */
.slt-feature-highlight {
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
}

/* Blurred/dimmed for Pro card */
.slt-card-features--blurred {
    filter: blur(3px);
    pointer-events: none;
    user-select: none;
    opacity: 0.55;
}

.slt-card-features--blurred li::before {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.slt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 160ms ease;
    white-space: nowrap;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
    border: none;
    box-sizing: border-box;
    text-align: center;
    margin-top: auto;
    min-height: 44px;
    position: relative;
    overflow: hidden;
    z-index: 2;
    -webkit-font-smoothing: antialiased;
}

/* Inner sheen */
.slt-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    transition: opacity 160ms ease;
}

.slt-btn:hover::after {
    opacity: 1;
}

/* Primary (pink solid) */
.slt-btn--primary {
    background: #FF2E86;
    color: #FFFFFF;
    box-shadow:
        0 0 24px rgba(255, 46, 134, 0.38),
        0 2px 8px rgba(0, 0, 0, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.slt-btn--primary:hover {
    background: #FF4D98;
    box-shadow:
        0 0 40px rgba(255, 46, 134, 0.50),
        0 4px 16px rgba(0, 0, 0, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);
    transform: translateY(-2px);
    color: #FFFFFF;
    text-decoration: none;
}

.slt-btn--primary:active {
    background: #E0206E;
    box-shadow: 0 0 12px rgba(255, 46, 134, 0.30);
    transform: scale(0.98);
}

.slt-btn--primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* Ghost */
.slt-btn--ghost {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 46, 134, 0.30);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.slt-btn--ghost:hover {
    border-color: #FF2E86;
    background: rgba(255, 46, 134, 0.08);
    text-decoration: none;
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow:
        0 0 16px rgba(255, 46, 134, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.slt-btn--ghost:active {
    transform: translateY(0);
}

.slt-btn--ghost:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* ═══════════════════════════════════════════════════════
   PRO WAITLIST
   ═══════════════════════════════════════════════════════ */

.slt-pro-waitlist {
    position: relative;
    z-index: 2;
    margin-top: 8px;
}

.slt-pro-waitlist-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin: 0 0 10px;
    text-align: center;
}

.slt-pro-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slt-pro-email {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    color: #FFFFFF;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.slt-pro-email::placeholder {
    color: rgba(255, 255, 255, 0.28);
}

.slt-pro-email:focus {
    border-color: rgba(255, 46, 134, 0.50);
    box-shadow: 0 0 0 3px rgba(255, 46, 134, 0.12);
}

.slt-pro-email.slt-input-error {
    border-color: rgba(255, 80, 80, 0.60);
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.12);
}

.slt-pro-notify-btn {
    margin-top: 0;
}

.slt-pro-success {
    font-size: 13px;
    color: rgba(100, 255, 160, 0.85);
    text-align: center;
    margin: 8px 0 0;
}

.slt-pro-error {
    font-size: 13px;
    color: rgba(255, 100, 100, 0.85);
    text-align: center;
    margin: 8px 0 0;
}

/* ═══════════════════════════════════════════════════════
   CREDIT PACKS SECTION
   ═══════════════════════════════════════════════════════ */

.slt-packs-section {
    max-width: 1140px;
    margin: 60px auto 0;
    padding: 0 24px 64px;
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
    -webkit-font-smoothing: antialiased;
}

.slt-packs-header {
    text-align: center;
    margin-bottom: 32px;
}

.slt-packs-heading {
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}

.slt-packs-sub {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.50);
    margin: 0;
}

/* Packs grid: 4 columns */
.slt-packs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* Pack card */
.slt-pack-card {
    background: #1A1A28;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 12px;
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    position: relative;
    transition:
        background 160ms ease,
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.slt-pack-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    pointer-events: none;
}

.slt-pack-card:hover {
    background: #222234;
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.36),
        0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

/* Best Value card */
.slt-pack-card--best {
    border-color: rgba(255, 46, 134, 0.28);
    background: rgba(31, 31, 46, 1.0);
}

.slt-pack-card--best:hover {
    border-color: rgba(255, 46, 134, 0.50);
    box-shadow:
        0 0 32px rgba(255, 46, 134, 0.14),
        0 8px 24px rgba(0, 0, 0, 0.38);
}

.slt-pack-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #FF2E86;
    background: rgba(255, 46, 134, 0.12);
    padding: 3px 8px;
    border-radius: 4px;
}

.slt-pack-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.slt-pack-price {
    font-size: 22px;
    font-weight: 800;
    color: #FFFFFF;
    letter-spacing: -0.02em;
}

.slt-pack-card--best .slt-pack-price {
    color: #FF2E86;
}

/* Pack button is the same slt-btn but auto-sized */
.slt-pack-card .slt-btn {
    width: 100%;
    margin-top: 4px;
    padding: 10px 16px;
    font-size: 12px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* Tablet: 2 columns for subscription cards */
@media (max-width: 960px) {
    .slt-tiers {
        grid-template-columns: repeat(2, 1fr);
        max-width: 680px;
    }

    .slt-packs {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 column for subscription cards, 1 column for packs */
@media (max-width: 580px) {
    .slt-tiers {
        grid-template-columns: 1fr;
        padding: 0 16px;
        max-width: 420px;
    }

    .slt-packs {
        grid-template-columns: 1fr;
    }

    .slt-packs-section {
        padding: 0 16px 48px;
    }

    .slt-card-amount {
        font-size: 30px;
    }

    .slt-packs-heading {
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .slt-card--plus {
        animation: none;
    }

    .slt-card-badge--coupon {
        animation: none;
    }

    .slt-card-amount {
        animation: none;
    }

    .slt-card,
    .slt-btn,
    .slt-pack-card,
    .slt-card-features li {
        transition-duration: 0.01ms;
    }
}

/* ─── Login Wall Modal ─── */
.slt-login-wall {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.slt-login-wall-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.slt-login-wall-box {
    position: relative;
    background: #1F1F2E;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 48px 40px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.slt-login-wall-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.slt-login-wall-close:hover {
    color: #fff;
}

.slt-login-wall-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #F5F5F7;
    margin: 0 0 12px;
}

.slt-login-wall-text {
    font-size: 0.9375rem;
    color: #E0E0E4;
    line-height: 1.5;
    margin: 0 0 28px;
}

.slt-login-wall-cta {
    display: block !important;
    width: 100% !important;
    margin-bottom: 16px !important;
}

.slt-login-wall-login {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.slt-login-wall-login a {
    color: #FF2E86;
    text-decoration: none;
}

.slt-login-wall-login a:hover {
    text-decoration: underline;
}

/* ── Email/Password Wall Fields ── */
.slt-wall-field {
    margin-bottom: 16px;
    text-align: left;
}
.slt-wall-field label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 6px;
    display: block;
}
.slt-wall-field input {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    padding: 12px 14px;
    font-size: 15px;
    width: 100%;
    box-sizing: border-box;
    font-family: var(--font-sans, 'Satoshi', 'Inter', system-ui, sans-serif);
    transition: border-color 0.15s ease;
}
.slt-wall-field input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}
.slt-wall-field input:focus {
    border-color: rgba(255, 46, 134, 0.4);
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 46, 134, 0.1);
}
.slt-wall-error {
    background: rgba(255, 77, 106, 0.08);
    border: 1px solid rgba(255, 77, 106, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #FF4D6A;
    font-size: 13px;
    margin-top: 12px;
}
.slt-wall-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
