:root {
    --primary-color: #f97316;
    --primary-gradient: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    --bg-color: #020617;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent-red: #ef4444;
    --accent-green: #10b981;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background Blobs */
.background-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(249,115,22,0.3) 0%, rgba(2,6,23,0) 70%);
    animation: float 15s ease-in-out infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(234,88,12,0.2) 0%, rgba(2,6,23,0) 70%);
    animation: float 20s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Glassmorphism Containers */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    width: 100%;
    max-width: 900px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

/* Typography */
header {
    text-align: center;
    margin-bottom: 3rem;
}

.mascot-img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 8px 16px rgba(249, 115, 22, 0.3));
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

/* Layout */
.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Form Inputs */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

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

.currency, .suffix {
    position: absolute;
    color: var(--text-muted);
    font-weight: 500;
}

.currency { left: 1rem; }
.suffix { right: 1rem; }

input[type="number"] {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    outline: none;
}

.currency + input { padding-left: 2.5rem; }

input[type="number"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Toggle Switch */
.toggle-group {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.switch input { 
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(15, 23, 42, 0.8);
    border: 1px solid var(--glass-border);
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-muted);
    transition: .4s;
}

input:checked + .slider {
    background: var(--primary-gradient);
    border-color: transparent;
}

input:checked + .slider:before {
    transform: translateX(22px);
    background-color: white;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Results Section */
.results-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.result-card.primary {
    background: var(--primary-gradient);
    border: none;
}

.result-card h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.result-card.primary h3 {
    color: rgba(255, 255, 255, 0.9);
}

.amount {
    font-size: 1.8rem;
    font-weight: 700;
}

.amount.highlight {
    font-size: 2.5rem;
}

.divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1rem 0;
}

.divider-small {
    height: 1px;
    background: var(--glass-border);
    margin: 0.5rem 0;
    opacity: 0.5;
}

.breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.breakdown-item.summary-item {
    font-weight: 600;
    color: var(--text-main);
    margin-top: 0.5rem;
}

.deduction {
    color: var(--accent-red);
}

/* SEO Content */
.seo-content {
    margin-top: 2rem;
}

.seo-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.seo-content h3 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.seo-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.seo-content ul {
    color: var(--text-muted);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.seo-content li {
    margin-bottom: 0.5rem;
}

/* AdSense Placeholders */
.adsense-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin: 1rem 0;
}

.ad-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.ad-placeholder {
    width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bottom-ad .ad-placeholder {
    height: 250px;
}
