/* Ticketing-fees pages (fee calculator hub + comparison pages).
   Mirrors the promoter-landing design language: Arial body, Orbitron
   display via --font-primary, the locked dark-neon palette from
   components/variables.css. All classes .fee- prefixed. */

.fee-pages {
    max-width: 1080px;
    margin: 0 auto;
    padding: 96px 1.25rem 4rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #f0e6ff;
}

/* ============ Hero ============ */
/* Same boxed hero panel as the promoters page (plp-hero) so the two
   promoter-facing surfaces read as one family. */
.fee-hero {
    position: relative;
    overflow: hidden;
    text-align: center;
    border-radius: 22px;
    padding: clamp(3rem, 8vw, 5rem) 1.5rem;
    border: 1px solid rgba(187, 134, 252, 0.32);
    background:
        radial-gradient(60% 55% at 18% 5%, rgba(255, 0, 255, 0.20), transparent 62%),
        radial-gradient(55% 50% at 86% 18%, rgba(0, 255, 255, 0.14), transparent 60%),
        radial-gradient(90% 80% at 50% 115%, rgba(153, 0, 255, 0.26), transparent 70%),
        linear-gradient(180deg, rgba(26, 0, 51, 0.65), rgba(8, 0, 18, 0.9));
    box-shadow: inset 0 0 70px rgba(153, 0, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.5);
}

.fee-hero-inner {
    max-width: 780px;
    margin: 0 auto;
}

.fee-eyebrow {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--rave-secondary);
    text-shadow: 0 0 8px var(--rave-cyan-glow-soft);
    margin-bottom: 0.75rem;
}

.fee-title {
    font-family: var(--font-primary);
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 0 18px var(--rave-glow-soft);
    margin-bottom: 1rem;
}

.fee-accent-bar {
    display: block;
    width: 72px;
    height: 3px;
    margin: 0 auto 1.25rem;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--rave-primary, #ff00ff), var(--rave-secondary, #00ffff));
}

.fee-sub {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(240, 230, 255, 0.82);
    margin-bottom: 1rem;
}

.fee-stamp {
    display: inline-block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
}

.fee-attest-form {
    margin: 1.5rem 0 0.75rem;
}

/* ============ Sections ============ */
.fee-section {
    margin-top: 4rem;
}

.fee-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2rem;
}

.fee-section-title {
    font-family: var(--font-primary);
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: #fff;
    text-shadow: 0 0 14px var(--rave-glow-soft);
    margin-bottom: 0.9rem;
}

.fee-section-lead {
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(240, 230, 255, 0.75);
}

.fee-section-lead a,
.fee-note a,
.fee-finetext a {
    color: rgba(187, 134, 252, 0.9);
}

/* ============ Cards ============ */
.fee-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.fee-grid--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
    margin: 0 auto;
}

.fee-card {
    display: block;
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    background: linear-gradient(180deg, rgba(28, 0, 42, 0.66), rgba(14, 0, 24, 0.66));
    border: 1px solid rgba(255, 0, 255, 0.2);
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fee-card:hover {
    transform: translateY(-4px);
    border-color: rgba(187, 134, 252, 0.5);
    box-shadow: 0 14px 34px rgba(153, 0, 255, 0.28);
    color: inherit;
}

.fee-card h3 {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.fee-card p {
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(240, 230, 255, 0.72);
    margin: 0;
}

.fee-card-figure {
    display: block;
    font-family: var(--font-primary);
    font-size: 1.6rem;
    color: var(--rave-primary);
    text-shadow: 0 0 10px var(--rave-glow-soft);
    margin-bottom: 0.75rem;
}

.fee-card--link .fee-card-cta {
    display: inline-block;
    margin-top: 0.85rem;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--rave-secondary);
}

.fee-note {
    max-width: 780px;
    margin: 1.5rem auto 0;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.6;
    color: rgba(240, 230, 255, 0.7);
}

.fee-finetext {
    max-width: 780px;
    margin: 1.25rem auto 0;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.45);
}

/* ============ Calculator ============ */
.fee-calc {
    max-width: 860px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.25rem;
    border-radius: 18px;
    padding: 1.75rem;
    background: linear-gradient(180deg, rgba(28, 0, 42, 0.72), rgba(14, 0, 24, 0.72));
    border: 1px solid rgba(255, 0, 255, 0.25);
    box-shadow: inset 0 0 46px rgba(153, 0, 255, 0.10);
}

.fee-calc-field {
    display: block;
    margin-bottom: 1.1rem;
}

.fee-calc-label {
    display: block;
    font-size: 0.85rem;
    font-weight: bold;
    color: rgba(240, 230, 255, 0.8);
    margin-bottom: 0.4rem;
}

.fee-calc input[type="number"] {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 0.85rem;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.05rem;
    color: #fff;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--rave-cyan-glow-soft);
    border-radius: 8px;
}

.fee-calc input[type="number"]:focus {
    outline: none;
    border-color: var(--rave-secondary);
    box-shadow: 0 0 8px var(--rave-cyan-glow-soft);
}

.fee-calc-mode {
    border: 0;
    padding: 0;
    margin: 0;
}

.fee-calc-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.92rem;
    color: rgba(240, 230, 255, 0.8);
    transition: border-color 0.18s ease, color 0.18s ease;
}

.fee-calc-pill:has(input:checked) {
    border-color: var(--rave-primary);
    color: #fff;
    box-shadow: 0 0 10px var(--rave-glow-soft);
}

.fee-calc-pill input {
    accent-color: var(--rave-primary);
    width: 18px;
    height: 18px;
}

.fee-calc-results {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 1.25rem;
}

.fee-calc-headline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.1rem;
}

.fee-calc-big-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(240, 230, 255, 0.6);
    margin-bottom: 0.25rem;
}

.fee-calc-big-value {
    font-family: var(--font-primary);
    font-size: 1.7rem;
    color: #fff;
    text-shadow: 0 0 12px var(--rave-glow-soft);
}

.fee-calc-big-value--receive {
    color: var(--rave-secondary);
    text-shadow: 0 0 12px var(--rave-cyan-glow-soft);
}

.fee-calc-breakdown {
    list-style: none;
    padding: 0;
    margin: 0 0 0.9rem;
}

.fee-calc-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.9rem;
    color: rgba(240, 230, 255, 0.75);
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.fee-calc-note {
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ============ Tables ============ */
.fee-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 0, 255, 0.2);
    background: linear-gradient(180deg, rgba(28, 0, 42, 0.6), rgba(14, 0, 24, 0.6));
}

.fee-table-wrap--worked {
    max-width: 720px;
    margin: 2rem auto 0;
}

/* Four equal columns, money columns centred, so the table reads balanced
   instead of leaning left with a ragged right edge. */
.fee-table-wrap--worked .fee-table {
    table-layout: fixed;
}

.fee-table-wrap--worked .fee-table th,
.fee-table-wrap--worked .fee-table td {
    text-align: center;
}

.fee-table-wrap--worked .fee-table thead th:first-child,
.fee-table-wrap--worked .fee-table tbody th[scope="row"] {
    text-align: left;
}

.fee-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.fee-table-caption {
    caption-side: top;
    text-align: left;
    padding: 0.9rem 1rem 0.4rem;
    font-size: 0.85rem;
    color: rgba(240, 230, 255, 0.65);
}

.fee-table th,
.fee-table td {
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(240, 230, 255, 0.85);
    vertical-align: top;
}

.fee-table thead th {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
}

.fee-table tbody th[scope="row"] {
    color: #fff;
    font-weight: bold;
    white-space: nowrap;
}

.fee-table-row--re {
    background: rgba(255, 0, 255, 0.07);
}

.fee-table-row--re th[scope="row"] {
    color: var(--rave-primary);
    text-shadow: 0 0 6px var(--rave-glow-soft);
}

.fee-table-sub {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: rgba(240, 230, 255, 0.55);
}

/* ============ FAQ (matches the promoter FAQ pattern) ============ */
.fee-faq {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 0.85rem;
}

.fee-faq-item {
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(28, 0, 42, 0.66), rgba(14, 0, 24, 0.66));
    border: 1px solid rgba(255, 0, 255, 0.2);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.fee-faq-item[open] {
    border-color: rgba(187, 134, 252, 0.5);
    box-shadow: 0 10px 26px rgba(153, 0, 255, 0.22);
}

.fee-faq-question {
    cursor: pointer;
    list-style: none;
    padding: 1.05rem 3rem 1.05rem 1.3rem;
    min-height: 44px;
    position: relative;
    font-weight: bold;
    font-size: 1rem;
    color: #fff;
}

.fee-faq-question::-webkit-details-marker {
    display: none;
}

.fee-faq-question::after {
    content: "\25BC";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    font-size: 0.8rem;
    line-height: 1;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.fee-faq-item[open] .fee-faq-question::after {
    transform: translateY(-50%) rotate(180deg);
}

.fee-faq-answer {
    margin: 0;
    padding: 0 1.3rem 1.2rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ============ CTA band ============ */
.fee-cta-band {
    position: relative;
    overflow: hidden;
    margin-top: 4.5rem;
    border-radius: 22px;
    padding: clamp(2.5rem, 6vw, 3.75rem) 1.5rem;
    text-align: center;
    border: 1px solid rgba(187, 134, 252, 0.35);
    background:
        radial-gradient(70% 120% at 50% 0%, rgba(255, 0, 255, 0.2), transparent 65%),
        linear-gradient(180deg, rgba(26, 0, 51, 0.7), rgba(10, 0, 20, 0.9));
    box-shadow: inset 0 0 60px rgba(153, 0, 255, 0.14);
}

.fee-cta-band .fee-section-lead {
    margin-bottom: 1.6rem;
}

.fee-btn-glow {
    box-shadow: 0 0 18px var(--rave-glow-soft);
}

/* ============ Responsive ============ */
@media (max-width: 860px) {
    .fee-calc {
        grid-template-columns: 1fr;
    }
    .fee-calc-results {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 1.25rem;
    }
}

@media (max-width: 768px) {
    .fee-grid,
    .fee-grid--two {
        grid-template-columns: 1fr;
    }
    .fee-section {
        margin-top: 3.25rem;
    }
    .fee-pages {
        padding-top: 88px;
    }
}

/* ============ Tables on narrow screens ============ */
@media (max-width: 640px) {
    /* The worked-examples table is four short money columns — tighten the
       cells and let the headers wrap so it fits a 390px viewport whole,
       no horizontal scroll. */
    .fee-table-wrap--worked .fee-table thead th {
        padding: 0.5rem 0.4rem;
        font-size: 0.66rem;
        white-space: normal;
    }

    .fee-table-wrap--worked .fee-table td,
    .fee-table-wrap--worked .fee-table tbody th {
        padding: 0.5rem 0.4rem;
        font-size: 0.84rem;
        white-space: nowrap;
    }

    /* The published-rates table has long text columns, so each row stacks
       into a card instead: platform name as the heading, the column header
       repeated per cell from data-label. Nothing scrolls sideways. */
    .fee-table--stack thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .fee-table--stack,
    .fee-table--stack tbody,
    .fee-table--stack tr,
    .fee-table--stack th[scope="row"],
    .fee-table--stack td {
        display: block;
        width: 100%;
    }

    .fee-table--stack .fee-table-caption {
        display: block;
    }

    .fee-table--stack tr {
        padding: 0.35rem 0 0.9rem;
        border-bottom: 1px solid rgba(255, 0, 255, 0.18);
    }

    .fee-table--stack tr:last-child {
        border-bottom: none;
    }

    .fee-table--stack th[scope="row"] {
        font-size: 1.02rem;
        padding: 0.9rem 1rem 0.35rem;
        border-bottom: none;
        white-space: normal;
    }

    .fee-table--stack td {
        border-bottom: none;
        padding: 0.3rem 1rem;
    }

    .fee-table--stack td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.72rem;
        font-weight: bold;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        color: rgba(255, 255, 255, 0.45);
        margin-bottom: 0.15rem;
    }
}
