:root {
    color-scheme: dark;
    --glass-bg: rgba(5, 9, 20, 0.32);
    --glass-border: rgba(255, 255, 255, 0.16);
    --accent: #a6c8ff;
    --accent-strong: #6aa7ff;
    --text: #eef3ff;
    --muted: #9fb4d6;
    --danger: #ff6b7a;
    --success: #74f0c0;
    --shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
    --blur: 28px;
    --radius: 26px;
    font-family: "Inter", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    line-height: 1.6;
    padding: 0;
    background-color: #02060f;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: var(--page-bg, url('/assets/img/liquid-glass.svg'));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: saturate(120%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 15% 20%, rgba(166, 200, 255, 0.2), transparent 55%),
        linear-gradient(135deg, rgba(21, 36, 69, 0.3), rgba(4, 9, 22, 0.65));
    pointer-events: none;
}

.glass-shell {
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background-clip: padding-box;
}

.page-wrapper {
    width: min(1200px, 90vw);
    margin: 0 auto;
    padding: 3rem 0 5rem;
    position: relative;
    z-index: 1;
}

header.hero {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 3.2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}

header.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 18, 0.3);
    backdrop-filter: blur(8px);
    z-index: -1;
}

header.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(166, 200, 255, 0.25), transparent 60%);
    pointer-events: none;
    z-index: -1;
}

header.hero h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin: 0;
    letter-spacing: -0.03em;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.product-card {
    position: relative;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    filter: blur(40px);
    opacity: 0.6;
    z-index: -2;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(6, 10, 20, 0.15), rgba(6, 10, 20, 0.85));
    z-index: -1;
}

.product-card h3 {
    margin: 0;
    font-size: 1.4rem;
}

.product-price {
    font-size: 1.7rem;
    font-weight: 600;
}

.product-meta {
    color: var(--muted);
    font-size: 0.95rem;
}

form.donate-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: auto;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.9rem 1.1rem;
    background: rgba(7, 15, 31, 0.7);
    color: var(--text);
    font-size: 1rem;
}

button,
.btn {
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: #030712;
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    box-shadow: 0 20px 30px rgba(34, 100, 255, 0.25);
}

button:hover,
.btn:hover {
    transform: translateY(-2px);
}

.status-message {
    padding: 0.9rem 1rem;
    border-radius: 16px;
    font-weight: 500;
}

.status-success {
    background: rgba(116, 240, 192, 0.12);
    color: var(--success);
    border: 1px solid rgba(116, 240, 192, 0.25);
}

.status-queued {
    background: rgba(255, 199, 112, 0.15);
    color: #ffd277;
    border: 1px solid rgba(255, 199, 112, 0.25);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
    padding: 0.9rem 1.4rem;
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.site-footer {
    margin-top: 2.5rem;
    padding: 1.2rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 1.25rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    max-width: 480px;
    width: calc(100% - 2rem);
    z-index: 1000;
}

.cookie-banner p {
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
}

.cookie-banner a {
    color: var(--accent);
    text-decoration: underline;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 18, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.rcon-banner {
    margin-top: 1rem;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--accent);
}

.rcon-banner.error {
    border-color: var(--danger);
}

.rcon-banner pre {
    margin: 0.5rem 0 0;
    white-space: pre-wrap;
    font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 0.9rem;
    color: var(--muted);
}

.rcon-banner__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.modal__panel {
    width: min(420px, 90vw);
    text-align: center;
    gap: 1rem;
}

.toggle-chip {
    position: relative;
    display: inline-flex;
    margin-top: 0.5rem;
}

.toggle-chip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    margin: 0;
    cursor: pointer;
}

.toggle-chip span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted);
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.toggle-chip input:checked + span {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(166, 200, 255, 0.22);
    box-shadow: 0 0 18px rgba(166, 200, 255, 0.3);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.admin-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    padding: 2rem;
    align-items: flex-start;
}

.admin-nav {
    padding: 0;
    align-self: flex-start;
}

.admin-nav.glass-shell {
    padding: 1.5rem;
}

.admin-nav a {
    color: var(--text);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    display: block;
    transition: background 0.2s;
}

.admin-nav a.active,
.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.14);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

table td,
table th {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.admin-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.admin-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.admin-wrapper > .glass-shell.admin-section {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row > div {
    flex: 1;
}

@media (max-width: 960px) {
    .admin-wrapper {
        grid-template-columns: 1fr;
    }

    .admin-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .admin-nav a {
        flex: 1 1 auto;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .page-wrapper {
        width: 94vw;
        padding-top: 1.5rem;
    }

    header.hero {
        padding: 1.5rem;
    }

    .product-card {
        padding: 1.2rem;
    }
}


