:root {
    --background: #0f131a;
    --background-secondary: #141a24;
    --panel: #1b2230;
    --panel-light: #232d3f;
    --accent: #2b90b4;
    --accent-light: #52b3d6;
    --accent-dark: #1b5f77;
    --text: #f0f4f8;
    --text-secondary: #8da2bc;
    --border: #2c384e;
    --border-light: #3f5170;
    --error: #e57979;
    --main-width: 780px;
    --radius: 6px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border) var(--background);
}

body {
    margin: 0;
    min-height: 100vh;
    background: radial-gradient(circle at top, #1f2b3f 0%, #121824 40%, var(--background) 80%);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.site-header {
    width: 100%;
    padding: 28px 20px;
    background: linear-gradient(180deg, #1b2230, #121620);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.45);
}

.header-inner {
    width: var(--main-width);
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    text-align: left;
}

.site-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    background: var(--accent);
    border: 3px solid var(--accent-light);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.site-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.15;
    color: white;
}

.site-header p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.container {
    width: var(--main-width);
    max-width: calc(100% - 30px);
    margin: 35px auto 70px;
}

.hero-card,
.calculator-card {
    width: 100%;
    background: linear-gradient(145deg, var(--panel), var(--background-secondary));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    padding: 28px;
    margin-bottom: 20px;
}

.hero-card {
    border-top: 4px solid var(--accent);
}

.section-label {
    display: inline-block;
    padding: 4px 9px;
    margin-bottom: 8px;
    background: var(--accent);
    color: #0f131a;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
}

h2 {
    margin: 4px 0 7px;
    font-size: 25px;
    color: white;
}

h3 {
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
    color: white;
}

.hero-card p,
.description {
    margin-top: 0;
    color: var(--text-secondary);
    font-size: 13px;
}

.method-buttons {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.method-button {
    min-height: 100px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--panel-light);
    border: 1px solid var(--border);
    border-radius: 5px;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.method-button:hover {
    background: #2b384f;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.method-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    object-fit: contain;
    display: block;
    transition: transform 0.18s ease;
}

.method-button:hover .method-icon {
    animation: iconBounce 0.45s ease-in-out;
}

@keyframes iconBounce {
    0% { transform: translateY(0); }
    25% { transform: translateY(-7px); }
    50% { transform: translateY(0); }
    75% { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}

.button-number {
    min-width: 28px;
    color: var(--accent);
    font-size: 18px;
    font-weight: bold;
}

.method-button strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.method-button small {
    display: block;
    color: var(--text-secondary);
    font-size: 10px;
    line-height: 1.3;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

input,
select {
    width: 100%;
    height: 42px;
    padding: 0 11px;
    background: #111620;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: white;
    outline: none;
    font-family: inherit;
    font-size: 13px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(43, 144, 180, 0.15);
}

input::placeholder {
    color: #556680;
}

select {
    cursor: pointer;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    height: 30px;
    margin-right: 3px;
    cursor: pointer;
}

input[type="number"] {
    appearance: auto;
}

input[type="number"]:hover::-webkit-inner-spin-button,
input[type="number"]:hover::-webkit-outer-spin-button {
    filter: brightness(1.3);
}

.calculate-button {
    width: 100%;
    height: 44px;
    margin-top: 20px;
    background: var(--accent);
    color: #0f131a;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.calculate-button:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(43, 144, 180, 0.25);
}

.result-box {
    width: 100%;
    margin-top: 22px;
    padding: 20px;
    background: #111620;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 5px;
}

.result-title {
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.big-number {
    margin: 2px 0 15px;
    font-size: 44px;
    line-height: 1;
    font-weight: bold;
    color: white;
}

.big-number span {
    color: var(--accent);
    font-size: 16px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.stat {
    min-height: 75px;
    padding: 12px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat span {
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 0.8px;
}

.stat strong {
    color: var(--accent);
    font-size: 19px;
}

.result-row {
    min-height: 40px;
    padding: 9px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}

.result-row:last-child {
    border-bottom: none;
}

.result-row span {
    color: var(--text-secondary);
}

.result-row strong {
    color: white;
}

.calendar-result {
    padding: 14px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    color: var(--accent-light);
    font-size: 12px;
    font-weight: bold;
}

.calendar-result span {
    margin: 0 5px;
    color: var(--text-secondary);
}

.cap-notice {
    display: block;
    width: fit-content;
    margin-bottom: 15px;
    padding: 5px 8px;
    background: rgba(43, 144, 180, 0.12);
    border: 1px solid var(--accent-dark);
    border-radius: 3px;
    color: var(--accent-light);
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1px;
}

.error {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    background: rgba(229, 121, 121, 0.08);
    border: 1px solid var(--error);
    border-radius: 4px;
    color: var(--error);
    font-size: 12px;
}

::selection {
    background: var(--accent);
    color: var(--background);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border: 2px solid var(--background);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

@media (max-width: 750px) {
    :root {
        --main-width: 600px;
    }

    .method-buttons {
        grid-template-columns: 1fr;
    }

    .method-button {
        min-height: 70px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .container {
        max-width: calc(100% - 20px);
        margin-top: 20px;
    }

    .hero-card,
    .calculator-card {
        padding: 18px;
    }

    .header-inner {
        justify-content: flex-start;
    }

    .site-header h1 {
        font-size: 21px;
    }

    .site-header p {
        font-size: 11px;
    }

    .site-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
    }

    .big-number {
        font-size: 36px;
    }
.container {
    width: var(--main-width);
    max-width: calc(100% - 30px);
    margin: 35px auto 70px;
    display: flex;
    flex-direction: column;
}

.easter-eggs-spacer {
    margin-top: 120vh; /* This is the key part that forces physical downward spacing */
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.easter-eggs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.easter-eggs img {
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    object-fit: contain;
}