:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #38bdf8;
    --accent-secondary: #818cf8;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --input-bg: rgba(15, 23, 42, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* --- Background Effects --- */
.background-globes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.globe {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
}

.globe-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-secondary), transparent);
    top: -10%;
    left: -10%;
    animation: float 20s infinite alternate;
}

.globe-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-primary), transparent);
    bottom: -10%;
    right: -10%;
    animation: float 15s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    flex: 1;
    width: 100%;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
}

/* --- Components --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.calculator-card {
    margin-bottom: 3rem;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

/* --- Inputs --- */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

input {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
    transition: all 0.3s ease;
}

input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.2);
}

.hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.btn-primary {
    margin-top: 1rem;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border: none;
    padding: 1rem;
    border-radius: 12px;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- Results --- */
.result-section {
    display: flex;
    flex-direction: column;
}

.total-result {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.total-result .label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.total-result h2 {
    font-size: 3.5rem;
    background: linear-gradient(to bottom, #d1faff, #5eead4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.breakdown {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.breakdown .item {
    text-align: center;
}

.breakdown span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.breakdown strong {
    font-size: 1.2rem;
    color: var(--text-primary);
}

.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* --- Monetization --- */
.monetization-section {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
}

.ad-container {
    width: 100%;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.ad-placeholder {
    width: 100%;
    max-width: 728px;
    height: 90px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed var(--glass-border);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
}

.ad-placeholder span {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.ad-placeholder small {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* --- Blog Section --- */
.blog-section {
    margin-top: 4rem;
}

.blog-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.blog-section article {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.blog-section h3 {
    margin-bottom: 1rem;
    color: var(--accent-primary);
    font-size: 1.5rem;
}

.blog-section ul {
    margin-left: 1.5rem;
    margin-top: 1rem;
    color: var(--text-secondary);
}

.blog-section li {
    margin-bottom: 0.5rem;
}

.my-2 {
    margin: 2rem 0;
}

footer {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 3rem;
}

.legal-disclaimer {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.5;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .total-result h2 {
        font-size: 2.5rem;
    }
}