/**
 * KooKoa Folders — Pricing Page
 * Retro dark terminal theme
 *
 * @package KookoaWPF
 */

/* Paint the WP admin body dark early so the pricing page doesn't flash
   white before the theme-specific rules further down kick in. */
.kookoawpf-pricing-wrap { background: #0d1117 !important; }
#wpbody, #wpbody-content, #wpcontent { background: #0d1117 !important; overflow: visible !important; }

/* ── VARIABLES ── */
:root {
    --kookoawpf-bg: #0d1117;
    --kookoawpf-card: #0d1117;
    --kookoawpf-border: #30363d;
    --kookoawpf-green: #39FF14;
    --kookoawpf-green-dim: rgba(57, 255, 20, 0.25);
    --kookoawpf-green-glow: rgba(57, 255, 20, 0.35);
    --kookoawpf-orange: #FF9500;
    --kookoawpf-orange-dim: rgba(255, 149, 0, 0.25);
    --kookoawpf-orange-glow: rgba(255, 149, 0, 0.35);
    --kookoawpf-white: #ffffff;
    --kookoawpf-text: #c9d1d9;
    --kookoawpf-red: #FF3B30;
    --kookoawpf-font: 'Share Tech Mono', 'Courier New', monospace;
}

/* ── RESET WP ADMIN AREA ── */
#wpbody,
#wpbody-content,
#wpcontent {
    background: var(--kookoawpf-bg) !important;
}

#wpcontent {
    border-left: 5px solid #2ea043 !important;
}

#wpfooter {
    display: none !important;
}

.kookoawpf-pricing-wrap {
    margin: 0;
    padding: 0;
    background: var(--kookoawpf-bg);
    font-family: var(--kookoawpf-font);
    color: var(--kookoawpf-text);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Hide WP admin notices inside our page */
.kookoawpf-pricing-wrap .notice,
.kookoawpf-pricing-wrap .updated,
.kookoawpf-pricing-wrap .error {
    display: none !important;
}

/* Hide Freemius auto-injected pricing page and checkout iframe */
#fs_pricing,
#fs_checkout,
#fs_checkout_wrapper,
.fs-checkout-overlay,
iframe[src*="checkout.freemius"] {
    display: none !important;
}

/* ── CRT EFFECTS ── */

/* Scanlines */
.kookoawpf-pricing-wrap::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 0, 0, 0.15) 3px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    z-index: 100;
}

/* Vignette */
.kookoawpf-pricing-wrap::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 99;
}

/* ── INNER CONTAINER ── */
.kookoawpf-pricing-inner {
    max-width: 1100px;
    margin: 0;
    padding: 40px 30px 5px;
    position: relative;
    z-index: 1;
}

/* ── HEADER ── */
.kookoawpf-pricing-header {
    text-align: left;
    margin-bottom: 40px;
}

.kookoawpf-pricing-logo {
    font-family: var(--kookoawpf-font);
    font-size: 48px;
    color: var(--kookoawpf-green);
    text-shadow: 0 0 10px var(--kookoawpf-green-glow), 0 0 30px rgba(57, 255, 20, 0.15);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    line-height: 1;
}

.kookoawpf-pricing-logo .kookoawpf-arr {
    color: var(--kookoawpf-green);
}

.kookoawpf-pricing-logo .kookoawpf-cursor {
    color: var(--kookoawpf-green);
    text-shadow: 0 0 14px var(--kookoawpf-green-glow);
    animation: kookoawpf-blink 0.9s step-end infinite;
}

@keyframes kookoawpf-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.kookoawpf-pricing-subtitle {
    font-size: 32px;
    color: var(--kookoawpf-orange);
    text-shadow: 0 0 8px var(--kookoawpf-orange-glow);
    letter-spacing: 0.08em;
    margin-top: 12px;
}

.kookoawpf-pricing-tagline {
    font-size: 24px;
    line-height: 1.55;
    color: var(--kookoawpf-text);
    margin-top: 20px;
    letter-spacing: 0.04em;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--kookoawpf-green);
}

/* ── SMART TRIAL/DISCOUNT BLOCK (right side of pricing grid) ── */
.kookoawpf-trial-block {
    border: 2px solid var(--kookoawpf-orange);
    background: rgba(255, 149, 0, 0.04);
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Corner brackets — match the plan-card aesthetic */
.kookoawpf-trial-block::before {
    content: '\250C\2500';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 12px;
    color: var(--kookoawpf-orange-dim);
    z-index: 1;
}

.kookoawpf-trial-block::after {
    content: '\2500\2510';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    color: var(--kookoawpf-orange-dim);
    z-index: 1;
}

/* Top 3/4 — title + description, transparent bg */
.kookoawpf-trial-block-body {
    flex: 3 1 0;
    padding: 40px 32px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kookoawpf-trial-block-title {
    font-size: 36px;
    color: var(--kookoawpf-orange);
    text-shadow: 0 0 8px var(--kookoawpf-orange-glow);
    margin-bottom: 18px;
    letter-spacing: 0.04em;
}

.kookoawpf-trial-block-text {
    color: var(--kookoawpf-white);
    font-size: 20px;
    max-width: 540px;
    line-height: 1.6;
}

/* Bottom — solid orange CTA bar (Stato A), fixed 135px tall */
.kookoawpf-trial-block-cta {
    flex: 0 0 135px;
    background: var(--kookoawpf-orange);
    color: var(--kookoawpf-bg);
    font-family: var(--kookoawpf-font);
    font-size: 35px;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-align: center;
    text-decoration: none;
    text-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
}

.kookoawpf-trial-block-cta:hover {
    background: #FFB347;
    color: var(--kookoawpf-bg);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2), 0 0 24px var(--kookoawpf-orange-glow);
}

.kookoawpf-trial-block-cta:focus {
    outline: 2px solid var(--kookoawpf-bg);
    outline-offset: -6px;
}

/* Discount code (Stato B) — auto-width pill, hugs the text */
.kookoawpf-discount-code {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--kookoawpf-font);
    font-size: 32px;
    color: var(--kookoawpf-orange);
    background: var(--kookoawpf-bg);
    border: 3px solid var(--kookoawpf-orange);
    letter-spacing: 0.25em;
    text-shadow: 0 0 10px var(--kookoawpf-orange-glow);
    margin: 18px 0 14px;
    user-select: all;
}

.kookoawpf-discount-hint {
    color: var(--kookoawpf-text);
    font-size: 18px;
    letter-spacing: 0.02em;
}

/* ── PRICING GRID (PRO card 1/3 + smart trial/discount block 2/3) ── */
.kookoawpf-plans-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    margin-bottom: 50px;
}

/* ── SINGLE PLAN CARD ── */
.kookoawpf-plan-card {
    padding: 32px 24px;
    border: 1px solid var(--kookoawpf-border);
    background: var(--kookoawpf-card);
    position: relative;
    text-align: left;
    transition: background 0.2s, border-color 0.2s;
}

.kookoawpf-plan-card:hover {
    background: rgba(57, 255, 20, 0.02);
    border-color: rgba(57, 255, 20, 0.35);
}

/* Corner brackets on cards */
.kookoawpf-plan-card::before {
    content: '\250C\2500';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 12px;
    color: var(--kookoawpf-border);
    transition: color 0.2s;
}

.kookoawpf-plan-card::after {
    content: '\2500\2510';
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    color: var(--kookoawpf-border);
    transition: color 0.2s;
}

.kookoawpf-plan-card:hover::before,
.kookoawpf-plan-card:hover::after {
    color: var(--kookoawpf-green);
}

/* ── FEATURED CARD (Business) ── */
.kookoawpf-plan-card.kookoawpf-featured {
    border: 2px solid var(--kookoawpf-orange);
    background: rgba(255, 149, 0, 0.03);
    z-index: 2;
    transform: scale(1.02);
}

.kookoawpf-plan-card.kookoawpf-featured:hover {
    background: rgba(255, 149, 0, 0.06);
    border-color: var(--kookoawpf-orange);
}

.kookoawpf-plan-card.kookoawpf-featured::before,
.kookoawpf-plan-card.kookoawpf-featured::after {
    color: var(--kookoawpf-orange-dim);
}

.kookoawpf-plan-card.kookoawpf-featured:hover::before,
.kookoawpf-plan-card.kookoawpf-featured:hover::after {
    color: var(--kookoawpf-orange);
}

/* Popular badge */
.kookoawpf-popular-badge {
    position: absolute;
    top: -13px;
    right: 20px;
    padding: 4px 16px;
    font-family: var(--kookoawpf-font);
    font-size: 13px;
    color: var(--kookoawpf-bg);
    background: var(--kookoawpf-orange);
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Plan name */
.kookoawpf-plan-name {
    font-size: 42px;
    color: var(--kookoawpf-white);
    letter-spacing: 0.06em;
    margin-bottom: 20px;
    margin-top: 8px;
}

.kookoawpf-plan-card.kookoawpf-featured .kookoawpf-plan-name {
    color: var(--kookoawpf-orange);
    text-shadow: 0 0 8px var(--kookoawpf-orange-glow);
}

/* Price */
.kookoawpf-plan-price {
    margin-bottom: 6px;
}

.kookoawpf-plan-price .kookoawpf-dollar {
    font-size: 22px;
    color: var(--kookoawpf-green);
    vertical-align: top;
    line-height: 1.4;
}

.kookoawpf-plan-price .kookoawpf-amount {
    font-size: 52px;
    color: var(--kookoawpf-green);
    text-shadow: 0 0 10px var(--kookoawpf-green-glow);
    line-height: 1;
}

.kookoawpf-plan-price .kookoawpf-currency {
    font-size: 16px;
    color: var(--kookoawpf-green);
    vertical-align: top;
    line-height: 1.4;
    margin-left: 4px;
    letter-spacing: 0.05em;
}

.kookoawpf-plan-card.kookoawpf-featured .kookoawpf-plan-price .kookoawpf-dollar,
.kookoawpf-plan-card.kookoawpf-featured .kookoawpf-plan-price .kookoawpf-amount {
    color: var(--kookoawpf-orange);
    text-shadow: 0 0 10px var(--kookoawpf-orange-glow);
}

.kookoawpf-plan-term {
    font-size: 17px;
    color: var(--kookoawpf-green);
    margin-bottom: 12px;
}

.kookoawpf-plan-sites {
    font-size: 15px;
    color: var(--kookoawpf-white);
    margin-bottom: 4px;
}

.kookoawpf-per-site {
    font-size: 13px;
}

.kookoawpf-plan-per-site {
    font-size: 15px;
    color: var(--kookoawpf-white);
    margin-bottom: 24px;
}

/* Buy button */
.kookoawpf-btn-buy {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-family: var(--kookoawpf-font);
    font-size: 18px;
    color: var(--kookoawpf-bg);
    background: var(--kookoawpf-green);
    border: 3px solid var(--kookoawpf-green);
    cursor: pointer;
    text-decoration: none;
    text-shadow: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    letter-spacing: 0.06em;
    text-align: left;
    padding-left: 30px;
    box-sizing: border-box;
}

.kookoawpf-btn-buy:hover {
    background: transparent;
    color: var(--kookoawpf-green);
    box-shadow: 0 0 20px var(--kookoawpf-green-glow), inset 0 0 20px rgba(57, 255, 20, 0.08);
    text-shadow: 0 0 7px var(--kookoawpf-green-glow);
}

.kookoawpf-plan-card.kookoawpf-featured .kookoawpf-btn-buy {
    background: var(--kookoawpf-orange);
    border-color: var(--kookoawpf-orange);
    color: var(--kookoawpf-bg);
}

.kookoawpf-plan-card.kookoawpf-featured .kookoawpf-btn-buy:hover {
    background: transparent;
    color: var(--kookoawpf-orange);
    box-shadow: 0 0 20px var(--kookoawpf-orange-glow), inset 0 0 20px rgba(255, 149, 0, 0.08);
    text-shadow: 0 0 7px var(--kookoawpf-orange-glow);
}

/* ── LED INDICATOR ── */
.kookoawpf-led {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--kookoawpf-green);
    box-shadow: 0 0 8px var(--kookoawpf-green);
    animation: kookoawpf-led 2s ease infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes kookoawpf-led {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ── COMPARISON TABLE ── */
.kookoawpf-comparison-section {
    margin-top: 10px;
}

.kookoawpf-comparison-title {
    text-align: right;
    padding-right: 202px;
    font-size: 24px;
    color: var(--kookoawpf-orange);
    text-shadow: 0 0 8px var(--kookoawpf-orange-glow);
    margin-bottom: 24px;
    padding-top: 30px;
    border-top: 2px solid var(--kookoawpf-green);
    letter-spacing: 0.06em;
}

.kookoawpf-comparison-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--kookoawpf-border);
}

.kookoawpf-comparison-table thead th {
    padding: 14px 16px;
    font-family: var(--kookoawpf-font);
    font-size: 15px;
    color: var(--kookoawpf-white);
    background: rgba(57, 255, 20, 0.06);
    border: 1px solid var(--kookoawpf-border);
    text-align: center;
    letter-spacing: 0.06em;
}

.kookoawpf-comparison-table thead th:first-child {
    text-align: left;
    width: 50%;
}

.kookoawpf-comparison-table thead th.kookoawpf-th-free {
    color: var(--kookoawpf-text);
    width: 25%;
}

.kookoawpf-comparison-table thead th.kookoawpf-th-pro {
    color: var(--kookoawpf-orange);
    text-shadow: 0 0 6px var(--kookoawpf-orange-glow);
    width: 25%;
}

.kookoawpf-comparison-table tbody td {
    padding: 12px 16px;
    font-family: var(--kookoawpf-font);
    font-size: 18px;
    color: var(--kookoawpf-text);
    border: 1px solid var(--kookoawpf-border);
    text-align: center;
}

.kookoawpf-comparison-table tbody td:first-child {
    text-align: left;
    color: var(--kookoawpf-white);
    font-size: 18px;
}

.kookoawpf-comparison-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.015);
}

.kookoawpf-comparison-table tbody tr:hover {
    background: rgba(57, 255, 20, 0.03);
}

/* Checkmark */
.kookoawpf-check {
    color: var(--kookoawpf-green);
    font-size: 18px;
    text-shadow: 0 0 6px var(--kookoawpf-green-glow);
}

/* X mark (not included) */
.kookoawpf-dash {
    color: var(--kookoawpf-red);
    font-size: 18px;
    text-shadow: 0 0 6px rgba(255, 59, 48, 0.35);
}

/* Limit text in table */
.kookoawpf-limit {
    color: var(--kookoawpf-text);
    font-size: 18px;
}

.kookoawpf-unlimited {
    color: var(--kookoawpf-green);
    font-size: 18px;
    text-shadow: 0 0 4px var(--kookoawpf-green-glow);
}

/* Section separator in table */
.kookoawpf-comparison-table tbody tr.kookoawpf-section-row td {
    padding: 10px 16px;
    font-size: 18px;
    color: var(--kookoawpf-orange);
    background: rgba(255, 149, 0, 0.04);
    border-top: 2px solid var(--kookoawpf-green) !important;
    border-bottom: 1px solid var(--kookoawpf-orange-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
}

.kookoawpf-comparison-table tbody tr.kookoawpf-section-row td:first-child {
    border-left: 2px solid var(--kookoawpf-green) !important;
}

/* ── FOOTER ── */
.kookoawpf-pricing-footer {
    text-align: right;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--kookoawpf-green);
}

.kookoawpf-guarantee {
    font-size: 16px;
    color: var(--kookoawpf-green);
    text-shadow: 0 0 6px var(--kookoawpf-green-glow);
    margin-bottom: 10px;
}

.kookoawpf-guarantee-icon {
    margin-right: 6px;
}

.kookoawpf-secure-text {
    font-size: 13px;
    color: var(--kookoawpf-text);
    margin-bottom: 20px;
}

.kookoawpf-mobile-br,
.kookoawpf-mobile-only {
    display: none;
}

.kookoawpf-pricing-footer-logo {
    font-size: 28px;
    color: var(--kookoawpf-green);
    text-shadow: 0 0 6px var(--kookoawpf-green-glow);
}

.kookoawpf-pricing-footer-logo .kookoawpf-cursor {
    color: var(--kookoawpf-green);
    text-shadow: 0 0 10px var(--kookoawpf-green-glow);
    animation: kookoawpf-blink 0.9s step-end infinite;
}

/* ── ALREADY PRO STATE ── */
.kookoawpf-already-pro {
    text-align: center;
    padding: 60px 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 782px) {
    #wpcontent {
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* Hide the Custom Post Types examples on mobile — keep only the main label. */
    .kookoawpf-cpt-examples,
    .kookoawpf-cpt-examples-br {
        display: none !important;
    }

    .kookoawpf-pricing-inner {
        padding: 24px 25px 20px;
    }

    .kookoawpf-pricing-logo {
        font-size: 30px;
    }

    .kookoawpf-pricing-subtitle {
        font-size: 16px;
    }

    .kookoawpf-pricing-tagline {
        line-height: 1.2;
    }

    .kookoawpf-plans-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .kookoawpf-plan-card.kookoawpf-featured {
        transform: none;
        order: -1;
    }

    .kookoawpf-plan-price .kookoawpf-amount {
        font-size: 40px;
    }

    .kookoawpf-comparison-title {
        text-align: right;
        padding-right: 0;
    }

    .kookoawpf-comparison-table thead th,
    .kookoawpf-comparison-table tbody td {
        padding: 10px 8px;
        font-size: 13px;
    }

    .kookoawpf-comparison-table tbody td:first-child {
        font-size: 13px;
    }

    /* Section headers (Core Organization / Pro Features) — desktop uses
       18px which becomes oversized on a narrow viewport. Trim down so the
       header bar reads as a category divider, not a billboard. */
    .kookoawpf-comparison-table tbody tr.kookoawpf-section-row td {
        font-size: 14px;
        padding: 8px 8px;
        letter-spacing: 0.08em;
    }

    .kookoawpf-check,
    .kookoawpf-dash {
        font-size: 17px;
    }

    .kookoawpf-limit,
    .kookoawpf-unlimited {
        font-size: 15px;
    }

    .kookoawpf-trial-block-title {
        font-size: 24px;
        line-height: 1.3;
    }

    /* Trial CTA — desktop is 35px on a wide button so the text always sits
       on one line. On mobile the button gets narrower and the words wrap;
       at 35px with line-height 1.1 the two rows still kiss, so we drop the
       font to a size that visibly stacks without overlap. */
    .kookoawpf-trial-block-cta {
        font-size: 26px;
        line-height: 1.2;
        padding: 18px 12px;
    }

    .kookoawpf-mobile-br {
        display: block;
    }

    .kookoawpf-mobile-only {
        display: inline;
    }

    .kookoawpf-secure-text {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 15px !important;
    }

    .kookoawpf-payment-logos {
        margin-top: 15px !important;
    }

    .kookoawpf-pricing-footer {
        margin-top: 25px;
        padding-bottom: 10px;
    }

}
