/**
 * Freedom Tax™ Calculator
 * Life Legally Single™ — The UnWedded Wallet™
 * 
 * Design: Dark luxury editorial finance aesthetic
 * Brand purple: #6A0DAD
 */

/* ==========================================
   RESET & BASE
   ========================================== */

.ftrc-app {
    --ftrc-black: #0A0A0A;
    --ftrc-card: #1A1A1A;
    --ftrc-purple: #6A0DAD;
    --ftrc-purple-glow: rgba(106, 13, 173, 0.15);
    --ftrc-white: #FFFFFF;
    --ftrc-text: #B0B0B0;
    --ftrc-text-muted: #666666;
    --ftrc-border: #2A2A2A;
    --ftrc-border-light: #333333;

    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: transparent;
    color: var(--ftrc-text);
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: clip;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.ftrc-app *,
.ftrc-app *::before,
.ftrc-app *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ==========================================
   SCREENS
   ========================================== */

.ftrc-screen {
    display: none;
    opacity: 0;
    transform: translateY(16px);
}

.ftrc-screen--visible {
    display: block;
}

.ftrc-screen--active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.ftrc-screen__inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 80px 32px;
    text-align: center;
}

.ftrc-screen__inner--wide {
    max-width: 960px;
}

.ftrc-screen__inner--narrow {
    max-width: 600px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

.ftrc-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--ftrc-purple);
    margin-bottom: 16px;
}

.ftrc-heading {
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 300;
    color: var(--ftrc-white);
    letter-spacing: -1px;
    line-height: 1.15;
    margin-bottom: 16px;
}

.ftrc-heading--sm {
    font-size: clamp(24px, 4vw, 34px);
}

.ftrc-subhead {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ftrc-text);
    max-width: 640px;
    margin: 0 auto 40px;
}

/* Calc screen — no heading above it, so no top breathing room needed */
[data-screen="calc"] .ftrc-inner {
    padding-top: 0;
}

/* ==========================================
   FORM — SCREEN 1
   ========================================== */

.ftrc-form {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.ftrc-field {
    margin-bottom: 32px;
}

.ftrc-label-text {
    display: block;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ftrc-text-muted);
    margin-bottom: 10px;
}
.ftrc-label-opt {
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;
    opacity: 0.55;
}
.ftrc-label-zip {
    display: block;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: none;
    color: var(--ftrc-purple);
    margin-bottom: 10px;
    opacity: 1;
}
.ftrc-zip-msg {
    font-size: 13px;
    margin-top: 8px;
    line-height: 1.5;
}
.ftrc-zip-msg--ok {
    color: #4ade80;
}
.ftrc-zip-msg--warn {
    color: #f59e0b;
}

.ftrc-income-row {
    display: flex;
    align-items: center;
    border: 1px solid var(--ftrc-border);
    background: var(--ftrc-card);
    transition: border-color 0.2s;
}

.ftrc-income-row:focus-within {
    border-color: var(--ftrc-purple);
}

.ftrc-prefix {
    padding: 0 0 0 16px;
    font-size: 24px;
    font-weight: 200;
    color: var(--ftrc-white);
}

.ftrc-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ftrc-white);
    font-size: 24px;
    font-weight: 200;
    padding: 16px 16px 16px 8px;
    font-family: inherit;
}

.ftrc-input::placeholder {
    color: var(--ftrc-text-muted);
}

/* Slider */
.ftrc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: var(--ftrc-border);
    outline: none;
    margin: 16px 0 8px;
    cursor: pointer;
}

.ftrc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--ftrc-purple);
    cursor: pointer;
    border: none;
}

.ftrc-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--ftrc-purple);
    cursor: pointer;
    border: none;
}

.ftrc-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--ftrc-text-muted);
}

/* Select */
.ftrc-select {
    width: 100%;
    background: var(--ftrc-card);
    border: 1px solid var(--ftrc-border);
    color: var(--ftrc-white);
    font-size: 16px;
    padding: 16px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.ftrc-select:focus {
    border-color: var(--ftrc-purple);
}

.ftrc-select option {
    background: var(--ftrc-card);
    color: var(--ftrc-white);
}

/* Toggle */
.ftrc-toggle {
    display: flex;
    border: 1px solid var(--ftrc-border);
}

.ftrc-toggle__btn {
    flex: 1;
    padding: 14px 16px;
    background: var(--ftrc-card);
    color: var(--ftrc-text-muted);
    border: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    -webkit-appearance: none;
    touch-action: manipulation;
}

.ftrc-toggle__btn--active {
    background: var(--ftrc-purple);
    color: var(--ftrc-white);
}

.ftrc-toggle__btn:not(.ftrc-toggle__btn--active):hover {
    color: var(--ftrc-white);
}

/* ==========================================
   CTA BUTTONS
   ========================================== */

.ftrc-cta {
    display: inline-block;
    background: var(--ftrc-purple);
    color: var(--ftrc-white);
    border: none;
    padding: 18px 40px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.2s, transform 0.1s;
    width: 100%;
    margin-top: 8px;
    -webkit-appearance: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.ftrc-cta:hover {
    opacity: 0.9;
}

.ftrc-cta:active {
    transform: scale(0.98);
}

/* Ghost variant — used on secondary action buttons */
.ftrc-cta--ghost {
    background: transparent !important;
    color: #a97ef5 !important;
    border: 1px solid rgba(169, 126, 245, 0.4) !important;
}
.ftrc-cta--ghost:hover {
    background: rgba(169, 126, 245, 0.08) !important;
    border-color: #a97ef5 !important;
    opacity: 1;
}

.ftrc-cta-secondary {
    display: inline-block;
    background: transparent;
    color: var(--ftrc-text-muted);
    border: 1px solid var(--ftrc-border);
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    margin-top: 12px;
}

.ftrc-cta-secondary:hover {
    color: var(--ftrc-white);
    border-color: var(--ftrc-text-muted);
}

/* ==========================================
   SCREEN 2 — SCORE
   ========================================== */

.ftrc-hero-number {
    font-size: clamp(48px, 10vw, 72px);
    font-weight: 200;
    color: var(--ftrc-purple);
    letter-spacing: -2px;
    margin: 24px 0 8px;
    line-height: 1;
}

.ftrc-hero-context {
    font-size: 15px;
    color: var(--ftrc-text-muted);
    margin-bottom: 48px;
    line-height: 1.6;
}

/* Breakdown */
.ftrc-breakdown {
    max-width: 560px;
    margin: 0 auto 32px;
    text-align: left;
}

.ftrc-breakdown__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--ftrc-border);
    cursor: pointer;
    transition: background 0.2s;
}

.ftrc-breakdown__row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ftrc-breakdown__left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ftrc-breakdown__bar {
    width: 4px;
    height: 32px;
    background: var(--ftrc-purple);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.ftrc-breakdown__row:hover .ftrc-breakdown__bar {
    opacity: 1;
}

.ftrc-breakdown__category {
    font-size: 14px;
    color: var(--ftrc-text);
}

.ftrc-breakdown__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ftrc-breakdown__amount {
    font-size: 18px;
    font-weight: 300;
    color: var(--ftrc-white);
    min-width: 80px;
    text-align: right;
}

.ftrc-breakdown__pct {
    font-size: 12px;
    color: var(--ftrc-text-muted);
    min-width: 36px;
    text-align: right;
}

.ftrc-breakdown__detail {
    display: none;
    padding: 12px 0 12px 16px;
    font-size: 13px;
    color: var(--ftrc-text-muted);
    line-height: 1.7;
    border-bottom: 1px solid var(--ftrc-border);
}

.ftrc-breakdown__detail--open {
    display: block;
}

.ftrc-monthly {
    font-size: 15px;
    font-style: italic;
    color: var(--ftrc-text-muted);
    margin-bottom: 40px;
}

.ftrc-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================
   SCREEN 3 — OFFSET PLAN
   ========================================== */

.ftrc-offset-scoreboard {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.ftrc-offset-scoreboard__item {
    background: var(--ftrc-card);
    padding: 20px 28px;
    text-align: center;
    min-width: 180px;
}

.ftrc-offset-scoreboard__value {
    font-size: 28px;
    font-weight: 200;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.ftrc-offset-scoreboard__value--tax {
    color: var(--ftrc-white);
}

.ftrc-offset-scoreboard__value--offset {
    color: #22c55e;
}

.ftrc-offset-scoreboard__value--gap {
    color: var(--ftrc-purple);
}

.ftrc-offset-scoreboard__label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ftrc-text-muted);
}

/* Lanes */
.ftrc-offset-lanes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    margin-bottom: 40px;
    text-align: left;
}

.ftrc-offset-lane {
    background: var(--ftrc-card);
    border-left: 3px solid var(--ftrc-purple);
    padding: 28px 24px;
}

.ftrc-offset-lane__icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.ftrc-offset-lane__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--ftrc-white);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ftrc-offset-lane__desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--ftrc-text);
    margin-bottom: 16px;
}

.ftrc-offset-lane__items {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.ftrc-offset-lane__item {
    font-size: 13px;
    line-height: 1.6;
    color: var(--ftrc-text);
    padding: 6px 0;
    border-bottom: 1px solid var(--ftrc-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}

.ftrc-offset-lane__item-text {
    flex: 1;
}

.ftrc-offset-lane__item-value {
    color: #22c55e;
    font-weight: 500;
    font-size: 13px;
    white-space: nowrap;
}

.ftrc-offset-lane__link {
    font-size: 13px;
    font-weight: 600;
    color: var(--ftrc-purple);
    text-decoration: none;
    cursor: pointer;
}

.ftrc-offset-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
}

/* ==========================================
   SCREEN 1 — EMAIL FIELDS
   ========================================== */

.ftrc-input--text {
    display: block;
    width: 100%;
    background: var(--ftrc-card);
    border: 1px solid var(--ftrc-border);
    color: var(--ftrc-white);
    font-size: 16px;
    padding: 14px 16px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.ftrc-input--text::placeholder {
    color: var(--ftrc-text-muted);
}

.ftrc-input--text:focus {
    border-color: var(--ftrc-purple);
}

.ftrc-hint {
    font-size: 12px;
    color: var(--ftrc-text-muted);
    font-style: italic;
    margin-top: 8px;
}

/* ==========================================
   SCREEN 4 — CAPTURE (removed — email now on Screen 1)
   ========================================== */

.ftc-fine-print {
    font-size: 12px;
    color: var(--ftrc-text-muted);
    font-style: italic;
    margin-bottom: 32px;
}

.ftc-capture-success {
    text-align: center;
    padding: 40px 0;
}

.ftc-success-icon {
    width: 60px;
    height: 60px;
    border: 2px solid #22c55e;
    color: #22c55e;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.ftc-fine-print {
    font-size: 12px;
    color: var(--ftrc-text-muted);
    font-style: italic;
    margin-bottom: 32px;
}

.ftc-capture-success {
    text-align: center;
    padding: 40px 0;
}

.ftc-success-icon {
    width: 60px;
    height: 60px;
    border: 2px solid #22c55e;
    color: #22c55e;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.ftc-skip-capture {
    text-align: center;
}

/* ==========================================
   FOOTER
   ========================================== */

.ftc-footer {
    text-align: center;
    padding: 24px;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ftrc-text-muted);
    border-top: 1px solid var(--ftrc-border);
}

.ftc-footer__sep {
    margin: 0 8px;
    color: var(--ftrc-purple);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    .ftrc-screen__inner {
        padding: 48px 20px;
    }

    .ftrc-offset-lanes {
        grid-template-columns: 1fr;
    }

    .ftrc-offset-scoreboard {
        flex-direction: column;
        align-items: stretch;
    }

    .ftrc-offset-scoreboard__item {
        min-width: unset;
    }

    .ftc-capture-benefits {
        grid-template-columns: 1fr;
    }

    .ftrc-breakdown__category {
        font-size: 13px;
    }

    .ftrc-breakdown__amount {
        font-size: 16px;
    }
}

/* ==========================================
   ANIMATION — COUNT UP
   ========================================== */

@keyframes ftc-fade-in {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ftc-animate-in {
    animation: ftc-fade-in 0.5s ease forwards;
}

/* ==============================================
   v2.0.0 — City Ranking
   ============================================== */
.ftc-city-ranking {
  margin: 24px 0 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 20px;
  background: rgba(0,0,0,0.2);
}
.ftc-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
  color: #b0a0c8;
}
.ftc-rank-row:last-child { border-bottom: 0; }
.ftc-rank-row--active { color: #f0eaf9; }
.ftc-rank-num   { min-width: 24px; font-size: 11px; color: #5a4a7a; }
.ftc-rank-city  { min-width: 140px; }
.ftc-rank-bar-wrap { flex: 1; background: rgba(255,255,255,0.05); border-radius: 4px; height: 6px; }
.ftc-rank-bar   { height: 6px; border-radius: 4px; background: rgba(100,39,176,0.5); transition: width 0.6s ease; }
.ftc-rank-row--active .ftc-rank-bar { background: #7c3aed; }
.ftc-rank-amount { min-width: 72px; text-align: right; font-size: 12px; }

/* ==============================================
   v2.0.0 — Share Panel
   ============================================== */




/* ============================================================
   COUNTER PILL — calculator screen
   ============================================================ */

.ftrc-counter-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(106, 13, 173, 0.12);
    border: 1px solid rgba(106, 13, 173, 0.3);
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #a97ef5;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
}
.ftrc-counter-pill__dot {
    width: 6px;
    height: 6px;
    background: #a97ef5;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

/* ============================================================
   CONTEST CTA — score screen inline block
   ============================================================ */

.str-contest-cta {
    background: rgba(106, 13, 173, 0.12);
    border: 1px solid rgba(106, 13, 173, 0.4);
    border-radius: 12px;
    padding: 28px 24px;
    margin: 32px auto;
    max-width: 540px;
    text-align: center;
}
.str-contest-cta__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a97ef5;
    margin-bottom: 10px;
}
.str-contest-cta__heading {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.str-contest-cta__sub {
    font-size: 14px;
    color: #b0a0c8;
    line-height: 1.6;
    margin-bottom: 8px;
}
.str-contest-cta__count {
    font-size: 12px;
    color: #7a6a9a;
    margin-bottom: 20px;
}

/* ============================================================
   MODAL OVERLAY
   ============================================================ */

.str-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.str-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.str-modal__box {
    position: relative;
    z-index: 1;
    background: #0a0812;
    border: 1px solid rgba(106, 13, 173, 0.5);
    border-radius: 16px;
    padding: 36px 32px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.str-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #7a6a9a;
    font-size: 24px;
    cursor: pointer;
    padding: 4px 8px;
    line-height: 1;
    transition: color 0.2s;
}
.str-modal__close:hover { color: #ffffff; }

.str-modal__heading {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
}
.str-modal__sub {
    font-size: 14px;
    color: #b0a0c8;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Pre-fill summary */
.str-modal__prefill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.str-modal__prefill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
}
.str-modal__prefill-label { color: #7a6a9a; }
.str-modal__prefill-value { color: #d0c0e8; font-weight: 600; }

/* Modal form */
.str-modal__form { margin-top: 4px; }

/* Force purple background on modal submit — modal CSS context can strip it */
#str-modal-submit {
    background: #6427b0 !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
}

/* Consent label */
.str-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #b0a0c8;
    line-height: 1.5;
    margin-bottom: 16px;
}
.str-consent-checkbox {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #6a0dad;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ============================================================
   CONTEST SUCCESS STATE (inside modal)
   ============================================================ */

.str-entry-badge {
    display: inline-block;
    background: rgba(106, 13, 173, 0.15);
    border: 1px solid rgba(106, 13, 173, 0.45);
    color: #a97ef5;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 10px 24px;
    border-radius: 4px;
    margin-bottom: 4px;
}

/* Share block */
.str-share-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 20px;
    margin: 24px 0;
}
.str-share-block__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6a5a8a;
    margin-bottom: 10px;
}
.str-share-block__text {
    font-size: 13px;
    color: #d0c0e8;
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 14px;
}
.str-share-block__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Stay in the loop */
.str-loop {
    background: rgba(106, 13, 173, 0.08);
    border: 1px solid rgba(106, 13, 173, 0.25);
    border-radius: 10px;
    padding: 20px;
    margin-top: 8px;
    text-align: center;
}
.str-loop__heading {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}
.str-loop__sub {
    font-size: 13px;
    color: #b0a0c8;
    line-height: 1.5;
    margin-bottom: 14px;
}
.str-loop__btn {
    background: rgba(106, 13, 173, 0.4);
    border: 1px solid rgba(106, 13, 173, 0.7);
    color: #d0b0ff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.3px;
}
.str-loop__btn:hover:not(:disabled) {
    background: rgba(106, 13, 173, 0.6);
}

/* ============================================================
   SHARE BUTTONS (used in both score screen and modal)
   ============================================================ */

.ftrc-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #d0c0e8;
}
.ftrc-share-btn:hover { opacity: 0.8; }
.ftrc-share-btn--x {
    background: #000000;
    border-color: #333;
    color: #ffffff;
}
.ftrc-share-btn--x::before {
    content: "𝕏";
    font-weight: 700;
}

/* ============================================================
   MISC ADJUSTMENTS
   ============================================================ */

.ftrc-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    margin: 32px auto 0;
}
.ftrc-share-panel {
    max-width: 540px;
    margin: 24px auto 0;
    background: rgba(100, 39, 176, 0.08);
    border: 1px solid rgba(100, 39, 176, 0.25);
    border-radius: 10px;
    padding: 20px;
}
.ftrc-share-panel__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6a5a8a;
    margin-bottom: 10px;
}
.ftrc-share-panel__text {
    font-size: 13px;
    color: #d0c0e8;
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 14px;
}
.ftrc-share-panel__btns {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.ftrc-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
}
.ftrc-legal {
    font-size: 11px;
    color: #5a4a7a;
    line-height: 1.5;
    margin-top: 16px;
    text-align: center;
}

/* Mobile */
@media (max-width: 480px) {
    .str-modal__box { padding: 24px 18px; }
    .str-share-block__btns { flex-direction: column; }
}

/* ============================================================
   RESULT SUMMARY (replaces city rankings)
   ============================================================ */

.ftrc-result-summary {
    margin: 32px auto;
    max-width: 600px;
    text-align: center;
    padding: 28px 24px;
    background: rgba(106, 13, 173, 0.08);
    border: 1px solid rgba(106, 13, 173, 0.25);
    border-radius: 10px;
}
.ftrc-result-summary__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #a97ef5;
    margin-bottom: 12px;
}
.ftrc-result-summary__statement {
    font-size: 18px;
    color: #d0c0e8;
    line-height: 1.6;
    font-weight: 300;
}
.ftrc-result-summary__statement strong {
    color: #ffffff;
    font-weight: 600;
}

/* ============================================================
   RULES DRAWER
   ============================================================ */

.str-rules-toggle {
    margin: 12px 0 16px;
}
.str-rules-toggle__btn {
    background: none;
    border: none;
    color: #a97ef5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.3px;
    transition: color 0.2s;
}
.str-rules-toggle__btn:hover { color: #d0b0ff; }
.str-rules-toggle__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid #a97ef5;
    border-radius: 50%;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
}
.str-rules-drawer {
    margin-top: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 12px;
    color: #7a6a9a;
    line-height: 1.6;
}

/* ============================================================
   SHARE CARDS
   ============================================================ */

.ftrc-card-section {
    margin-top: 20px;
    border-top: 1px solid rgba(169,126,245,0.15);
    padding-top: 16px;
}
.ftrc-card-section__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6a5a8a;
    margin-bottom: 12px;
}
.ftrc-card-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.ftrc-card-btn {
    background: rgba(100,39,176,0.12);
    border: 1px solid rgba(169,126,245,0.3);
    color: #a97ef5;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.ftrc-card-btn:hover {
    background: rgba(100,39,176,0.25);
    border-color: #a97ef5;
}
.ftrc-card-btn--active {
    background: #6427b0;
    border-color: #6427b0;
    color: #ffffff;
}
.ftrc-card-preview {
    width: 100%;
    border-radius: 8px;
    margin-top: 12px;
    display: block;
    border: 1px solid rgba(169,126,245,0.2);
}
.ftrc-card-download {
    display: inline-block;
    margin-top: 10px;
    background: #6427b0;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: opacity 0.2s;
}
.ftrc-card-download:hover { opacity: 0.85; }
