:root {
    --bg: #070b12;
    --card: #111824;
    --card2: #172233;
    --text: #f4f7fb;
    --muted: #9aa7ba;
    --alpha: #1f8fff;
    --alpha2: #66b8ff;
    --alpha3: #b7dfff;
    --danger: #ff4d4d;
    --success: #36d399;
    --border: #263449;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--text);
    position: relative;

    background:
        radial-gradient(circle at top left,
            rgba(31,143,255,.18),
            transparent 40%),
        radial-gradient(circle at bottom right,
            rgba(102,184,255,.08),
            transparent 35%),
        linear-gradient(
            135deg,
            #070b12 0%,
            #101826 100%
        );
}

body::before {
    content: "";

    position: fixed;

    inset: 0;

    background-image: url("/images/logo.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 700px;

    opacity: .045;

    pointer-events: none;

    z-index: -1;

    filter:
        grayscale(100%)
        brightness(2)
        drop-shadow(0 0 40px rgba(31,143,255,.35));
}

a {
    color: inherit;
    text-decoration: none;
}

.dashboard {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
    width: 280px;
    background: rgba(7, 11, 18, 0.96);
    border-right: 1px solid var(--border);
    padding: 20px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar::-webkit-scrollbar-track {
    background: #070b12;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(31, 143, 255, 0.45);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(31, 143, 255, 0.75);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 8px 8px 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(183, 223, 255, 0.12);
}

.sidebar-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    flex-shrink: 0;
    filter: drop-shadow(0 0 14px rgba(31, 143, 255, 0.45));
}

.brand-title {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: 0.3px;
}

.brand-subtitle {
    margin-top: 5px;
    color: var(--alpha2);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-section {
    padding: 10px 0 12px;
    border-bottom: 1px solid rgba(183, 223, 255, 0.08);
}

.sidebar-section:last-child {
    border-bottom: none;
}

.sidebar-title {
    color: var(--alpha2);
    font-size: 11px;
    letter-spacing: 1.7px;
    text-transform: uppercase;
    font-weight: 800;
    margin: 4px 10px 8px;
    opacity: 0.95;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 38px;
    padding: 9px 11px;
    border-radius: 10px;
    color: #d8dfe8;
    font-size: 14px;
    white-space: nowrap;
    transition: 0.18s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a span {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
    font-size: 16px;
    opacity: 0.82;
}

.sidebar-nav a:hover {
    background: rgba(31, 143, 255, 0.08);
    color: white;
    transform: translateX(4px);
}

.sidebar-nav a.active {
    background: linear-gradient(
        90deg,
        rgba(31, 143, 255, 0.24),
        rgba(31, 143, 255, 0.04)
    );
    border-left: 3px solid var(--alpha2);
    color: white;
    box-shadow: inset 0 0 16px rgba(31, 143, 255, 0.12);
}

.sidebar-nav a.active span {
    opacity: 1;
}

.brand {
    display: none;
}

/* =========================
   MAIN CONTENT
========================= */

.main {
    flex: 1;
    padding: 32px;
}

.topbar {
    background: rgba(17, 24, 36, 0.92);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

.card {
    background: rgba(17, 24, 36, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    max-width: 900px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.28);
}

h2 {
    margin-top: 28px;
    color: var(--alpha2);
}

label {
    display: block;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 6px;
}

input:not([type="checkbox"]),
textarea,
select {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px;
    background: #0b111b;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: white;
    outline: none;
}

input[type="checkbox"] {
    width: auto;
    margin: 0 8px 0 0;
    transform: scale(1.05);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--alpha);
    box-shadow: 0 0 0 2px rgba(31, 143, 255, 0.16);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

button {
    background: linear-gradient(135deg, var(--alpha), var(--alpha2));
    color: white;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(31, 143, 255, 0.24);
}

button:hover {
    opacity: 0.92;
}

.success {
    color: var(--success);
    font-weight: bold;
}

/* =========================
   LOGIN
========================= */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.login-card {
    width: 420px;
    background: rgba(17, 24, 36, 0.95);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 35px;
    text-align: center;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.login-card h1 {
    color: var(--alpha2);
}

.app-type,
.ticket-type {
    background: var(--card2);
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 18px;
    border: 1px solid var(--border);
}

/* =========================
   MULTI PICKER
========================= */

.multi-picker {
    position: relative;
    margin-bottom: 18px;
}

.selected-bar {
    min-height: 44px;
    background: #0b111b;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.empty-selected {
    color: var(--muted);
    font-size: 13px;
}

.selected-pill {
    background: rgba(31, 143, 255, 0.16);
    border: 1px solid rgba(102, 184, 255, 0.45);
    color: white;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
}

.selected-pill::after {
    content: " ×";
    color: var(--alpha2);
}

.multi-picker-btn {
    width: 100%;
    background: #0b111b;
    border: 1px solid var(--border);
    color: white;
    padding: 12px;
    border-radius: 10px;
    text-align: left;
    font-weight: normal;
}

.multi-picker-btn::after {
    content: "▼";
    float: right;
    color: var(--alpha2);
}

.multi-picker.open .multi-picker-btn {
    border-color: var(--alpha);
}

.multi-picker-menu {
    display: none;
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    background: #0b111b;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.multi-picker.open .multi-picker-menu {
    display: block;
}

.multi-picker-option {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    margin: 0;
}

.multi-picker-option:hover {
    background: rgba(31, 143, 255, 0.12);
}

.multi-picker-option input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex: 0 0 auto;
}

/* =========================
   LANDING PAGE
========================= */

.landing-page {
    max-width: 1400px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    padding: 80px 30px 60px;
}

.hero h1 {
    font-size: 80px;
    font-weight: 900;
    color: var(--alpha2);
    margin: 0 0 25px;
    text-shadow: 0 0 25px rgba(31, 143, 255, 0.35);
}

.hero-text {
    max-width: 950px;
    margin: 0 auto;
    font-size: 24px;
    line-height: 1.7;
    color: var(--muted);
}

.hero-logo {
    width: 220px;
    max-width: 90%;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(31, 143, 255, 0.42));
}

/* =========================
   BUTTONS
========================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    padding: 16px 24px;
    border-radius: 14px;
    font-weight: bold;
    font-size: 18px;
    transition: all .2s ease;
}

.primary-button {
    background: linear-gradient(135deg, var(--alpha), var(--alpha2));
    color: white;
    box-shadow: 0 10px 25px rgba(31, 143, 255, 0.24);
}

.secondary-button {
    background: rgba(183, 223, 255, 0.05);
    border: 1px solid var(--border);
    color: white;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-2px);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* =========================
   FEATURES
========================= */

.features-section {
    padding: 30px;
}

.features-section h2,
.pricing-section h2 {
    text-align: center;
    font-size: 42px;
    color: white;
    margin-bottom: 35px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.feature-card {
    background: rgba(17, 24, 36, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 25px;
    transition: all .2s ease;
}

.feature-card:hover {
    border-color: var(--alpha);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(31, 143, 255, 0.12);
}

.feature-card h3 {
    margin-top: 0;
    color: var(--alpha2);
}

.feature-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* =========================
   PRICING
========================= */

.pricing-section {
    padding: 60px 30px 80px;
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(17, 24, 36, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
    width: 100%;
    min-height: auto;
    text-align: left;
}

.pricing-card h3 {
    font-size: 32px;
    color: var(--alpha2);
    margin-bottom: 15px;
}

.price {
    font-size: 56px;
    font-weight: bold;
    color: var(--alpha2);
    margin-bottom: 20px;
}

.price span {
    font-size: 20px;
    color: var(--muted);
}

.pricing-card ul {
    margin: 20px 0;
}

.pricing-card li {
    margin-bottom: 12px;
    color: var(--text);
}

.pricing-card .button {
    width: auto;
    min-width: 250px;
}

/* =========================
   ANALYTICS
========================= */

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.stat-card {
    background: rgba(17, 24, 36, 0.95);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 22px;
}

.stat-card h3 {
    color: var(--muted);
    margin: 0 0 12px;
    font-size: 15px;
}

.stat-value {
    font-size: 36px;
    font-weight: bold;
    color: var(--alpha2);
    margin-bottom: 8px;
}

.stat-card p {
    color: var(--muted);
    margin: 0;
}

.module-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: rgba(183, 223, 255, 0.035);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px 14px;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .main {
        padding: 20px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-text {
        font-size: 18px;
    }

    .features-section h2,
    .pricing-section h2 {
        font-size: 32px;
    }

    .price {
        font-size: 56px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .button {
        width: 100%;
        max-width: 350px;
    }
}