:root {
    --primary: #00ffcc;
    --secondary: #9dff00;
    --bg-dark: #0a0e14;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #e0e6ed;
    --text-muted: #94a3b8;
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 20px 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-svg {
    filter: drop-shadow(0 0 8px rgba(0, 255, 204, 0.4));
    transition: transform 0.3s;
}

.logo:hover .logo-svg {
    transform: rotate(10deg) scale(1.1);
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Hero */
.hero {
    text-align: center;
    padding: 30px 20px;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Calculator Card */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

#calculator {
    margin-bottom: 80px;
}

.calc-card {
    padding: 40px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.input-group {
    margin-bottom: 30px;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

select,
input[type="number"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    outline: none;
}

option {
    background-color: var(--bg-dark);
    color: white;
}

select:focus,
input:focus {
    border-color: var(--primary);
}

.range-value {
    text-align: right;
    font-weight: 800;
    color: var(--primary);
    font-size: 1.2rem;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
}

/* Results Section */
.calc-results {
    background: rgba(0, 255, 204, 0.05);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-results h3 {
    text-align: center;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.main-result {
    padding: 20px 0;
    border-bottom: 2px solid var(--primary);
}

.main-result .value {
    font-size: 2.5rem;
    color: var(--primary);
}

.value {
    font-weight: 800;
    font-size: 1.5rem;
}

.primary-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    padding: 20px;
    border-radius: 12px;
    color: #000;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 30px;
    transition: transform 0.3s;
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 204, 0.3);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

/* Ad & Banner Layout System */
.ad-container,
.ad-middle {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto;
    width: 100%;
}

.ad-container.ad-top {
    margin: 10px auto 0;
    min-height: 90px;
}

.ad-container.ad-top iframe,
.ad-container.ad-top ins,
.ad-container.ad-top>div,
.ad-container iframe,
.ad-middle iframe {
    width: 728px !important;
    max-width: 100% !important;
    min-height: 90px !important;
    border: none;
}

.banner-link {
    display: block;
    line-height: 0;
    transition: transform 0.3s ease;
}

.banner-link:hover {
    transform: translateY(-2px);
}

.banner-link img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Ad Placeholders — Centered, consistent sizing */
.ad-placeholder {
    width: 728px;
    max-width: 100%;
    height: 90px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0 20px;
    margin: 20px auto;
    border-radius: 12px;
}

.ad-placeholder-horizontal {
    width: 728px;
    max-width: 100%;
    height: 250px;
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 0 20px;
    margin: 40px auto;
    border-radius: 12px;
}


.content-section {
    margin-top: 100px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 60px;
}

.tips-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.tip-card {
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: var(--secondary);
    background: rgba(157, 255, 0, 0.03);
    transform: scale(1.02);
}

.tip-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.tip-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.tip-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

.tip-card strong {
    color: white;
}

.hog-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.hog-card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
}

.text-link {
    display: block;
    margin-top: 20px;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.hidden {
    display: none;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    margin-top: 100px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .calc-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hog-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }
}