/* --- DESIGN VARIABLES --- */
:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #ecfdf5;
    --accent: #0f172a;
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #334155;
    --text-muted: #475569;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
    --danger: #ef4444;
    --success: #22c55e;
}

/* Reset & Base - Font Updated to Outfit */
* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Outfit', sans-serif; 
    -webkit-tap-highlight-color: transparent; 
}

/* PC SCROLLBAR CUSTOMIZATION (New) */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

body { background-color: var(--bg-body); color: var(--text-main); line-height: 1.6; padding-bottom: 120px; scroll-behavior: smooth; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeIn 0.6s ease-out forwards; opacity: 0; }
.delay-1 { animation-delay: 0.1s; } .delay-2 { animation-delay: 0.2s; } .delay-3 { animation-delay: 0.3s; }

@media print {
    .print-hidden { display: none !important; }
}

/* --- UTILITIES & LAYOUT --- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }
.text-primary { color: var(--primary); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-start { display: flex; justify-content: flex-start; align-items: center; gap: 12px; }
.grid-layout { display: grid; gap: 24px; grid-template-columns: 1fr; }

/* --- PC SPECIFIC LAYOUT IMPROVEMENTS --- */
@media (min-width: 1024px) {
    /* Thora sa chora container PC k liye */
    .container { max-width: 1200px; }
    
    /* Calculator Layout */
    .grid-layout { grid-template-columns: 1.5fr 1fr; align-items: start; gap: 40px; }
    .sticky-panel { position: sticky; top: 100px; } /* Header k neeche */
    
    /* Sidebar styling fix for PC */
    .col-right { padding-left: 10px; }
}

/* --- COMPONENTS --- */
button, .btn-option, input, select { transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.card { background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
/* PC Hover Effect on Cards */
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.08); border-color: var(--primary-light); }

/* Inputs */
label { display: block; font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; letter-spacing: 0.5px; }
select, input { width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border); background: #f8fafc; font-size: 0.95rem; font-weight: 500; outline: none; color: var(--accent); }
select:focus, input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 3px var(--primary-light); }

/* Card Elements */
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.card-title { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.section-mb { margin-bottom: 20px; }

/* Option Buttons */
.btn-option { padding: 16px; border: 2px solid var(--border); border-radius: 12px; background: white; cursor: pointer; text-align: left; width: 100%; position: relative; overflow: hidden; }
.btn-option:hover { border-color: var(--primary); background: #f9fafb; }
.btn-option.active { border-color: var(--primary); background: var(--primary-light); transform: scale(1.02); }
.opt-head { font-size: 0.9rem; font-weight: 700; color: var(--accent); margin-bottom: 2px; display: block; }
.opt-sub { font-size: 0.75rem; color: var(--text-muted); line-height: 1.2; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }

/* Load Calc */
.load-display-sub { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.load-display-val { font-size: 1.2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.custom-add-box { background: #f8fafc; padding: 16px; border-radius: 12px; border: 1px dashed var(--border); margin-top: 20px; }
.watt-guide { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 8px; background: white; padding: 8px; border: 1px solid var(--border); border-radius: 6px; }
.custom-row { display: flex; gap: 8px; flex-wrap: wrap; }
.custom-row input { flex: 1; min-width: 100px; }
.btn-add { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; flex: 0 0 auto; }
.btn-add:hover { background: var(--primary-dark); }
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* HIGHLIGHTED BACK BUTTON */
.back-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 20px;
    border-radius: 50px; 
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    margin: 20px 0;
    transition: all 0.2s ease;
}
.back-nav:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(-5px);
    box-shadow: 0 8px 15px -3px rgba(0,0,0,0.1);
}

/* --- HEADER --- */
.main-header { 
    background: var(--accent); 
    color: white; 
    padding: 16px 0; 
    border-bottom: 1px solid #1e293b; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); 
}
.logo { font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; color: white; }
.logo-highlight { color: #4ade80; } 
.version-tag { font-size: 0.75rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; background: rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 6px; }

/* PC Navigation */
.nav-links { display: none; gap: 32px; }
.nav-links a { text-decoration: none; color: #cbd5e1; font-weight: 600; font-size: 0.95rem; transition: color 0.2s, transform 0.2s; position: relative; }
.nav-links a:hover { color: #4ade80; transform: translateY(-1px); }
.nav-links a.active-link { color: #4ade80; }
.nav-links a.active-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 2px; background: #4ade80; border-radius: 2px; }

@media (min-width: 768px) { .nav-links { display: flex; } .mobile-only { display: none; } }

/* --- HERO --- */
.hero-wrapper { background: #0f172a; position: relative; overflow: hidden; margin-bottom: 40px; }
.modern-hero { padding: 80px 20px 100px 20px; text-align: center; color: white; background: radial-gradient(circle at top right, #1e293b 0%, #0f172a 100%); }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #cbd5e1; font-size: 0.8rem; font-weight: 600; padding: 6px 16px; border-radius: 30px; margin-bottom: 24px; backdrop-filter: blur(4px); }
.hero-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 20px; line-height: 1.1; letter-spacing: -1px; background: linear-gradient(to right, #fff, #94a3b8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: 1.15rem; color: #94a3b8; max-width: 600px; margin: 0 auto 40px auto; line-height: 1.6; }
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary-lg { background: var(--primary); color: white; padding: 16px 32px; border-radius: 12px; font-weight: 700; font-size: 1rem; border: none; cursor: pointer; display: flex; align-items: center; gap: 10px; box-shadow: 0 4px 6px -1px rgba(5, 150, 105, 0.3); transition: transform 0.2s, background 0.2s; }
.btn-primary-lg:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(5, 150, 105, 0.4); }
.btn-outline-lg { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.2); padding: 16px 32px; border-radius: 12px; font-weight: 600; font-size: 1rem; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all 0.2s; }
.btn-outline-lg:hover { background: rgba(255,255,255,0.1); border-color: white; transform: translateY(-3px); }

/* PC Hero Tweaks */
@media (min-width: 1024px) {
    .modern-hero { padding: 100px 20px 120px 20px; }
    .hero-title { font-size: 3.5rem; } /* Bigger Title on PC */
}

/* --- TICKER --- */
.ticker-strip { background: #000000; border-top: 1px solid rgba(74, 222, 128, 0.2); padding: 12px 0; overflow: hidden; white-space: nowrap; position: relative; }
.ticker-content { display: inline-block; animation: ticker 20s linear infinite; color: #4ade80; font-size: 0.95rem; font-weight: 600; text-shadow: 0 0 5px rgba(74, 222, 128, 0.4); padding-left: 100%; }
.ticker-content:hover { animation-play-state: paused; cursor: default; }
/* style.css mein sab se neeche add karein ya Ticker section mein */

.ticker-content span {
    padding: 0 15px; /* Left aur Right par 15px ka gap */
    position: relative;
}

.divider {
    color: #4ade80; /* Divider ka color (Green) taake alag nazar aye */
    font-weight: 300;
}
 /* Pause on Hover for PC */

/* --- HOW IT WORKS --- */
.how-it-works { margin-bottom: 60px; }
.section-heading { font-size: 1.75rem; font-weight: 800; color: var(--accent); margin-bottom: 8px; letter-spacing: -0.5px; }
.section-sub { color: var(--text-muted); margin-bottom: 40px; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media(min-width: 768px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card { background: white; border: 1px solid var(--border); padding: 32px 24px; border-radius: 16px; text-align: center; transition: transform 0.3s ease, border-color 0.3s; }
.step-card:hover { transform: translateY(-8px); border-color: var(--primary); box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1); }
.step-icon-box { width: 64px; height: 64px; background: var(--primary-light); color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--accent); margin-bottom: 10px; }
.step-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }

/* --- QUOTE CARD --- */
.quote-card { 
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white; 
    border-radius: 20px; 
    overflow: hidden; 
    position: relative; 
    transition: transform 0.3s; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255,255,255,0.1);
}
.quote-top { padding: 24px; }
.quote-location { margin-top: 8px; color: #cbd5e1; font-size: 0.9rem; }
.quote-label-sm { font-size: 0.7rem; font-weight: 700; color: #4ade80; text-transform: uppercase; }
.quote-main-val { font-size: 2rem; font-weight: 800; }
.quote-details { background: rgba(0,0,0,0.2); padding: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.spec-item { background: rgba(255,255,255,0.05); padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1); }
.spec-label { font-size: 0.7rem; color: #cbd5e1; text-transform: uppercase; font-weight: 700; display: block; margin-bottom: 4px; }
.spec-val { font-size: 1.1rem; font-weight: 700; }
.spec-sub { font-size: 0.75rem; color: #94a3b8; }
.quote-total-row { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-bottom: 20px; display: flex; flex-direction: column; gap: 5px; }
.total-label { color: #cbd5e1; font-size: 0.9rem; font-weight: 500; }
.total-val { color: #4ade80; font-size: 2.2rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.5px; }
.btn-action { width: 100%; padding: 14px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 12px; font-size: 0.95rem; transition: background 0.2s; }
.btn-whatsapp { background: #22c55e; color: white; }
.btn-whatsapp:hover { background: #16a34a; }
.btn-print { background: transparent; border: 1px solid #64748b; color: #cbd5e1; }
.btn-print:hover { background: #334155; color: white; }
.savings-card { margin-top: 20px; transition: transform 0.2s; }
.savings-card:hover { transform: translateY(-2px); }
.savings-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.savings-val { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.savings-icon { background: var(--primary-light); color: var(--primary); padding: 12px; border-radius: 50%; }

/* --- NAV CARDS (Grid Style) --- */
.nav-cards-container { margin-top: 30px; }
.nav-section-label { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.5px; }
.nav-cards-container > div { display: grid !important; grid-template-columns: 1fr 1fr; gap: 15px; }
.nav-cards-container .step-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px 16px; height: 100%; margin-bottom: 0; text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.nav-cards-container .step-card:hover { transform: translateY(-3px); box-shadow: 0 10px 20px -5px rgba(0,0,0,0.1); border-color: var(--primary); }
.nav-cards-container .step-card:last-child { grid-column: span 2; flex-direction: row; gap: 12px; }
.nav-cards-container .nav-arrow { display: none; }
.nav-cards-container .step-icon-box { margin: 0 auto 12px auto; width: 50px; height: 50px; }
.nav-cards-container h3 { font-size: 1rem; margin-bottom: 4px; }

/* --- ADS & ARTICLES --- */
.ad-slot { background: #e2e8f0; width: 100%; height: 100px; display: flex; align-items: center; justify-content: center; color: #64748b; font-size: 0.8rem; border-radius: 12px; margin: 20px 0; text-transform: uppercase; border: 2px dashed #cbd5e1; }
.article-section { margin-top: 40px; border-top: 1px solid var(--border); padding-top: 40px; }
.article-header { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 40px; color: var(--accent); }
.article-card { background: white; padding: 24px; border-radius: 16px; border: 1px solid var(--border); margin-bottom: 24px; box-shadow: var(--shadow); }
.article-card.featured { border: 2px solid var(--primary); }
.article-h3 { color: var(--primary); display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; }
.article-h3-plain { color: var(--accent); margin-bottom: 12px; font-size: 1.25rem; font-weight: 700; }
.seo-table { width: 100%; border-collapse: collapse; margin-top: 15px; font-size: 0.9rem; }
.seo-table th { background: var(--accent); color: white; padding: 12px; text-align: left; border-radius: 8px 8px 0 0; }
.seo-table td { padding: 12px; border-bottom: 1px solid var(--border); }
.seo-table tr:nth-child(even) { background: #f8fafc; }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.seo-text-block { max-width: 900px; margin: 60px auto 0 auto; color: var(--text-main); font-size: 1.05rem; line-height: 1.9; }
.seo-text-block h2 { font-size: 2rem; color: var(--accent); margin-bottom: 24px; font-weight: 800; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 4px; }
.seo-text-block h3 { font-size: 1.5rem; color: var(--accent); margin-top: 40px; margin-bottom: 16px; font-weight: 700; }
.seo-text-block h4 { font-size: 1.2rem; color: var(--primary-dark); margin-top: 24px; margin-bottom: 12px; font-weight: 700; }
.seo-text-block p { margin-bottom: 20px; color: var(--text-muted); }
.seo-text-block ul { padding-left: 20px; margin-bottom: 24px; list-style-type: disc; }
.seo-text-block li { margin-bottom: 12px; color: var(--text-main); }
.faq-item { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; transition: all 0.2s ease; }
.faq-item:hover { background: white; border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.faq-question { font-size: 1.05rem; font-weight: 700; color: var(--accent); margin-bottom: 8px; display: flex; align-items: flex-start; gap: 10px; }
.faq-question::before { content: "Q."; color: var(--primary); font-weight: 800; }
.faq-answer { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; padding-left: 28px; }

/* --- FOOTER & MOBILE (Glass Effect) --- */
.main-footer { margin-top: 48px; padding: 32px 0; background: var(--accent); color: var(--text-muted); text-align: center; font-size: 0.8rem; border-top: 1px solid #1e293b; }
.footer-credit { color: var(--primary); font-weight: 600; }
.footer-credit span { color: white; }

.mobile-bar { display: none; }
@media (max-width: 1023px) {
    .mobile-bar { 
        display: flex; 
        position: fixed; 
        bottom: 0; left: 0; right: 0; 
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 16px; 
        border-top: 1px solid rgba(0,0,0,0.05); 
        box-shadow: 0 -4px 10px rgba(0,0,0,0.05); 
        z-index: 100; 
        justify-content: space-between; 
        align-items: center; 
    }
    .mobile-bar-label { font-size: 0.7rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
    .mobile-bar-total { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
    .btn-mobile-quote { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; }
}

/* --- PRINT OPTIMIZATION --- */
@media print {
    body { background: white; padding: 0; color: black; }
    * { opacity: 1 !important; visibility: visible !important; animation: none !important; transform: none !important; }
    .main-header, .hero-wrapper, .how-it-works, .price-ticker-section, .col-left, .mobile-bar, .btn-action, .ad-slot, .article-section, .main-footer, .print-hidden, section.container:not(#calculator-app) { display: none !important; }
    .container { max-width: 100%; padding: 0; margin: 0; }
    .grid-layout { display: block; }
    .col-right { width: 100%; }
    .quote-card { box-shadow: none; border: 2px solid #000; color: black; background: white; page-break-inside: avoid; margin: 0 auto; max-width: 800px; }
    .quote-details { background: white; color: black; border-top: 2px solid #000; }
    .spec-item { border: 1px solid #000; color: black; background: white; }
    .spec-label, .spec-sub, .total-label, .quote-location { color: #333 !important; }
    .quote-main-val, .total-val { color: #000 !important; }
    h3 { color: black !important; }
    .sticky-panel { position: static; }
}

.price-ticker-section { background: white; border-radius: 16px; padding: 24px; border: 1px solid var(--border); margin-bottom: 40px; }
.ticker-title { font-size: 1.25rem; font-weight: 800; color: var(--accent); }
.ticker-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.badge-update { background: #fee2e2; color: #991b1b; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; display: inline-block; margin-bottom: 10px; }
.table-scroll { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; margin-top: 15px; }
.price-table th { text-align: left; color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; padding: 8px; border-bottom: 2px solid var(--border); }
.price-table td { padding: 12px 8px; border-bottom: 1px solid var(--border); font-weight: 600; color: var(--accent); }

.app-row { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); gap: 12px; }
.app-info { display: flex; align-items: center; gap: 12px; }
.counter-wrapper { display: flex; align-items: center; gap: 8px; background: #f1f5f9; padding: 4px; border-radius: 8px; }
.btn-cnt { width: 32px; height: 32px; border: 1px solid var(--border); background: white; border-radius: 6px; cursor: pointer; font-weight: bold; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--accent); font-size: 1.1rem; padding: 0; }
.btn-cnt:active { background: var(--primary-light); transform: scale(0.95); }

@keyframes ticker { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(-100%, 0, 0); } }
