:root {
    --mt-bg: #080d17;
    --mt-card: #111c2c;
    --mt-border: #233247;
    --mt-primary: #0891b2;
    --mt-accent: #22d3ee;
    --mt-text: #f1f5f9;
    --mt-muted: #94a3b8;
}

html {
    color-scheme: dark;
}

body {
    background: radial-gradient(ellipse at top, #102638 0%, #080d17 55%) !important;
    background-attachment: fixed !important;
    color: var(--mt-text) !important;
    font-family: Inter, system-ui, -apple-system, sans-serif !important;
}

.bg-gray-900 {
    background-color: #111c2c !important;
}

.bg-gray-800, .bg-slate-800 {
    background-color: #192638 !important;
}

.bg-gray-700 {
    background-color: #26374c !important;
}

.bg-black {
    background-color: #080f1b !important;
}

.border-gray-800,
.border-gray-700,
.border-slate-700 {
    border-color: #26384d !important;
}

.text-gray-400 {
    color: #94a3b8 !important;
}

.text-gray-500 {
    color: #8496ac !important;
}

.text-sky-400,
.text-purple-400,
.text-blue-400 {
    color: #22d3ee !important;
}

.bg-sky-600,
.bg-purple-600,
.bg-blue-600 {
    background-color: #0e7490 !important;
}

.bg-sky-500,
.bg-purple-500,
.bg-blue-500 {
    background-color: #0891b2 !important;
}

.hover\:bg-sky-500:hover,
.hover\:bg-purple-500:hover,
.hover\:bg-blue-500:hover {
    background-color: #0e7490 !important;
}

.rounded-xl {
    border-radius: 16px !important;
}

.shadow, .shadow-md {
    box-shadow: 0 6px 22px rgba(0,0,0,.16) !important;
}

button {
    transition: background-color .2s, box-shadow .2s;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #22d3ee;
    outline-offset: 3px;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea, select {
    border-radius: 10px !important;
}

input:focus, textarea:focus, select:focus {
    border-color: #22d3ee !important;
    box-shadow: 0 0 0 3px rgba(34,211,238,.09);
}

.megatop-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 15px 18px;
    background: #111c2c;
    border: 1px solid #233247;
    border-radius: 16px;
}

.megatop-brand img {
    width: 52px;
    height: 48px;
    object-fit: contain;
}

.megatop-brand-name {
    font-size: 19px;
    font-weight: 850;
    letter-spacing: 1px;
    color: #f1f5f9;
}

.megatop-brand-name span {
    color: #22d3ee;
}

.megatop-brand-sub {
    color: #94a3b8;
    font-size: 11px;
    margin-top: 3px;
}

.megatop-home-brand {
    text-align: center;
    margin-bottom: 20px;
}

.megatop-home-brand .megatop-brand-name {
    font-size: 25px;
}

.chat-card {
    background: #111c2c !important;
    border: 1px solid #294359 !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.35) !important;
    height: min(560px, 68vh) !important;
}

.chat-header {
    background: linear-gradient(110deg,#123348,#164e63) !important;
    border-bottom: 1px solid #286078;
    padding: 17px !important;
}

.msg-bot {
    background: #eaf4f8 !important;
    color: #183344 !important;
    border-color: #0891b2 !important;
    border-radius: 12px !important;
}

.msg-user {
    background: #0e7490 !important;
    border-radius: 12px 12px 3px 12px !important;
}

.btn-option, .btn-brand {
    background: #0e7490 !important;
    color: #fff !important;
    border-radius: 9px !important;
}

.btn-option:hover, .btn-brand:hover {
    background: #155e75 !important;
}

.btn-back {
    background: #334155 !important;
}

.logo-glow {
    filter: drop-shadow(0 5px 18px rgba(34,211,238,.15)) !important;
    max-height: 150px;
}

.bottom-nav {
    background: rgba(12,22,36,.97) !important;
    border-top: 1px solid #26384d !important;
    box-shadow: 0 -5px 25px rgba(0,0,0,.2);
    backdrop-filter: blur(12px);
}

.nav-link {
    color: #94a3b8 !important;
}

.nav-link.active {
    color: #22d3ee !important;
    background: rgba(34,211,238,.07);
    border-radius: 10px;
}

.logged-badge-admin {
    background: #155e75 !important;
    box-shadow: none !important;
}

.plano-card {
    transition: border-color .2s;
}

.plano-card:hover {
    border-color: #0891b2 !important;
}

.from-blue-900.to-indigo-900 {
    background: linear-gradient(120deg,#103447,#164e63) !important;
    border-color: #28718a !important;
}

.swal2-popup.swal-dark {
    background: #111c2c !important;
    border-color: #294359 !important;
    border-radius: 18px !important;
}

.swal2-popup.swal-dark .swal2-input {
    background: #080f1b !important;
    border-color: #26384d !important;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 10px;
}

@media(max-width: 640px) {
    .megatop-brand {
        padding: 12px;
        margin-bottom: 14px;
    }

    .megatop-brand-name {
        font-size: 17px;
    }

    .chat-card {
        height: min(540px, 65vh) !important;
    }

    .logo-glow {
        max-height: 100px;
    }
}
