*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Space Grotesk', -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

body {
    background-color: #000000;
    min-height: 100vh;
    color: #f8fafc;
    overflow-x: hidden;
    position: relative;
}

/* ================== CYBER INTRO ================== */
.intro-screen {
    position: fixed;
    inset: 0;
    background: #000000 !important;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.intro-screen.fade-out {
    opacity: 0;
    transform: scale(1.08);
    pointer-events: none;
}

.intro-prism {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prism-glow {
    position: absolute;
    inset: -15px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.5) 0%, rgba(99, 102, 241, 0.2) 60%, transparent 80%);
    filter: blur(20px);
    border-radius: 50%;
    animation: prismPulse 2s ease-in-out infinite alternate;
}

.prism-scanner {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
    transform: rotate(45deg);
    animation: prismSpin 6s linear infinite;
}

.prism-letter {
    position: relative;
    z-index: 2;
    font-family: 'Cinzel', serif;
    font-size: 52px;
    font-weight: 900;
    background: linear-gradient(135deg, #ffffff 30%, #00d2ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.8));
}

.intro-progress-track {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    overflow: hidden;
    position: relative;
}

.intro-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00d2ff, #6366f1);
    box-shadow: 0 0 10px #00d2ff;
    animation: loadBar 3s cubic-bezier(0.65, 0, 0.35, 1) forwards;
}

@keyframes prismPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

@keyframes prismSpin {
    0% { transform: rotate(45deg); }
    100% { transform: rotate(405deg); }
}

@keyframes loadBar {
    0% { width: 0%; }
    50% { width: 60%; }
    85% { width: 88%; }
    100% { width: 100%; }
}

/* ================== RGB FON ================== */
.ambient-mesh {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    transition: opacity 1.8s ease;
}

.ambient-mesh.active {
    opacity: 1;
}

.fluid-orb {
    position: absolute;
    border-radius: 50%;
    will-change: transform, opacity;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 140, 255, 0.85) 0%, rgba(2, 132, 199, 0.35) 45%, transparent 70%);
    filter: blur(85px);
    top: -8%;
    left: -10%;
    animation: floatMove1 8s infinite alternate ease-in-out, glowPulse1 4s infinite alternate ease-in-out;
}

.orb-2 {
    width: 460px;
    height: 460px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.85) 0%, rgba(79, 70, 229, 0.35) 45%, transparent 70%);
    filter: blur(90px);
    bottom: -8%;
    right: -10%;
    animation: floatMove2 9s infinite alternate ease-in-out, glowPulse2 5s infinite alternate ease-in-out;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.75) 0%, rgba(14, 165, 233, 0.3) 50%, transparent 70%);
    filter: blur(80px);
    top: 35%;
    left: 20%;
    animation: floatMove3 11s infinite alternate ease-in-out, glowPulse3 3.5s infinite alternate ease-in-out;
}

@keyframes floatMove1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 60px) scale(1.12); }
}

@keyframes floatMove2 {
    0% { transform: translate(0, 0) scale(1.05); }
    100% { transform: translate(-70px, -50px) scale(1.15); }
}

@keyframes floatMove3 {
    0% { transform: translate(0, 0) scale(0.9); }
    100% { transform: translate(50px, -40px) scale(1.1); }
}

@keyframes glowPulse1 {
    0% { opacity: 0.35; }
    100% { opacity: 0.75; }
}

@keyframes glowPulse2 {
    0% { opacity: 0.65; }
    100% { opacity: 0.3; }
}

@keyframes glowPulse3 {
    0% { opacity: 0.25; }
    100% { opacity: 0.7; }
}

/* ================== VIEWPORT & LAYOUT ================== */
.main-viewport {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.card-wrapper {
    width: 100%;
    max-width: 370px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* SOAT */
.clock-outer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding-right: 12px;
    margin-bottom: 6px;
    user-select: none;
    pointer-events: none;
}

.clock-outer span {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(248, 250, 252, 0.4);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
}

/* KARTA */
.obsidian-glass-card {
    width: 100%;
    background: rgba(6, 12, 24, 0.55);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    padding: 28px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(20px) scale(0.96);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    animation: cardAuraPulse 6s infinite alternate ease-in-out;
}

@keyframes cardAuraPulse {
    0% {
        box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 140, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.1);
    }
    100% {
        box-shadow: 0 30px 75px rgba(0, 0, 0, 0.85), 0 0 50px rgba(6, 182, 212, 0.22);
        border-color: rgba(0, 210, 255, 0.3);
    }
}

.obsidian-glass-card.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.anim-node {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-node.visible {
    opacity: 1;
    transform: translateY(0);
}

/* AVATAR (ANIMATSIYA VA FADE BILAN) */
.avatar-capsule {
    width: 82px;
    height: 82px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(0, 210, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 14px;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.avatar-capsule:hover {
    transform: scale(1.08) rotate(4deg);
    border-color: #00d2ff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6), 0 0 35px rgba(0, 210, 255, 0.45);
}

.avatar-capsule:active {
    transform: scale(0.95) rotate(-3deg);
    border-color: #38bdf8;
}

.avatar-capsule img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none !important;
    -webkit-touch-callout: none !important;
    -webkit-user-drag: none !important;
}

.avatar-letter {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    pointer-events: none;
}

/* PROFILE HEADER */
.profile-header {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.glow-name.serif-title {
    font-family: 'Cinzel', serif !important;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: 7px;
    color: #ffffff;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.45), 0 0 40px rgba(0, 210, 255, 0.3);
    margin-bottom: 6px;
}

.badge-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    font-size: 11.5px;
    color: #cbd5e1;
    font-weight: 500;
    min-height: 26px; /* Matn o'zgarganda sakrab qolmasligi uchun */
    white-space: nowrap;
}

#typingText {
    display: inline-block;
    color: #38bdf8;
    font-weight: 600;
}

.cursor {
    font-weight: 300;
    color: #00d2ff;
    animation: blinkCursor 0.8s infinite;
    margin-left: 1px;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.dot-online {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

/* TUGMALAR STACKI */
.action-stack {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.cyber-btn {
    position: relative;
    width: 100%;
    text-decoration: none;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    padding: 1px;
    display: block;
    transition: transform 0.25s, border-color 0.3s, box-shadow 0.3s;
}

.btn-inner {
    padding: 11px 16px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    transition: background 0.2s;
}

.btn-flare {
    position: absolute;
    top: 0;
    left: -120%;
    width: 70%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: skewX(-25deg);
    transition: 0.6s;
    pointer-events: none;
}

.cyber-btn:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(0, 210, 255, 0.5);
    box-shadow: 0 10px 25px rgba(0, 210, 255, 0.16);
}

.cyber-btn:hover .btn-inner {
    background: rgba(255, 255, 255, 0.05);
}

.cyber-btn:hover .btn-flare {
    left: 170%;
}

.cyber-btn:active {
    transform: scale(0.98);
}

.icon-ring {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-ring svg {
    width: 16px;
    height: 16px;
}

.tg-ring { color: #38bdf8; border-color: rgba(56, 189, 248, 0.4); background: rgba(56, 189, 248, 0.14); }
.call-ring { color: #34d399; border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.14); }
.insta-ring { color: #f472b6; border-color: rgba(244, 114, 182, 0.4); background: rgba(244, 114, 182, 0.14); }
.life-ring { color: #a855f7; border-color: rgba(168, 85, 247, 0.4); background: rgba(168, 85, 247, 0.14); }

.btn-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #f1f5f9;
}

.arrow-indicator {
    margin-left: auto;
    color: #64748b;
    font-size: 15px;
    transition: transform 0.2s, color 0.2s;
}

.cyber-btn:hover .arrow-indicator {
    transform: translate(3px, -3px);
    color: #00d2ff;
}

/* NEON KAPSULA */
.neon-capsule {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(6, 182, 212, 0.06);
    border: 1px solid rgba(6, 182, 212, 0.26);
    backdrop-filter: blur(16px);
    transition: all 0.25s ease;
}

.neon-capsule:hover {
    background: rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.55);
    transform: translateY(-2px);
}

.capsule-core {
    display: flex;
    align-items: center;
    gap: 10px;
}

.capsule-shield {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06b6d4;
}

.capsule-shield svg {
    width: 14px;
    height: 14px;
}

.capsule-data {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.c-tag {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #94a3b8;
}

.c-link {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
}

.capsule-pill {
    font-size: 9.5px;
    font-weight: 700;
    color: #06b6d4;
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.35);
    padding: 2.5px 8px;
    border-radius: 999px;
}

/* FOOTER */
.footer-bottom {
    margin-top: 18px;
    width: 100%;
    text-align: center;
}

.footer-brand {
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 5px;
    color: rgba(248, 250, 252, 0.45);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.12);
    transition: color 0.3s;
}

.footer-brand:hover {
    color: #ffffff;
}

/* ================== PC / IPAD RESPONSIVE ================== */
@media (min-width: 1024px) {
    .card-wrapper {
        max-width: 440px;
    }

    .obsidian-glass-card {
        padding: 38px 26px 28px;
        border-radius: 38px;
    }

    .avatar-capsule {
        width: 100px;
        height: 100px;
        margin-bottom: 18px;
    }

    .avatar-letter {
        font-size: 38px;
    }

    .glow-name.serif-title {
        font-size: 34px;
        letter-spacing: 8px;
        margin-bottom: 8px;
    }

    .badge-role {
        font-size: 12.5px;
        padding: 4px 12px;
    }

    .action-stack {
        gap: 12px;
        margin-bottom: 16px;
    }

    .btn-inner {
        padding: 13px 18px;
    }

    .btn-label {
        font-size: 14.5px;
    }

    .icon-ring {
        width: 36px;
        height: 36px;
    }

    .icon-ring svg {
        width: 18px;
        height: 18px;
    }

    .neon-capsule {
        padding: 9px 16px;
    }

    .c-link {
        font-size: 13px;
    }

    .footer-bottom {
        margin-top: 22px;
    }

    .footer-brand {
        font-size: 14px;
    }
}
