* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 8px; height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 12px 3px rgba(255, 255, 255, 0.9), 0 0 24px 6px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    z-index: 100000;
    will-change: transform;
    transition: width 0.2s, height 0.2s, background-color 0.2s, box-shadow 0.2s;
    /* Hardware accelerated centering handled in JS */
}
.cursor-dot.hover {
    width: 25px; height: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.9), inset 0 0 10px rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #030005;
    background-image: radial-gradient(circle at center, #0f0717 0%, #030005 100%);
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

/* =========================================
   INTRO SCREEN (Fatality Style)
   ========================================= */
.screen {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    z-index: 9999;
    background-color: #030005;
    background-image: radial-gradient(circle at center, #0f0717 0%, #030005 100%);
    transition: opacity 1s cubic-bezier(0.19, 1, 0.22, 1), transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.text-wrapper {
    display: flex;
    align-items: baseline;
    z-index: 10;
    opacity: 0;
    will-change: transform;
}

.u {
    font-size: 9vw;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #d8b4fe, #ff00ff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 0, 255, 0.3));
    transform-origin: center center;
    will-change: transform, opacity;
}

.hrcun-mask {
    overflow: hidden;
    display: flex;
    align-items: baseline;
    margin-left: 0.04em;
}

.hrcun {
    display: flex;
    font-size: 9vw;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #ffffff, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    will-change: transform, opacity;
    padding-right: 0.1em;
}

.glow {
    position: absolute;
    width: 25vw;
    height: 25vw;
    background: radial-gradient(circle, rgba(255, 0, 255, 0.15) 0%, rgba(0,0,0,0) 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.mrlarp-img {
    position: absolute;
    top: calc(50% + 8vw);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* =========================================
   MAIN APP (Glassmorphism & Neon)
   ========================================= */
.main-content {
    width: 100vw;
    height: 100vh;
    display: none; /* Hidden until intro finishes */
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0; left: 0;
    opacity: 0;
    transition: opacity 1.5s ease-out;
}

.main-content.fade-in {
    opacity: 1;
}

/* Ambient animated background glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.4;
    animation: pulseGlow 8s infinite alternate;
}
.glow-1 {
    width: 40vw; height: 40vw;
    background: rgba(255, 0, 255, 0.15);
    top: -10%; left: -10%;
}
.glow-2 {
    width: 30vw; height: 30vw;
    background: rgba(168, 85, 247, 0.15);
    bottom: -10%; right: -10%;
    animation-delay: -4s;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.6; }
}

/* Glass Card */
.glass-card {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 500px;
    background: rgba(15, 10, 20, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 0, 255, 0.15);
    border-top: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 20px rgba(255, 0, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatCard 6s ease-in-out infinite;
    transition: max-width 0.7s cubic-bezier(0.19, 1, 0.22, 1), 
                width 0.7s cubic-bezier(0.19, 1, 0.22, 1), 
                height 0.7s cubic-bezier(0.19, 1, 0.22, 1), 
                padding 0.5s ease;
}

.glass-card.expanded {
    max-width: 1100px;
    width: 95vw;
    height: 88vh;
    max-height: 850px;
    padding: 24px 28px;
    animation: none;
}

.glass-card.expanded .header {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.glass-card.expanded .logo-img {
    width: 42px;
    margin-bottom: 0;
}
.glass-card.expanded .brand-title {
    font-size: 1.4rem;
}
.glass-card.expanded .tabs {
    margin-bottom: 15px;
    max-width: 400px;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Header & Logo */
.header {
    text-align: center;
    margin-bottom: 30px;
}
.logo-img {
    width: 120px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 0, 255, 0.6));
    margin-bottom: 15px;
    transition: transform 0.3s ease, filter 0.3s ease;
}
.logo-img:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 0 25px rgba(255, 0, 255, 0.9));
}
.brand-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff, #ffb3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Tabs Navigation */
.tabs {
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255,255,255,0.05);
    width: 100%;
}
.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.tab-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}
.tab-btn.active {
    color: #fff;
    background: rgba(255, 0, 255, 0.15);
    box-shadow: inset 0 0 10px rgba(255, 0, 255, 0.2);
    border: 1px solid rgba(255, 0, 255, 0.3);
}

/* Tab Content Areas */
.tab-content {
    display: none;
    width: 100%;
    animation: fadeInTab 0.4s ease forwards;
}
.tab-content.active {
    display: block;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Links Grid */
.links-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
}
.link-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    color: #f8fafc;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}
.link-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.link-item:hover::before {
    transform: translateX(100%);
}

/* Brand specific hover glows */
.link-item.discord:hover { border-color: #5865F2; box-shadow: 0 0 15px rgba(88, 101, 242, 0.4); color: #5865F2; }
.link-item.github:hover { border-color: #ffffff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.4); color: #ffffff; }
.link-item.steam:hover { border-color: #66c0f4; box-shadow: 0 0 15px rgba(102, 192, 244, 0.4); color: #66c0f4; }
.link-item.roblox:hover { border-color: #E3242B; box-shadow: 0 0 15px rgba(227, 36, 43, 0.4); color: #E3242B; }

.link-icon {
    font-size: 1.4rem;
}
.custom-roblox {
    width: 1.4rem;
    height: 1.4rem;
}

/* Github / Dev Terminal */
.dev-notice {
    background: #0d0d12;
    border: 1px solid #2a2a35;
    border-radius: 10px;
    overflow: hidden;
    font-family: 'JetBrains Mono', monospace;
}
.terminal-header {
    background: #1a1a24;
    padding: 8px 12px;
    display: flex;
    gap: 6px;
    border-bottom: 1px solid #2a2a35;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.terminal-body {
    padding: 20px;
    font-size: 0.9rem;
    color: #a9b1d6;
}
.prompt { color: #f7768e; font-weight: bold; margin-right: 8px; }
.typing { color: #9ece6a; }
.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: #a9b1d6;
    vertical-align: middle;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Donate Crypto Boxes */
.donate-desc {
    text-align: center;
    color: #94a3b8;
    margin-bottom: 20px;
    font-size: 0.95rem;
}
.crypto-box {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.crypto-box:hover {
    border-color: rgba(255,0,255,0.5);
    background: rgba(255,0,255,0.05);
    box-shadow: 0 0 15px rgba(255,0,255,0.1);
}
.crypto-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.crypto-label {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: #fff;
}
.crypto-label i { margin-right: 5px; color: #ff00ff; }
.copy-icon { color: #94a3b8; transition: color 0.2s; }
.crypto-box:hover .copy-icon { color: #fff; }
.crypto-address {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #cbd5e1;
    word-break: break-all;
    opacity: 0.8;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff00ff;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 800;
    letter-spacing: 0.05em;
    box-shadow: 0 5px 15px rgba(255,0,255,0.4);
    transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10000;
    pointer-events: none;
}
.toast.show {
    bottom: 40px;
}

@media (max-width: 768px) {
    .u, .hrcun { font-size: 15vw; }
    .glass-card { width: 95%; padding: 30px 20px; }
    .crypto-address { font-size: 0.7rem; }
}

/* =========================================
   ULTRA-COOL ENTER SCREEN
   ========================================= */
.enter-screen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #030005;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.enter-screen.hidden {
    opacity: 0;
    transform: scale(1.1); /* Zooms into the screen when clicked */
    pointer-events: none;
}
.enter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    cursor: none !important;
}
.enter-logo {
    width: 150px;
    filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.6));
    animation: pulseLogo 3s ease-in-out infinite;
}
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(255, 0, 255, 0.6)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 0 40px rgba(255, 0, 255, 0.9)); }
}
.enter-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.4s ease, filter 0.4s ease;
    padding: 5px 10px;
}
.enter-content:hover .enter-text {
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
}

/* =========================================
   UHR MAIL: AUTH & SETUP
   ========================================= */
.mail-auth-card {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    animation: fadeInTab 0.4s ease forwards;
}

.auth-header {
    text-align: center;
    margin-bottom: 20px;
}
.auth-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 0, 255, 0.12);
    border: 1px solid rgba(255, 0, 255, 0.3);
    color: #ff99ff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    background: linear-gradient(135deg, #ffffff, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}
.auth-sub {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Auth Mode Toggle Switch */
.auth-mode-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 22px;
}
.auth-switch-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 8px 0;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.auth-switch-btn.active {
    background: rgba(255, 0, 255, 0.2);
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 0, 255, 0.3);
    border: 1px solid rgba(255, 0, 255, 0.4);
}

/* Form inputs */
.mail-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}
.form-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #cbd5e1;
}

.uhr-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    outline: none;
    transition: all 0.25s ease;
}
.uhr-input:focus {
    border-color: rgba(255, 0, 255, 0.6);
    background: rgba(255, 0, 255, 0.04);
    box-shadow: 0 0 16px rgba(255, 0, 255, 0.2);
}
.uhr-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Ghost / Shadow @uhrcun.site Input */
.ghost-input-container {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.ghost-input {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
}
.ghost-suffix {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 0, 255, 0.45);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
    left: 14px;
    transition: left 0.05s ease-out, opacity 0.2s ease;
    user-select: none;
}
.input-hint {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 2px;
}
.input-hint b {
    color: #d8b4fe;
}

/* Password with Eye */
.password-input-container {
    position: relative;
    display: flex;
    align-items: center;
}
.password-input-container .uhr-input {
    padding-right: 42px;
}
.pwd-eye-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 3;
}
.pwd-eye-btn:hover {
    color: #ff00ff;
}

/* 24h Purge Toggle */
.form-group-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 0, 255, 0.04);
    border: 1px dashed rgba(255, 0, 255, 0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 4px;
}
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}
.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: 0.3s;
}
.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    border-radius: 50%;
    transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
    background-color: #ff00ff;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.6);
}
.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}
.toggle-label-wrap {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.toggle-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
}
.toggle-title i {
    color: #ff00ff;
    margin-right: 4px;
}
.toggle-desc {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Alert Notification */
.mail-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeInTab 0.3s ease;
}
.mail-alert.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.mail-alert.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.4);
    color: #86efac;
}

/* Submit button */
.uhr-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #a855f7, #ff00ff);
    border: none;
    border-radius: 10px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 0, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}
.uhr-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 0, 255, 0.5);
    filter: brightness(1.1);
}
.uhr-submit-btn:active {
    transform: translateY(0);
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   EXPANDED WEBMAIL INTERFACE (GMAIL STYLE)
   ========================================= */
.webmail-app {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    animation: fadeInTab 0.5s ease forwards;
}

/* Topbar */
.webmail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 220px;
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(168, 85, 247, 0.3));
    border: 1px solid rgba(255, 0, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffb3ff;
    font-size: 1.1rem;
    box-shadow: 0 0 10px rgba(255, 0, 255, 0.2);
}
.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.user-email-text {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f8fafc;
    letter-spacing: 0.02em;
}
.user-badge-anon {
    font-size: 0.65rem;
    font-weight: 800;
    color: #ff9900;
    background: rgba(255, 153, 0, 0.15);
    border: 1px solid rgba(255, 153, 0, 0.3);
    padding: 1px 6px;
    border-radius: 10px;
    margin-top: 2px;
}

.topbar-search {
    flex: 1;
    max-width: 460px;
    position: relative;
    display: flex;
    align-items: center;
}
.topbar-search .search-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 0.9rem;
    pointer-events: none;
}
.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 8px 36px 8px 38px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    outline: none;
    transition: all 0.2s ease;
}
.search-input:focus {
    border-color: rgba(255, 0, 255, 0.5);
    background: rgba(255, 0, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.15);
}
.search-clear-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.action-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.action-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.action-icon-btn.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
}
.action-icon-btn.nuke:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: rgba(255, 0, 0, 0.6);
    color: #ff3333;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 7px 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.logout-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #f87171;
}

/* Webmail Split Panes (Sidebar + Main) */
.webmail-panes {
    display: flex;
    gap: 20px;
    flex: 1;
    min-height: 0; /* Important for scroll */
    overflow: hidden;
}

/* Sidebar */
.webmail-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 16px;
}

.compose-neon-btn {
    width: 100%;
    padding: 12px 18px;
    background: linear-gradient(135deg, #d946ef, #8b5cf6);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(217, 70, 239, 0.35);
    transition: all 0.3s ease;
}
.compose-neon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(217, 70, 239, 0.55);
    filter: brightness(1.1);
}

.folders-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.folder-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: #94a3b8;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}
.folder-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
}
.folder-btn.active {
    color: #fff;
    background: rgba(255, 0, 255, 0.12);
    border-color: rgba(255, 0, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(255, 0, 255, 0.15);
}
.folder-btn i {
    width: 18px;
    font-size: 1rem;
}
.folder-name {
    flex: 1;
}
.folder-badge {
    background: #ff00ff;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 12px;
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.6);
}

.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.storage-meter {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.storage-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
}
.storage-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}
.storage-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #a855f7, #ff00ff);
    border-radius: 4px;
}
.privacy-notice {
    font-size: 0.72rem;
    color: #64748b;
    text-align: left;
}

/* Content Area */
.webmail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

/* Thread List */
.thread-list-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}
.list-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 8px;
}
.current-folder-title {
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: capitalize;
    background: linear-gradient(135deg, #ffffff, #d8b4fe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.thread-count-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.threads-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}
.threads-list::-webkit-scrollbar {
    width: 6px;
}
.threads-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
}

/* Individual Thread Item */
.thread-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    overflow: hidden;
}
.thread-item:hover {
    background: rgba(255, 0, 255, 0.05);
    border-color: rgba(255, 0, 255, 0.25);
    transform: translateX(4px);
}
.thread-item.unread {
    background: rgba(255, 0, 255, 0.08);
    border-color: rgba(255, 0, 255, 0.35);
}
.thread-item.unread .thread-subject {
    font-weight: 700;
    color: #fff;
}
.unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff00ff;
    box-shadow: 0 0 8px #ff00ff;
    flex-shrink: 0;
}
.unread-dot.read {
    opacity: 0;
}

.thread-sender {
    width: 140px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.thread-body-snippet {
    flex: 1;
    display: flex;
    align-items: baseline;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
}
.thread-subject {
    font-size: 0.92rem;
    color: #e2e8f0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 320px;
}
.thread-snippet-text {
    font-size: 0.82rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.thread-time {
    font-size: 0.78rem;
    color: #94a3b8;
    flex-shrink: 0;
    font-family: 'JetBrains Mono', monospace;
}

/* Empty Inbox State */
.empty-inbox-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #94a3b8;
    gap: 12px;
}
.empty-icon {
    font-size: 3rem;
    color: rgba(255, 0, 255, 0.4);
    animation: pulseLogo 3s infinite ease-in-out;
}
.empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
}
.empty-sub {
    font-size: 0.85rem;
    max-width: 320px;
}

/* Email Reader View */
.email-reader-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    padding-right: 6px;
    animation: fadeInTab 0.3s ease;
}
.reader-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 16px;
}
.reader-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #d8b4fe;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.2s;
}
.reader-back-btn:hover {
    color: #fff;
}
.reader-actions {
    display: flex;
    gap: 8px;
}
.reader-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.reader-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.reader-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
}
.reader-subject {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
}
.reader-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
}
.meta-sender {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sender-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ff00ff);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}
.sender-text {
    display: flex;
    flex-direction: column;
}
.sender-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #f8fafc;
}
.reader-to {
    font-size: 0.78rem;
    color: #94a3b8;
}
.reader-date {
    font-size: 0.8rem;
    color: #94a3b8;
    font-family: 'JetBrains Mono', monospace;
}

.reader-body {
    flex: 1;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    text-align: left;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
    margin-bottom: 20px;
}
.reader-body a {
    color: #ff99ff;
    text-decoration: underline;
}

/* In-thread reply box */
.reader-reply-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reply-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: #d8b4fe;
    text-align: left;
}
.uhr-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: #fff;
    outline: none;
    resize: vertical;
    min-height: 80px;
}
.uhr-textarea:focus {
    border-color: rgba(255, 0, 255, 0.5);
}
.reply-actions {
    display: flex;
    justify-content: flex-end;
}
.reply-send-btn {
    padding: 8px 18px;
    background: linear-gradient(135deg, #a855f7, #ff00ff);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.reply-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.4);
}

/* =========================================
   COMPOSE & NUKE MODALS
   ========================================= */
.mail-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInTab 0.2s ease;
}

.modal-card {
    width: 90%;
    max-width: 580px;
    background: #0f0814;
    border: 1px solid rgba(255, 0, 255, 0.3);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(255, 0, 255, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 12px;
}
.modal-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.modal-title i {
    color: #ff00ff;
}
.modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: #fff;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.modal-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.modal-field label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #cbd5e1;
}
.modal-input {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: #fff;
    outline: none;
}
.modal-input:focus {
    border-color: rgba(255, 0, 255, 0.5);
}
.modal-textarea {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.92rem;
    color: #fff;
    outline: none;
    resize: vertical;
}
.modal-textarea:focus {
    border-color: rgba(255, 0, 255, 0.5);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
}
.modal-cancel-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    padding: 9px 18px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-cancel-btn:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}
.modal-send-btn {
    background: linear-gradient(135deg, #a855f7, #ff00ff);
    border: none;
    color: #fff;
    padding: 9px 22px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.3);
    transition: all 0.2s;
}
.modal-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 255, 0.5);
}

/* Nuke Confirmation Card */
.nuke-card {
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(239, 68, 68, 0.25);
}
.text-danger {
    color: #ef4444;
}
.nuke-content {
    text-align: left;
    font-size: 0.92rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nuke-list {
    list-style-type: disc;
    padding-left: 20px;
    color: #f87171;
    font-size: 0.88rem;
}
.nuke-irreversible {
    font-weight: 800;
    color: #ef4444;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
}
.nuke-confirm-btn {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border: none;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
    transition: all 0.2s;
}
.nuke-confirm-btn:hover {
    filter: brightness(1.15);
    box-shadow: 0 6px 25px rgba(239, 68, 68, 0.6);
}

/* Responsive adjust for Webmail */
@media (max-width: 900px) {
    .glass-card.expanded {
        height: 94vh;
        width: 98vw;
        padding: 16px;
    }
    .webmail-panes {
        flex-direction: column;
    }
    .webmail-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-right: 0;
        padding-bottom: 12px;
    }
    .folders-nav {
        flex-direction: row;
        overflow-x: auto;
    }
    .sidebar-footer {
        display: none;
    }
    .topbar-user {
        min-width: auto;
    }
}
