/* TaxBooks — energetic MoneyChoice shop energy */

:root {
    --tx-bg: #f8fafc;
    --tx-surface: #ffffff;
    --tx-foreground: #0f172a;
    --tx-muted: #64748b;
    --tx-muted-bg: #f1f5f9;
    --tx-border: #e2e8f0;
    --tx-primary: #ea580c;
    --tx-primary-hover: #c2410c;
    --tx-primary-soft: #ffedd5;
    --tx-success: #16a34a;
    --tx-success-soft: #f0fdf4;
    --tx-danger: #dc2626;
    --tx-danger-soft: #fef2f2;
    --tx-violet: #7c3aed;
    --tx-amber: #d97706;
    --tx-rose: #e11d48;
    --tx-radius: 16px;
    --tx-radius-lg: 22px;
    --tx-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --tx-shadow-md: 0 14px 32px rgba(15, 23, 42, 0.12);
    --tx-max: 1120px;
    --tx-font: 'Poppins', system-ui, -apple-system, sans-serif;
    --tx-display: 'Montserrat', 'Poppins', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body.tx-page {
    font-family: var(--tx-font);
    background: var(--tx-bg);
    color: var(--tx-foreground);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .tx-stat-value, .tx-logo span, .tx-cta h2 {
    font-family: var(--tx-display);
}

/* Header */
.tx-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--tx-border);
}

.tx-header-inner {
    max-width: var(--tx-max);
    margin: 0 auto;
    padding: 0 24px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tx-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--tx-foreground);
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.tx-logo img {
    height: 36px;
    width: auto;
    border-radius: 8px;
}

.tx-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tx-nav a {
    color: var(--tx-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.tx-nav a:hover {
    color: var(--tx-primary);
    background: var(--tx-primary-soft);
}

.tx-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #16a34a 0%, #ea580c 100%);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 18px rgba(234, 88, 12, 0.28);
    transition: transform 0.18s, box-shadow 0.18s;
    white-space: nowrap;
}

.tx-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.35);
}

/* Layout */
.tx-container {
    max-width: var(--tx-max);
    margin: 0 auto;
    padding: 0 24px;
}

.tx-section {
    padding: 64px 0;
}

.tx-section-alt {
    background: var(--tx-surface);
    border-top: 1px solid var(--tx-border);
    border-bottom: 1px solid var(--tx-border);
}

.tx-section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 32px;
}

.tx-section-header .tx-divider {
    margin-left: auto;
    margin-right: auto;
}

.tx-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffedd5, #dcfce7);
    color: #c2410c;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.tx-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ea580c 0%, #16a34a 100%);
    margin: 0 0 18px;
    border-radius: 2px;
}

.tx-section-header h2 {
    font-size: clamp(1.85rem, 4.4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--tx-foreground);
    margin-bottom: 14px;
}

.tx-section-header h2 span {
    background: linear-gradient(90deg, #ea580c, #16a34a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tx-section-header p {
    color: var(--tx-muted);
    font-size: 1.08rem;
}

/* Hero */
.tx-hero {
    position: relative;
    padding: 88px 0 96px;
    overflow: hidden;
    background:
        radial-gradient(1000px 480px at 12% -8%, rgba(234, 88, 12, 0.18), transparent 58%),
        radial-gradient(820px 420px at 88% 8%, rgba(22, 163, 74, 0.16), transparent 55%),
        linear-gradient(180deg, #fff7ed 0%, #f8fafc 42%, #f0fdf4 100%);
}

.tx-hero-atmosphere {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            -12deg,
            transparent,
            transparent 48px,
            rgba(15, 23, 42, 0.015) 48px,
            rgba(15, 23, 42, 0.015) 49px
        );
    mask-image: linear-gradient(180deg, #000 20%, transparent 88%);
    animation: tx-atmosphere-drift 28s linear infinite;
}

@keyframes tx-atmosphere-drift {
    from { transform: translateX(0); }
    to { transform: translateX(-48px); }
}

.tx-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
}

.tx-brand-mark {
    font-family: var(--tx-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--tx-foreground);
    margin-bottom: 18px;
    line-height: 1.2;
}

.tx-brand-mark span {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.55em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--tx-primary);
    vertical-align: middle;
}

.tx-hero h1 {
    font-size: clamp(2.35rem, 5.4vw, 3.45rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 18px;
    color: var(--tx-foreground);
    text-wrap: balance;
    max-width: 14ch;
}

.tx-hero-lead {
    font-size: 1.15rem;
    color: #475569;
    margin-bottom: 28px;
    max-width: 34rem;
    font-weight: 500;
    line-height: 1.55;
}

.tx-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 0;
}

.tx-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #16a34a 0%, #ea580c 100%);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(234, 88, 12, 0.28);
    transition: transform 0.18s, box-shadow 0.18s;
}

.tx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(234, 88, 12, 0.36);
}

.tx-btn-primary:disabled {
    opacity: 0.75;
    transform: none;
}

.tx-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--tx-foreground);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    transition: background 0.18s, transform 0.18s;
}

.tx-btn-secondary:hover {
    background: #fff;
    transform: translateY(-2px);
}

.tx-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.tx-stat {
    padding: 16px 14px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 16px;
    box-shadow: var(--tx-shadow);
    transition: transform 0.18s, box-shadow 0.18s;
}

.tx-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--tx-shadow-md);
}

.tx-stat:nth-child(1) { background: linear-gradient(165deg, #ffedd5 0%, #fff7ed 55%, #fff 100%); }
.tx-stat:nth-child(2) { background: linear-gradient(165deg, #dcfce7 0%, #f0fdf4 55%, #fff 100%); }
.tx-stat:nth-child(3) { background: linear-gradient(165deg, #ffedd5 0%, #fffbeb 55%, #fff 100%); }
.tx-stat:nth-child(4) { background: linear-gradient(165deg, #fef3c7 0%, #fffbeb 55%, #fff 100%); }

/* Value pillars */
.tx-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border-top: 1px solid var(--tx-border);
    border-left: 1px solid var(--tx-border);
    background: var(--tx-surface);
}

.tx-pillar {
    padding: 36px 32px;
    border-right: 1px solid var(--tx-border);
    border-bottom: 1px solid var(--tx-border);
    transition: background 0.25s ease;
}

.tx-pillar:hover {
    background: linear-gradient(165deg, #fff7ed 0%, #fff 60%);
}

.tx-pillar-num {
    display: block;
    font-family: var(--tx-display);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--tx-primary);
    margin-bottom: 14px;
}

.tx-pillar h3 {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.tx-pillar p {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.6;
    max-width: 36rem;
}

/* Organic competitor compare */
.tx-compare-flow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px 32px;
    margin-bottom: 40px;
}

.tx-compare-item h3 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    color: var(--tx-foreground);
}

.tx-compare-item p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.55;
}

.tx-compare-item {
    padding-top: 14px;
    border-top: 3px solid #ea580c;
    animation: tx-compare-in 0.6s ease both;
}

.tx-compare-item:nth-child(even) {
    border-top-color: #16a34a;
}

.tx-compare-item:nth-child(2) { animation-delay: 0.05s; }
.tx-compare-item:nth-child(3) { animation-delay: 0.1s; }
.tx-compare-item:nth-child(4) { animation-delay: 0.15s; }
.tx-compare-item:nth-child(5) { animation-delay: 0.2s; }
.tx-compare-item:nth-child(6) { animation-delay: 0.25s; }

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

/* Value list */
.tx-value-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 820px;
    margin: 0 auto;
}

.tx-value-row {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 20px 28px;
    padding: 22px 0;
    border-bottom: 1px solid var(--tx-border);
    align-items: baseline;
}

.tx-value-row:first-child {
    border-top: 1px solid var(--tx-border);
}

.tx-value-row strong {
    font-family: var(--tx-display);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--tx-foreground);
}

.tx-value-row span {
    color: #475569;
    font-size: 0.98rem;
    line-height: 1.55;
}

.tx-ecosystem-note {
    margin-top: 36px;
    text-align: center;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: var(--tx-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

/* Confidential assessment */
#plans,
#services.tx-scroll-anchor {
    scroll-margin-top: 84px;
}

.tx-scroll-anchor {
    display: block;
    height: 0;
    overflow: hidden;
}

.tx-assess-section {
    background:
        radial-gradient(700px 320px at 10% 0%, rgba(22, 163, 74, 0.1), transparent 55%),
        radial-gradient(600px 280px at 90% 100%, rgba(234, 88, 12, 0.1), transparent 50%),
        var(--tx-surface);
    border-top: 1px solid var(--tx-border);
    border-bottom: 1px solid var(--tx-border);
}

.tx-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    max-width: 1040px;
    margin: 0 auto;
    align-items: stretch;
}

.tx-plan {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 24px 24px;
    min-height: 100%;
    border-top: 3px solid #16a34a;
}

.tx-plan.is-silver {
    border-top-color: #64748b;
}

.tx-plan.is-gold {
    border-top-color: #ea580c;
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.55) 0%, transparent 42%);
}

.tx-plan-tag {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #15803d;
}

.tx-plan.is-silver .tx-plan-tag {
    color: #475569;
}

.tx-plan.is-gold .tx-plan-tag {
    color: #c2410c;
}

.tx-plan-price {
    font-family: var(--tx-display);
    font-size: clamp(2rem, 3.6vw, 2.55rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--tx-foreground);
}

.tx-plan-price span {
    margin-left: 4px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--tx-muted);
}

.tx-plan h3 {
    font-family: var(--tx-display);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.tx-plan-blurb {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tx-plan ul {
    list-style: none;
    margin: 10px 0 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.tx-plan li {
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.4;
    padding-left: 1.05em;
    position: relative;
}

.tx-plan li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: #16a34a;
}

.tx-plan.is-gold li::before {
    background: #ea580c;
}

.tx-plan .tx-btn-primary,
.tx-plan .tx-btn-secondary {
    align-self: stretch;
    justify-content: center;
    margin-top: 10px;
}

.tx-hook-pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto 28px;
}

.tx-hook-pillars div {
    padding: 18px 16px;
    border-top: 3px solid #ea580c;
}

.tx-hook-pillars div:nth-child(even) {
    border-top-color: #16a34a;
}

.tx-hook-pillars strong {
    display: block;
    font-family: var(--tx-display);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.tx-hook-pillars span {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.4;
}

.tx-vs-line {
    text-align: center;
    color: var(--tx-muted);
    font-size: 0.98rem;
    max-width: 36rem;
    margin: 0 auto;
}

.tx-buy-card--tight {
    padding-top: 40px;
    padding-bottom: 40px;
}

.tx-buy-card--tight .tx-buy-lead {
    margin-bottom: 22px;
}

.tx-assess-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
    max-width: 920px;
    margin: 0 auto;
}

.tx-assess-steps {
    list-style: none;
    counter-reset: assess;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.tx-assess-steps li {
    counter-increment: assess;
    position: relative;
    padding-left: 52px;
}

.tx-assess-steps li::before {
    content: counter(assess);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #16a34a, #ea580c);
    color: #fff;
    font-family: var(--tx-display);
    font-weight: 800;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tx-assess-steps strong {
    display: block;
    font-family: var(--tx-display);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.tx-assess-steps span {
    color: #475569;
    font-size: 0.96rem;
    line-height: 1.55;
}

.tx-assess-aside {
    padding: 28px 26px;
    background: linear-gradient(165deg, #fff7ed 0%, #fff 55%);
    border: 1px solid #fed7aa;
    border-radius: 18px;
}

.tx-assess-lock {
    font-weight: 700;
    color: var(--tx-foreground);
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.4;
}

.tx-assess-lock i {
    color: #16a34a;
    margin-top: 3px;
}

.tx-assess-fine {
    color: var(--tx-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.tx-assess-aside .tx-btn-primary {
    width: 100%;
    justify-content: center;
}

/* In-app assessment banner */
.mc-tax-assess-banner {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(120deg, #ffedd5 0%, #dcfce7 100%);
    border: 1px solid #bbf7d0;
    animation: tx-compare-in 0.45s ease both;
}

.mc-tax-assess-banner strong {
    font-family: var(--tx-display, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    color: #14532d;
}

.mc-tax-assess-banner span {
    font-size: 0.86rem;
    color: #3f6212;
    line-height: 1.45;
}

.tx-stat-value {
    display: block;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--tx-foreground);
}

.tx-stat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--tx-muted);
    margin-top: 2px;
}

.tx-hero-visual {
    background: #fff;
    border: 1px solid #ffedd5;
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.14);
    overflow: hidden;
    position: relative;
}

.tx-hero-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FBBC04, #34A853, #FBBC04, #EA4335);
}

.tx-dashboard-mock {
    padding: 24px;
}

.tx-mock-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--tx-border);
}

.tx-mock-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--tx-border);
}

.tx-mock-dot:first-child { background: #fca5a5; }
.tx-mock-dot:nth-child(2) { background: #fcd34d; }
.tx-mock-dot:nth-child(3) { background: #86efac; }

.tx-mock-title {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--tx-muted);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tx-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 999px;
}

.tx-live::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #16a34a;
    animation: tx-pulse 1.6s infinite;
}

.tx-mock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--tx-muted-bg);
    border-radius: 12px;
    margin-bottom: 8px;
    font-size: 0.84rem;
    font-weight: 500;
}

.tx-mock-row span:last-child {
    font-weight: 700;
    color: var(--tx-success);
}

.tx-mock-row.active {
    background: linear-gradient(90deg, #ffedd5, #fff7ed);
    border: 1px solid #fed7aa;
}

.tx-mock-row.incoming {
    background: linear-gradient(90deg, #dcfce7, #f0fdf4);
    border: 1px solid #86efac;
    animation: tx-glow 2.4s ease-in-out infinite;
}

.tx-mock-row.incoming .tx-ring-icon {
    display: inline-flex;
    margin-right: 8px;
    color: #16a34a;
    animation: tx-ring 1.4s ease-in-out infinite;
}

.tx-mock-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--tx-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 16px 0 8px;
}

/* Cards grid */
.tx-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tx-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.tx-card {
    background: var(--tx-surface);
    border: 1px solid transparent;
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: var(--tx-shadow);
    transition: transform 0.18s, box-shadow 0.18s;
}

.tx-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--tx-shadow-md);
}

.tx-card.tone-blue { background: linear-gradient(165deg, #ffedd5 0%, #fff7ed 55%, #fff 100%); }
.tx-card.tone-green { background: linear-gradient(165deg, #dcfce7 0%, #f0fdf4 55%, #fff 100%); }
.tx-card.tone-amber { background: linear-gradient(165deg, #fef3c7 0%, #fffbeb 55%, #fff 100%); }
.tx-card.tone-rose { background: linear-gradient(165deg, #ffe4e6 0%, #fff1f2 55%, #fff 100%); }
.tx-card.tone-sky { background: linear-gradient(165deg, #e0f2fe 0%, #f0f9ff 55%, #fff 100%); }
.tx-card.tone-violet { background: linear-gradient(165deg, #ede9fe 0%, #f5f3ff 55%, #fff 100%); }

.tx-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #fff;
    border-radius: 14px;
    font-size: 1.25rem;
    margin-bottom: 16px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.tx-card.tone-blue .tx-card-icon { background: #ea580c; }
.tx-card.tone-green .tx-card-icon { background: #16a34a; }
.tx-card.tone-amber .tx-card-icon { background: #d97706; }
.tx-card.tone-rose .tx-card-icon { background: #e11d48; }
.tx-card.tone-sky .tx-card-icon { background: #0284c7; }
.tx-card.tone-violet .tx-card-icon { background: #7c3aed; }

.tx-card h3 {
    font-size: 1.12rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.tx-card p {
    font-size: 0.94rem;
    color: #475569;
    line-height: 1.55;
}

/* Comparison table */
.tx-table-wrap {
    background: var(--tx-surface);
    border: 1px solid var(--tx-border);
    border-radius: var(--tx-radius-lg);
    overflow: hidden;
    box-shadow: var(--tx-shadow);
}

.tx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.tx-table thead th {
    background: var(--tx-muted-bg);
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--tx-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--tx-border);
}

.tx-table thead th:first-child {
    color: var(--tx-foreground);
}

.tx-table thead th.highlight {
    background: linear-gradient(135deg, #ffedd5, #dcfce7);
    color: #c2410c;
}

.tx-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--tx-border);
    color: var(--tx-foreground);
}

.tx-table tbody tr:last-child td {
    border-bottom: none;
}

.tx-table tbody tr:hover td {
    background: #f8fafc;
}

.tx-table tbody td:nth-child(2) {
    background: rgba(219, 234, 254, 0.35);
    font-weight: 700;
}

.tx-check {
    color: var(--tx-success);
    font-weight: 700;
    font-size: 1.05rem;
}

.tx-x {
    color: #cbd5e1;
}

/* Problem / Solution */
.tx-problem-card,
.tx-solution-card {
    border-radius: 22px;
    padding: 32px;
    box-shadow: var(--tx-shadow);
    transition: transform 0.18s;
}

.tx-problem-card:hover,
.tx-solution-card:hover {
    transform: translateY(-4px);
}

.tx-problem-card {
    background: linear-gradient(165deg, #ffe4e6 0%, #fff1f2 55%, #fff 100%);
    border: 1px solid #fecdd3;
}

.tx-solution-card {
    background: linear-gradient(165deg, #dcfce7 0%, #f0fdf4 55%, #fff 100%);
    border: 1px solid #bbf7d0;
}

.tx-problem-card h3,
.tx-solution-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-problem-card h3 { color: #9f1239; }
.tx-solution-card h3 { color: #166534; }

.tx-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.tx-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--tx-foreground);
}

.tx-list li i {
    margin-top: 3px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.tx-problem-card .tx-list li i { color: var(--tx-danger); }
.tx-solution-card .tx-list li i { color: var(--tx-success); }

/* Features */
.tx-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.tx-feature {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--tx-border);
    border-radius: 18px;
    box-shadow: var(--tx-shadow);
    transition: transform 0.18s, box-shadow 0.18s;
}

.tx-feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--tx-shadow-md);
}

.tx-feature-grid-tight {
    margin-top: 28px;
}

.tx-feature-grid-tight .tx-feature {
    padding: 16px 18px;
}

.tx-feature h4 {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.02em;
}

.tx-feature h4 i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.9rem;
    background: #ea580c;
}

.tx-feature:nth-child(1) h4 i { background: #ea580c; }
.tx-feature:nth-child(2) h4 i { background: #16a34a; }
.tx-feature:nth-child(3) h4 i { background: #0284c7; }
.tx-feature:nth-child(4) h4 i { background: #e11d48; }
.tx-feature:nth-child(5) h4 i { background: #7c3aed; }
.tx-feature:nth-child(6) h4 i { background: #d97706; }

.tx-feature p {
    font-size: 0.9rem;
    color: var(--tx-muted);
    line-height: 1.55;
}

/* Extras pills */
.tx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.tx-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--tx-foreground);
    box-shadow: var(--tx-shadow);
    transition: transform 0.18s;
}

.tx-pill:hover {
    transform: translateY(-3px);
}

.tx-pill:nth-child(1) { background: linear-gradient(165deg, #ffe4e6, #fff); }
.tx-pill:nth-child(2) { background: linear-gradient(165deg, #ffedd5, #fff); }
.tx-pill:nth-child(3) { background: linear-gradient(165deg, #fef3c7, #fff); }
.tx-pill:nth-child(4) { background: linear-gradient(165deg, #ccfbf1, #fff); }
.tx-pill:nth-child(5) { background: linear-gradient(165deg, #ede9fe, #fff); }
.tx-pill:nth-child(6) { background: linear-gradient(165deg, #dcfce7, #fff); }

.tx-pill i {
    color: var(--tx-primary);
    font-size: 0.9rem;
}

/* Steps */
.tx-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tx-step {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--tx-shadow);
    transition: transform 0.18s, box-shadow 0.18s;
}

.tx-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--tx-shadow-md);
}

.tx-step:nth-child(1) { background: linear-gradient(165deg, #ffedd5 0%, #fff 100%); }
.tx-step:nth-child(2) { background: linear-gradient(165deg, #ede9fe 0%, #fff 100%); }
.tx-step:nth-child(3) { background: linear-gradient(165deg, #dcfce7 0%, #fff 100%); }

.tx-step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ea580c, #16a34a);
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(234, 88, 12, 0.28);
}

.tx-step-content strong {
    display: block;
    font-weight: 800;
    margin-bottom: 4px;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.tx-step-content span {
    font-size: 0.95rem;
    color: var(--tx-muted);
    font-weight: 500;
}

/* Story */
.tx-story {
    background: linear-gradient(135deg, #FFF4DE 0%, #FDE68A 100%);
    border: 1px solid #FDE68A;
    border-radius: 22px;
    padding: 48px 36px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(234, 88, 12, 0.12);
}

.tx-story::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FBBC04, #34A853, #FBBC04, #EA4335);
}

.tx-story-compact {
    padding: 36px 28px;
}

.tx-story-header {
    text-align: center;
    margin-bottom: 24px;
}

.tx-story-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 16px;
    border: 6px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.tx-story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tx-story-name {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.tx-story-role {
    color: #ea580c;
    font-weight: 700;
    margin: 4px 0 14px;
}

.tx-story-quote {
    font-style: italic;
    font-size: 1.15rem;
    color: #334155;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.65;
}

.tx-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.tx-story-phase {
    background: #fff;
    padding: 28px 24px;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.18s;
}

.tx-story-phase:hover {
    transform: translateY(-4px);
}

.tx-story-emotion {
    color: #EA4335;
    font-weight: 700;
    margin-bottom: 10px;
}

.tx-story-phase h3 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.tx-story-phase p {
    color: #475569;
    font-size: 0.95rem;
}

.tx-story-result {
    margin-top: 14px;
    padding: 12px 15px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

.tx-story-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.tx-story-stat {
    text-align: center;
    padding: 22px 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tx-story-stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #d97706;
    letter-spacing: -0.03em;
}

.tx-story-stat span {
    font-weight: 600;
    color: #555;
    font-size: 0.85rem;
}

/* ROI stats */
.tx-roi-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.tx-roi-item {
    text-align: center;
    padding: 26px 12px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--tx-shadow);
    transition: transform 0.18s;
}

.tx-roi-item:hover {
    transform: translateY(-4px);
}

.tx-roi-item:nth-child(1) { background: linear-gradient(165deg, #ffedd5, #fff); }
.tx-roi-item:nth-child(2) { background: linear-gradient(165deg, #dcfce7, #fff); }
.tx-roi-item:nth-child(3) { background: linear-gradient(165deg, #ede9fe, #fff); }
.tx-roi-item:nth-child(4) { background: linear-gradient(165deg, #fef3c7, #fff); }
.tx-roi-item:nth-child(5) { background: linear-gradient(165deg, #ffe4e6, #fff); }
.tx-roi-item:nth-child(6) { background: linear-gradient(165deg, #e0f2fe, #fff); }

.tx-roi-item .tx-stat-value {
    font-size: 2.1rem;
    color: #ea580c;
}

/* Buy card */
.tx-buy-card {
    max-width: 420px;
    margin: 0 auto;
    background: linear-gradient(165deg, #dcfce7 0%, #f0fdf4 45%, #fff 100%);
    border: 1px solid #bbf7d0;
    border-radius: 22px;
    padding: 2rem 1.75rem;
    box-shadow: 0 16px 36px rgba(22, 163, 74, 0.16);
    position: relative;
    overflow: hidden;
}

.tx-buy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #16a34a, #ea580c);
}

.tx-buy-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #16a34a;
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 14px;
    box-shadow: 0 8px 16px rgba(22, 163, 74, 0.3);
}

.tx-buy-price {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #14532d;
}

.tx-buy-price span {
    font-size: 1rem;
    font-weight: 700;
    color: #15803d;
}

.tx-buy-card ul {
    margin: 1rem 0 1.15rem;
    padding: 0;
    list-style: none;
    color: #166534;
    font-size: 0.98rem;
    line-height: 1.9;
    font-weight: 600;
}

.tx-buy-card ul i {
    margin-right: 8px;
}

.tx-buy-card form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tx-buy-card input {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #86efac;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
}

.tx-buy-card .tx-btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 10px 20px rgba(22, 163, 74, 0.28);
}

.tx-buy-note {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    color: #4d7c0f;
    text-align: center;
}

.tx-buy-note a {
    color: #166534;
    font-weight: 700;
}

/* CTA */
.tx-cta {
    text-align: center;
    padding: 72px 32px;
    background: linear-gradient(135deg, #0f172a 0%, #9a3412 55%, #166534 100%);
    border-radius: 24px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tx-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}

.tx-cta p {
    color: #fed7aa;
    font-size: 1.12rem;
    margin-bottom: 28px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.tx-cta .tx-btn-primary {
    background: #fff;
    color: #0f172a;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.tx-cta .tx-btn-primary:hover {
    background: #f8fafc;
}

.tx-price-tag {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.875rem;
    color: #71717a;
}

.tx-price-tag strong {
    color: #fff;
    font-size: 1.25rem;
}

/* Footer */
.tx-footer {
    padding: 32px 0;
    border-top: 1px solid var(--tx-border);
    text-align: center;
    font-size: 0.8125rem;
    color: var(--tx-muted);
}

.tx-footer a {
    color: var(--tx-primary);
    text-decoration: none;
    font-weight: 600;
}

@keyframes tx-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55); }
    70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

@keyframes tx-ring {
    0%, 70%, 100% { transform: rotate(0); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-12deg); }
    30% { transform: rotate(10deg); }
    40% { transform: rotate(-8deg); }
    50% { transform: rotate(4deg); }
}

@keyframes tx-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.15); }
    50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0.05); }
}

/* Responsive */
@media (max-width: 960px) {
    .tx-hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .tx-hero h1 {
        max-width: none;
    }

    .tx-hero-visual {
        order: -1;
    }

    .tx-pillars {
        grid-template-columns: 1fr;
    }

    .tx-compare-flow {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .tx-assess-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .tx-plans {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .tx-hook-pillars {
        grid-template-columns: 1fr 1fr;
    }

    .tx-value-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .tx-hero-stats,
    .tx-story-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .tx-grid-3,
    .tx-feature-grid,
    .tx-steps,
    .tx-story-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tx-roi-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tx-nav {
        display: none;
    }

    .tx-table-wrap {
        overflow-x: auto;
    }

    .tx-table {
        min-width: 640px;
    }
}

@media (max-width: 640px) {
    .tx-section {
        padding: 56px 0;
    }

    .tx-hero {
        padding: 40px 0 56px;
    }

    .tx-compare-flow {
        grid-template-columns: 1fr;
    }

    .tx-hook-pillars {
        grid-template-columns: 1fr;
    }

    .tx-pillar {
        padding: 28px 22px;
    }

    .tx-grid-3,
    .tx-grid-2,
    .tx-feature-grid,
    .tx-steps,
    .tx-story-grid {
        grid-template-columns: 1fr;
    }

    .tx-roi-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tx-table-wrap {
        overflow-x: auto;
    }

    .tx-table {
        min-width: 640px;
    }

    .tx-story {
        padding: 36px 20px;
    }

    .tx-cta {
        padding: 48px 20px;
    }

    body.tx-page {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    body.tx-page {
        padding-top: 64px;
    }
}


/* Tax extras */
.tx-steps-4 {
    grid-template-columns: repeat(4, 1fr);
}

.tx-logo-wall {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 28px 36px;
    margin-top: 28px;
    opacity: 0.72;
}

.tx-logo-wall img {
    height: 28px;
    width: auto;
    object-fit: contain;
}

.tx-buy-card {
    text-align: left;
}

.tx-buy-card p.tx-buy-lead {
    margin: 0.35rem 0 1rem;
    color: #166534;
    font-weight: 600;
}

.tx-buy-card .tx-buy-price {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1.25;
    max-width: 18ch;
    margin-left: auto;
    margin-right: auto;
}

.tx-buy-card .tx-btn-primary {
    display: inline-flex;
}

@media (max-width: 960px) {
    .tx-steps-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .tx-steps-4 {
        grid-template-columns: 1fr;
    }
}

/* —— TaxBooks Helper —— */
.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mc-tax-helper {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
    pointer-events: none;
}

.mc-tax-helper > * {
    pointer-events: auto;
}

.mc-tax-helper-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ea580c 0%, #c2410c 55%, #b45309 100%);
    color: #fff;
    font: 600 0.92rem/1 var(--tx-font, 'Poppins', sans-serif);
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.35), 0 2px 6px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: mc-tax-helper-float 3.6s ease-in-out infinite;
}

.mc-tax-helper-fab:hover,
.mc-tax-helper-fab:focus-visible {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 32px rgba(234, 88, 12, 0.42);
    outline: none;
}

.mc-tax-helper-fab.is-open {
    animation: none;
    background: #0f172a;
}

.mc-tax-helper-fab-orb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, #fff 0 18%, transparent 19%),
        conic-gradient(from 200deg, #fdba74, #fb923c, #f59e0b, #fdba74);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
    animation: mc-tax-helper-spin 8s linear infinite;
}

.mc-tax-helper-fab.is-open .mc-tax-helper-fab-orb {
    animation: none;
    background: #64748b;
}

.mc-tax-helper-fab-pulse {
    position: absolute;
    inset: -6px;
    border-radius: 999px;
    border: 2px solid rgba(234, 88, 12, 0.45);
    animation: mc-tax-helper-pulse 2.4s ease-out infinite;
    pointer-events: none;
}

.mc-tax-helper-fab.is-open .mc-tax-helper-fab-pulse {
    display: none;
}

.mc-tax-helper-panel {
    width: min(400px, calc(100vw - 28px));
    max-height: min(560px, calc(100vh - 110px));
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(234, 88, 12, 0.08);
    overflow: hidden;
    backdrop-filter: blur(10px);
    animation: mc-tax-helper-rise 0.28s ease-out;
}

.mc-tax-helper-panel[hidden] {
    display: none !important;
}

.mc-tax-helper-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    background: linear-gradient(120deg, #ffedd5 0%, #fff7ed 55%, #fef3c7 100%);
    border-bottom: 1px solid #e2e8f0;
}

.mc-tax-helper-orb {
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 32% 30%, #fff 0 16%, transparent 17%),
        conic-gradient(from 180deg, #fb923c, #ea580c, #f59e0b, #fb923c);
    animation: mc-tax-helper-spin 10s linear infinite;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
}

.mc-tax-helper-head-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.mc-tax-helper-head-copy strong {
    font-family: var(--tx-display, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    color: #7c2d12;
}

.mc-tax-helper-head-copy span {
    font-size: 0.78rem;
    color: #78716c;
}

.mc-tax-helper-close {
    border: 0;
    background: transparent;
    color: #78716c;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    cursor: pointer;
}

.mc-tax-helper-close:hover {
    background: #fff;
    color: #0f172a;
}

.mc-tax-helper-messages {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 200px;
    background: linear-gradient(180deg, #fffbeb 0%, #f8fafc 40%);
}

.mc-tax-helper-msg {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    max-width: 94%;
    animation: mc-tax-helper-msg-in 0.22s ease-out;
}

.mc-tax-helper-msg > div {
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #0f172a;
}

.mc-tax-helper-msg.is-user {
    align-self: flex-end;
}

.mc-tax-helper-msg.is-user > div {
    background: #ea580c;
    color: #fff;
    border-bottom-right-radius: 4px;
}

.mc-tax-helper-msg.is-assistant > div {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.mc-tax-helper-msg-orb {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-top: 6px;
    border-radius: 50%;
    background: conic-gradient(from 200deg, #fdba74, #fb923c, #f59e0b, #fdba74);
    animation: mc-tax-helper-spin 7s linear infinite;
}

.mc-tax-helper-msg.is-thinking > div {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-width: 52px;
    padding: 14px 16px;
}

.mc-tax-helper-msg.is-thinking i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a8a29e;
    animation: mc-tax-helper-dot 1.1s ease-in-out infinite;
}

.mc-tax-helper-msg.is-thinking i:nth-child(2) { animation-delay: 0.15s; }
.mc-tax-helper-msg.is-thinking i:nth-child(3) { animation-delay: 0.3s; }

.mc-tax-helper-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 14px 10px;
}

.mc-tax-helper-chips button {
    border: 1px solid #fed7aa;
    background: #ffedd5;
    color: #9a3412;
    border-radius: 999px;
    padding: 7px 11px;
    font: 500 0.76rem/1.2 var(--tx-font, 'Poppins', sans-serif);
    cursor: pointer;
}

.mc-tax-helper-chips button:hover {
    background: #fed7aa;
    border-color: #ea580c;
}

.mc-tax-helper-compose {
    display: flex;
    gap: 8px;
    padding: 12px 14px 14px;
    border-top: 1px solid #e2e8f0;
    background: #fff;
}

.mc-tax-helper-compose input {
    flex: 1;
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 11px 12px;
    font: 400 0.88rem/1.3 var(--tx-font, 'Poppins', sans-serif);
    color: #0f172a;
    background: #fffbeb;
}

.mc-tax-helper-compose input:focus {
    outline: none;
    border-color: #ea580c;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.15);
}

.mc-tax-helper-compose button {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #ea580c, #c2410c);
    color: #fff;
    cursor: pointer;
}

.mc-tax-helper-compose button:disabled {
    opacity: 0.55;
    cursor: wait;
}

@keyframes mc-tax-helper-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes mc-tax-helper-pulse {
    0% { transform: scale(0.92); opacity: 0.7; }
    70% { transform: scale(1.08); opacity: 0; }
    100% { transform: scale(1.08); opacity: 0; }
}

@keyframes mc-tax-helper-spin {
    to { transform: rotate(360deg); }
}

@keyframes mc-tax-helper-rise {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes mc-tax-helper-msg-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mc-tax-helper-dot {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
    40% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 640px) {
    .mc-tax-helper {
        right: 14px;
        bottom: 14px;
    }
    .mc-tax-helper-panel {
        width: min(100vw - 20px, 400px);
        max-height: min(72vh, 520px);
    }
}
