:root {
    --bg-0: #05080d;
    --surface: #0d1420;
    --surface-alt: #121b2c;
    --border: #1c2942;
    --border-soft: rgba(59, 130, 246, 0.18);

    --blue: #3b82f6;
    --blue-bright: #60a5fa;
    --blue-dark: #1d4ed8;

    --orange: #ff7a29;
    --orange-bright: #ffa057;

    --text: #eef2f9;
    --text-dim: #8a97ad;
    --text-faint: #566178;
    --danger: #f87171;
    --gold: #f5c542;
    --silver: #c9d3e0;
    --bronze: #d38a4e;

    --font-display: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

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

html {
    overflow-y: scroll;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    background: var(--bg-0);
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        radial-gradient(ellipse at 50% -10%, #0d1b32 0%, #05080d 60%);
    background-size: 42px 42px, 42px 42px, 100% 100%;
    background-attachment: fixed;

    font-family: var(--font-body);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* --- ANIMACIJOS --- */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 6px currentColor; }
    50% { opacity: 0.4; box-shadow: 0 0 2px currentColor; }
}

/* --- NAVIGACIJA --- */

.navbar {
    background-color: #081121;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 rgba(59, 130, 246, 0.12);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-group-left {
    display: flex;
    align-items: center;
    width: 200px;
    flex-shrink: 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 32px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-transform: uppercase;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
    background-color: var(--surface);
}

.nav-group-center {
    display: flex;
    gap: 4px;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
}

.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
    text-align: center;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item:hover {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.12);
}

.nav-item.active {
    color: #ffffff;
    background: rgba(59, 130, 246, 0.1);
}

.nav-item.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px;
    transform: translateX(-50%);
    width: 16px;
    height: 2px;
    background: var(--orange);
    box-shadow: 0 0 6px var(--orange);
}

.nav-group-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 200px;
    flex-shrink: 0;
}

.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--surface);
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid var(--border);
    min-width: 50px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--blue);
    border-radius: 50%;
    color: var(--blue);
    animation: pulse-dot 2s ease-in-out infinite;
    margin-right: 5px;
}

.status-text {
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    color: #ffffff;
}

/* --- PAGRINDINIS TURINYS (buvęs /parama/) --- */

.main-content {
    margin-top: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 15px;
    width: 100%;
}

.flex-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    width: 100%;
    padding: 0 10px;
}

.left-column {
    display: flex;
    flex-direction: column;
    max-width: 400px;
    width: 100%;
    gap: 22px;
}

.thanks-message-block {
    text-align: left;
    width: 100%;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--blue-bright);
    margin-bottom: 12px;
}

.thanks-text {
    color: var(--text-dim);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    font-weight: 400;
}

.thanks-text .hl {
    color: var(--orange-bright);
    font-weight: 600;
}

.big-title {
    display: block;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.2px;
    margin-bottom: 14px;
    color: #ffffff;
}

/* ---------- HUD kampiniai skliaustai (signature elementas) ---------- */
.hud-frame {
    position: relative;
    background-color: var(--surface);
    border: 1px solid var(--border);
}

.hud-frame::before {
    content: "";
    position: absolute;
    inset: -1px;
    pointer-events: none;
    background-image:
        linear-gradient(var(--orange), var(--orange)), linear-gradient(var(--orange), var(--orange)),
        linear-gradient(var(--orange), var(--orange)), linear-gradient(var(--orange), var(--orange)),
        linear-gradient(var(--orange), var(--orange)), linear-gradient(var(--orange), var(--orange)),
        linear-gradient(var(--orange), var(--orange)), linear-gradient(var(--orange), var(--orange));
    background-repeat: no-repeat;
    background-size: 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px, 14px 2px, 2px 14px;
    background-position:
        top left, top left,
        top right, top right,
        bottom left, bottom left,
        bottom right, bottom right;
    opacity: 0.85;
}

/* Tikslų juostos panelis */
.goal-container {
    padding: 16px 18px;
    border-radius: 2px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.goal-label {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.goal-label i {
    color: var(--blue-bright);
    margin-right: 5px;
}

.goal-pct {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--orange-bright);
}

.progress-bar {
    width: 100%;
    background-color: var(--bg-0);
    height: 10px;
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid var(--border);
    background-image: repeating-linear-gradient(90deg, transparent, transparent 9px, rgba(0,0,0,0.35) 9px, rgba(0,0,0,0.35) 10px);
}

.progress-fill {
    background: linear-gradient(90deg, var(--blue-dark), var(--blue) 60%, var(--orange) 100%);
    height: 100%;
    width: 0%;
    transition: width 2s ease-out;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.goal-value {
    margin-top: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
}

/* Laikmačio panelis (C4/HUD stilius) */
.timer-container {
    padding: 16px 18px;
    border-radius: 2px;
}

.timer-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 10px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
    color: var(--orange);
    animation: pulse-dot 1.4s ease-in-out infinite;
    flex-shrink: 0;
}

.countdown-timer {
    font-family: var(--font-mono);
    font-size: 30px;
    color: var(--orange-bright);
    text-shadow: 0 0 14px rgba(255, 122, 41, 0.45);
    letter-spacing: 1px;
}

.countdown-timer .unit {
    font-size: 14px;
    color: var(--text-faint);
    margin-right: 6px;
}

/* Paramos blokas */
.parama {
    padding: 40px 30px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.parama-watermark {
    position: absolute;
    top: 50%;
    right: -60px;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    color: var(--blue);
    opacity: 0.05;
    pointer-events: none;
}

.parama-watermark svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1;
}

.eyebrow-center {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.parama-title {
    position: relative;
    font-family: var(--font-body);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.2px;
    color: #ffffff;
    margin: 14px 0 30px;
}

.parama-title .accent {
    color: var(--orange-bright);
    text-shadow: 0 0 18px rgba(255, 122, 41, 0.35);
}

.parama-button {
    position: relative;
    overflow: hidden;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #d9581a, var(--orange) 55%, var(--orange-bright));
    color: #ffffff;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(255, 122, 41, 0.3);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    transform-origin: center;
}

.parama-button i {
    transition: transform 0.25s ease;
}

.parama-button::after {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.parama-button:hover {
    box-shadow: 0 8px 26px rgba(255, 122, 41, 0.5);
    transform: scale(1.03);
}

.parama-button:hover i {
    transform: rotate(-12deg) scale(1.1);
}

.parama-button:hover::after {
    left: 130%;
}

.parama-button:active {
    transform: scale(0.98);
    box-shadow: 0 3px 12px rgba(255, 122, 41, 0.35);
}

.parama-disclaimer {
    position: relative;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--danger);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Rėmėjų sąrašas (scoreboard) */
.supporters-section {
    position: relative;
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    text-align: left;
}

.supporters-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-dim);
    margin-bottom: 14px;
    text-align: center;
}

.supporters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 150px;
}

.supporter-item {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 10px;
    background-color: var(--surface-alt);
    border: 1px solid var(--border);
    border-left: 2px solid var(--border);
    padding: 10px 14px;
    border-radius: 3px;
    animation: fadeIn 0.5s ease-in-out;
    font-size: 14px;
}

.supporter-rank {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
}

.supporter-name {
    color: #ffffff;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supporter-name i {
    margin-right: 6px;
}

.supporter-amount {
    font-family: var(--font-mono);
    color: var(--blue-bright);
    font-weight: 400;
}

.supporter-item.rank-1 {
    border-left-color: var(--gold);
    background: linear-gradient(90deg, rgba(245, 197, 66, 0.08), var(--surface-alt) 40%);
}
.supporter-item.rank-1 .supporter-amount { color: var(--gold); }
.supporter-item.rank-1 .supporter-name i { color: var(--gold); }

.supporter-item.rank-2 {
    border-left-color: var(--silver);
}
.supporter-item.rank-2 .supporter-amount { color: var(--silver); }

.supporter-item.rank-3 {
    border-left-color: var(--bronze);
}
.supporter-item.rank-3 .supporter-amount { color: var(--bronze); }

/* --- PORTEKSTAS (FOOTER) --- */

.footer {
    text-align: center;
    width: 100%;
    margin-top: auto;
    background-color: #081121;
    border-top: 1px solid var(--border);
    padding: 20px 40px;
}

.footer span {
    color: var(--text-faint);
    font-size: 12px;
    font-family: var(--font-mono);
}

/* --- RESPONSIVE (MEDIA QUERIES) --- */

@media (max-width: 850px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-group-center {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(8, 17, 33, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        padding: 40px 20px;
        box-sizing: border-box;
    }

    .nav-group-center.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
        padding: 14px 0;
        font-size: 16px;
        font-weight: 600;
        color: #ffffff;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transition: background 0.2s, color 0.2s;
    }

    .nav-item:last-child {
        border-bottom: none;
    }

    .nav-item:hover {
        color: var(--blue-bright);
        background-color: rgba(37, 99, 235, 0.2);
        border-radius: 8px;
    }

    .nav-group-right {
        display: none;
    }

    .flex-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 26px;
        padding: 0 10px;
    }

    .left-column {
        max-width: 100%;
        text-align: center;
    }

    .thanks-message-block,
    .goal-container,
    .timer-container {
        text-align: center;
    }

    .goal-header {
        justify-content: center;
        gap: 10px;
    }

    .parama {
        max-width: 100%;
        padding: 32px 20px;
    }

    .main-content {
        padding: 100px 15px 40px 15px;
    }

    .parama-title {
        font-size: 2.2rem;
    }

    .parama-watermark {
        right: -100px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .status-dot, .live-dot { animation: none; }
    .progress-fill { transition: none; }
}
