/* =============================================
   ORBES NODE — GLOBAL CSS
   Variables/theme -> theme.css (load before this)
   Page-specific styles -> css/pages/*.css
   Shared components -> imported here
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Scrollbar ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--btn-border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(122,221,255,0.3); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   BACKGROUND — nebulas / stars
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
#mc-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
    background: radial-gradient(ellipse at 50% 0%, #101828 0%, var(--bg-dark) 70%);
    transition: opacity .3s ease;
}
html[data-theme="light"] #mc-bg {
    background: radial-gradient(ellipse at 50% 0%, #e9f1fb 0%, var(--bg-dark) 70%);
    opacity: .6;
}
html[data-theme="light"] .mc-stars   { opacity: .35; }
html[data-theme="light"] .mc-earth   { opacity: .55; }
html[data-theme="light"] .mc-cube    { filter: brightness(1.08) saturate(.85); opacity: .6 !important; }

#mc-bg::before, #mc-bg::after {
    content: ''; position: absolute; border-radius: 50%;
    filter: blur(100px); opacity: .25;
    animation: nebula 22s infinite alternate ease-in-out;
}
#mc-bg::before { width: 700px; height: 700px; background: rgba(122,221,255,.18); top: -15%; left: 15%; }
#mc-bg::after  { width: 500px; height: 500px; background: rgba(60,100,255,.12);  bottom: 5%; right: 8%; animation-delay: -11s; }

.mc-stars {
    position: absolute; inset: 0;
    background-image:
            radial-gradient(1px 1px at  7% 11%, rgba(255,255,255,.9) 0%, transparent 100%),
            radial-gradient(1.5px 1.5px at 21%  5%, rgba(255,255,255,.8) 0%, transparent 100%),
            radial-gradient(1px 1px at 34% 18%, rgba(255,255,255,.6) 0%, transparent 100%),
            radial-gradient(2px 2px at 47%  8%, rgba(255,255,255,.9) 0%, transparent 100%),
            radial-gradient(1px 1px at 59% 14%, rgba(255,255,255,.7) 0%, transparent 100%),
            radial-gradient(1.5px 1.5px at 72%  3%, rgba(255,255,255,.8) 0%, transparent 100%),
            radial-gradient(1px 1px at 84% 20%, rgba(255,255,255,.6) 0%, transparent 100%),
            radial-gradient(2px 2px at 91%  9%, rgba(255,255,255,.9) 0%, transparent 100%),
            radial-gradient(1px 1px at 14% 30%, rgba(255,255,255,.4) 0%, transparent 100%),
            radial-gradient(1px 1px at 64% 35%, rgba(255,255,255,.5) 0%, transparent 100%),
            radial-gradient(1px 1px at 79% 28%, rgba(255,255,255,.3) 0%, transparent 100%),
            radial-gradient(1px 1px at 54%  6%, rgba(255,255,255,.7) 0%, transparent 100%),
            radial-gradient(1px 1px at 29% 10%, rgba(255,255,255,.6) 0%, transparent 100%),
            radial-gradient(1px 1px at 69% 48%, rgba(255,255,255,.25) 0%, transparent 100%),
            radial-gradient(1px 1px at 87% 65%, rgba(255,255,255,.2) 0%, transparent 100%);
    animation: twinkle 5s ease-in-out infinite alternate;
}

@keyframes nebula  { 0% { transform: scale(1) translate(0,0); } 100% { transform: scale(1.15) translate(18px,-18px); } }
@keyframes twinkle { 0% { opacity: .55; } 100% { opacity: 1; } }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   NAVBAR — single source of truth for the navbar
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
    background: var(--bg-nav); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-faint);
    transition: transform .12s linear;
    will-change: transform;
}

.nav-container {
    max-width: 1280px; margin: 0 auto; padding: 14px 28px;
    display: flex; justify-content: space-between; align-items: center;
    gap: 20px; flex-wrap: nowrap;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.moonly  { font-size: 1.3rem; font-weight: 800; letter-spacing: .5px; }
.hosting { font-size: .7rem; font-weight: 700; letter-spacing: 3px; color: var(--cyan); text-transform: uppercase; }

/* Navbar right column */
.nav-right {
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 14px;
}

/* Top row */
.nav-top-row { display: flex; align-items: center; gap: 20px; }
.nav-top-row .quick-link {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .82rem; font-weight: 500; color: var(--muted);
    text-decoration: none; transition: color .2s ease;
}
.nav-top-row .quick-link:hover { color: var(--cyan); }
.nav-top-row .quick-link i    { color: var(--cyan); }

/* Bottom row */
.nav-bottom-row { display: flex; align-items: center; gap: 22px; }

/* Nav links */
.nav-links {
    position: static; transform: none; left: auto; right: auto;
    flex: 0 0 auto; display: flex; align-items: center;
    justify-content: flex-end; gap: 6px;
    margin: 0; padding: 0; list-style: none;
}
.nav-links .dropdown-container:last-child .dropdown-menu { left: auto; right: 0; }
.nav-links .dropdown-toggle {
    display: flex; align-items: center; gap: 5px;
    padding: 7px 11px; border-radius: 7px;
    font-size: .82rem; font-weight: 700; letter-spacing: .6px;
    color: var(--text); text-transform: uppercase;
    transition: background .18s, color .18s; position: relative;
}
.nav-links .dropdown-toggle:hover,
.nav-links .dropdown-toggle.active { color: var(--cyan); background-color: var(--hover-bg); }
.nav-links .dropdown-toggle .fa-chevron-down { font-size: .6rem; opacity: .75; transition: transform .22s; }
.nav-links .dropdown-toggle:hover .fa-chevron-down { transform: rotate(180deg); color: var(--cyan); }

/* Normal dropdown */
.dropdown-container { position: relative; }
.dropdown-menu {
    position: absolute; top: calc(100% + 6px); left: 0;
    background: var(--bg-dropdown); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: 10px;
    padding: 6px; min-width: 200px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
    box-shadow: 0 20px 40px var(--shadow-color); z-index: 200;
}
.dropdown-container:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu li a {
    padding: 9px 13px; display: flex; align-items: center; gap: 10px;
    font-size: .87rem; color: var(--muted); border-radius: 7px;
    transition: background .15s, color .15s, transform .15s;
}
.dropdown-menu li a:hover { color: var(--text); background: rgba(122,221,255,.08); transform: translateX(3px); }
.dropdown-menu li a i { font-size: .84rem; color: var(--cyan); width: 15px; text-align: center; }

/* ── MEGA MENU ── */
.dropdown-container.has-mega { position: static; }
.has-mega .mega-menu {
    position: absolute; top: 100%; left: 0; width: 100%;
    display: flex; align-items: center; justify-content: center; gap: 24px;
    padding: 30px 20px;
    background: var(--bg-dropdown); border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 22px 48px var(--shadow-color);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 200;
}
.has-mega.open .mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.mega-card {
    flex: 1; max-width: 320px; height: 120px;
    border-radius: 10px; display: flex;
    align-items: flex-end; justify-content: flex-start;
    padding: 14px 16px; overflow: hidden;
    border: 2px solid transparent; background: var(--bg-card);
    text-decoration: none; position: relative;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

/* Mega-card backgrounds */
.mega-card.java    { background-image: url('/images/minecraft/java.png');    background-size: cover; background-position: center; border-color: rgba(255,200,61,.3); }
.mega-card.bedrock { background-image: url('/images/minecraft/bedrock.png'); background-size: cover; background-position: center; border-color: rgba(180,200,255,.3); }
.mega-card.modded  { background-image: url('/images/minecraft/modded.png');  background-size: cover; background-position: center; border-color: rgba(160,80,255,.3); }
.mega-card.budget  { background-image: url('/images/minecraft/budget.png');  background-size: cover; background-position: center; border-color: rgba(255,255,255,.2); }

.mega-card.discordbot    { background-image: url('/images/otros-hosting/discordbot.png'); background-size: cover; background-position: center; border-color: rgba(88,101,242,.35); }
.mega-card.teamspeak     { background-image: url('/images/otros-hosting/teamspeak.png');  background-size: cover; background-position: center; border-color: rgba(122,221,255,.3); }
.mega-card.python        { background-image: url('/images/otros-hosting/python.png');     background-size: cover; background-position: center; border-color: rgba(55,118,171,.35); }
.mega-card.nodejs        { background-image: url('/images/otros-hosting/nodejs.png');     background-size: cover; background-position: center; border-color: rgba(60,135,58,.35); }

/* Mega-card overlays */
.mega-card::before { content: ''; position: absolute; inset: 0; z-index: 1; }
.mega-card.java::before,    .mega-card.java:hover::before    { background: linear-gradient(160deg, rgba(10,8,0,.55) 0%, rgba(255,200,61,.18) 100%); }
.mega-card.bedrock::before, .mega-card.bedrock:hover::before { background: linear-gradient(160deg, rgba(5,8,20,.45) 0%, rgba(255,255,255,.08) 100%); }
.mega-card.modded::before,  .mega-card.modded:hover::before  { background: linear-gradient(160deg, rgba(4,2,10,.55) 0%, rgba(160,80,255,.22) 100%); }
.mega-card.budget::before,  .mega-card.budget:hover::before  { background: linear-gradient(160deg, rgba(5,8,20,.45) 0%, rgba(255,255,255,.08) 100%); }
.mega-card.discordbot::before, .mega-card.discordbot:hover::before { background: linear-gradient(160deg, rgba(8,8,20,.55) 0%, rgba(88,101,242,.22) 100%); }
.mega-card.teamspeak::before,  .mega-card.teamspeak:hover::before  { background: linear-gradient(160deg, rgba(5,8,20,.5) 0%, rgba(122,221,255,.18) 100%); }
.mega-card.python::before,     .mega-card.python:hover::before     { background: linear-gradient(160deg, rgba(5,10,20,.55) 0%, rgba(55,118,171,.22) 100%); }
.mega-card.nodejs::before,     .mega-card.nodejs:hover::before     { background: linear-gradient(160deg, rgba(4,12,4,.55) 0%, rgba(60,135,58,.22) 100%); }

.mega-card-label {
    position: relative; z-index: 2;
    font-weight: 900; font-size: 1.05rem; letter-spacing: .5px;
    text-shadow: 0 2px 12px rgba(0,0,0,.9);
    display: flex; flex-direction: column; gap: 4px;
}
.mega-card-label small { font-size: .7rem; font-weight: 500; opacity: .75; letter-spacing: .3px; }

.mega-card.java    .mega-card-label { color: #ffc83d; }
.mega-card.bedrock .mega-card-label { color: #ffffff; }
.mega-card.modded  .mega-card-label { color: #c084fc; }
.mega-card.budget  .mega-card-label { color: #ffffff; }
.mega-card.discordbot .mega-card-label { color: #8d9aff; }
.mega-card.teamspeak  .mega-card-label { color: var(--cyan); }
.mega-card.python     .mega-card-label { color: #6fb2e8; }
.mega-card.nodejs     .mega-card-label { color: #7fce6c; }

.mega-card:hover { transform: translateY(-4px) scale(1.02); }
.mega-card.java:hover    { border-color: #ffc83d; box-shadow: 0 12px 30px rgba(255,200,61,.25); }
.mega-card.bedrock:hover { border-color: rgba(255,255,255,.6); box-shadow: 0 12px 30px rgba(255,255,255,.15); }
.mega-card.modded:hover  { border-color: #c084fc; box-shadow: 0 12px 30px rgba(160,80,255,.35); }
.mega-card.budget:hover  { border-color: rgba(255,255,255,.6); box-shadow: 0 12px 30px rgba(255,255,255,.15); }
.mega-card.discordbot:hover { border-color: #5865F2; box-shadow: 0 12px 30px rgba(88,101,242,.3); }
.mega-card.teamspeak:hover  { border-color: var(--cyan); box-shadow: 0 12px 30px var(--cyan-glow); }
.mega-card.python:hover     { border-color: #3776ab; box-shadow: 0 12px 30px rgba(55,118,171,.3); }
.mega-card.nodejs:hover     { border-color: #3c873a; box-shadow: 0 12px 30px rgba(60,135,58,.3); }

/* ── SUPPORT MEGA MENU ── */
.support-mega-wrapper {
    display: flex; gap: 56px;
    justify-content: center; align-items: flex-start;
    width: 100%; padding: 30px 0;
}
.support-col { display: flex; flex-direction: column; width: 280px; flex: none; }
.support-col-title { font-size: 1.05rem; font-weight: 700; color: #ffffff; margin-bottom: 12px; text-align: left; width: 100%; }
.support-col-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.support-btn {
    display: inline-flex; align-items: center; gap: 12px;
    background: #282a36; border: 1px solid rgba(255,255,255,.08);
    padding: 13px 22px; border-radius: 999px;
    color: #ffffff; font-size: .92rem; font-weight: 600; white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.support-btn:hover {
    background: #343746; border-color: var(--cyan);
    box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 1px rgba(122,221,255,.15);
    transform: translateY(-2px); color: #ffffff;
}
.support-btn:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.support-btn i { font-size: 1.1rem; color: #ffffff; width: 20px; text-align: center; flex-shrink: 0; }

/* ── HAMBURGER BUTTON ── */
.mobile-menu-btn {
    display: none;
    background: transparent; border: none;
    color: var(--text); font-size: 1.5rem;
    cursor: pointer; transition: color .2s;
    padding: 5px;
}
.mobile-menu-btn:hover { color: var(--cyan); }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   PAGE TRANSITION
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.page-transition {
    position: fixed; inset: 0; z-index: 999999;
    background: var(--bg-dark); pointer-events: none; opacity: 1;
    transition: opacity .35s ease;
}
.page-transition.fade-out { opacity: 0; }
.page-transition.fade-in  { opacity: 1; pointer-events: all; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   SHARED SECTION HELPERS (used across pages)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.section-subtitle { display: block; font-size: .78rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--yellow); margin-bottom: 10px; }
.section-title    { font-size: 2.1rem; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.section-desc     { color: var(--muted); line-height: 1.65; max-width: 580px; margin: 0 auto; }
.highlight        { color: var(--cyan); }
.glow-divider     { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .45; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   FOOTER
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.footer { padding: 70px 24px 30px; border-top: 1px solid var(--border-faint); background: var(--bg-section); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; max-width: 1100px; margin: 0 auto 50px; }
.footer-brand p { color: var(--muted); font-size: .9rem; line-height: 1.6; max-width: 270px; margin-top: 14px; }
.footer-col h4  { color: var(--text); font-size: .85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul  { display: flex; flex-direction: column; gap: 12px; }
.footer-col ul li a { color: var(--muted); font-size: .9rem; transition: color .2s, padding-left .2s; }
.footer-col ul li a:hover { color: var(--cyan); padding-left: 4px; }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact a { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .88rem; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--border-soft); transition: all .2s; }
.footer-contact a:hover { border-color: var(--border); color: var(--text); background: rgba(122,221,255,.05); }
.footer-contact a i { font-size: 1rem; width: 18px; text-align: center; }
.footer-contact a.discord  i { color: #5865F2; }
.footer-contact a.whatsapp i { color: #25D366; }
.footer-contact a.gmail    i { color: #EA4335; }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; border-top: 1px solid var(--border-faint); color: var(--muted); font-size: .82rem; max-width: 1100px; margin: 0 auto; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 980px) {
    .mobile-menu-btn { display: block !important; }

    .navbar .nav-container {
        flex-direction: row; justify-content: space-between;
        align-items: center; flex-wrap: nowrap; width: 100%;
    }

    .nav-right {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--bg-dropdown); backdrop-filter: blur(16px);
        flex-direction: column; align-items: flex-start;
        padding: 20px; border-bottom: 1px solid var(--border-soft);
        box-shadow: 0 20px 40px var(--shadow-color);
        display: none; gap: 20px;
        max-height: calc(100vh - 80px); overflow-y: auto; z-index: 999;
    }
    .navbar.menu-open .nav-right { display: flex; }

    .nav-top-row      { flex-direction: column; align-items: flex-start; width: 100%; gap: 15px; }
    .utility-controls { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
    .nav-bottom-row   { width: 100%; }

    .navbar .nav-links { flex-direction: column; align-items: flex-start; width: 100%; gap: 5px; }
    .navbar .nav-links li { width: 100%; }
    .navbar .nav-links li a { display: flex; justify-content: space-between; width: 100%; padding: 12px 10px; border-radius: 8px; }

    .has-mega .mega-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        display: none; flex-direction: column; padding: 10px;
        box-shadow: none; border: none; background: transparent;
    }
    .has-mega.open .mega-menu { display: flex; }
    .mega-card { width: 100%; max-width: 100%; min-width: unset; height: auto; padding: 20px 16px; margin-bottom: 10px; }

    .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        display: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 15px;
    }
    .dropdown-container:hover .dropdown-menu { display: none; }
    .dropdown-container.open .dropdown-menu  { display: block; padding-top: 10px; }

    .support-mega-wrapper { flex-direction: column; gap: 25px; width: 100%; padding: 0; }
    .support-col { width: 100%; max-width: 100%; flex: none; }
    .support-col-buttons { flex-direction: column; flex-wrap: nowrap; gap: 10px; }
    .support-btn { width: 100%; }
}

@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .footer-grid   { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { max-width: 100%; margin: 14px auto 0; }
    .footer-bottom  { flex-direction: column; text-align: center; }
    .footer-contact a { justify-content: center; }
}

/* ====================================================
   HEADER BUTTONS — professional style
==================================================== */
.header-chat-btn {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: 6px;
    padding: 5px 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    transition: all 0.2s ease;
    height: 32px;
}
.header-chat-btn:hover {
    background: var(--cyan);
    color: #080b12;
}
@media (max-width: 768px) {
    .header-chat-btn span { display: none; }
    .header-chat-btn { padding: 5px 8px; }
}

.header-login-btn {
    background: transparent;
    color: var(--cyan);
    border: 1px solid var(--cyan);
    border-radius: 6px;
    padding: 5px 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    transition: all 0.2s ease;
    height: 32px;
    text-decoration: none;
    box-shadow: none;
}
.header-login-btn:hover {
    background: var(--cyan);
    color: #080b12;
}
@media (max-width: 768px) {
    .header-login-btn span { display: none; }
    .header-login-btn { padding: 5px 8px; }
}

.user-menu-toggle .user-avatar-mini {
    width: 20px; height: 20px; border-radius: 50%;
    object-fit: cover; flex-shrink: 0;
}

/* ── Notification bell (header) ── */
.notif-bell-wrap {
    position: relative;
}
.notif-bell-btn {
    position: relative;
    background: var(--hover-bg);
    border: 1px solid var(--border-soft);
    color: var(--text-soft);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color .15s, color .15s;
}
.notif-bell-btn:hover {
    border-color: var(--cyan);
    color: var(--text);
}
.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff5252;
    color: #ffffff;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 20px;
    min-width: 16px;
    text-align: center;
}

.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-height: 420px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.35);
    overflow: hidden;
    display: none;
    flex-direction: column;
    z-index: 200;
}
.notif-dropdown.open {
    display: flex;
}
.notif-dropdown-header {
    padding: 14px 18px;
    font-weight: 800;
    font-size: .9rem;
    color: var(--text);
    border-bottom: 1px solid var(--border-faint);
}
.notif-dropdown-footer {
    padding: 10px 18px;
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
    border-top: 1px solid var(--border-faint);
}
.notif-clear-btn {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    color: var(--cyan) !important;
    font-size: .76rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 0 !important;
    margin-left: auto;
    text-decoration: underline;
}
.notif-clear-btn:hover {
    opacity: .8;
}
.notif-list {
    overflow-y: auto;
    max-height: 360px;
}
.notif-empty {
    padding: 30px 18px;
    text-align: center;
    color: var(--muted);
    font-size: .85rem;
}
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border-faint);
    transition: background .15s;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--hover-bg-soft); }
.notif-item-unread { background: rgba(122,221,255,.06); }
.notif-item-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    max-width: 34px;
    border-radius: 50% !important;
    flex-shrink: 0;
    object-fit: cover;
    display: block;
}
.notif-item-avatar-placeholder {
    background: rgba(122,221,255,.1);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
}
.notif-item-body { min-width: 0; flex: 1; }
.notif-item-tag {
    font-size: .66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--cyan);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.notif-item-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    word-break: break-word;
}
.notif-item-meta {
    font-size: .7rem;
    color: var(--muted);
    margin-top: 2px;
}
.notif-item-from {
    color: var(--text-soft);
    font-weight: 600;
}
.notif-item-role {
    font-weight: 800;
    text-transform: uppercase;
    font-size: .68rem;
    letter-spacing: .3px;
}

@media (max-width: 480px) {
    .notif-dropdown {
        width: 90vw;
        right: -10px;
    }
}