:root {
    --bg-color: #0b0f1a;
    --card-bg: rgba(17, 24, 39, 0.6);
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.3);
    --secondary: #10b981;
    --emerald: #34d399;
    --emerald-glow: rgba(52, 211, 153, 0.2);
    --gold: #fbbf24;
    --gold-glow: rgba(251, 191, 36, 0.2);
    --accent: #f59e0b;
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-blur: blur(12px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -250px;
    right: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary);
    bottom: -200px;
    left: -100px;
    animation-delay: -5s;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to { transform: translate(100px, 100px); }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.highlight-emerald {
    border-color: rgba(52, 211, 153, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(11, 15, 26, 0.6) 100%);
}

#pension-summary {
    padding: 2.5rem;
    text-align: center;
}

.pension-header h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.pension-total {
    font-size: 4rem;
    font-weight: 700;
    color: var(--emerald);
    text-shadow: 0 0 20px var(--emerald-glow);
    margin-bottom: 2rem;
}

.pension-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    text-align: left;
}

.pension-item label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.input-wrapper.small span {
    font-size: 1.2rem;
    left: 1rem;
}

.input-wrapper.small input {
    font-size: 1.2rem;
    padding: 0.8rem 1rem 0.8rem 2.2rem;
}

.converted-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.asset-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.wealth-progress {
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar {
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    margin-bottom: 1rem;
}

.fill {
    height: 100%;
    transition: width 0.5s ease;
}

.fill.stable { background-color: var(--primary); }
.fill.variable { background-color: var(--emerald); }

.progress-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.legend-dot.stable { background-color: var(--primary); }
.legend-dot.variable { background-color: var(--emerald); }

.highlight-gold {
    border-color: rgba(251, 191, 36, 0.2);
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.05) 0%, rgba(11, 15, 26, 0.6) 100%);
}

#tax-efficiency {
    margin-top: 2rem;
    padding: 2.5rem;
}

.state-pension-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.state-pension-box h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.pension-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.pension-calculator {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.pension-projection {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.projection-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.projection-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.projection-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.ni-progress-fill {
    height: 100%;
    background: var(--primary);
    transition: width 0.3s ease;
}

.projection-footer {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.projection-footer.warning {
    color: #ef4444;
}

.retirement-countdown {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--primary);
}

.timeline-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.75rem;
    color: var(--emerald);
    font-weight: 600;
}

.pension-agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.05);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    font-size: 0.85rem;
}

.pension-agreement i {
    color: var(--gold);
    font-size: 1.2rem;
}

.input-group.mini { margin: 0; }
.input-wrapper.mini input { font-size: 1.2rem; padding: 0.8rem 1rem; }

.tax-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--emerald);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.tax-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
    align-items: center;
}

.tax-meter-container {
    display: flex;
    justify-content: center;
}

.tax-meter {
    position: relative;
    width: 250px;
}

.meter-value {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
}

.meter-label {
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.tax-allowances {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.allowance-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.allowance-row .value {
    color: var(--gold);
    font-weight: 600;
}

.allowance-footer {
    padding: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-left: 3px solid var(--gold);
    background: rgba(251, 191, 36, 0.05);
}

.wealth-protection {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.wealth-protection h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.action-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.action-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
}

.action-card i {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.action-card h4 {
    margin-bottom: 0.8rem;
}

.action-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.disclaimer {
    margin-top: 3rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

#hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.live-rate-container {
    display: flex;
    justify-content: center;
}

.rate-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem 4rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.rate-value {
    font-size: 4.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.trend-icon {
    font-size: 2rem;
}

.trend-up { color: var(--secondary); }
.trend-down { color: #ef4444; }

.market-cue {
    margin-top: 1rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.cue-positive {
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.cue-negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.last-updated {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-legend {
    display: flex;
    gap: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.aud { background-color: var(--primary); }

.canvas-container {
    height: 400px;
    width: 100%;
}

.grid-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
    }
}

.input-group {
    margin: 2rem 0;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper span {
    position: absolute;
    left: 1.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

input[type="number"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1rem 1rem 3rem;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

input[type="number"]:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.results-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comp-box {
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.comp-box.highlight {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(16, 185, 129, 0.1) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.comp-box h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.amount-result {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.fee-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.savings-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.savings-value {
    font-size: 1.2rem;
    font-weight: 600;
}

#savings-amount {
    color: var(--secondary);
    font-size: 1.5rem;
}

.strategy-tips {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.tip-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    transition: var(--transition);
}

.tip-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tip-item i {
    font-size: 1.8rem;
    color: var(--primary);
    margin-top: 0.2rem;
}

.tip-item h4 {
    margin-bottom: 0.3rem;
    font-size: 1rem;
}

.tip-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

footer {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    .rate-value { font-size: 2.5rem; }
    .results-comparison { grid-template-columns: 1fr; }
    .rate-box { padding: 1.5rem 2rem; }
}

/* Navigation Back to Hub */
.nav-home {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #4b0082;
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 999999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    box-shadow: 0 0 20px rgba(75, 0, 130, 0.6);
}

.nav-home svg { 
    width: 1.8rem; 
    height: 1.8rem; 
    stroke: currentColor; 
}

.nav-home:hover {
    transform: scale(1.1) rotate(-10deg);
    background: white;
    color: #4b0082;
}

/* ===== Find Deals Button ===== */
.find-deals-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin-top: 1.5rem;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    color: white;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px var(--primary-glow);
    letter-spacing: 0.3px;
}

.find-deals-btn i {
    font-size: 1.5rem;
}

.find-deals-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(59, 130, 246, 0.5);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.find-deals-btn:active {
    transform: translateY(0);
}

/* ===== Deals Panel ===== */
#deals-panel {
    display: none;
    margin-top: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.deals-animate-in {
    animation: dealsFadeIn 0.3s ease-out;
}

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

.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(59, 130, 246, 0.05);
}

.deals-header h3 {
    font-size: 1rem;
    color: var(--text-primary);
}

.deals-header h3 span {
    color: var(--primary);
    font-weight: 700;
}

.deals-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.deals-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.deals-scroll {
    padding: 0.5rem;
}

/* ===== Collapsible Table Wrapper ===== */

.dt-wrapper {
    margin-bottom: 0.5rem;
}

.dt-wrapper:last-child {
    margin-bottom: 0;
}

.dt-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0.85rem 1rem;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

.dt-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
}

.dt-toggle[aria-expanded="true"] {
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

.dt-toggle-icon {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--primary);
    width: 20px;
}

.dt-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.dt-toggle-label i {
    font-size: 1.1rem;
    color: var(--primary);
}

.dt-toggle-count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

/* ===== Table ===== */

.dt-table-wrap {
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow-x: auto;
}

.dt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.dt-table thead th {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.65rem 0.6rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.dt-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition);
}

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

.dt-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.dt-row-best {
    background: rgba(16, 185, 129, 0.06);
}

.dt-row-best:hover {
    background: rgba(16, 185, 129, 0.1);
}

.dt-td {
    padding: 0.6rem 0.6rem;
    vertical-align: middle;
}

.dt-td-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.dt-td-provider {
    min-width: 150px;
}

.dt-provider-name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.dt-provider-name i {
    font-size: 1rem;
}

.dt-crown {
    color: var(--gold);
    font-size: 0.9rem;
}

.dt-badge-group {
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: var(--primary);
    background: rgba(59, 130, 246, 0.12);
    padding: 1px 6px;
    border-radius: 6px;
    white-space: nowrap;
}

.dt-provider-tag {
    font-size: 0.65rem;
    color: var(--text-secondary);
    margin-top: 2px;
    padding-left: 1.6rem;
}

.dt-td-cost {
    color: var(--accent);
}

.dt-td-get {
    color: var(--emerald);
    font-weight: 700;
}

.dt-td-speed {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.dt-save-pos {
    color: var(--emerald);
    font-weight: 600;
}

.dt-save-neg {
    color: #ef4444;
    font-size: 0.75rem;
}

.dt-save-na {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.dt-visit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 1.1rem;
}

.dt-visit:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.dt-td-link {
    padding: 0.6rem 0.4rem;
    text-align: center;
}


/* ===== Loading Spinner ===== */

.deals-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 2.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

.deals-spinner {
    font-size: 1.6rem;
    color: var(--primary);
    animation: dealsSpin 1s linear infinite;
}

@keyframes dealsSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== Top 10 Section ===== */

.dt-top-wrapper {
    margin-bottom: 0.75rem;
}

.dt-top-toggle {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(245, 158, 11, 0.04));
    border-color: rgba(251, 191, 36, 0.2);
}

.dt-top-toggle:hover {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.08));
    border-color: rgba(251, 191, 36, 0.35);
}

.dt-top-toggle .dt-toggle-label i {
    color: var(--gold);
}

.dt-top-toggle .dt-toggle-count {
    background: rgba(251, 191, 36, 0.12);
    color: var(--gold);
}


.dt-margin-gbp {
    color: var(--accent);
    font-weight: 600;
}
/* ===== Empty state ===== */

.deals-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.deals-empty i {
    font-size: 2rem;
    display: block;
}

.deals-disclaimer {
    padding: 0.75rem 1.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    .dt-table thead th,
    .dt-td {
        padding: 0.4rem 0.3rem;
        font-size: 0.7rem;
    }
    .dt-td-provider {
        min-width: 100px;
    }
    .dt-provider-name {
        font-size: 0.75rem;
    }
    .dt-provider-tag {
        display: none;
    }
    .dt-td-speed {
        display: none;
    }
    .dt-td-cost {
        display: none;
    }
}
