:root {
    --ev8-primary: #c00000;
    --ev8-primary-dark: #970000;
    --ev8-secondary: #5f7287;
    --ev8-secondary-light: #e8eef4;
    --ev8-body: #f5f7fb;
    --ev8-text: #17202a;
}

body {
    background: radial-gradient(circle at top left, rgba(192,0,0,.08), transparent 22%), linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%);
    color: var(--ev8-text);
    min-height: 100vh;
}

.ev8-navbar {
    background: rgba(23, 32, 42, .92);
    backdrop-filter: blur(10px);
}

.hero {
    padding: 5rem 0 3rem;
}

.hero-card,
.dashboard-card,
.form-card,
.metric-card,
.link-card,
.cta-card,
.analytics-card {
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(95,114,135,.14);
    border-radius: 1.5rem;
    box-shadow: 0 18px 50px rgba(24, 38, 53, .08);
}

.hero-glow { position: relative; }
.hero-glow::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: rgba(192, 0, 0, .12);
    filter: blur(50px);
    border-radius: 50%;
    top: -40px;
    right: -40px;
    z-index: -1;
}

.btn-ev8 {
    background: linear-gradient(135deg, var(--ev8-primary) 0%, var(--ev8-primary-dark) 100%);
    border: none;
    color: #fff;
}
.btn-ev8:hover,
.btn-ev8:focus {
    color: #fff;
    background: linear-gradient(135deg, var(--ev8-primary-dark) 0%, #730000 100%);
}

.btn-soft {
    background: var(--ev8-secondary-light);
    color: var(--ev8-secondary);
    border: 1px solid rgba(95,114,135,.18);
}

.text-ev8-primary { color: var(--ev8-primary); }
.text-ev8-secondary { color: var(--ev8-secondary); }
.bg-ev8-soft { background: var(--ev8-secondary-light); }

.feature-icon,
.metric-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(192, 0, 0, .1);
    color: var(--ev8-primary);
    font-size: 1.2rem;
}

.form-control,
.form-select {
    border-radius: 1rem;
    padding: .85rem 1rem;
    border-color: rgba(95,114,135,.25);
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(192, 0, 0, .45);
    box-shadow: 0 0 0 .25rem rgba(192, 0, 0, .08);
}

.qr-box {
    min-height: 220px;
    border: 1px dashed rgba(95,114,135,.3);
    border-radius: 1rem;
    background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

.code-block {
    background: #111827;
    color: #f8fafc;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
}

.table-modern { --bs-table-bg: transparent; }
.table-modern th { color: var(--ev8-secondary); font-weight: 600; }
.badge-soft {
    background: rgba(95,114,135,.12);
    color: var(--ev8-secondary);
    border: 1px solid rgba(95,114,135,.12);
}
.copy-btn { white-space: nowrap; }
.auth-wrap { min-height: calc(100vh - 140px); }
.stat-pill {
    padding: .85rem 1rem;
    border-radius: 1rem;
    background: var(--ev8-secondary-light);
}
.small-muted {
    font-size: .875rem;
    color: var(--ev8-secondary);
}

@media (max-width: 767.98px) {
    .hero { padding-top: 3rem; }
}


/* Brand styles (ported from ev8.nu) */
.navbar-brand .brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ev8-primary), var(--ev8-primary-dark));
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.04em;
    padding-left: 25px;
    padding-right: 25px;
}
.brand-text {
    font-weight: 800;
    color: var(--ev8-text);
}
/* Ensure readability on the existing dark navbar */
.ev8-navbar .brand-text { color: #fff; }
