/**
 * Turkpidya Fuel Prices - PREMIUM Light Theme
 * Enhanced with: Glassmorphism, Colored Shadows, Premium Typography, Tactile Interactions
 * Inspired by FuelCalcPro React Design + Premium Energy Theme
 */

/* ============================================
   GOOGLE FONTS - Premium Typography
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Oswald:wght@500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES - Premium Energy Theme
   ============================================ */
:root {
    /* Brand - Crimson (Deeper, more authoritative) */
    --tfp-brand: #DC2626;
    --tfp-brand-light: #EF4444;
    --tfp-brand-dark: #B91C1C;
    --tfp-brand-50: #FEF2F2;
    --tfp-brand-100: #FEE2E2;

    /* Primary - Electric Indigo (Vibrant accent) */
    --tfp-indigo: #4F46E5;
    --tfp-indigo-light: #6366F1;
    --tfp-indigo-dark: #3730A3;
    --tfp-indigo-50: #EEF2FF;
    --tfp-indigo-100: #E0E7FF;

    /* Fuel Type Colors - Premium Energy Theme */
    --tfp-emerald: #059669;          /* Benzin - Emerald-Teal */
    --tfp-emerald-light: #10B981;
    --tfp-emerald-glow: rgba(5, 150, 105, 0.4);

    --tfp-blue: #4F46E5;             /* Motorin - Electric Indigo */
    --tfp-blue-light: #6366F1;
    --tfp-blue-glow: rgba(79, 70, 229, 0.4);

    --tfp-orange: #D97706;           /* LPG - Warm Amber */
    --tfp-orange-light: #F59E0B;
    --tfp-orange-glow: rgba(217, 119, 6, 0.4);

    --tfp-violet: #7C3AED;           /* Eurodizel - Royal Violet */
    --tfp-violet-light: #8B5CF6;
    --tfp-violet-glow: rgba(124, 58, 237, 0.4);

    /* Light Theme - Ghost White Background */
    --tfp-bg: #F8FAFC;
    --tfp-bg-card: #FFFFFF;
    --tfp-bg-glass: rgba(255, 255, 255, 0.7);
    --tfp-text: #1E293B;
    --tfp-text-muted: #475569;
    --tfp-text-light: #94A3B8;
    --tfp-text-offwhite: #F1F5F9;    /* Off-white for dark backgrounds */
    --tfp-border: #E2E8F0;
    --tfp-border-light: #F1F5F9;

    /* Semantic Colors */
    --tfp-success: #22C55E;
    --tfp-warning: #F59E0B;
    --tfp-error: #EF4444;
    --tfp-rose: #F43F5E;

    /* Premium Shadows */
    --tfp-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --tfp-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --tfp-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --tfp-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --tfp-shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Colored Glow Shadows */
    --tfp-shadow-indigo: 0 10px 40px -10px rgba(79, 70, 229, 0.4);
    --tfp-shadow-emerald: 0 10px 30px -10px rgba(5, 150, 105, 0.35);
    --tfp-shadow-amber: 0 10px 30px -10px rgba(217, 119, 6, 0.35);
    --tfp-shadow-violet: 0 10px 30px -10px rgba(124, 58, 237, 0.35);

    /* Typography - Premium Fonts */
    --tfp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --tfp-font-display: 'Oswald', 'Inter', sans-serif;
    --tfp-font-mono: 'JetBrains Mono', 'SF Mono', 'Monaco', monospace;

    /* Premium Transitions - Fluid Physics */
    --tfp-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --tfp-transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --tfp-transition-fast: 0.2s ease;

    /* Squircle Corners - Modern iOS-style */
    --tfp-radius-sm: 0.75rem;
    --tfp-radius: 1rem;
    --tfp-radius-lg: 1.25rem;
    --tfp-radius-xl: 1.5rem;
    --tfp-radius-2xl: 2rem;
    --tfp-radius-3xl: 2.5rem;
}

/* ============================================
   PREMIUM ANIMATIONS
   ============================================ */
@keyframes tfp-ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes tfp-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes tfp-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes tfp-scale-in {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes tfp-number-tick {
    0% { transform: translateY(0); }
    25% { transform: translateY(-2px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(1px); }
    100% { transform: translateY(0); }
}

@keyframes tfp-glow-pulse {
    0%, 100% { box-shadow: 0 0 20px var(--tfp-indigo-glow, rgba(79, 70, 229, 0.3)); }
    50% { box-shadow: 0 0 35px var(--tfp-indigo-glow, rgba(79, 70, 229, 0.5)); }
}

/* Gauge Needle Wobble - Analog Instrument Effect */
@keyframes tfp-needle-wobble {
    0% { transform: translateX(-50%) rotate(var(--needle-rotation, -45deg)); }
    15% { transform: translateX(-50%) rotate(calc(var(--needle-rotation, -45deg) + 8deg)); }
    30% { transform: translateX(-50%) rotate(calc(var(--needle-rotation, -45deg) - 5deg)); }
    45% { transform: translateX(-50%) rotate(calc(var(--needle-rotation, -45deg) + 3deg)); }
    60% { transform: translateX(-50%) rotate(calc(var(--needle-rotation, -45deg) - 2deg)); }
    75% { transform: translateX(-50%) rotate(calc(var(--needle-rotation, -45deg) + 1deg)); }
    100% { transform: translateX(-50%) rotate(var(--needle-rotation, -45deg)); }
}

/* Slider Thumb Glow Pulse */
@keyframes tfp-thumb-glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3),
                    0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(79, 70, 229, 0.5),
                    0 0 0 8px rgba(79, 70, 229, 0.1);
    }
}

/* Float animation for cards */
@keyframes tfp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

/* ============================================
   FORCE FULL-PAGE EXPERIENCE - Kadence Theme
   ============================================ */
.wp-theme-kadence .hero-container,
.wp-theme-kadence .entry-header,
.wp-theme-kadence .page-title,
.wp-theme-kadence .entry-title,
.page-id-1249702 .hero-container,
.page-id-1249702 .entry-header,
.page-id-1249703 .hero-container,
.page-id-1249703 .entry-header,
.page-id-1249704 .hero-container,
.page-id-1249704 .entry-header,
.page-id-1249705 .hero-container,
.page-id-1249705 .entry-header,
.tfp-container ~ .entry-header,
.has-fuel-prices .entry-header,
.has-fuel-prices .page-header,
.has-fuel-prices .hero-section {
    display: none !important;
}

.tfp-container {
    margin-top: 0 !important;
}

.page-id-1249702 #main,
.page-id-1249703 #main,
.page-id-1249704 #main,
.page-id-1249705 #main,
.page-id-1249702 .content-wrap,
.page-id-1249703 .content-wrap,
.page-id-1249704 .content-wrap,
.page-id-1249705 .content-wrap,
.page-id-1249702 article,
.page-id-1249703 article,
.page-id-1249704 article,
.page-id-1249705 article {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.page-id-1249702 .site-main,
.page-id-1249703 .site-main,
.page-id-1249704 .site-main,
.page-id-1249705 .site-main {
    padding-top: 0 !important;
}

.page-id-1249702 .entry-hero,
.page-id-1249703 .entry-hero,
.page-id-1249704 .entry-hero,
.page-id-1249705 .entry-hero,
.page-id-1249702 .page-hero-section,
.page-id-1249703 .page-hero-section,
.page-id-1249704 .page-hero-section,
.page-id-1249705 .page-hero-section {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.page-id-1249702 .entry-hero .entry-title,
.page-id-1249703 .entry-hero .entry-title,
.page-id-1249704 .entry-hero .entry-title,
.page-id-1249705 .entry-hero .entry-title {
    display: none !important;
}

.wp-theme-kadence .entry-content,
.wp-theme-kadence .site-container,
.wp-theme-kadence .content-container,
.wp-theme-kadence article.entry,
.page-id-1249702 .entry-content,
.page-id-1249702 .site-container,
.page-id-1249703 .entry-content,
.page-id-1249704 .entry-content,
.page-id-1249705 .entry-content {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wp-theme-kadence.content-style-boxed .entry-content-wrap,
.content-style-boxed .entry-content-wrap {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
}

.page-id-1249702,
.page-id-1249703,
.page-id-1249704,
.page-id-1249705 {
    background: var(--tfp-bg) !important;
}

.page-id-1249702 #inner-wrap,
.page-id-1249703 #inner-wrap,
.page-id-1249704 #inner-wrap,
.page-id-1249705 #inner-wrap {
    background: var(--tfp-bg) !important;
}

/* ============================================
   BASE CONTAINER
   ============================================ */
.tfp-container {
    font-family: var(--tfp-font);
    background: var(--tfp-bg);
    color: var(--tfp-text);
    min-height: 100vh;
    padding-bottom: 3rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.tfp-container *,
.tfp-container *::before,
.tfp-container *::after {
    box-sizing: border-box;
}

/* ============================================
   HEADER - Floating Capsule Style
   ============================================ */
.tfp-header-bar {
    background: var(--tfp-bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 50;
    transition: var(--tfp-transition);
}

/* Floating header variant - uncomment to enable */
/*
.tfp-header-bar {
    position: sticky;
    top: 1rem;
    margin: 1rem;
    border-radius: var(--tfp-radius-2xl);
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: var(--tfp-shadow-lg);
}
*/

.tfp-header-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tfp-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tfp-logo-icon {
    background: linear-gradient(135deg, var(--tfp-indigo), var(--tfp-blue));
    padding: 0.625rem;
    border-radius: var(--tfp-radius-lg);
    color: white;
    box-shadow: var(--tfp-shadow-lg), var(--tfp-shadow-indigo);
}

.tfp-logo-icon i {
    font-size: 1.25rem;
    display: block;
}

.tfp-logo-text h1 {
    font-family: var(--tfp-font) !important;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    color: var(--tfp-text);
    letter-spacing: -0.025em;
    margin: 0;
}

.tfp-logo-text h1 span {
    color: var(--tfp-indigo);
}

.tfp-logo-date {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--tfp-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

.tfp-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tfp-currency-toggle {
    display: none;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--tfp-radius-lg);
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--tfp-border-light);
    color: #94a3b8;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--tfp-transition);
}

.tfp-currency-toggle:hover {
    background: var(--tfp-bg-card);
    border-color: var(--tfp-indigo-100);
    color: var(--tfp-indigo);
}

@media (min-width: 640px) {
    .tfp-currency-toggle {
        display: flex;
    }
}

.tfp-live-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.15);
    color: var(--tfp-success);
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tfp-live-dot {
    position: relative;
    width: 0.5rem;
    height: 0.5rem;
}

.tfp-live-dot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tfp-success);
    border-radius: 50%;
    animation: tfp-ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.tfp-live-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--tfp-success);
    border-radius: 50%;
}

/* Official Prices Badge */
.tfp-official-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.15);
    color: var(--tfp-indigo);
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.tfp-official-badge i {
    font-size: 0.875rem;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.tfp-main {
    max-width: 72rem;
    margin: 0 auto;
    padding: 2rem 1rem;
}

@media (min-width: 640px) {
    .tfp-main {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   SECTION: FUEL MARKET RATES
   ============================================ */
.tfp-section {
    margin-bottom: 3rem;
}

.tfp-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tfp-section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tfp-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.tfp-section-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0.25rem 0 0;
}

.tfp-updated-badge {
    display: none;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--tfp-indigo);
    background: var(--tfp-indigo-50);
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    border: 1px solid var(--tfp-indigo-100);
    cursor: help;
}

.tfp-updated-badge i {
    font-size: 0.875rem;
}

@media (min-width: 640px) {
    .tfp-updated-badge {
        display: flex;
    }
}

/* ============================================
   FUEL TYPE CARDS - Glassmorphism + Lift Effect
   ============================================ */
.tfp-fuel-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .tfp-fuel-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tfp-fuel-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.tfp-fuel-card {
    position: relative;
    padding: 1.75rem;
    border-radius: var(--tfp-radius-2xl);
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: var(--tfp-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    text-align: left;
    cursor: pointer;
    transition: all var(--tfp-transition);
    overflow: hidden;
    outline: none;
}

/* Glassmorphism hover state - LIFT effect */
.tfp-fuel-card:hover {
    transform: translateY(-6px);
    border-color: rgba(226, 232, 240, 0.4);
    background: rgba(255, 255, 255, 0.85);
}

/* Colored shadow glow on hover - per fuel type */
.tfp-fuel-card[data-fuel="benzin95"]:hover {
    box-shadow: 0 20px 40px -15px var(--tfp-emerald-glow), var(--tfp-shadow-lg);
}

.tfp-fuel-card[data-fuel="motorin"]:hover {
    box-shadow: 0 20px 40px -15px var(--tfp-blue-glow), var(--tfp-shadow-lg);
}

.tfp-fuel-card[data-fuel="lpg"]:hover {
    box-shadow: 0 20px 40px -15px var(--tfp-orange-glow), var(--tfp-shadow-lg);
}

.tfp-fuel-card[data-fuel="eurodizel"]:hover {
    box-shadow: 0 20px 40px -15px var(--tfp-violet-glow), var(--tfp-shadow-lg);
}

/* Active state - stronger glow */
.tfp-fuel-card.active {
    transform: translateY(-8px);
    border-color: transparent;
    background: rgba(255, 255, 255, 0.95);
}

.tfp-fuel-card.active[data-fuel="benzin95"] {
    box-shadow: 0 25px 50px -15px var(--tfp-emerald-glow),
                var(--tfp-shadow-2xl),
                0 0 0 3px rgba(5, 150, 105, 0.15);
}

.tfp-fuel-card.active[data-fuel="motorin"] {
    box-shadow: 0 25px 50px -15px var(--tfp-blue-glow),
                var(--tfp-shadow-2xl),
                0 0 0 3px rgba(79, 70, 229, 0.15);
}

.tfp-fuel-card.active[data-fuel="lpg"] {
    box-shadow: 0 25px 50px -15px var(--tfp-orange-glow),
                var(--tfp-shadow-2xl),
                0 0 0 3px rgba(217, 119, 6, 0.15);
}

.tfp-fuel-card.active[data-fuel="eurodizel"] {
    box-shadow: 0 25px 50px -15px var(--tfp-violet-glow),
                var(--tfp-shadow-2xl),
                0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Card background decoration */
.tfp-fuel-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 10rem;
    height: 10rem;
    border-radius: 0 0 0 100%;
    opacity: 0.06;
    transition: all var(--tfp-transition);
}

.tfp-fuel-card:hover::before,
.tfp-fuel-card.active::before {
    opacity: 0.12;
    transform: scale(1.1);
}

.tfp-fuel-card[data-fuel="benzin95"]::before { background: linear-gradient(135deg, var(--tfp-emerald), var(--tfp-emerald-light)); }
.tfp-fuel-card[data-fuel="motorin"]::before { background: linear-gradient(135deg, var(--tfp-blue), var(--tfp-blue-light)); }
.tfp-fuel-card[data-fuel="lpg"]::before { background: linear-gradient(135deg, var(--tfp-orange), var(--tfp-orange-light)); }
.tfp-fuel-card[data-fuel="eurodizel"]::before { background: linear-gradient(135deg, var(--tfp-violet), var(--tfp-violet-light)); }

/* Bottom gradient line */
.tfp-fuel-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--tfp-transition);
    border-radius: 0 0 var(--tfp-radius-2xl) var(--tfp-radius-2xl);
}

.tfp-fuel-card:hover::after,
.tfp-fuel-card.active::after {
    transform: scaleX(1);
}

.tfp-fuel-card[data-fuel="benzin95"]::after { background: linear-gradient(90deg, var(--tfp-emerald), var(--tfp-emerald-light)); }
.tfp-fuel-card[data-fuel="motorin"]::after { background: linear-gradient(90deg, var(--tfp-blue), var(--tfp-blue-light)); }
.tfp-fuel-card[data-fuel="lpg"]::after { background: linear-gradient(90deg, var(--tfp-orange), var(--tfp-orange-light)); }
.tfp-fuel-card[data-fuel="eurodizel"]::after { background: linear-gradient(90deg, var(--tfp-violet), var(--tfp-violet-light)); }

.tfp-card-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tfp-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tfp-card-icon {
    padding: 0.625rem;
    border-radius: var(--tfp-radius-lg);
    backdrop-filter: blur(8px);
    transition: all var(--tfp-transition);
}

.tfp-card-icon i {
    font-size: 1.375rem;
}

.tfp-fuel-card[data-fuel="benzin95"] .tfp-card-icon {
    background: rgba(5, 150, 105, 0.12);
    color: var(--tfp-emerald);
}
.tfp-fuel-card[data-fuel="motorin"] .tfp-card-icon {
    background: rgba(79, 70, 229, 0.12);
    color: var(--tfp-blue);
}
.tfp-fuel-card[data-fuel="lpg"] .tfp-card-icon {
    background: rgba(217, 119, 6, 0.12);
    color: var(--tfp-orange);
}
.tfp-fuel-card[data-fuel="eurodizel"] .tfp-card-icon {
    background: rgba(124, 58, 237, 0.12);
    color: var(--tfp-violet);
}

/* Icon glow on active */
.tfp-fuel-card.active .tfp-card-icon {
    transform: scale(1.1);
}

.tfp-fuel-card.active[data-fuel="benzin95"] .tfp-card-icon {
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.3);
}
.tfp-fuel-card.active[data-fuel="motorin"] .tfp-card-icon {
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}
.tfp-fuel-card.active[data-fuel="lpg"] .tfp-card-icon {
    box-shadow: 0 4px 20px rgba(217, 119, 6, 0.3);
}
.tfp-fuel-card.active[data-fuel="eurodizel"] .tfp-card-icon {
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.tfp-selected-badge {
    font-size: 0.625rem;
    font-weight: 700;
    background: var(--tfp-text);
    color: white;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    display: none;
    letter-spacing: 0.05em;
}

.tfp-fuel-card.active .tfp-selected-badge {
    display: block;
}

.tfp-card-body {
    margin-top: auto;
}

.tfp-card-body h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tfp-text-light);
    margin: 0 0 0.375rem;
    transition: color var(--tfp-transition);
}

.tfp-fuel-card:hover .tfp-card-body h3,
.tfp-fuel-card.active .tfp-card-body h3 {
    color: #94a3b8;
}

.tfp-card-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

/* PREMIUM TYPOGRAPHY - Oswald for prices */
.tfp-card-price-value {
    font-family: var(--tfp-font-display);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #94a3b8;
    transition: all var(--tfp-transition);
}

.tfp-fuel-card:hover .tfp-card-price-value {
    color: var(--tfp-text);
}

.tfp-fuel-card.active .tfp-card-price-value {
    color: var(--tfp-text);
    transform: scale(1.02);
}

/* Color prices based on fuel type when active */
.tfp-fuel-card.active[data-fuel="benzin95"] .tfp-card-price-value { color: var(--tfp-emerald); }
.tfp-fuel-card.active[data-fuel="motorin"] .tfp-card-price-value { color: var(--tfp-blue); }
.tfp-fuel-card.active[data-fuel="lpg"] .tfp-card-price-value { color: var(--tfp-orange); }
.tfp-fuel-card.active[data-fuel="eurodizel"] .tfp-card-price-value { color: var(--tfp-violet); }

.tfp-card-price-unit {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--tfp-text-light);
}

/* ============================================
   CALCULATOR SECTION - Premium Glass Design
   ============================================ */
.tfp-calculator {
    background: var(--tfp-bg-card);
    border-radius: var(--tfp-radius-3xl);
    box-shadow: var(--tfp-shadow-xl), 0 10px 40px -20px rgba(79, 70, 229, 0.25);
    border: 1px solid var(--tfp-border-light);
    overflow: hidden;
    margin-bottom: 3rem;
}

.tfp-calculator-grid {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .tfp-calculator-grid {
        grid-template-columns: 7fr 5fr;
    }
}

/* Left Panel - Controls */
.tfp-calc-controls {
    padding: 2rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .tfp-calc-controls {
        padding: 2.5rem;
    }
}

.tfp-calc-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.tfp-calc-header-icon {
    padding: 0.625rem;
    background: var(--tfp-border-light);
    border-radius: var(--tfp-radius-lg);
    color: #94a3b8;
}

.tfp-calc-header-icon i {
    font-size: 1.25rem;
}

.tfp-calc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--tfp-text);
    margin: 0;
}

/* Vehicle Select - Spotlight Hover Effect */
.tfp-control-group {
    margin-bottom: 2.5rem;
}

.tfp-control-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--tfp-text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tfp-vehicle-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .tfp-vehicle-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Vehicle buttons - Spotlight hover effect */
.tfp-vehicle-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--tfp-radius-xl);
    border: 2px solid var(--tfp-border-light);
    background: var(--tfp-border-light);
    text-align: left;
    cursor: pointer;
    transition: all var(--tfp-transition);
    outline: none;
}

/* Spotlight hover - thick border, no fill */
.tfp-vehicle-btn:hover {
    border-color: var(--tfp-indigo-100);
    background: var(--tfp-bg-card);
    transform: translateY(-2px);
    box-shadow: var(--tfp-shadow);
}

.tfp-vehicle-btn.active {
    border-color: var(--tfp-indigo);
    background: rgba(79, 70, 229, 0.05);
    box-shadow: var(--tfp-shadow-sm), 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.tfp-vehicle-icon {
    padding: 0.625rem;
    border-radius: var(--tfp-radius-lg);
    background: var(--tfp-bg-card);
    color: var(--tfp-text-light);
    transition: all var(--tfp-transition);
}

.tfp-vehicle-btn:hover .tfp-vehicle-icon {
    color: var(--tfp-indigo);
}

.tfp-vehicle-btn.active .tfp-vehicle-icon {
    background: var(--tfp-indigo);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.tfp-vehicle-icon i {
    font-size: 1.25rem;
}

.tfp-vehicle-info h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #94a3b8;
    margin: 0;
    transition: color var(--tfp-transition);
}

.tfp-vehicle-btn:hover .tfp-vehicle-info h4 {
    color: var(--tfp-text);
}

.tfp-vehicle-btn.active .tfp-vehicle-info h4 {
    color: var(--tfp-indigo-dark);
}

.tfp-vehicle-info span {
    font-size: 0.6875rem;
    color: var(--tfp-text-light);
    font-weight: 500;
}

/* ============================================
   SLIDER - Tactile Glow Design
   ============================================ */
.tfp-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.tfp-slider-value-display {
    background: var(--tfp-text);
    color: white;
    padding: 0.375rem 0.875rem;
    border-radius: var(--tfp-radius-lg);
    font-family: var(--tfp-font-mono);
    font-size: 0.9375rem;
    font-weight: 700;
    box-shadow: var(--tfp-shadow-lg);
}

.tfp-slider-value-display span {
    opacity: 0.6;
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

.tfp-slider-track {
    position: relative;
    height: 3.5rem;
    display: flex;
    align-items: center;
    user-select: none;
}

.tfp-slider-bg {
    position: absolute;
    width: 100%;
    height: 0.875rem;
    background: linear-gradient(to right, var(--tfp-border-light), var(--tfp-border));
    border-radius: 9999px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.tfp-slider-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--tfp-indigo), var(--tfp-blue-light));
    border-radius: 9999px;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

.tfp-slider {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 20;
}

/* Tactile glowing thumb */
.tfp-slider-thumb {
    position: absolute;
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #FFFFFF, #F8FAFC);
    border: 3px solid var(--tfp-indigo);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3),
                0 2px 6px rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
    transition: transform 0.15s ease-out, box-shadow 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Inner metallic dot */
.tfp-slider-thumb::after {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: linear-gradient(135deg, var(--tfp-indigo), var(--tfp-blue-light));
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(79, 70, 229, 0.5);
}

/* Glow pulse on hover/active */
.tfp-slider-track:hover .tfp-slider-thumb,
.tfp-slider:active + .tfp-slider-thumb,
.tfp-slider:focus + .tfp-slider-thumb {
    transform: scale(1.15);
    animation: tfp-thumb-glow 1.5s ease-in-out infinite;
}

/* Quick Amount Buttons */
.tfp-quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.tfp-quick-btn {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--tfp-radius-lg);
    border: 1px solid var(--tfp-border);
    background: var(--tfp-bg-card);
    color: #94a3b8;
    cursor: pointer;
    transition: all var(--tfp-transition);
}

.tfp-quick-btn:hover {
    border-color: var(--tfp-indigo-100);
    background: var(--tfp-indigo-50);
    color: var(--tfp-indigo);
    transform: translateY(-1px);
}

.tfp-quick-btn:active {
    transform: scale(0.95);
}

.tfp-quick-btn.active {
    background: var(--tfp-text);
    color: white;
    border-color: var(--tfp-text);
    box-shadow: var(--tfp-shadow);
}

/* ============================================
   RIGHT PANEL - CAR INSTRUMENT CLUSTER STYLE
   Dashboard aesthetic with sharp edges, scan lines, LED displays
   ============================================ */
.tfp-calc-results {
    /* Dark carbon fiber / dashboard texture background */
    background:
        /* Subtle scan lines for LED display effect */
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.03) 2px,
            rgba(0, 0, 0, 0.03) 4px
        ),
        /* Carbon fiber diagonal texture */
        repeating-linear-gradient(
            45deg,
            #0a0f1a 0px,
            #0a0f1a 1px,
            #0d1420 1px,
            #0d1420 3px
        ),
        /* Base gradient - deeper, more industrial */
        linear-gradient(180deg, #080c14 0%, #0d1420 50%, #0a0f1a 100%);
    color: var(--tfp-text-offwhite);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Sharp corner on top-right for industrial feel */
    border-radius: 0;
}

@media (min-width: 640px) {
    .tfp-calc-results {
        padding: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .tfp-calc-results {
        /* Chamfered corner effect - industrial edge */
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    }
}

/* Remove startup-style ambient blur orbs - replaced with instrument bezels */
.tfp-calc-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    /* Instrument panel top edge highlight */
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.3) 20%,
        rgba(59, 130, 246, 0.5) 50%,
        rgba(59, 130, 246, 0.3) 80%,
        transparent 100%
    );
    animation: none;
    filter: none;
    border-radius: 0;
    opacity: 1;
    width: 100%;
}

.tfp-calc-results::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    /* Bottom edge accent */
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 100%
    );
    filter: none;
    border-radius: 0;
    opacity: 1;
    width: 100%;
}

/* Dashboard header strip */
.tfp-results-header {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    /* Instrument bezel effect */
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    /* Inner shadow for recessed look */
    box-shadow:
        inset 0 1px 3px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

.tfp-results-fuel {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tfp-results-fuel-label {
    color: #64748b;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tfp-results-fuel-name {
    font-family: var(--tfp-font-mono);
    font-weight: 700;
    font-size: 0.875rem;
    color: #3b82f6;
    /* LED glow effect */
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.tfp-results-fuel-price {
    font-size: 0.75rem;
    color: #22c55e;
    font-family: var(--tfp-font-mono);
    font-weight: 600;
    /* Green LED indicator style */
    text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
    padding: 0.25rem 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 2px;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.tfp-results-content {
    position: relative;
    z-index: 10;
    flex: 1;
}

/* ============================================
   DIGITAL ODOMETER / FUEL PUMP DISPLAY
   ============================================ */
.tfp-total-block {
    margin-bottom: 2rem;
    transition: transform 0.15s ease;
    /* Recessed display area */
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    /* Deep inset shadow for screen effect */
    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.6),
        inset 0 0 20px rgba(0, 0, 0, 0.3),
        0 1px 0 rgba(255, 255, 255, 0.05);
}

.tfp-total-block.animate {
    transform: scale(1.01);
}

.tfp-total-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tfp-total-label #tfp-vehicle-name {
    color: #94a3b8;
    font-size: 0.75rem;
    font-family: var(--tfp-font-mono);
}

.tfp-tank-label {
    color: #22c55e;
    font-size: 0.5625rem;
    font-weight: 700;
    background: rgba(34, 197, 94, 0.15);
    padding: 0.125rem 0.5rem;
    border-radius: 2px;
    border: 1px solid rgba(34, 197, 94, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* LED indicator glow */
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.2);
}

.tfp-total-value {
    display: flex;
    align-items: baseline;
    gap: 0.125rem;
}

.tfp-total-currency {
    font-family: var(--tfp-font-mono);
    font-size: 1.5rem;
    font-weight: 500;
    color: #475569;
}

/* DIGITAL FUEL PUMP DISPLAY - Main Price */
.tfp-total-amount {
    font-family: var(--tfp-font-mono);
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    /* Amber/Orange LED display color - like gas station pumps */
    color: #fbbf24;
    /* LED segment glow effect */
    text-shadow:
        0 0 10px rgba(251, 191, 36, 0.6),
        0 0 20px rgba(251, 191, 36, 0.4),
        0 0 40px rgba(251, 191, 36, 0.2);
    /* Remove gradient text effect */
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: #fbbf24;
    background-clip: unset;
}

@media (min-width: 640px) {
    .tfp-total-amount {
        font-size: 4rem;
    }
}

/* ============================================
   RANGE GAUGE - Instrument Cluster Style
   ============================================ */
.tfp-range-block {
    /* Gauge housing */
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    /* Recessed instrument look */
    box-shadow:
        inset 0 1px 4px rgba(0, 0, 0, 0.5),
        0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: none;
}

.tfp-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.tfp-range-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #64748b;
}

.tfp-range-icon {
    color: #22c55e;
    /* Indicator LED glow */
    filter: drop-shadow(0 0 4px rgba(34, 197, 94, 0.5));
}

.tfp-range-icon i {
    font-size: 1rem;
}

.tfp-range-value {
    font-family: var(--tfp-font-mono);
    font-size: 2rem;
    font-weight: 700;
    /* Green digital readout */
    color: #4ade80;
    text-shadow:
        0 0 8px rgba(74, 222, 128, 0.5),
        0 0 16px rgba(74, 222, 128, 0.3);
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.tfp-range-value span {
    font-family: var(--tfp-font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-shadow: none;
}

/* Fuel gauge bars - like tank indicator */
.tfp-range-bars {
    display: flex;
    gap: 3px;
    height: 6px;
    margin-top: 1rem;
    padding: 3px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tfp-range-bars div {
    flex: 1;
    background: #22c55e;
    border-radius: 2px;
    /* LED segment glow */
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.tfp-range-bars div:nth-child(2) {
    opacity: 0.85;
}
.tfp-range-bars div:nth-child(3) {
    opacity: 0.6;
}
.tfp-range-bars div:nth-child(4) {
    background: #334155;
    opacity: 0.4;
    box-shadow: none;
}

.tfp-results-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    font-size: 0.5625rem;
    font-family: var(--tfp-font-mono);
    color: #475569;
    margin-top: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}


/* ============================================
   ANALYTICS GRID
   ============================================ */
.tfp-analytics-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .tfp-analytics-grid {
        grid-template-columns: 1fr 2fr;
    }
}

/* Market Analysis Card - Glass Style */
.tfp-volatility {
    background: var(--tfp-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.75rem;
    border-radius: var(--tfp-radius-2xl);
    box-shadow: var(--tfp-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--tfp-transition);
}

.tfp-volatility:hover {
    box-shadow: var(--tfp-shadow-lg);
    transform: translateY(-2px);
}

.tfp-volatility-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.tfp-volatility-icon {
    padding: 0.625rem;
    background: rgba(79, 70, 229, 0.1);
    border-radius: var(--tfp-radius-lg);
    color: var(--tfp-indigo);
}

.tfp-volatility-icon i {
    font-size: 1.25rem;
}

.tfp-volatility-info h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--tfp-text);
    margin: 0;
}

.tfp-volatility-info span {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--tfp-text-light);
    text-transform: uppercase;
}

/* ============================================
   GAUGE - Analog Instrument with Wobble
   ============================================ */
.tfp-gauge-wrapper {
    position: relative;
    height: 7rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    margin-bottom: 1rem;
}

.tfp-gauge-track {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 3.5rem;
    border-top: 14px solid var(--tfp-border-light);
    border-radius: 100% 100% 0 0;
}

.tfp-gauge-segment {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 3.5rem;
    border-top: 14px solid transparent;
    border-radius: 100% 100% 0 0;
}

.tfp-gauge-segment.green {
    border-top-color: var(--tfp-emerald);
    clip-path: polygon(0 0, 30% 0, 30% 100%, 0 100%);
}

.tfp-gauge-segment.yellow {
    border-top-color: var(--tfp-warning);
    clip-path: polygon(30% 0, 70% 0, 70% 100%, 30% 100%);
}

.tfp-gauge-segment.red {
    border-top-color: var(--tfp-rose);
    clip-path: polygon(70% 0, 100% 0, 100% 100%, 70% 100%);
}

/* Needle with wobble animation */
.tfp-gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 5px;
    height: 4rem;
    background: linear-gradient(to top, var(--tfp-text), #475569);
    transform-origin: bottom center;
    --needle-rotation: -45deg;
    transform: translateX(-50%) rotate(var(--needle-rotation));
    border-radius: 9999px;
    box-shadow: var(--tfp-shadow-lg), 0 0 10px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Apply wobble animation when needle moves */
.tfp-gauge-needle.wobble {
    animation: tfp-needle-wobble 0.8s ease-out forwards;
}

.tfp-gauge-center {
    position: absolute;
    bottom: -0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(135deg, var(--tfp-text), #334155);
    border-radius: 50%;
    z-index: 20;
    border: 3px solid white;
    box-shadow: var(--tfp-shadow);
}

.tfp-gauge-label {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: var(--tfp-border-light);
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94a3b8;
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Stats Grid */
.tfp-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tfp-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1rem;
    background: var(--tfp-border-light);
    border-radius: var(--tfp-radius-lg);
    font-size: 0.875rem;
    transition: all var(--tfp-transition);
}

.tfp-stat-item:hover {
    background: rgba(79, 70, 229, 0.05);
}

.tfp-stat-item span:first-child {
    color: #94a3b8;
}

.tfp-stat-item span:last-child {
    font-family: var(--tfp-font-mono);
    font-weight: 700;
    color: var(--tfp-text);
}

/* Pro Tip Card */
.tfp-pro-tip {
    background: linear-gradient(135deg, var(--tfp-indigo), var(--tfp-violet));
    padding: 1.75rem;
    border-radius: var(--tfp-radius-2xl);
    color: white;
    box-shadow: var(--tfp-shadow-xl), var(--tfp-shadow-indigo);
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}

.tfp-pro-tip::before {
    content: '';
    position: absolute;
    top: -3rem;
    right: -3rem;
    width: 10rem;
    height: 10rem;
    background: white;
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(50px);
}

.tfp-pro-tip i {
    font-size: 1.75rem;
    margin-bottom: 0.875rem;
    opacity: 0.9;
    display: block;
}

.tfp-pro-tip h4 {
    font-size: 1.1875rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.tfp-pro-tip p {
    font-size: 0.9375rem;
    line-height: 1.6;
    opacity: 0.9;
    margin: 0;
}

.tfp-pro-tip strong {
    font-weight: 700;
}

/* ============================================
   BRANDS TABLE - Glass Style
   ============================================ */
.tfp-brands-section {
    background: var(--tfp-bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--tfp-radius-2xl);
    box-shadow: var(--tfp-shadow);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tfp-brands-header {
    padding: 1.5rem 1.75rem;
    border-bottom: 1px solid var(--tfp-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248, 250, 252, 0.5);
}

.tfp-brands-title {
    font-weight: 700;
    color: var(--tfp-text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin: 0;
}

.tfp-brands-title i {
    color: var(--tfp-text-light);
}

.tfp-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: var(--tfp-radius);
    transition: all var(--tfp-transition);
}

.tfp-filter-btn:hover {
    color: var(--tfp-indigo);
    background: rgba(79, 70, 229, 0.05);
}

.tfp-brands-scroll {
    overflow-y: auto;
    max-height: 28rem;
}

.tfp-brands-scroll::-webkit-scrollbar {
    width: 6px;
}

.tfp-brands-scroll::-webkit-scrollbar-track {
    background: var(--tfp-border-light);
}

.tfp-brands-scroll::-webkit-scrollbar-thumb {
    background: var(--tfp-border);
    border-radius: 9999px;
}

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

.tfp-brands-table thead {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10;
    box-shadow: 0 1px 0 var(--tfp-border-light);
}

.tfp-brands-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--tfp-text-light);
    padding: 1rem 1.5rem;
    text-align: left;
}

.tfp-brands-table th:nth-child(2) {
    text-align: right;
}

.tfp-brands-table th:nth-child(3) {
    text-align: center;
}

.tfp-brands-table tbody tr {
    transition: all var(--tfp-transition);
    cursor: default;
    border-bottom: 1px solid var(--tfp-border-light);
}

.tfp-brands-table tbody tr:hover {
    background: rgba(79, 70, 229, 0.04);
    transform: translateX(4px);
}

.tfp-brands-table td {
    padding: 1rem 1.5rem;
}

.tfp-brand-cell {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.tfp-brand-logo {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--tfp-border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--tfp-text-light);
    transition: all var(--tfp-transition);
}

.tfp-brands-table tbody tr:hover .tfp-brand-logo {
    background: var(--tfp-bg-card);
    color: var(--tfp-indigo);
    box-shadow: var(--tfp-shadow), 0 0 0 2px rgba(79, 70, 229, 0.1);
    transform: scale(1.05);
}

.tfp-brand-info {
    display: flex;
    flex-direction: column;
}

.tfp-brand-name {
    font-weight: 700;
    color: var(--tfp-text);
}

.tfp-brand-badge {
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--tfp-emerald);
    letter-spacing: 0.05em;
}

.tfp-price-cell {
    text-align: right;
    font-family: var(--tfp-font-mono);
    font-weight: 700;
    color: var(--tfp-text);
    font-size: 1rem;
}

.tfp-change-cell {
    text-align: center;
}

.tfp-change-indicator {
    display: inline-flex;
    padding: 0.375rem;
    border-radius: var(--tfp-radius);
    transition: all var(--tfp-transition);
}

.tfp-change-indicator.stable {
    color: var(--tfp-text-light);
}

.tfp-change-indicator.up {
    background: rgba(239, 68, 68, 0.1);
    color: var(--tfp-error);
}

.tfp-change-indicator.down {
    background: rgba(5, 150, 105, 0.1);
    color: var(--tfp-emerald);
}

.tfp-change-indicator i {
    font-size: 0.9375rem;
}

/* ============================================
   FAQ SECTION - Glass Style
   ============================================ */
.tfp-faq-section {
    max-width: 56rem;
    margin: 0 auto 3rem;
    padding-top: 2rem;
}

.tfp-faq-title {
    font-size: 1.375rem;
    font-weight: 700;
    text-align: center;
    color: var(--tfp-text);
    margin: 0 0 2rem;
}

.tfp-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.tfp-faq-item {
    background: var(--tfp-bg-glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--tfp-border);
    border-radius: var(--tfp-radius-xl);
    overflow: hidden;
    transition: all var(--tfp-transition);
}

.tfp-faq-item.open {
    border-color: var(--tfp-indigo-100);
    box-shadow: var(--tfp-shadow-lg), 0 0 0 2px var(--tfp-indigo-50);
}

.tfp-faq-item:hover {
    border-color: var(--tfp-border);
    transform: translateY(-2px);
    box-shadow: var(--tfp-shadow);
}

.tfp-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.375rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--tfp-text);
    transition: color var(--tfp-transition);
}

.tfp-faq-item.open .tfp-faq-question {
    color: var(--tfp-indigo);
}

.tfp-faq-chevron {
    transition: transform var(--tfp-transition);
    color: var(--tfp-text-light);
}

.tfp-faq-item.open .tfp-faq-chevron {
    transform: rotate(180deg);
    color: var(--tfp-indigo);
}

.tfp-faq-chevron i {
    font-size: 1.125rem;
}

.tfp-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--tfp-transition), opacity var(--tfp-transition);
    opacity: 0;
}

.tfp-faq-item.open .tfp-faq-answer {
    max-height: 10rem;
    opacity: 1;
}

.tfp-faq-answer p {
    padding: 0 1.375rem 1.375rem;
    margin: 0;
    font-size: 0.9375rem;
    color: #94a3b8;
    line-height: 1.7;
    border-top: 1px solid var(--tfp-border-light);
    padding-top: 0.75rem;
}

/* ============================================
   FOOTER
   ============================================ */
.tfp-footer {
    border-top: 1px solid var(--tfp-border);
    padding-top: 2.5rem;
    margin-top: 2.5rem;
    text-align: center;
}

.tfp-footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: var(--tfp-border-light);
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.tfp-footer-badge i {
    color: var(--tfp-text-light);
    font-size: 0.9375rem;
}

.tfp-footer-badge span {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94a3b8;
}

.tfp-footer p {
    font-size: 0.8125rem;
    color: var(--tfp-text-light);
    max-width: 32rem;
    margin: 0 auto;
    line-height: 1.6;
}

.tfp-footer-note {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--tfp-indigo-50);
    border: 1px solid var(--tfp-indigo-100);
    border-radius: var(--tfp-radius-lg);
    max-width: 40rem;
    font-size: 0.875rem;
    color: var(--tfp-indigo-dark);
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    text-align: left;
}

[dir="rtl"] .tfp-footer-note {
    text-align: right;
}

.tfp-footer-note i {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.tfp-last-sync {
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--tfp-text-light);
    font-style: italic;
}

/* ============================================
   RTL SUPPORT
   ============================================ */
[dir="rtl"] .tfp-container {
    text-align: right;
}

[dir="rtl"] .tfp-brands-table th,
[dir="rtl"] .tfp-brands-table td {
    text-align: right;
}

[dir="rtl"] .tfp-brands-table th:nth-child(2),
[dir="rtl"] .tfp-price-cell {
    text-align: left;
}

[dir="rtl"] .tfp-vehicle-grid {
    direction: rtl;
}

[dir="rtl"] .tfp-vehicle-btn {
    text-align: right;
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-quick-amounts {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-slider-bg {
    display: flex;
    justify-content: flex-end;
}

[dir="rtl"] .tfp-slider {
    direction: rtl;
}

[dir="rtl"] .tfp-slider-value-display span {
    margin-left: 0;
    margin-right: 0.25rem;
}

[dir="rtl"] .tfp-slider-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-calculator-grid {
    direction: rtl;
}

[dir="rtl"] .tfp-control-label {
    text-align: right;
}

[dir="rtl"] .tfp-results-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-results-fuel {
    text-align: right;
}

[dir="rtl"] .tfp-range-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-total-block {
    text-align: right;
}

[dir="rtl"] .tfp-section-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-header-inner {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-header-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-logo {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-volatility-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-volatility-info {
    text-align: right;
}

[dir="rtl"] .tfp-brands-header {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-brand-cell {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-brand-info {
    text-align: right;
}

[dir="rtl"] .tfp-faq-question {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-footer-badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .tfp-calc-header {
    flex-direction: row-reverse;
}

/* ============================================
   HIDDEN ELEMENTS
   ============================================ */
.tfp-view-toggle,
.tfp-chart-view,
.tfp-trend-section,
.tfp-city-select,
.tfp-filters-row,
.tfp-refresh-btn {
    display: none;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 640px) {
    .tfp-header-inner {
        padding: 0.875rem 1rem;
    }

    .tfp-logo-text h1 {
        font-size: 1rem;
    }

    .tfp-main {
        padding: 1.5rem 1rem;
    }

    .tfp-section-title {
        font-size: 1.25rem;
    }

    .tfp-calc-controls,
    .tfp-calc-results {
        padding: 1.5rem;
    }

    .tfp-total-amount {
        font-size: 2.75rem;
    }

    .tfp-card-price-value {
        font-size: 1.875rem;
    }

    .tfp-analytics-grid {
        gap: 1.5rem;
    }

    .tfp-fuel-card {
        padding: 1.5rem;
    }
}

/* ============================================
   NATIVE RANGE INPUT - Hide Browser Defaults
   ============================================ */
.tfp-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background: transparent;
}

.tfp-slider::-webkit-slider-runnable-track {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 0;
}

.tfp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    height: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.tfp-slider::-moz-range-track {
    background: transparent;
    height: 0;
    border: none;
}

.tfp-slider::-moz-range-thumb {
    appearance: none;
    width: 0;
    height: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.tfp-slider::-moz-range-progress {
    background: transparent;
}

.tfp-slider:focus {
    outline: none;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .tfp-container {
        background: white !important;
    }

    .tfp-fuel-card,
    .tfp-volatility,
    .tfp-brands-section,
    .tfp-faq-item {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: white !important;
        box-shadow: none !important;
        border: 1px solid #e2e8f0 !important;
    }

    .tfp-calc-results {
        background: #0F172A !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================
   PRICE HISTORY CHART SECTION
   ============================================ */
.tfp-chart-section {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%);
    border-radius: var(--tfp-border-radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.tfp-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tfp-chart-title-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tfp-chart-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--tfp-accent), var(--tfp-accent-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.tfp-chart-title {
    color: #f1f5f9 !important;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.tfp-chart-subtitle {
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0.25rem 0 0 0;
}

.tfp-chart-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tfp-period-selector {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.tfp-period-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tfp-period-btn:hover {
    background: rgba(255, 255, 255, 0.05);
}

.tfp-period-btn.active {
    color: white;
    background: var(--tfp-accent);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.tfp-chart-wrapper {
    position: relative;
    height: 320px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.tfp-chart-wrapper canvas {
    width: 100% !important;
    height: 100% !important;
}

.tfp-chart-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.tfp-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #94a3b8;
}

.tfp-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

/* Chart loading state */
.tfp-chart-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: #94a3b8;
}

.tfp-chart-loading i {
    font-size: 2rem;
    animation: tfp-spin 1s linear infinite;
}

@keyframes tfp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* No data state */
.tfp-chart-no-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #94a3b8;
}

.tfp-chart-no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.tfp-chart-no-data p {
    margin: 0;
    font-size: 0.9375rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tfp-chart-section {
        padding: 1.25rem;
    }

    .tfp-chart-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tfp-chart-controls {
        width: 100%;
    }

    .tfp-period-selector {
        width: 100%;
        justify-content: center;
    }

    .tfp-period-btn {
        flex: 1;
        text-align: center;
        padding: 0.625rem 0.5rem;
    }

    .tfp-chart-wrapper {
        height: 250px;
    }

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

    .tfp-chart-title {
    color: #f1f5f9 !important;
        font-size: 1.25rem;
    }

    .tfp-chart-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .tfp-chart-wrapper {
        height: 200px;
        padding: 0.75rem;
    }

    .tfp-period-btn {
        font-size: 0.75rem;
        padding: 0.5rem 0.375rem;
    }

    .tfp-legend-item {
        font-size: 0.75rem;
    }
}
