* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, Segoe UI, Arial, sans-serif;
    background: #0f172a;
    color: #e5e7eb;
}

a {
    color: #38bdf8;
    text-decoration: none;
}

.hero {
    min-height: 420px;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, .25), transparent 35%),
        linear-gradient(135deg, #020617, #111827);
    padding: 24px;
}

nav,
.topnav {
    display: flex;
    gap: 18px;
    align-items: center;
    padding: 18px 24px;
    background: rgba(15, 23, 42, .85);
    border-bottom: 1px solid rgba(148, 163, 184, .2);
}

nav strong,
.topnav strong {
    margin-right: auto;
}

.hero-content {
    max-width: 900px;
    margin: 90px auto;
    text-align: center;
}

.hero-content h1 {
    font-size: clamp(36px, 6vw, 72px);
    margin-bottom: 16px;
}

.hero-content p {
    font-size: 20px;
    color: #cbd5e1;
}

.btn {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 22px;
    border-radius: 14px;
    background: #38bdf8;
    color: #020617;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

.grid {
    max-width: 1100px;
    margin: -60px auto 40px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 20px;
}

.card,
.ticket,
.form,
.empty,
.alert {
    background: rgba(30, 41, 59, .95);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}

.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.form {
    display: grid;
    gap: 12px;
}

input,
textarea {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #334155;
    background: #020617;
    color: #e5e7eb;
}

.ticket-list {
    display: grid;
    gap: 18px;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f59e0b;
    color: #111827;
    font-weight: 700;
}

.success {
    border-color: #22c55e;
}

.error {
    border-color: #ef4444;
}

@media (max-width: 800px) {
    .grid {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }

    nav,
    .topnav {
        flex-wrap: wrap;
    }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 13px;
}

.status-open {
    background: #ef4444;
    color: #fff;
}

.status-progress {
    background: #f97316;
    color: #111827;
}

.status-waiting {
    background: #facc15;
    color: #111827;
}

.status-solved {
    background: #22c55e;
    color: #052e16;
}

.status-default {
    background: #64748b;
    color: #fff;
}
/* ==========================================================
   Navigation
   ========================================================== */

.topnav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 12px 24px;
    background: rgba(15, 23, 42, .92);
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    backdrop-filter: blur(14px);
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-left {
    min-width: 0;
    flex-wrap: wrap;
}

.nav-right {
    margin-left: auto;
    flex-shrink: 0;
}

.nav-brand {
    color: #ffffff;
    font-weight: 900;
    margin-right: 10px;
    white-space: nowrap;
}

.topnav a {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.topnav a:hover {
    color: #7dd3fc;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 14px;
    transition: background .2s ease, transform .2s ease;
}

.nav-user:hover {
    background: rgba(56, 189, 248, .08);
    transform: translateY(-1px);
}

.nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 2px solid rgba(56, 189, 248, .55);
    object-fit: cover;
    background: #020617;
}

.nav-user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.nav-user-info strong {
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.nav-user-info small {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 2px;
}

.nav-btn {
    padding: 9px 13px;
    border-radius: 12px;
    background: rgba(56, 189, 248, .10);
    font-weight: 700;
}

.nav-btn:hover {
    background: rgba(56, 189, 248, .20);
}

.nav-admin {
    background: rgba(249, 115, 22, .15);
    color: #fb923c !important;
}

.nav-create {
    background: #38bdf8;
    color: #020617 !important;
}

.nav-create:hover {
    background: #7dd3fc;
    color: #020617 !important;
}

.nav-logout {
    color: #f87171 !important;
    background: rgba(239, 68, 68, .08);
}

.nav-logout:hover {
    background: rgba(239, 68, 68, .16);
}

@media (max-width: 1050px) {
    .topnav {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        flex-wrap: wrap;
    }

    .nav-right {
        margin-left: 0;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .topnav {
        padding: 12px 16px;
    }

    .nav-user {
        width: 100%;
    }
}
.overview-title {
    display: flex;
    align-items: center;
    gap: 18px;
}

.overview-mascot {
    width: 68px;
    height: 68px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35));
}

@media (max-width: 600px) {
    .overview-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .overview-mascot {
        width: 56px;
        height: 56px;
    }
}