/* backend/trupe-theme.css
   TRUPE brand redesign for the landing & policy pages (navy · saffron orange · green),
   matching the mobile app. Loaded after style.css; it only changes the look, not the content. */

:root {
    --tp-navy: #0a1f5c;
    --tp-navy-dark: #061543;
    --tp-navy-deep: #040d2e;
    --tp-orange: #f7841e;
    --tp-orange-dark: #e2620b;
    --tp-gold: #fbbf24;
    --tp-green: #15913b;
    --tp-green-light: #22c55e;
    --tp-blue: #1d4ed8;

    --accent-primary: #1d4ed8;
    --accent-warning: #f7841e;
    --accent-success: #15913b;
    --bg-dark: #f5f7fc;
    --text-primary: #0b1640;
    --text-secondary: #4a5578;
    --border-glass: #e3e8f4;

    --grad-primary: linear-gradient(135deg, #0a1f5c 0%, #1d4ed8 100%);
    --grad-accent: linear-gradient(135deg, #fbbf24 0%, #f7841e 45%, #e2620b 100%);
    --grad-emerald: linear-gradient(135deg, #22c55e 0%, #15913b 100%);
    --grad-tricolor: linear-gradient(90deg, #f7841e 0%, #f7841e 33%, #ffffff 33%, #ffffff 66%, #15913b 66%, #15913b 100%);

    --shadow-md: 0 6px 20px rgba(10, 31, 92, 0.07);
    --shadow-lg: 0 24px 48px -18px rgba(10, 31, 92, 0.22);
    --tp-radius: 20px;
}

[data-theme="dark"] {
    --accent-primary: #60a5fa;
    --bg-dark: #050b24;
    --bg-card: rgba(13, 26, 72, 0.72);
    --text-primary: #f1f5ff;
    --text-secondary: #a3b0d4;
    --border-glass: rgba(148, 170, 255, 0.14);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
[data-theme="light"] body {
    background-image:
        radial-gradient(circle at 0% 30%, rgba(247, 132, 30, 0.05) 0%, transparent 35%),
        radial-gradient(circle at 100% 70%, rgba(21, 145, 59, 0.05) 0%, transparent 35%);
}

/* ---------- Header: floating navy glass capsule ---------- */
body #site-header {
    top: 12px;
    left: 50%;
    right: auto;
    width: min(1320px, calc(100% - 28px));
    transform: translateX(-50%);
    border-radius: 22px;
    background:
        radial-gradient(ellipse 30% 120% at 85% 0%, rgba(247, 132, 30, 0.22) 0%, transparent 70%),
        radial-gradient(ellipse 25% 120% at 10% 100%, rgba(21, 145, 59, 0.18) 0%, transparent 70%),
        linear-gradient(120deg, rgba(4, 13, 46, 0.94) 0%, rgba(10, 31, 92, 0.92) 60%, rgba(18, 48, 126, 0.94) 100%);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 18px 40px -18px rgba(4, 13, 46, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: top 0.3s ease, width 0.3s ease, box-shadow 0.3s ease, border-radius 0.3s ease;
}
body #site-header::after {
    content: "";
    position: absolute;
    left: 28px; right: 28px; bottom: -1px;
    height: 3px;
    border-radius: 99px;
    background: linear-gradient(90deg, transparent 0%, #f7841e 12%, #f7841e 36%, #ffffff 40%, #ffffff 60%, #15913b 64%, #15913b 88%, transparent 100%);
    background-size: 100% 100%;
    animation: none;
    opacity: 0.95;
}
body #site-header.header-scrolled {
    top: 6px;
    width: min(1280px, calc(100% - 20px));
    background:
        radial-gradient(ellipse 30% 120% at 85% 0%, rgba(247, 132, 30, 0.2) 0%, transparent 70%),
        linear-gradient(120deg, rgba(4, 13, 46, 0.98) 0%, rgba(10, 31, 92, 0.97) 100%) !important;
    box-shadow: 0 22px 44px -16px rgba(4, 13, 46, 0.85) !important;
}
[data-theme="dark"] body #site-header { border-color: rgba(148, 170, 255, 0.16); }
body .header-aurora-bg { display: none; }
body .nav-container { height: 68px; padding: 0 18px; }

/* Brand */
body #site-header .brand-logo { margin-left: 4px; gap: 11px; }
body #site-header .logo-img {
    width: 44px; height: 44px;
    background: #fff;
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 18px -4px rgba(247, 132, 30, 0.6);
}
body #site-header .logo-glow-ring {
    inset: -4px;
    border-radius: 16px;
    background: conic-gradient(from 0deg, #f7841e, #fbbf24, #22c55e, #1d4ed8, #f7841e);
    filter: blur(6px);
    opacity: 0.55;
    animation: tpSpin 6s linear infinite;
}
@keyframes tpSpin { to { transform: rotate(360deg); } }
.tp-brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.tp-brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.6px;
    color: #fff;
}
.tp-brand-name span {
    background: linear-gradient(90deg, #fbbf24, #f7841e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.tp-brand-sub {
    margin-top: 3px;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 1.3px;
    color: rgba(226, 232, 255, 0.6);
}

/* Nav links */
body #site-header .nav-links {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
    padding: 5px;
    gap: 2px;
}
body #site-header .nav-link a {
    color: rgba(226, 232, 255, 0.78);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 13px;
}
body #site-header .nav-link a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    transform: translateY(-1px);
}
body #site-header .nav-link a.tp-active {
    color: #fff;
    background: linear-gradient(135deg, #fbbf24 0%, #f7841e 45%, #e2620b 100%);
    box-shadow: 0 6px 16px -6px rgba(247, 132, 30, 0.9);
}

/* Actions */
body #site-header .btn-theme-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: none;
}
body #site-header .btn-theme-toggle:hover { background: rgba(255, 255, 255, 0.16); }
body #site-header .btn-download-nav {
    background: linear-gradient(135deg, #fbbf24 0%, #f7841e 45%, #e2620b 100%);
    box-shadow: 0 8px 22px -6px rgba(247, 132, 30, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    padding: 11px 22px;
    border: none;
}
body #site-header .btn-download-nav:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 28px -6px rgba(247, 132, 30, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
body #site-header .mobile-toggle-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
}
body #site-header .mobile-toggle-btn span { background: #fff; }

@media (min-width: 1261px) and (max-width: 1420px) {
    body #site-header .nav-link a { font-size: 12.5px; padding: 7px 10px; }
    .tp-brand-sub { display: none; }
}
@media (max-width: 768px) {
    body #site-header { top: 8px; width: calc(100% - 16px); border-radius: 18px; }
    body #site-header.header-scrolled { top: 4px; width: calc(100% - 12px); }
    body .nav-container { height: 62px; padding: 0 12px; }
    body #site-header .logo-img { width: 40px; height: 40px; }
    .tp-brand-name { font-size: 20px; }
    .tp-brand-sub { font-size: 7.5px; letter-spacing: 1px; }
}
@media (max-width: 380px) {
    .tp-brand-sub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    body #site-header .logo-glow-ring { animation: none; }
}

/* ---------- Hero ---------- */
body .hero {
    background:
        radial-gradient(ellipse 60% 70% at 85% 40%, rgba(247, 132, 30, 0.28) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 10% 90%, rgba(21, 145, 59, 0.25) 0%, transparent 60%),
        linear-gradient(160deg, var(--tp-navy-deep) 0%, var(--tp-navy) 55%, #12307e 100%);
    padding-bottom: 110px;
    color: #fff;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 60px), 0 100%);
}
body .hero .sphere-blue { background: radial-gradient(circle, #1d4ed8, transparent 70%); opacity: 0.45; }
body .hero .sphere-cyan { background: radial-gradient(circle, #f7841e, transparent 70%); opacity: 0.28; }
body .hero .sphere-gold { background: radial-gradient(circle, #22c55e, transparent 70%); opacity: 0.18; }
body .hero .hero-grid-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
    opacity: 0.6;
}
body .hero-content h1 {
    color: #fff;
    font-size: clamp(34px, 5vw, 56px);
    letter-spacing: -1.5px;
}
body .hero-content h1 span {
    background: linear-gradient(90deg, #fbbf24 0%, #f7841e 50%, #ff9d4d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body .hero-subtitle { color: rgba(226, 232, 255, 0.86); font-size: 17px; }
body .hero .btn-primary {
    background: var(--grad-accent);
    box-shadow: 0 14px 30px -10px rgba(247, 132, 30, 0.8);
    border-radius: 14px;
    padding: 15px 28px;
}
body .hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 15px 28px;
}
body .hero .btn-secondary:hover { background: rgba(255, 255, 255, 0.18); }
body .hero-stats-row { gap: 14px; flex-wrap: wrap; }
body .hero-stat-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 14px 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    min-width: 150px;
}
body .hero-stat-item .stat-number {
    background: linear-gradient(90deg, #fff 0%, #fde68a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
body .hero-stat-item .stat-label { color: rgba(226, 232, 255, 0.75); }
body .mock-device {
    box-shadow:
        0 40px 80px -20px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 60px rgba(247, 132, 30, 0.25);
    animation: tpFloat 6s ease-in-out infinite;
}
body .device-prime-banner { background: var(--grad-accent) !important; }
@keyframes tpFloat {
    0%, 100% { transform: translateY(0) rotate(-1deg); }
    50% { transform: translateY(-14px) rotate(1deg); }
}

/* ---------- Section headers ---------- */
body .features, body .commissions, body .calculator-sec { padding: 96px 0; }
body section.features[style*="background"] { background: #eef2fb !important; }
[data-theme="dark"] body section.features[style*="background"] { background: rgba(255, 255, 255, 0.02) !important; }
body .section-header { margin-bottom: 52px; }
body .section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 99px;
    background: rgba(247, 132, 30, 0.1);
    border: 1px solid rgba(247, 132, 30, 0.28);
    color: var(--tp-orange-dark) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    margin-bottom: 16px;
}
body .section-subtitle::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--tp-green);
    box-shadow: 0 0 0 3px rgba(21, 145, 59, 0.18);
}
body .section-header h2 {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-primary);
}
body .section-header h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 5px;
    margin: 16px auto 0;
    border-radius: 99px;
    background: var(--grad-tricolor);
    box-shadow: 0 2px 8px rgba(10, 31, 92, 0.15);
}

/* ---------- Cards ---------- */
body .feature-card,
body .service-box,
body .b2b-card,
body .rank-benefit-card,
body .management-card,
body .table-card,
body .comparison-table-wrapper,
body .legal-cert-box {
    border-radius: var(--tp-radius);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
}
body .feature-card { padding: 32px 28px; }
body .feature-card:hover,
body .service-box:hover,
body .rank-benefit-card:hover,
body .management-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(247, 132, 30, 0.35);
}
body .highlight-card::before {
    height: 5px;
    background: linear-gradient(90deg, #f7841e 0%, #fbbf24 35%, #22c55e 70%, #15913b 100%);
}
body .device-prime-tag { color: rgba(255, 255, 255, 0.9) !important; }
body .table-card > h3 { padding: 22px 24px 4px; }
body .b2b-card .box-tag { display: inline-block; width: auto; }
body .feature-icon-wrapper {
    width: 60px; height: 60px;
    border-radius: 18px;
    font-size: 28px;
    color: #fff;
    box-shadow: 0 12px 24px -10px rgba(10, 31, 92, 0.45);
}
body .feature-icon-wrapper.icon-blue { background: linear-gradient(135deg, #1d4ed8, #0a1f5c); }
body .feature-icon-wrapper.icon-cyan { background: linear-gradient(135deg, #38bdf8, #1d4ed8); }
body .feature-icon-wrapper.icon-emerald { background: var(--grad-emerald); }
body .feature-icon-wrapper.icon-amber { background: var(--grad-accent); }
body .feature-icon-wrapper.icon-purple { background: linear-gradient(135deg, #a855f7, #6d28d9); }
body .feature-card h3 { font-size: 20px; font-weight: 800; color: var(--text-primary); }
body .feature-list li::before { color: var(--tp-green); }

/* Services: colourful tiles */
body .services-grid-8 { gap: 18px; }
body .service-box { padding: 30px 22px; background: var(--bg-card); }
body .service-box-icon {
    width: 68px; height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    background: linear-gradient(135deg, rgba(247, 132, 30, 0.14), rgba(29, 78, 216, 0.12));
    border: 1px solid rgba(247, 132, 30, 0.22);
    transition: transform 0.35s ease, background 0.35s ease;
}
body .service-box:nth-child(4n+2) .service-box-icon { background: linear-gradient(135deg, rgba(29, 78, 216, 0.16), rgba(56, 189, 248, 0.12)); border-color: rgba(29, 78, 216, 0.22); }
body .service-box:nth-child(4n+3) .service-box-icon { background: linear-gradient(135deg, rgba(21, 145, 59, 0.16), rgba(34, 197, 94, 0.1)); border-color: rgba(21, 145, 59, 0.22); }
body .service-box:nth-child(4n+4) .service-box-icon { background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.1)); border-color: rgba(168, 85, 247, 0.22); }
body .service-box:hover .service-box-icon { transform: scale(1.12) rotate(-6deg); }
body .service-box h4 { font-size: 16.5px; font-weight: 800; }

/* B2B vs D2C */
body .b2b-card { padding: 34px; }
body .trupe-box {
    background: linear-gradient(150deg, var(--tp-navy-dark) 0%, var(--tp-navy) 60%, #143a8f 100%) !important;
    border: none !important;
    color: #fff;
    box-shadow: 0 30px 60px -24px rgba(10, 31, 92, 0.7);
}
body .trupe-box h3 { color: #fff; }
body .trupe-box .b2b-desc { color: rgba(226, 232, 255, 0.85); }
body .trupe-box .box-tag { background: rgba(34, 197, 94, 0.18); color: #86efac; border-color: rgba(34, 197, 94, 0.35); }
body .badge-trupe { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
body .badge-trupe-gold { background: var(--grad-accent); color: #fff; border: none; }

/* ---------- Tables ---------- */
body .comparison-table-wrapper,
body .table-card { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; background: var(--bg-card); }

/* Mobile: small tables fit the screen; the wide 6-column chart scrolls sideways. */
@media (max-width: 768px) {
    body .comparison-table,
    body .commission-table { min-width: 0; width: 100%; font-size: 12.5px; }
    body .comparison-table th, body .comparison-table td,
    body .commission-table th, body .commission-table td { padding: 11px 8px; }
    body .comparison-table th, body .commission-table th { font-size: 11px; letter-spacing: 0.2px; white-space: normal; }
    body .commission-table:has(th:nth-child(6)) { min-width: 560px; }
    body .table-card:has(th:nth-child(6))::after {
        content: "← Swipe to see more →";
        display: block;
        padding: 8px 12px 12px;
        font-size: 11.5px;
        color: var(--text-secondary);
        text-align: center;
    }
    body .commission-table .badge-pill { padding: 5px 9px; font-size: 11.5px; white-space: nowrap; }
    body .level-badge { white-space: nowrap; font-size: 11.5px; padding: 4px 8px; }
    /* The rank cards repeat the royalty table on small screens */
    body .tp-hide-mobile { display: none !important; }
}
body .comparison-table thead th,
body .commission-table thead th {
    background: var(--tp-navy) !important;
    color: #fff !important;
    font-weight: 700;
    letter-spacing: 0.4px;
    border: none;
}
body .comparison-table thead th.prime-th {
    background: var(--grad-accent) !important;
    color: #fff !important;
}
body .comparison-table td.prime-col { background: rgba(247, 132, 30, 0.06); }
body .comparison-table tbody tr:nth-child(even),
body .commission-table tbody tr:nth-child(even) { background: rgba(10, 31, 92, 0.025); }
[data-theme="dark"] body .comparison-table tbody tr:nth-child(even),
[data-theme="dark"] body .commission-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.025); }
body .comparison-table tbody tr:hover,
body .commission-table tbody tr:hover { background: rgba(247, 132, 30, 0.07); }
body .level-badge { background: rgba(10, 31, 92, 0.08); color: var(--tp-navy); border-radius: 99px; }
[data-theme="dark"] body .level-badge { background: rgba(96, 165, 250, 0.15); color: #bfdbfe; }
body .level-badge.badge-gold { background: var(--grad-accent); color: #fff; }
body .income-val { color: var(--tp-green); }
body .income-val.gold-val {
    background: var(--grad-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.08em;
}
body .rate-badge { background: rgba(21, 145, 59, 0.12); color: var(--tp-green); border-radius: 99px; }
body .table-footer-note {
    background: linear-gradient(90deg, rgba(247, 132, 30, 0.1), rgba(21, 145, 59, 0.08));
    border-top: 1px solid var(--border-glass);
}

/* ---------- Prime membership ---------- */
body .prime-banner-card {
    background:
        radial-gradient(circle at 0% 50%, rgba(247, 132, 30, 0.3) 0%, transparent 45%),
        linear-gradient(140deg, var(--tp-navy-deep) 0%, var(--tp-navy) 60%, #163b94 100%) !important;
    border: 1px solid rgba(247, 132, 30, 0.35) !important;
    border-radius: 28px;
    box-shadow: 0 40px 80px -30px rgba(10, 31, 92, 0.75);
    color: #fff;
}
body .prime-banner-card h2 { color: #fff; }
body .prime-banner-card p { color: rgba(226, 232, 255, 0.82) !important; }
body .prime-badge-circle {
    background: var(--grad-accent);
    box-shadow: 0 0 0 10px rgba(247, 132, 30, 0.16), 0 0 0 22px rgba(247, 132, 30, 0.08), 0 20px 40px -10px rgba(247, 132, 30, 0.8);
    animation: tpPulse 3s ease-in-out infinite;
}
@keyframes tpPulse {
    0%, 100% { box-shadow: 0 0 0 10px rgba(247, 132, 30, 0.16), 0 0 0 22px rgba(247, 132, 30, 0.08), 0 20px 40px -10px rgba(247, 132, 30, 0.8); }
    50% { box-shadow: 0 0 0 14px rgba(247, 132, 30, 0.2), 0 0 0 30px rgba(247, 132, 30, 0.06), 0 20px 40px -10px rgba(247, 132, 30, 0.8); }
}
body .prime-banner-card .benefit-item { color: rgba(236, 241, 255, 0.92); }
body .prime-banner-card .benefit-item strong { color: #fff; }
body .prime-banner-card .check-icon { background: var(--grad-emerald); color: #fff; }
body .prime-tax-breakdown { border-color: rgba(255, 255, 255, 0.14); }
body .prime-banner-card .tax-item {
    color: rgba(226, 232, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 6px 14px;
    border-radius: 99px;
}
body .prime-banner-card .tax-item strong { color: var(--tp-gold); }

/* ---------- 14 income types ---------- */
body .income-types-grid { gap: 14px; }
body .income-item {
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-md);
    font-weight: 700;
}
body .income-item:hover { transform: translateY(-4px); border-color: rgba(247, 132, 30, 0.4); box-shadow: var(--shadow-lg); }
body .income-num {
    background: var(--grad-primary);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px -8px rgba(10, 31, 92, 0.6);
}
body .income-item:hover .income-num { background: var(--grad-accent); }

/* ---------- Rank cards ---------- */
body .rank-benefit-card { border-top: 5px solid transparent; padding-top: 26px; }
body .rank-benefit-card.bronze-tier { border-top-color: #b45309; }
body .rank-benefit-card.silver-tier { border-top-color: #94a3b8; }
body .rank-benefit-card.gold-tier { border-top-color: #f59e0b; }
body .rank-benefit-card.plat-tier { border-top-color: #0284c7; }
body .rank-benefit-card.crown-tier { border-top-color: #9333ea; }
body .rank-benefit-card.diamond-tier { border-top-color: #2563eb; }
body .rank-benefit-card.royal-tier {
    border-top-color: var(--tp-orange);
    background: linear-gradient(160deg, var(--tp-navy-dark), var(--tp-navy)) !important;
    color: #fff;
}
body .rank-benefit-card.royal-tier h4,
body .rank-benefit-card.royal-tier strong { color: #fff; }
body .rank-benefit-card.royal-tier .rank-criteria-text,
body .rank-benefit-card.royal-tier .perk-highlight { color: rgba(226, 232, 255, 0.86); }
body .rank-benefit-card.royal-tier .perk-highlight { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
body .rank-tier-badge { background: rgba(10, 31, 92, 0.07); color: var(--tp-navy); border-radius: 99px; font-weight: 800; }
[data-theme="dark"] body .rank-tier-badge { background: rgba(96, 165, 250, 0.15); color: #bfdbfe; }
body .royal-tier .rank-tier-badge { background: var(--grad-accent); color: #fff; }
body .rank-badge-icon { font-size: 38px; filter: drop-shadow(0 6px 10px rgba(10, 31, 92, 0.2)); }

/* ---------- Calculator ---------- */
body .calc-wrapper {
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-lg);
}
body .calc-results {
    background:
        radial-gradient(circle at 100% 0%, rgba(247, 132, 30, 0.35) 0%, transparent 55%),
        linear-gradient(150deg, var(--tp-navy-deep), var(--tp-navy)) !important;
    color: #fff;
}
body .calc-output-num {
    background: linear-gradient(90deg, #fde68a, #f7841e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(34px, 4vw, 48px);
}
body .calc-output-label { color: rgba(226, 232, 255, 0.82); }
body .calc-rate-badge { background: rgba(34, 197, 94, 0.18); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.35); }
body .form-control:focus { border-color: var(--tp-orange); box-shadow: 0 0 0 4px rgba(247, 132, 30, 0.15); }

/* ---------- Management & legal ---------- */
body .management-avatar {
    background: var(--grad-primary);
    box-shadow: 0 0 0 5px rgba(247, 132, 30, 0.2), 0 14px 28px -10px rgba(10, 31, 92, 0.6);
}
body .management-role { color: var(--tp-orange-dark); }
body .legal-badge-item {
    border-radius: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    font-weight: 700;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
body .legal-badge-item:hover { transform: translateY(-3px); border-color: rgba(21, 145, 59, 0.45); }

/* ---------- Download CTA band ---------- */
body #download {
    background:
        radial-gradient(ellipse 50% 80% at 90% 10%, rgba(247, 132, 30, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 40% 70% at 5% 100%, rgba(21, 145, 59, 0.3) 0%, transparent 60%),
        linear-gradient(150deg, var(--tp-navy-deep) 0%, var(--tp-navy) 70%) !important;
    color: #fff;
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
    padding-top: 130px;
}
body #download .section-header h2 { color: #fff; }
body #download .section-header p,
body #download p { color: rgba(226, 232, 255, 0.85) !important; }
body #download strong { color: #fff; }
body #download .section-subtitle { background: rgba(247, 132, 30, 0.18); color: #fdba74 !important; }
body #download .btn-primary { background: var(--grad-accent); box-shadow: 0 14px 30px -10px rgba(247, 132, 30, 0.8); }
body #download .btn-secondary { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff !important; }

/* ---------- Generic buttons ---------- */
body .btn-primary { background: var(--grad-accent); border-radius: 14px; }
body .btn-primary:hover { box-shadow: 0 16px 32px -10px rgba(247, 132, 30, 0.85); }

/* ---------- Footer ---------- */
body footer {
    background: linear-gradient(180deg, var(--tp-navy-deep) 0%, #020717 100%) !important;
    color: rgba(226, 232, 255, 0.78);
    border-top: none;
    position: relative;
}
body footer::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--grad-tricolor);
}
body footer h3, body footer h4 { color: #fff !important; }
body footer p, body footer li, body footer span,
body footer .footer-desc { color: rgba(226, 232, 255, 0.72) !important; }
body footer strong { color: #fff; }
body footer a,
body footer .footer-links-list a { color: rgba(226, 232, 255, 0.8) !important; }
body footer .footer-links-list a:hover { color: var(--tp-orange) !important; }
body footer .btn-whatsapp,
body footer .btn-whatsapp span { color: #fff !important; }
body footer a:hover { color: var(--tp-orange); }
body footer .brand-logo .logo-img { background: #fff; border-radius: 14px; padding: 4px; }
body footer .footer-bottom { border-top-color: rgba(255, 255, 255, 0.1); }

/* ---------- Scroll reveal (added by script; content stays visible without JS) ---------- */
.tp-reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.tp-reveal.tp-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .tp-reveal { opacity: 1; transform: none; transition: none; }
    body .mock-device, body .prime-badge-circle { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    body .hero { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 30px), 0 100%); padding-bottom: 80px; }
    body #download { clip-path: polygon(0 26px, 100% 0, 100% 100%, 0 100%); padding-top: 90px; }
    body .features, body .commissions, body .calculator-sec { padding: 64px 0; }
    body .hero-stat-item { min-width: 0; flex: 1 1 140px; }
    body .feature-card { padding: 26px 22px; }
}
