:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(15, 23, 42, 0.6);
    --success: #10b981;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Ad Slots */
.ad-slot {
    width: 100%;
    background: var(--card-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.top-ad { height: 90px; }
.bottom-ad { height: 250px; margin-top: 3rem; }

.ad-label {
    color: var(--text-secondary);
    font-size: 0.75rem;
    position: absolute;
    top: 4px;
    right: 8px;
}

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Glassmorphism Calculator */
.calculator-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

/* 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.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-wrapper {
    display: flex;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.prefix {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border-right: 1px solid var(--glass-border);
    font-weight: 500;
}

input[type="number"] {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    width: 100%;
}

input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.suffix-select {
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-left: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 0 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
}

.suffix-select option {
    background: var(--bg-color);
    color: var(--text-primary);
}

/* Button */
.glow-button {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.glow-button::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.5s ease;
}

.glow-button:hover::before {
    left: 100%;
}

.glow-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px var(--accent);
}

.button-group {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.button-group button {
    flex: 1;
}

.secondary-button {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

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

.result-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.card.total {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

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

.card .amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
}

.card.total .amount {
    color: var(--success);
    font-size: 2.25rem;
}

/* Chart */
.chart-container {
    width: 100%;
    height: 250px;
    position: relative;
}

/* SEO Content */
.seo-content {
    margin-top: 4rem;
    background: var(--glass-bg);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid var(--glass-border);
}

.seo-content h2 {
    color: var(--accent);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.seo-content h2:first-child {
    margin-top: 0;
}

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

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Evolution Section & Table */
.evolution-section {
    margin-top: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

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

.table-header h2 {
    font-size: 1.4rem;
    font-weight: 700;
}

.export-actions {
    display: flex;
    gap: 0.75rem;
}

.icon-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-wrapper {
    overflow-x: auto;
    width: 100%;
}

.evolution-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.evolution-table th, .evolution-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.evolution-table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.02);
}

.evolution-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.evolution-table td {
    color: var(--text-primary);
}

.evolution-table tr td:first-child {
    font-weight: 600;
    color: var(--accent);
}

.evolution-table tr td:last-child {
    font-weight: 600;
    color: var(--success);
}

/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    cursor: pointer;
}

#page-indicator {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Monetization & Affiliate Section */
.monetization-section {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
}

.monetization-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

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

.monetization-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.monetization-card:hover {
    transform: translateY(-4px);
}

.premium-card {
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.premium-card:hover {
    border-color: var(--accent);
}

.affiliate-card {
    border-color: rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03) 0%, rgba(30, 41, 59, 0.7) 100%);
}

.affiliate-card:hover {
    border-color: var(--success);
}

.card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.free-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.monetization-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.monetization-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    display: inline-block;
}

.affiliate-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.aff-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 0.85rem 1rem;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.aff-link:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
    transform: translateX(4px);
}

.ad-placeholder-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.6;
}

