/* ═══════════════════════════════════════════════════════════════
   VacatAd Business Rates Calculator 2026/27
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.calc-hero {
    background:
        radial-gradient(circle at 12% 20%, rgba(183, 229, 167, 0.45), transparent 42%),
        radial-gradient(circle at 88% 85%, rgba(130, 201, 204, 0.35), transparent 48%),
        radial-gradient(circle at 50% 100%, rgba(242, 162, 133, 0.12), transparent 55%),
        linear-gradient(165deg, var(--canvas) 0%, var(--canvas-soft) 100%);
    padding: 7rem 0 3.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.calc-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(183, 229, 167, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.calc-hero::after {
    content: '';
    position: absolute;
    bottom: -35%;
    left: -10%;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(130, 201, 204, 0.20) 0%, transparent 70%);
    pointer-events: none;
}

.calc-hero .container {
    position: relative;
    z-index: 1;
}

.calc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(36, 51, 41, 0.12);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #335c33;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: calcFadeUp 0.6s ease-out both;
}

.calc-hero-badge svg {
    width: 15px;
    height: 15px;
    stroke: #67994e;
}

.calc-hero h1 {
    color: var(--ink);
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 1.1rem;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.022em;
    animation: calcFadeUp 0.6s ease-out 0.08s both;
}

.calc-hero-title-accent {
    display: block;
    background: linear-gradient(110deg, #2a7a7d 0%, #67994e 55%, #8a611d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.calc-hero-subtitle {
    color: var(--ink-soft);
    font-size: clamp(1rem, 2.2vw, 1.12rem);
    line-height: 1.65;
    max-width: 48ch;
    margin: 0 auto;
    animation: calcFadeUp 0.6s ease-out 0.16s both;
}

/* ── Calculator workspace ── */
.calc-layout {
    max-width: 980px;
    margin: -2.25rem auto 0;
    padding: 0 var(--container-padding) 4rem;
    position: relative;
    z-index: 2;
}

.calc-layout.calc-layout--has-results {
    max-width: 1060px;
}

/* Toolbar: mode tabs + trust pills */
.calc-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.5rem 0.5rem 0.65rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(36, 51, 41, 0.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.calc-trust-pills {
    list-style: none;
    margin: 0;
    padding: 0 0.5rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
}

.calc-trust-pills li {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-mute);
    padding: 0.35rem 0.7rem;
    border-radius: 100px;
    background: var(--canvas-soft);
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.calc-trust-pills li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #67994e;
    margin-right: 0.4rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* Results layout */
.calc-results-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
    padding: 1.5rem 1.65rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(36, 51, 41, 0.05);
}

.calc-results-intro-text {
    flex: 1;
    min-width: 200px;
}

.calc-results-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
    padding: 0;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2a7a7d;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.calc-results-edit:hover {
    color: var(--ink);
}

.calc-results-edit svg {
    flex-shrink: 0;
}

.calc-results-intro-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.25rem;
    letter-spacing: -0.02em;
}

.calc-results-intro-text p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-soft);
    line-height: 1.5;
}

.calc-results-intro-stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.calc-results-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.85rem 1.15rem;
    min-width: 140px;
    border-radius: 12px;
    background: var(--canvas-soft);
    border: 1px solid var(--border-light);
}

.calc-results-stat--accent {
    background: rgba(183, 229, 167, 0.22);
    border-color: rgba(103, 153, 78, 0.28);
}

.calc-results-stat--saving {
    flex: 1 1 180px;
    background:
        radial-gradient(circle at 100% 0%, rgba(183, 229, 167, 0.35) 0%, transparent 55%),
        linear-gradient(145deg, rgba(183, 229, 167, 0.32) 0%, rgba(183, 229, 167, 0.14) 100%);
    border-color: rgba(103, 153, 78, 0.45);
    box-shadow: 0 6px 24px rgba(45, 107, 48, 0.14);
}

.calc-results-stat--saving .calc-results-stat-label {
    color: #3d7a42;
}

.calc-results-stat--saving .calc-results-stat-value {
    font-size: clamp(1.35rem, 3.5vw, 1.85rem);
    color: #1f5c24;
}

.calc-results-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-mute);
}

.calc-results-stat-value {
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
    word-break: break-word;
}

.calc-results-stat--accent .calc-results-stat-value {
    color: #2d6b30;
}

.calc-layout--has-results .calc-results-grid {
    animation: calcFadeUp 0.45s ease-out both;
}

@keyframes calcFadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

.calc-results-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 1.5rem;
    align-items: start;
}

.calc-results-bills {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.calc-results-highlight {
    position: sticky;
    top: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.calc-results-highlight .results-context {
    margin-bottom: 0;
}

.calc-results-highlight .calc-savings {
    margin-bottom: 0;
}

/* Legacy selectors removed; savings uses chips + math layout */

/* ── Form panels ── */
.calc-form-panel {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.calc-form-panel:first-child {
    padding-top: 0;
}

.calc-form-panel:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.calc-form-panel-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.calc-form-panel-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--ink);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 800;
}

.calc-form-panel-head h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 0.2rem;
    letter-spacing: -0.01em;
}

.calc-form-panel-head p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ink-mute);
    line-height: 1.45;
}

.calc-field--flush {
    margin-bottom: 0;
}

.calc-form-submit {
    padding-top: 1.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-light);
}

.calc-form-submit .calc-submit {
    margin-top: 0;
}

/* ── Form Card ── */
.calc-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem 2.25rem;
    box-shadow:
        0 1px 2px rgba(36, 51, 41, 0.04),
        0 12px 40px rgba(36, 51, 41, 0.08);
    border: 1px solid rgba(36, 51, 41, 0.06);
}

.calc-card--form {
    overflow: visible;
}

.calc-card-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.calc-card-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.calc-card-header-row h2 {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
    letter-spacing: -0.015em;
}

.calc-step-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 100px;
    background: var(--tea-green-muted);
    color: #335c33;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.calc-card-header p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

.calc-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.calc-section-head .calc-divider-label {
    margin-bottom: 0;
}

/* Search block inside panel 1 */
.calc-search-hero {
    padding: 0;
    margin-bottom: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.calc-search-hero .calc-label {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.calc-search-wrap--hero {
    border-radius: 12px;
    border-width: 2px;
    box-shadow: 0 4px 16px rgba(36, 51, 41, 0.06);
}

.calc-search-wrap--hero:focus-within {
    border-color: #67994e;
    box-shadow: 0 0 0 4px rgba(183, 229, 167, 0.35), 0 4px 16px rgba(36, 51, 41, 0.06);
}

.calc-search-icon {
    display: flex;
    align-items: center;
    padding-left: 1rem;
    color: var(--ink-mute);
    flex-shrink: 0;
}

.calc-search-wrap--hero .calc-search-btn {
    width: auto;
    height: auto;
    padding: 0.75rem 1.25rem;
    border-radius: 0;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* RV two-column grid */
.calc-rv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.calc-rv-field {
    margin-bottom: 0;
}

/* ── Form Fields ── */
.calc-field {
    margin-bottom: 1.75rem;
}

.calc-field:last-of-type {
    margin-bottom: 0;
}

.calc-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--eerie-black);
    margin-bottom: 0.6rem;
}

.calc-label-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border-light);
    color: var(--grey-text);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: help;
    position: relative;
    flex-shrink: 0;
}

.calc-label-help:hover::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--eerie-black);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 400;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    white-space: normal;
    width: 260px;
    line-height: 1.4;
    z-index: 10;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.calc-hint {
    font-size: 0.82rem;
    color: var(--grey-text);
    margin-top: 0.35rem;
    line-height: 1.45;
}

.calc-error {
    font-size: 0.82rem;
    color: #d94040;
    margin-top: 0.3rem;
    display: none;
}

.calc-field.has-error .calc-error {
    display: block;
}

.calc-field.has-error .calc-input-currency {
    border-color: #d94040;
}

/* Currency input */
.calc-input-currency {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.calc-input-currency.focused {
    border-color: var(--eerie-black);
    box-shadow: 0 0 0 3px rgba(26, 28, 26, 0.06);
}

.calc-input-currency .prefix {
    padding: 0.85rem 1rem;
    background: var(--seasalt);
    font-weight: 700;
    color: var(--grey-text);
    font-size: 1rem;
    border-right: 1.5px solid var(--border-light);
    user-select: none;
}

.calc-input-currency input {
    flex: 1;
    border: none;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    font-family: var(--font-primary);
    color: var(--eerie-black);
    outline: none;
    background: transparent;
    min-width: 0;
}

.calc-input-currency input::placeholder {
    color: #b5b8b5;
}

/* Radio toggle pills */
.calc-toggle-group {
    display: flex;
    gap: 0;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    width: fit-content;
    background: var(--canvas-soft);
}

.calc-toggle {
    display: block;
}

.calc-toggle input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calc-toggle span {
    display: block;
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-mute);
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid var(--border-light);
    user-select: none;
}

.calc-toggle:last-child span {
    border-right: none;
}

.calc-toggle input:checked + span {
    background: var(--ink);
    color: var(--white);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.calc-toggle input:focus-visible + span {
    outline: 2px solid var(--blue-accent);
    outline-offset: -2px;
}

/* ── Postcode Search ── */
.calc-search-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.calc-search-wrap:focus-within {
    border-color: var(--eerie-black);
    box-shadow: 0 0 0 3px rgba(26, 28, 26, 0.06);
}

.calc-search-wrap input {
    flex: 1;
    border: none;
    padding: 0.85rem 1rem;
    font-size: 1.05rem;
    font-family: var(--font-primary);
    color: var(--eerie-black);
    outline: none;
    background: transparent;
    min-width: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.calc-search-wrap input::placeholder {
    color: #b5b8b5;
    text-transform: none;
    letter-spacing: normal;
}

.calc-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 1rem;
    background: var(--ink);
    border: none;
    cursor: pointer;
    color: var(--white);
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
    font-family: inherit;
}

.calc-search-btn:hover {
    background: #1a2820;
}

.calc-search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.calc-search-results {
    margin-top: 0.5rem;
    border: 1.5px solid var(--border-light);
    border-radius: 10px;
    overflow: hidden;
    max-height: 400px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(26, 28, 26, 0.1);
}

.calc-results-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--border-light);
    background: #f8f9f8;
    flex-shrink: 0;
}

.calc-results-filter-input {
    flex: 1;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    font-size: 0.82rem;
    font-family: inherit;
    outline: none;
    background: var(--white);
}

.calc-results-filter-input:focus {
    border-color: #5ab8bb;
    box-shadow: 0 0 0 2px rgba(90, 184, 187, 0.15);
}

.calc-results-count {
    font-size: 0.75rem;
    color: #6b7b6b;
    white-space: nowrap;
    flex-shrink: 0;
}

#resultsListWrap,
#batchResultsWrap {
    overflow-y: auto;
    max-height: 340px;
}

.calc-search-result-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.75rem 1rem;
    border: none;
    border-bottom: 1px solid rgba(228, 231, 228, 0.6);
    background: transparent;
    cursor: pointer;
    font-family: var(--font-primary);
    transition: background 0.15s;
}

.calc-search-result-item:last-child {
    border-bottom: none;
}

.calc-search-result-item:hover {
    background: var(--seasalt);
}

.calc-search-result-address {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--eerie-black);
    line-height: 1.35;
}

.calc-search-result-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--grey-text);
}

.calc-search-result-rv {
    font-weight: 600;
}

.calc-search-result-type {
    display: inline-block;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.calc-search-result-type.rhl {
    background: rgba(90, 184, 187, 0.12);
    color: #3a8a8d;
}

.calc-search-result-type.industrial {
    background: rgba(180, 130, 60, 0.12);
    color: #8a6a2a;
}

.calc-search-loading {
    padding: 1.25rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--grey-text);
}

.calc-search-empty {
    padding: 1.25rem;
    text-align: center;
    font-size: 0.88rem;
    color: var(--grey-text);
}

/* Selected property banner */
.calc-selected-property {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1.1rem;
    margin: 1rem 0 0;
    background: linear-gradient(135deg, rgba(183, 229, 167, 0.22) 0%, rgba(219, 244, 204, 0.35) 100%);
    border: 1.5px solid rgba(103, 153, 78, 0.35);
    border-radius: 12px;
    animation: calcSlideDown 0.25s ease-out;
}

.calc-selected-property-info strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--eerie-black);
    line-height: 1.3;
}

.calc-selected-property-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--grey-text);
    margin-top: 0.15rem;
}

.calc-selected-property-clear {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: rgba(26, 28, 26, 0.08);
    border-radius: 6px;
    font-size: 1.1rem;
    color: var(--grey-text);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s;
}

.calc-selected-property-clear:hover {
    background: rgba(217, 64, 64, 0.1);
    color: #d94040;
}

/* Conditional field animation */
.calc-conditional {
    display: none;
    animation: calcSlideDown 0.25s ease-out;
}

@keyframes calcSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Divider between sections */
.calc-divider {
    height: 1px;
    background: var(--border-light);
    margin: 2rem 0;
}

.calc-divider-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--grey-text);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

/* ── Property Details Grid ── */
.calc-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.calc-grid-item {
    margin-bottom: 0;
    padding: 1rem 1.1rem;
    background: var(--canvas-soft);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.calc-grid-item:focus-within {
    border-color: rgba(103, 153, 78, 0.4);
    box-shadow: 0 0 0 3px rgba(183, 229, 167, 0.2);
}

.calc-grid-item .calc-label {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
}

.calc-grid-item .calc-toggle-group {
    margin-bottom: 0.3rem;
}

.calc-grid-item .calc-toggle span {
    padding: 0.45rem 1.15rem;
    font-size: 0.85rem;
}

.calc-grid-item .calc-hint {
    font-size: 0.78rem;
    margin-top: 0.3rem;
    line-height: 1.35;
}

/* ── Submit Button ── */
.calc-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1.05rem 2rem;
    margin-top: 2rem;
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    background: linear-gradient(135deg, var(--tea-green) 0%, #9cdba6 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(183, 229, 167, 0.4);
}

.calc-submit:hover {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(36, 51, 41, 0.2);
}

.calc-submit svg {
    transition: transform 0.2s;
}

.calc-submit:hover svg {
    transform: translateX(3px);
}

/* ═══════════════════════════════════════════════════════════════
   RESULTS PANEL
   ═══════════════════════════════════════════════════════════════ */

.calc-results {
    display: none;
    margin-top: 2.5rem;
    padding-top: 0.5rem;
    scroll-margin-top: 100px;
}

.calc-layout--has-results .calc-card--form {
    opacity: 0.92;
    transition: opacity 0.25s;
}

.calc-layout--has-results .calc-card--form:hover,
.calc-layout--has-results .calc-card--form:focus-within {
    opacity: 1;
}

.calc-results.animate-in {
    animation: calcFadeUp 0.5s ease-out both;
}

/* Rates Breakdown Card */
.calc-breakdown {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem 1.75rem 1.25rem;
    box-shadow: 0 4px 20px rgba(36, 51, 41, 0.05);
    border: 1px solid rgba(36, 51, 41, 0.06);
    margin-bottom: 0;
}

.calc-breakdown h2 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--ink);
    letter-spacing: -0.01em;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(228, 231, 228, 0.6);
    font-size: 0.95rem;
}

.calc-row:last-child {
    border-bottom: none;
}

.calc-row-label {
    color: var(--grey-text);
    font-weight: 500;
}

.calc-row-value {
    font-weight: 600;
    color: var(--eerie-black);
    text-align: right;
}

.calc-row-relief .calc-row-value {
    color: #2d8a3e;
}

.calc-breakdown .calc-row-total {
    border-top: none;
    border-bottom: none;
    margin: 0.85rem -1.75rem 0;
    padding: 1rem 1.75rem;
    background: var(--canvas-soft);
    border-top: 2px solid var(--ink);
}

.calc-breakdown .calc-row-total:last-child {
    margin-bottom: -1.25rem;
    border-radius: 0 0 14px 14px;
}

/* Unified bill footer: annual + monthly in one block */
.calc-breakdown-footer {
    margin: 1rem -1.75rem -1.25rem;
    background: var(--canvas-soft);
    border-top: 2px solid var(--ink);
    border-radius: 0 0 14px 14px;
    overflow: hidden;
}

.calc-breakdown-footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.75rem 0.65rem;
}

.calc-breakdown-footer-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.calc-breakdown-footer-value {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.calc-breakdown-footer-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 1.75rem 1.05rem;
    font-size: 0.88rem;
    color: var(--grey-text);
    border-top: 1px solid rgba(36, 51, 41, 0.08);
}

.calc-breakdown-footer-sub span:last-child {
    font-weight: 700;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.calc-breakdown-footer--solo .calc-breakdown-footer-main {
    padding-bottom: 1.05rem;
}

.calc-breakdown .calc-row-total .calc-row-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.calc-breakdown .calc-row-total .calc-row-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.change-up {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #d94040;
    background: rgba(217, 64, 64, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.change-down {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #2d8a3e;
    background: rgba(45, 138, 62, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* ── VacatAd Savings Card ── */
.calc-savings {
    background:
        radial-gradient(circle at 100% 0%, rgba(183, 229, 167, 0.14) 0%, transparent 52%),
        linear-gradient(165deg, #152019 0%, var(--ink) 48%, #243329 100%);
    border-radius: 20px;
    padding: 1.75rem 1.85rem 1.85rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.calc-savings::before {
    content: '';
    position: absolute;
    top: -35%;
    right: -15%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(183, 229, 167, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.calc-savings-header {
    position: relative;
    z-index: 1;
    margin-bottom: 1.75rem;
}

/* Big net-saving hero at top of savings card */
.calc-savings-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.35rem 1rem 1.15rem;
    margin-bottom: 1rem;
    background: rgba(183, 229, 167, 0.10);
    border: 1px solid rgba(183, 229, 167, 0.22);
    border-radius: 14px;
}

.calc-savings-hero-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.55);
}

.calc-savings-hero-value {
    margin: 0;
    font-size: clamp(1.75rem, 4.5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.calc-savings-hero-value.green {
    color: #c8f0b8;
}

.calc-savings--revealed {
    animation: calcSavingsReveal 0.65s ease-out both;
}

.calc-savings--revealed .calc-savings-hero {
    animation: calcSavingsHeroPulse 1.1s ease-out 0.15s both;
}

@keyframes calcSavingsReveal {
    from {
        opacity: 0.85;
        transform: translateY(8px);
        box-shadow: 0 0 0 0 rgba(183, 229, 167, 0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 10px 36px rgba(45, 107, 48, 0.28);
    }
}

@keyframes calcSavingsHeroPulse {
    0% { transform: scale(0.97); }
    55% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.calc-savings-hero-sub {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.55);
}

.calc-savings-hero-sub strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.calc-savings-blurb {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.84rem;
    line-height: 1.55;
    margin: 0 0 1rem;
}

.calc-savings-blurb strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.calc-savings-header h3 {
    color: var(--white);
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 800;
    margin-bottom: 0.65rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
}

.calc-savings-header p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    max-width: 58ch;
}

.calc-savings-header p strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

/* Cycle facts: compact 3-up chips */
.calc-savings-extras {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.calc-savings-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.calc-savings-chip {
    text-align: center;
    padding: 0.7rem 0.45rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 10px;
    min-width: 0;
}

.calc-savings-chip > span {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 0.3rem;
    line-height: 1.25;
}

.calc-savings-chip strong {
    display: block;
    font-size: clamp(0.78rem, 2vw, 0.88rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.25;
}

/* Gross − Fee equation strip */
.calc-savings-math {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
}

.calc-savings-math-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    text-align: center;
}

.calc-savings-math-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.3;
}

.calc-savings-math-value {
    font-size: clamp(0.95rem, 2.2vw, 1.2rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.88);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.calc-savings-math-value.green {
    color: #c8f0b8;
}

.calc-savings-math-op {
    font-size: 1.35rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.35);
    line-height: 1;
    padding-top: 0.85rem;
}

/* Monthly saving highlight bar */
.calc-savings-monthly {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.95rem 1.25rem;
    margin-bottom: 1.5rem;
    background: rgba(183, 229, 167, 0.12);
    border: 1px solid rgba(183, 229, 167, 0.28);
    border-radius: 12px;
    position: relative;
    z-index: 1;
}

.calc-savings-monthly-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
}

.calc-savings-monthly-value {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 800;
    color: #d4f5c8;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

.calc-dropship-message {
    display: none;
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1;
}

.calc-dropship-message p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
}

.calc-dropship-message a {
    display: inline-block;
    background: var(--tea-green);
    color: var(--ink);
    font-weight: 700;
    padding: 0.65rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.calc-dropship-message a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(183, 229, 167, 0.25);
    color: var(--ink);
}

/* CTA footer: always stacked, equal secondary buttons */
.calc-savings-foot {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.calc-savings-cta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.calc-savings-foot a,
.calc-savings-foot button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    line-height: 1.2;
    border: 2px solid transparent;
    width: 100%;
    box-sizing: border-box;
}

.calc-savings-foot .calc-cta-primary {
    background: var(--tea-green);
    color: var(--ink);
    border-color: var(--tea-green);
    font-size: 1rem;
    padding: 1rem 1.25rem;
    min-height: 52px;
}

.calc-savings-foot .calc-cta-primary:hover {
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(183, 229, 167, 0.28);
    color: var(--ink);
}

.calc-savings-foot .btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.22);
}

.calc-savings-foot .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
    transform: translateY(-1px);
}

.calc-savings-foot .btn-secondary svg {
    flex-shrink: 0;
}

.calc-savings-foot .btn-secondary span {
    white-space: nowrap;
}

/* ── Disclaimer ── */
.calc-disclaimer {
    padding: 1.25rem 1.5rem;
    background: var(--seasalt);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--grey-text);
    line-height: 1.55;
    border: 1px solid var(--border-light);
}

.calc-disclaimer a {
    color: var(--eerie-black);
    text-decoration: underline;
}

/* ── Educational Section ── */
.calc-education {
    padding: var(--section-padding) 0;
    background:
        radial-gradient(circle at 20% 0%, rgba(183, 229, 167, 0.15), transparent 40%),
        var(--seasalt);
}

.calc-education .section-title {
    text-align: center;
    margin-bottom: 0.5rem;
}

.calc-education .section-subtitle {
    text-align: center;
    max-width: 52ch;
    margin: 0 auto;
    color: var(--ink-soft);
}

.calc-edu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

.calc-edu-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    border: 1px solid var(--border-light);
    transition: transform 0.25s, box-shadow 0.25s;
}

.calc-edu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(36, 51, 41, 0.08);
}

.calc-edu-card h3 {
    font-size: 1.08rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
    color: var(--ink);
}

.calc-edu-card p {
    font-size: 0.9rem;
    color: var(--ink-soft);
    line-height: 1.65;
    margin: 0;
}

.calc-edu-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--tea-green-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    color: #335c33;
}

.calc-edu-icon--teal {
    background: rgba(130, 201, 204, 0.25);
    color: #2a7a7d;
}

.calc-edu-icon--coral {
    background: rgba(242, 162, 133, 0.25);
    color: #9f3d28;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 960px) {
    .calc-results-grid {
        grid-template-columns: 1fr;
    }

    .calc-results-highlight {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .calc-hero {
        padding: 6.5rem 0 3.5rem;
    }

    .calc-layout {
        margin-top: -2rem;
        padding-bottom: 2.5rem;
    }

    .calc-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 0.65rem;
    }

    .calc-trust-pills {
        justify-content: flex-start;
        padding: 0;
    }

    .calc-mode-tabs {
        width: 100%;
    }

    .calc-mode-tab {
        flex: 1;
    }

    .calc-results-intro {
        flex-direction: column;
        align-items: stretch;
    }

    .calc-results-intro-stats {
        width: 100%;
    }

    .calc-results-stat {
        flex: 1;
        min-width: 0;
    }

    .calc-card {
        padding: 1.35rem 1.25rem;
        border-radius: 16px;
    }

    .calc-form-panel {
        padding: 1.35rem 0;
    }

    .calc-rv-grid {
        grid-template-columns: 1fr;
    }

    .calc-search-wrap--hero .calc-search-btn {
        padding: 0.75rem 0.85rem;
        font-size: 0.82rem;
    }

    .calc-breakdown {
        padding: 1.25rem 1.25rem 0;
    }

    .calc-breakdown-footer,
    .calc-breakdown .calc-row-total {
        margin-left: -1.25rem;
        margin-right: -1.25rem;
    }

    .calc-breakdown-footer-main,
    .calc-breakdown-footer-sub {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .calc-breakdown-footer-value {
        font-size: 1.2rem;
    }

    .calc-breakdown .calc-row-total {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .calc-breakdown .calc-row-total .calc-row-value {
        font-size: 1.2rem;
    }

    .calc-savings {
        padding: 1.35rem 1.15rem 1.5rem;
    }

    .calc-savings-chips {
        grid-template-columns: 1fr;
    }

    .calc-savings-math {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: center;
    }

    .calc-savings-math-op {
        padding-top: 0;
        font-size: 1rem;
    }

    .calc-savings-cta-actions {
        grid-template-columns: 1fr;
    }

    .calc-edu-grid {
        grid-template-columns: 1fr;
    }

    .calc-details-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .calc-toggle span {
        padding: 0.6rem 1.1rem;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .calc-card {
        padding: 1.25rem;
    }

    .calc-row {
        font-size: 0.88rem;
    }

    .calc-breakdown .calc-row-total .calc-row-value {
        font-size: 1.15rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   LEAD GATE
   ═══════════════════════════════════════════════════════════════ */

.calc-gate-card {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(36, 51, 41, 0.10);
}

.calc-gate-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.95rem;
    margin-bottom: 1.4rem;
    background: rgba(183, 229, 167, 0.25);
    border: 1px solid rgba(103, 153, 78, 0.30);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #335c33;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calc-gate-badge svg {
    stroke: #67994e;
}

.calc-gate-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 0.65rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.calc-gate-subtitle {
    color: var(--grey-text);
    font-size: 1rem;
    line-height: 1.65;
    max-width: 44ch;
    margin: 0 auto 1.75rem;
}

.calc-gate-benefits {
    list-style: none;
    padding: 0.9rem 1.25rem;
    margin: 0 0 2rem;
    background: var(--seasalt);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    text-align: left;
}

.calc-gate-benefits li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--eerie-black);
    font-weight: 500;
}

.calc-gate-benefits li::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: rgba(90, 184, 187, 0.14);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%235ab8bb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px 10px;
}

.calc-gate-form {
    text-align: left;
}

.calc-gate-field {
    margin-bottom: 1.1rem;
}

.calc-gate-input-wrap {
    position: relative;
}

.calc-gate-input {
    width: 100%;
    padding: 0.78rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--eerie-black);
    background: var(--white);
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
}

.calc-gate-input::placeholder {
    color: #b0b5b0;
}

.calc-gate-input:focus {
    border-color: var(--blue-accent);
    box-shadow: 0 0 0 3px rgba(90, 184, 187, 0.15);
}

.calc-gate-input--error {
    border-color: #d63031 !important;
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1) !important;
}

.calc-gate-error {
    font-size: 0.82rem;
    color: #d63031;
    margin-top: 0.3rem;
    font-weight: 500;
}

.calc-gate-form .calc-submit {
    width: 100%;
    margin-top: 0.75rem;
}

.calc-gate-privacy {
    font-size: 0.8rem;
    color: var(--grey-text);
    text-align: center;
    margin-top: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Gate / calculator transitions */
.calc-gate--exiting {
    animation: gateExit 0.28s ease forwards;
}

@keyframes gateExit {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}

.calc-layout--entering {
    animation: calcEnter 0.38s ease forwards;
}

@keyframes calcEnter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   MODE TABS (Single / Batch), lives inside the dark hero section
   ═══════════════════════════════════════════════════════════════ */

.calc-mode-tabs {
    display: inline-flex;
    gap: 3px;
    margin: 0;
    background: var(--canvas-soft);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid var(--border-light);
    flex-shrink: 0;
}

.calc-mode-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border: none;
    border-radius: 7px;
    background: transparent;
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ink-soft);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.calc-mode-tab svg {
    opacity: 0.7;
}

.calc-mode-tab:hover {
    color: var(--ink);
    background: rgba(36, 51, 41, 0.04);
}

.calc-mode-tab.active {
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(36, 51, 41, 0.10);
}

.calc-mode-tab.active svg {
    opacity: 1;
    stroke: #67994e;
}

/* ═══════════════════════════════════════════════════════════════
   BATCH MODE
   ═══════════════════════════════════════════════════════════════ */

/* ── Empty state ── */
.batch-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--grey-text);
}

.batch-empty svg {
    stroke: var(--border-light);
}

.batch-empty p {
    font-size: 0.9rem;
    max-width: 32ch;
    margin: 0;
    line-height: 1.5;
}

/* ── Property list ── */
.batch-property-list {
    margin-bottom: 1.5rem;
    max-height: 480px;
    overflow-y: auto;
}

.batch-item {
    border: 1px solid var(--border-light);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    transition: box-shadow 0.15s;
}

.batch-item:hover {
    box-shadow: 0 2px 8px rgba(26, 28, 26, 0.06);
}

.batch-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.batch-item-info {
    flex: 1;
    min-width: 0;
}

.batch-item-address {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--eerie-black);
    line-height: 1.3;
    word-break: break-word;
}

.batch-item-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.3rem;
    flex-wrap: wrap;
}

.batch-item-desc {
    font-size: 0.78rem;
    color: var(--grey-text);
}

.batch-type-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    line-height: 1;
}

.batch-type-badge.rhl {
    background: #e8f5e9;
    color: #2e7d32;
}

.batch-type-badge.industrial {
    background: #e3f2fd;
    color: #1565c0;
}

.batch-type-badge.london {
    background: #fce4ec;
    color: #c62828;
}

.batch-item-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--grey-text);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.batch-item-remove:hover {
    background: #fce4ec;
    color: #c62828;
}

/* ── Inline property toggle ── */
.batch-item-toggles {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0 0.15rem;
}

.batch-inline-toggle {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--grey-text);
    cursor: pointer;
    user-select: none;
}

.batch-inline-toggle input[type="checkbox"] {
    width: 14px;
    height: 14px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--eerie-black);
}

/* ── Batch recipient details ── */
.batch-recipient {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
}

.batch-recipient-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

@media (max-width: 600px) {
    .batch-recipient-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Figures row ── */
.batch-item-figures {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.batch-figure {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.batch-figure-label {
    font-size: 0.72rem;
    color: var(--grey-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.batch-figure-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--eerie-black);
}

.batch-figure-green {
    color: #2e7d32;
}

/* ── Running totals ── */
.batch-totals {
    background: var(--seasalt);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-light);
}

.batch-totals-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.batch-total-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    text-align: center;
}

.batch-total-label {
    font-size: 0.72rem;
    color: var(--grey-text);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.batch-total-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--eerie-black);
}

.batch-total-highlight .batch-total-value {
    color: #2e7d32;
}

/* ── "Added" badge in search results ── */
.batch-added-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #2e7d32;
    background: #e8f5e9;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.35rem;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.calc-search-result-item.already-added {
    opacity: 0.55;
    cursor: default;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .batch-totals-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .batch-item-figures {
        gap: 0.75rem;
    }

    .batch-figure {
        flex: 1;
        min-width: 80px;
    }
}

/* ═════════════════════════════════════════════════════════════════
   Lead qualification - persona picker (gate) + occupancy toggle
   + adaptive results banner + tenant panel
   ═════════════════════════════════════════════════════════════════ */

/* Persona picker on the gate */
.calc-gate-field--full {
    grid-column: 1 / -1;
}

.calc-persona-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.calc-persona {
    display: block;
    cursor: pointer;
}

.calc-persona input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.calc-persona > span {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem 1rem;
    border: 1.5px solid var(--border-light);
    border-radius: 14px;
    background: var(--canvas-soft);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s;
    height: 100%;
}

.calc-persona:hover > span {
    border-color: rgba(103, 153, 78, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(36, 51, 41, 0.06);
}

.calc-persona input:checked + span {
    border-color: var(--ink);
    background: rgba(183, 229, 167, 0.18);
    box-shadow: 0 0 0 3px rgba(183, 229, 167, 0.35);
}

.calc-persona input:focus-visible + span {
    outline: 2px solid var(--blue-accent);
    outline-offset: 2px;
}

.calc-persona-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--mint, #dbf4cc);
    color: var(--eerie-black);
    flex-shrink: 0;
}

.calc-persona-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.3;
}

.calc-persona-label strong {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--eerie-black);
}

.calc-persona-label small {
    font-size: 0.78rem;
    color: var(--grey-text);
    font-weight: 400;
}

@media (max-width: 720px) {
    .calc-persona-group {
        grid-template-columns: 1fr;
    }
    .calc-persona-label small { font-size: 0.8rem; }
}

/* Three-option occupancy toggle group: stretch full width, equal columns */
.calc-toggle-group--three {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.calc-toggle-group--three .calc-toggle span {
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 560px) {
    .calc-toggle-group--three {
        grid-template-columns: 1fr;
    }
    .calc-toggle-group--three .calc-toggle span {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
    .calc-toggle-group--three .calc-toggle:last-child span {
        border-bottom: none;
    }
}

/* Adaptive results-context banner above the savings card */
.results-context {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    margin-bottom: 0.85rem;
    border-radius: 12px;
    border: 1px solid;
    background: var(--white);
}

.results-context--landlord-vacant {
    background: rgba(34, 120, 34, 0.08);
    border-color: rgba(34, 120, 34, 0.2);
}

.results-context--landlord-becoming {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.results-context--landlord-occupied {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.22);
}

.results-context--tenant {
    background: rgba(244, 63, 94, 0.06);
    border-color: rgba(244, 63, 94, 0.22);
}

.results-context--agent {
    background: rgba(139, 92, 246, 0.07);
    border-color: rgba(139, 92, 246, 0.22);
}

.results-context-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--eerie-black);
    flex-shrink: 0;
}

.results-context-body h3 {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    color: var(--eerie-black);
}

.results-context-body p {
    margin: 0;
    color: var(--grey-text);
    font-size: 0.84rem;
    line-height: 1.45;
}

/* Tenant alternative panel inside the savings card */
.tenant-panel {
    text-align: center;
    padding: 1.5rem 1.25rem 1.75rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
}

.tenant-panel-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(156, 219, 166, 0.18);
    color: var(--mint, #dbf4cc);
    margin-bottom: 0.85rem;
}

.tenant-panel h4 {
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
    color: var(--white);
}

.tenant-panel p {
    max-width: 52ch;
    margin: 0 auto 1.1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.65;
}

.tenant-panel-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* The shared .btn-primary / .btn-secondary base styles only exist scoped to
   .calc-savings-foot on this page. Re-state the relevant base properties for
   the tenant panel so the buttons render properly. */
.tenant-panel-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    line-height: 1.2;
}

.tenant-panel-actions .btn-primary {
    background: var(--tea-green, #9cdba6);
    color: var(--eerie-black);
    border-color: var(--tea-green, #9cdba6);
}

.tenant-panel-actions .btn-primary:hover {
    background: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(219, 244, 204, 0.2);
}

.tenant-panel-actions .btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.32);
}

.tenant-panel-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ───────────────────────────────────────────────
   Persona top-up - returning visitor whose
   localStorage pre-dates the persona qualification.
   ─────────────────────────────────────────────── */
.calc-topup-card {
    max-width: 620px;
    margin: 0 auto;
}

.calc-topup-card .calc-gate-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.calc-topup-card .calc-gate-subtitle {
    margin-bottom: 1.5rem;
}

.calc-topup-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.calc-topup-form .calc-submit {
    margin-top: 0.5rem;
}

/* ── Cross-route nudge: visible to owners/tenants/advisors so they can hop sideways ── */
.calc-cross-route {
    margin: 1.75rem 0 1rem;
    padding: 1.25rem 1.35rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(242, 201, 122, 0.18), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(245, 158, 138, 0.15), transparent 55%),
        var(--canvas-soft);
    border: 1px solid var(--border-light);
    border-radius: 14px;
}
.calc-cross-head {
    margin-bottom: 1rem;
}
.calc-cross-head strong {
    display: block;
    color: var(--ink);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}
.calc-cross-head span {
    display: block;
    color: var(--ink-mute);
    font-size: 0.92rem;
}
.calc-cross-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
@media (max-width: 540px) {
    .calc-cross-grid { grid-template-columns: 1fr; }
}
.calc-cross-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1rem 1.1rem;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ink);
    transition: var(--transition);
    border-left: 3px solid var(--accent, var(--tea-green));
}
.calc-cross-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(36, 51, 41, 0.08);
    border-color: var(--accent-deep, var(--ink));
    border-left-color: var(--accent, var(--tea-green));
}
.calc-cross-card strong {
    color: var(--ink);
    font-size: 0.98rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.calc-cross-card span:not(.quad-dot) {
    color: var(--ink-mute);
    font-size: 0.85rem;
    line-height: 1.45;
}
.calc-cross-agent { --accent: #f2c97a; --accent-deep: #8a611d; }
.calc-cross-local { --accent: #f59e8a; --accent-deep: #9f3d28; }

/* ═══════════════════════════════════════════════════════════════
   AFFILIATE EARNINGS CALCULATOR (affiliate-program.html)
   ═══════════════════════════════════════════════════════════════ */

.aff-calc-section {
    padding: 0 0 5rem;
    background: var(--canvas);
    overflow: hidden;
}

.aff-calc-hero {
    position: relative;
    padding: 4.5rem 0 3.25rem;
    text-align: center;
    background:
        radial-gradient(circle at 15% 25%, rgba(242, 201, 122, 0.38), transparent 42%),
        radial-gradient(circle at 85% 75%, rgba(183, 229, 167, 0.32), transparent 48%),
        radial-gradient(circle at 50% 100%, rgba(130, 201, 204, 0.14), transparent 55%),
        linear-gradient(165deg, var(--canvas) 0%, var(--canvas-soft) 100%);
    overflow: hidden;
}

.aff-calc-hero::before,
.aff-calc-hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.aff-calc-hero::before {
    top: -35%;
    right: -12%;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(242, 201, 122, 0.22) 0%, transparent 70%);
}

.aff-calc-hero::after {
    bottom: -40%;
    left: -8%;
    width: 440px;
    height: 440px;
    background: radial-gradient(circle, rgba(183, 229, 167, 0.18) 0%, transparent 70%);
}

.aff-calc-hero .container {
    position: relative;
    z-index: 1;
}

.aff-calc-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    margin-bottom: 1.25rem;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(138, 97, 29, 0.22);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #8a611d;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: calcFadeUp 0.55s ease-out both;
}

.aff-calc-hero-badge svg {
    stroke: #b8860b;
}

.aff-calc-hero-title {
    margin: 0 auto 1rem;
    max-width: 16ch;
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.022em;
    color: var(--ink);
    animation: calcFadeUp 0.55s ease-out 0.06s both;
}

.aff-calc-hero-accent {
    display: block;
    background: linear-gradient(110deg, #8a611d 0%, #67994e 52%, #2a7a7d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aff-calc-hero-sub {
    max-width: 52ch;
    margin: 0 auto 1.35rem;
    font-size: clamp(1rem, 2.1vw, 1.1rem);
    line-height: 1.65;
    color: var(--ink-soft);
    animation: calcFadeUp 0.55s ease-out 0.12s both;
}

.aff-calc-trust-pills {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: center;
    animation: calcFadeUp 0.55s ease-out 0.18s both;
}

.aff-calc-trust-pills li {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-mute);
    padding: 0.38rem 0.75rem;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border-light);
    white-space: nowrap;
}

.aff-calc-trust-pills li::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8a611d;
    margin-right: 0.4rem;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.aff-calc-workspace {
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
}

.aff-calc-shell {
    max-width: 1140px;
}

.aff-calc-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.35rem;
    padding: 0.55rem;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(36, 51, 41, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.aff-calc-step {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: var(--ink-mute);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.aff-calc-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    background: var(--canvas-soft);
    border: 1px solid var(--border-light);
    font-size: 0.75rem;
    font-weight: 800;
    flex-shrink: 0;
}

.aff-calc-step.is-active {
    background: rgba(183, 229, 167, 0.22);
    color: var(--ink);
    box-shadow: inset 0 0 0 1px rgba(103, 153, 78, 0.25);
}

.aff-calc-step.is-active .aff-calc-step-num {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.aff-calc-step.is-done {
    color: var(--ink-soft);
}

.aff-calc-step.is-done .aff-calc-step-num {
    background: #67994e;
    border-color: #67994e;
    color: #fff;
}

.aff-calc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 1.35rem;
    align-items: start;
}

.aff-calc-main {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    min-width: 0;
}

.aff-calc-card {
    padding: 1.65rem 1.75rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(36, 51, 41, 0.07);
    box-shadow: 0 18px 48px rgba(36, 51, 41, 0.07);
    transition: box-shadow 0.25s, transform 0.25s;
}

.aff-calc-card:focus-within {
    box-shadow: 0 22px 56px rgba(36, 51, 41, 0.1);
}

.aff-calc-card-head {
    margin-bottom: 1.15rem;
}

.aff-calc-card-step {
    display: inline-block;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a611d;
}

.aff-calc-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.22rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.aff-calc-subhead {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.92rem;
    line-height: 1.6;
}

.aff-calc-search-wrap input {
    font-size: 1rem;
}

.aff-optional {
    color: var(--ink-mute);
    font-weight: 400;
}

.aff-property-list {
    max-height: none;
    margin-bottom: 0;
}

.aff-property-list .batch-item {
    border-radius: 14px;
    padding: 1rem 1.05rem 1rem 1.15rem;
    margin-bottom: 0.65rem;
    border: 1px solid var(--border-light);
    border-left: 4px solid #67994e;
    background: linear-gradient(90deg, rgba(183, 229, 167, 0.08) 0%, #fff 28%);
    animation: affItemIn 0.35s ease-out both;
}

@keyframes affItemIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.aff-property-list .batch-item-figures {
    padding-top: 0.55rem;
    border-top: 1px dashed rgba(36, 51, 41, 0.1);
    margin-top: 0.55rem;
}

.aff-property-list .batch-figure-green {
    color: #2e7d32;
    font-size: 1rem;
}

.aff-property-list .batch-empty {
    padding: 2.75rem 1.5rem;
    border: 2px dashed rgba(36, 51, 41, 0.1);
    border-radius: 16px;
    background: var(--canvas-soft);
}

.aff-property-list .batch-empty svg {
    stroke: rgba(138, 97, 29, 0.35);
    animation: affPulse 2.4s ease-in-out infinite;
}

@keyframes affPulse {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.05); }
}

.aff-property-list .batch-empty p {
    max-width: 36ch;
    font-size: 0.92rem;
    color: var(--ink-soft);
}

.aff-submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.95rem 1.45rem;
    border: none;
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(36, 51, 41, 0.2);
    transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
}

.aff-submit-btn:hover:not(:disabled) {
    background: #67994e;
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(103, 153, 78, 0.28);
}

.aff-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.aff-submit-btn svg {
    transition: transform 0.15s;
}

.aff-submit-btn:hover:not(:disabled) svg {
    transform: translateX(3px);
}

.aff-calc-sidebar {
    position: sticky;
    top: 5.5rem;
}

.aff-earnings-panel {
    position: relative;
    padding: 1.65rem 1.5rem 1.5rem;
    border-radius: 22px;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0%, rgba(242, 201, 122, 0.16) 0%, transparent 52%),
        linear-gradient(165deg, #152019 0%, var(--ink) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 64px rgba(36, 51, 41, 0.22);
    color: #fff;
}

.aff-earnings-panel::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(183, 229, 167, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.aff-earnings-badge {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    background: rgba(242, 201, 122, 0.18);
    border: 1px solid rgba(242, 201, 122, 0.35);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #f2c97a;
}

.aff-earnings-hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 1.25rem 0.85rem 1.1rem;
    margin-bottom: 1rem;
    background: rgba(183, 229, 167, 0.1);
    border: 1px solid rgba(183, 229, 167, 0.22);
    border-radius: 14px;
}

.aff-earnings-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.55);
}

.aff-earnings-hero-value {
    margin: 0;
    font-size: clamp(1.85rem, 4vw, 2.45rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(110deg, #f2c97a 0%, #c8f0b8 55%, #9cdba6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.aff-earnings-hero-value.is-bump {
    animation: affBump 0.45s ease-out;
}

@keyframes affBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

.aff-earnings-hero-sub {
    margin: 0.55rem 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.aff-earnings-hero-sub strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.aff-earnings-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.aff-earnings-stat {
    padding: 0.75rem 0.8rem;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.aff-earnings-stat--highlight {
    background: rgba(183, 229, 167, 0.12);
    border-color: rgba(183, 229, 167, 0.28);
}

.aff-earnings-stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.52);
    margin-bottom: 0.2rem;
}

.aff-earnings-stat-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.aff-earnings-stat--highlight .aff-earnings-stat-value {
    color: #c8f0b8;
}

.aff-earnings-split {
    position: relative;
    z-index: 1;
    margin-bottom: 0.85rem;
}

.aff-earnings-split-bar {
    height: 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.aff-earnings-split-you {
    display: block;
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, #f2c97a, #9cdba6);
}

.aff-earnings-split-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.aff-earnings-split-labels strong {
    color: #f2c97a;
}

.aff-earnings-note {
    position: relative;
    z-index: 1;
    margin: 0 0 1rem;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.48);
}

.aff-sidebar-cta {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.aff-sidebar-cta:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.aff-earnings-panel.has-properties .aff-sidebar-cta {
    background: rgba(183, 229, 167, 0.18);
    border-color: rgba(183, 229, 167, 0.35);
    color: #dbf4cc;
}

@media (max-width: 960px) {
    .aff-calc-layout {
        grid-template-columns: 1fr;
    }

    .aff-calc-sidebar {
        position: static;
        order: -1;
    }

    .aff-calc-step-label {
        display: none;
    }

    .aff-calc-step {
        padding: 0.55rem;
    }
}

@media (max-width: 600px) {
    .aff-calc-card {
        padding: 1.25rem 1.15rem;
    }

    .aff-calc-steps {
        gap: 0.35rem;
    }

    .aff-calc-hero {
        padding: 3.5rem 0 2.5rem;
    }
}
