html { scroll-behavior: smooth; }

:root {
    --accent: #23a6d5;
    --accent-hover: #1b8eb8;
    --panel: rgba(16, 23, 34, 0.92);
    --panel-solid: #161b22;
    --card-bg: #232324;
    --text-muted: #8b949e;
    --border: rgba(32, 48, 64, 0.45);
}

html, body {
    min-height: 100vh;
    background: transparent;
    color: #eceef2;
    font-family: 'PoseidonUI', 'JetBrains Mono', ui-monospace, monospace;
}

body,
button,
input,
select,
textarea,
.form-control,
.form-select,
.btn,
.modal-content {
    font-family: 'PoseidonUI', 'JetBrains Mono', ui-monospace, monospace;
}

html {
    background-color: #0e0f14;
}

#fog-bg,
#fog-bg-banned {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

body > :not(#fog-bg):not(#fog-bg-banned):not(script):not(.modal):not(.modal-backdrop):not(#chakra-toast-root) {
    position: relative;
    z-index: 1;
}

.logo_text {
    font-size: clamp(2.8rem, 8vw, 5rem);
    font-weight: 800;
    letter-spacing: 4px;
    color: #fff;
    line-height: 1;
}

.secondary_text {
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    color: #c9d1d9;
    font-weight: 500;
}

.roboto { font-family: inherit; }

.navbar {
    backdrop-filter: blur(8px);
}

.navbar-nav .nav-link.active {
    color: var(--accent) !important;
    font-weight: 600;
}

.navbar-brand .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #1d6fa3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    font-size: 1.1rem;
}

.sidebar {
    width: 240px;
    min-width: 240px;
    background: rgba(13, 17, 23, 0.85) !important;
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--border);
    z-index: 100;
}

.sidebar .nav-link {
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    transition: background 0.15s ease;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(35, 166, 213, 0.15);
    color: var(--accent) !important;
}

.mobile-nav {
    z-index: 1050;
    background: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.feature-card,
.card.bg-dark.bg-opacity-25,
.card.bg-dark.bg-opacity-75 {
    background: var(--card-bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: 1rem !important;
}

.auth-card {
    background: rgba(16, 23, 34, 0.98) !important;
    border: 1px solid var(--border) !important;
}

.custom-placeholder::placeholder {
    color: #6b7280;
}

.form-control.bg-dark,
.form-select.bg-dark {
    background: #1c2230 !important;
    border: 1px solid var(--border) !important;
    color: #e6edf3 !important;
}

.form-control.bg-dark:focus,
.form-select.bg-dark:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(35, 166, 213, 0.2) !important;
}

.btn-info,
.btn-accent {
    background: var(--accent) !important;
    border: none !important;
    color: #fff !important;
}

.btn-info:hover,
.btn-accent:hover {
    background: var(--accent-hover) !important;
    color: #fff !important;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    padding: 0 1rem;
}

.pricing-card {
    min-height: 420px;
    border-radius: 1rem !important;
}

.admin-main {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    max-height: 100vh;
}

.admin-card {
    background: rgba(22, 27, 34, 0.82) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.85rem !important;
}

.admin-card .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.stats-grid-poseidon {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.stat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 64px;
    padding: 10px 6px;
    background: rgba(43, 43, 43, 0.92);
    border: 1px solid #3a3a3a;
    border-radius: 10px;
}

.stat-chip .val {
    font-size: 1.1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.c-invalid { color: #b2b8c2; }
.c-valid { color: #9bc83f; }
.c-rare-species { color: #a87ffc; }
.c-rarest-species { color: #c55fff; }
.c-trophy { color: #fcc400; }
.c-rare-trophy { color: #59affb; }

.key-cell {
    font-family: inherit;
    font-weight: 600;
}

.table {
    --bs-table-bg: transparent;
    --bs-table-color: #e6edf3;
    border-color: var(--border);
}

.news-item {
    background: #1c2230;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.news-date {
    font-family: Consolas, monospace;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.news-body { white-space: pre-wrap; line-height: 1.5; }

.stat-card .num {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.stat-card .lbl {
    color: var(--text-muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 767.98px) {
    .admin-main {
        padding-top: 3.5rem;
        max-height: none;
    }
}
