/* ============================================================
   VirusPos — Liquid glass dizayn
   (landing, auth, asosiy menyu, account dropdown)
   ============================================================ */

:root {
    --g-bg: #eef1f6;
    --g-card: rgba(255, 255, 255, 0.55);
    --g-card-solid: #ffffff;
    --g-text: #1c2430;
    --g-muted: #6b7280;
    --g-line: rgba(20, 30, 50, 0.12);
    --g-brand: #3b82f6;
    --g-brand-2: #8b5cf6;
    --g-grad: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --g-red: #ef4444;
    --g-amber: #f59e0b;
    --g-green: #10b981;
    --g-glass: rgba(255, 255, 255, 0.42);
    --g-glass-border: rgba(255, 255, 255, 0.6);
    --g-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    --g-glow: 0 10px 30px rgba(59, 130, 246, 0.35);
}

:root[data-theme="dark"] {
    --g-bg: #0b1220;
    --g-card: rgba(15, 23, 42, 0.55);
    --g-card-solid: #131c30;
    --g-text: #e5ecf6;
    --g-muted: #8b96a8;
    --g-line: rgba(255, 255, 255, 0.1);
    --g-glass: rgba(15, 23, 42, 0.55);
    --g-glass-border: rgba(255, 255, 255, 0.12);
    --g-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    --g-glow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; color: inherit; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", "Segoe UI", Tahoma, Arial, sans-serif; }

/* ---------- Background: sayt logosi ---------- */
.landing-body, .auth-body, .app-body {
    min-height: 100vh;
    background-color: var(--g-bg);
    background-image: linear-gradient(rgba(10, 16, 30, 0.72), rgba(10, 16, 30, 0.78)), url('/media/logo.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--g-text);
    -webkit-font-smoothing: antialiased;
}
:root[data-theme="light"] .landing-body,
:root[data-theme="light"] .auth-body,
:root[data-theme="light"] .app-body {
    background-image: linear-gradient(rgba(244, 247, 252, 0.86), rgba(244, 247, 252, 0.93)), url('/media/logo.png');
}

.app-body { background-attachment: scroll; }

/* ---------- Liquid glass menyu ---------- */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 22px;
    background: var(--g-glass);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--g-glass-border);
    box-shadow: var(--g-shadow);
    transition: background 0.25s ease;
}
.glass-nav.scrolled { background: var(--g-card); }
.glass-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}
.glass-brand { display: inline-flex; align-items: center; gap: 10px; }
.glass-brand-mark {
    width: 42px; height: 42px; border-radius: 50%;
    overflow: hidden; border: 2px solid var(--g-glass-border);
    background: #fff; display: grid; place-items: center;
    box-shadow: var(--g-glow); flex-shrink: 0;
}
.glass-brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.glass-brand-text { font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--g-text); white-space: nowrap; }
.glass-nav-links { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.glass-nav-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 12px; border-radius: 14px;
    font-size: 0.9rem; font-weight: 600; color: var(--g-text);
    background: transparent; border: 1px solid transparent; cursor: pointer;
    transition: all 0.2s ease; white-space: nowrap;
}
.glass-nav-btn svg { width: 16px; height: 16px; }
.glass-nav-btn:hover { background: var(--g-card); border-color: var(--g-glass-border); transform: translateY(-1px); }
.glass-nav-btn.active { background: var(--g-grad); color: #fff; box-shadow: var(--g-glow); }
.glass-nav-btn.primary { background: var(--g-grad); color: #fff; box-shadow: var(--g-glow); }
.glass-nav-btn.admin { border: 1px dashed var(--g-brand); color: var(--g-brand); }
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.glass-icon-btn {
    width: 40px; height: 40px; border-radius: 12px;
    border: 1px solid var(--g-glass-border); background: var(--g-card);
    color: var(--g-text); font-size: 1rem; cursor: pointer; flex-shrink: 0;
    transition: all 0.2s ease;
}
.glass-icon-btn:hover { box-shadow: var(--g-glow); transform: translateY(-1px); }
.nav-spacer { flex: 1; }

.hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; padding: 10px; border: 1px solid var(--g-glass-border);
    background: var(--g-card); border-radius: 12px; cursor: pointer;
}
.hamburger .hb-line { flex: 0 0 auto; }
.hamburger .hb-line { height: 2px; width: 100%; background: var(--g-text); border-radius: 2px; transition: all 0.25s ease; }
.hamburger.active .hb-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .hb-line:nth-child(2) { opacity: 0; }
.hamburger.active .hb-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Account dropdown ---------- */
.account-menu { position: relative; }
.account-dropdown {
    position: absolute; right: 0; top: calc(100% + 10px);
    width: 310px; border-radius: 18px;
    background: var(--g-card-solid);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--g-glass-border); box-shadow: var(--g-shadow);
    padding: 16px; z-index: 300;
    opacity: 0; visibility: hidden; transform: translateY(8px) scale(0.98);
    transition: all 0.25s ease;
}
.account-menu:hover .account-dropdown,
.account-menu:focus-within .account-dropdown { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.acc-drop-top { display: flex; flex-direction: column; gap: 2px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--g-line); }
.acc-drop-biz { font-weight: 800; font-size: 1.05rem; color: var(--g-text); }
.acc-drop-name { color: var(--g-muted); font-size: 0.9rem; }
.acc-drop-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; padding: 4px 0; }
.acc-lbl { color: var(--g-muted); flex-shrink: 0; }
.acc-val { color: var(--g-text); word-break: break-all; text-align: right; }
.acc-val.mono { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.75rem; }
.acc-drop-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.acc-form { display: block; }
.acc-btn {
    width: 100%; padding: 10px; border-radius: 12px; border: none;
    font-weight: 700; font-size: 0.9rem; cursor: pointer; color: #fff;
    transition: all 0.2s ease;
}
.acc-btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.acc-logout { background: var(--g-brand); }
.acc-delete { background: var(--g-red); }

/* ============================================================
   Landing sahifa
   ============================================================ */
.landing-main { max-width: 1200px; margin: 0 auto; padding: 20px 22px 60px; }

.landing-hero {
    text-align: center; padding: 70px 20px 50px;
    animation: fadeUp 0.8s ease both;
}
.hero-logo {
    width: 170px; height: 170px; margin: 0 auto 22px; border-radius: 32px;
    overflow: hidden; border: 3px solid var(--g-glass-border);
    background: #fff; box-shadow: var(--g-shadow), var(--g-glow);
    animation: floaty 5s ease-in-out infinite;
}
.hero-logo img { width: 100%; height: 100%; object-fit: cover; }
.landing-title {
    font-family: "Poppins", sans-serif; font-size: 3.2rem; font-weight: 800;
    color: var(--g-text); letter-spacing: -1px;
}
.landing-title span { background: var(--g-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.landing-sub { max-width: 640px; margin: 14px auto 26px; font-size: 1.1rem; color: var(--g-muted); }
.btn-glass {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 26px; border-radius: 16px; border: none; cursor: pointer;
    font-weight: 700; font-size: 1rem; color: #fff;
    background: var(--g-grad); box-shadow: var(--g-glow);
    transition: all 0.2s ease; text-decoration: none;
}
.btn-glass:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.08); }
.btn-glass.big { padding: 15px 40px; font-size: 1.1rem; }

.landing-about { margin-top: 40px; }
.landing-sec-title {
    text-align: center; font-family: "Poppins", sans-serif;
    font-size: 1.9rem; font-weight: 800; color: var(--g-text);
    margin-bottom: 26px;
}
.landing-intro {
    max-width: 820px; margin: 0 auto 28px; text-align: center;
    color: var(--g-muted); font-size: 1rem; line-height: 1.7;
}
.about-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}
.about-card {
    padding: 26px; border-radius: 22px;
    background: var(--g-glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--g-glass-border); box-shadow: var(--g-shadow);
    transition: all 0.25s ease;
    animation: fadeUp 0.7s ease both;
}
.about-card:hover { transform: translateY(-6px); box-shadow: var(--g-glow); }
.about-ico { font-size: 2rem; margin-bottom: 12px; }
.about-card h3 { font-family: "Poppins", sans-serif; font-size: 1.1rem; margin-bottom: 8px; color: var(--g-text); }
.about-card p { color: var(--g-muted); font-size: 0.92rem; line-height: 1.6; }

.landing-video { margin-top: 56px; }
.video-frame {
    max-width: 860px; margin: 0 auto; aspect-ratio: 16 / 9;
    border-radius: 24px; overflow: hidden;
    border: 2px solid var(--g-glass-border); box-shadow: var(--g-shadow);
    background: #000;
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Imkoniyatlar */
.landing-features { margin-top: 60px; }
.features-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 18px;
}
.feature-card {
    padding: 26px; border-radius: 22px;
    background: var(--g-glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--g-glass-border); box-shadow: var(--g-shadow);
    transition: all 0.25s ease; position: relative; overflow: hidden;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--g-glow); }
.feature-num {
    position: absolute; top: 14px; right: 18px;
    font-family: "Poppins", sans-serif; font-weight: 800; font-size: 2.4rem;
    background: var(--g-grad); -webkit-background-clip: text; background-clip: text;
    color: transparent; opacity: 0.28;
}
.feature-card h3 { font-family: "Poppins", sans-serif; font-size: 1.1rem; margin-bottom: 8px; color: var(--g-text); }
.feature-card p { color: var(--g-muted); font-size: 0.92rem; line-height: 1.6; }

/* Qanday ishlaydi */
.landing-how { margin-top: 60px; }
.steps-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}
.step-card {
    padding: 26px; text-align: center; border-radius: 22px;
    background: var(--g-glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--g-glass-border); box-shadow: var(--g-shadow);
    transition: all 0.25s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--g-glow); }
.step-ico { font-size: 2rem; display: block; margin-bottom: 12px; }
.step-card h3 { font-family: "Poppins", sans-serif; font-size: 1.05rem; margin-bottom: 8px; color: var(--g-text); }
.step-card p { color: var(--g-muted); font-size: 0.9rem; line-height: 1.6; }

/* Aloqa */
.landing-contact { margin-top: 60px; }
.contact-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.contact-card {
    padding: 26px; text-align: center; border-radius: 22px;
    background: var(--g-glass);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--g-glass-border); box-shadow: var(--g-shadow);
    transition: all 0.25s ease;
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--g-glow); }
.contact-card h3 { font-family: "Poppins", sans-serif; font-size: 1.05rem; margin-bottom: 8px; color: var(--g-text); }
.contact-card p { color: var(--g-muted); font-size: 0.92rem; line-height: 1.6; word-break: break-word; }

/* Premium footer */
.premium-footer {
    text-align: center; padding: 46px 20px 30px;
    background: linear-gradient(180deg, transparent, rgba(10, 16, 30, 0.55));
    border-top: 1px solid var(--g-glass-border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.footer-logo { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 18px; overflow: hidden; border: 2px solid var(--g-glass-border); background: #fff; box-shadow: var(--g-glow); }
.footer-logo img { width: 100%; height: 100%; object-fit: cover; }
.footer-name { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.4rem; color: var(--g-text); }
.footer-tag { color: var(--g-muted); margin: 6px 0 16px; }
.footer-links { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 18px; }
.footer-links a { color: var(--g-muted); font-weight: 600; font-size: 0.9rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--g-brand); }
.footer-copy { color: var(--g-muted); font-size: 0.82rem; opacity: 0.8; }

/* ============================================================
   LogIn / SingIn sahifa
   ============================================================ */
.auth-wrap {
    min-height: calc(100vh - 74px);
    display: grid; place-items: center; padding: 30px 18px;
}
.auth-card {
    width: 100%; max-width: 460px;
    border-radius: 26px; padding: 28px;
    background: var(--g-glass);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--g-glass-border); box-shadow: var(--g-shadow);
    animation: fadeUp 0.6s ease both;
}
.auth-tabs {
    display: flex; gap: 0; margin-bottom: 20px;
    border-radius: 14px; overflow: hidden;
    border: 1px solid var(--g-glass-border); background: var(--g-card);
}
.auth-tab {
    flex: 1; padding: 12px; border: none; cursor: pointer;
    background: transparent; color: var(--g-muted);
    font-weight: 700; font-size: 0.98rem; transition: all 0.25s ease;
}
.auth-tab.active { background: var(--g-brand); color: #fff; box-shadow: var(--g-glow); }
.auth-panel { display: none; }
.auth-panel.active { display: block; animation: fadeUp 0.4s ease both; }
.auth-form { display: flex; flex-direction: column; gap: 4px; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-label { font-size: 0.82rem; font-weight: 700; color: var(--g-muted); margin-top: 10px; }
.inp {
    width: 100%; padding: 12px 14px; border-radius: 13px;
    border: 1px solid var(--g-glass-border); background: var(--g-card);
    color: var(--g-text); font-size: 0.95rem; outline: none;
    transition: all 0.2s ease;
}
.inp:focus { border-color: var(--g-brand); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22); }
.auth-submit { margin-top: 18px; padding: 13px; width: 100%; }
.auth-reset-btn {
    width: 100%; margin-top: 12px; padding: 10px; border: none; cursor: pointer;
    background: transparent; color: var(--g-brand); font-weight: 700; font-size: 0.9rem;
}
.auth-error { background: rgba(239, 68, 68, 0.14); color: var(--g-red); border: 1px solid rgba(239, 68, 68, 0.35); padding: 10px 14px; border-radius: 12px; font-size: 0.88rem; margin-bottom: 14px; }
.auth-info { background: rgba(16, 185, 129, 0.14); color: var(--g-green); border: 1px solid rgba(16, 185, 129, 0.35); padding: 10px 14px; border-radius: 12px; font-size: 0.88rem; margin-bottom: 14px; }
.auth-dev { background: rgba(245, 158, 11, 0.15); color: var(--g-amber); border: 1px solid rgba(245, 158, 11, 0.4); padding: 10px 14px; border-radius: 12px; font-size: 0.88rem; margin-bottom: 14px; }

/* Parol darajasi (red / yellow / green) */
.strength-wrap { margin-top: 8px; }
.strength-bar { display: flex; gap: 6px; height: 9px; }
.strength-bar .seg { flex: 1; border-radius: 6px; opacity: 0.22; transition: all 0.25s ease; }
.strength-bar .seg-red { background: var(--g-red); }
.strength-bar .seg-yellow { background: var(--g-amber); }
.strength-bar .seg-green { background: var(--g-green); }
.strength-bar .seg.lit { opacity: 1; box-shadow: 0 0 8px currentColor; }
.strength-text { font-size: 0.78rem; color: var(--g-muted); margin-top: 5px; min-height: 16px; }

/* Reset modal */
.auth-modal {
    display: none; position: fixed; inset: 0; z-index: 500;
    background: rgba(8, 12, 22, 0.55); backdrop-filter: blur(6px);
    place-items: center; padding: 20px;
}
.auth-modal.open { display: grid; }
.auth-modal-card {
    width: 100%; max-width: 400px; border-radius: 22px; padding: 26px;
    background: var(--g-card-solid); border: 1px solid var(--g-glass-border);
    box-shadow: var(--g-shadow); position: relative;
    animation: fadeUp 0.35s ease both;
}
.auth-modal-close {
    position: absolute; top: 12px; right: 14px; border: none; cursor: pointer;
    background: var(--g-card); color: var(--g-text); width: 32px; height: 32px;
    border-radius: 10px; font-size: 1rem;
}
.auth-modal-title { font-family: "Poppins", sans-serif; margin-bottom: 8px; color: var(--g-text); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
    .hamburger { display: flex; }
    .glass-nav-links {
        position: absolute; top: calc(100% + 8px); left: 14px; right: 14px;
        flex-direction: column; align-items: stretch; gap: 6px;
        background: var(--g-card-solid); border: 1px solid var(--g-glass-border);
        border-radius: 18px; padding: 14px; box-shadow: var(--g-shadow);
        display: none; max-height: 70vh; overflow: auto;
    }
    .glass-nav-links.open { display: flex; }
    .glass-nav { position: relative; }
    .glass-nav-inner { flex-wrap: wrap; }
    .nav-spacer { display: none; }
    .nav-end { margin-left: auto; }
    .nav-end .glass-nav-btn.admin { display: none; }
    .account-menu { position: static; }
    .account-dropdown { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; margin-top: 8px; }
    .auth-row { grid-template-columns: 1fr; }
    .landing-title { font-size: 2.4rem; }
    .hero-logo { width: 130px; height: 130px; }
}
