@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;600&family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-cmd: #0d0d0d;
    --text-cmd: #00ff41;
    
    --card-bg: rgba(20, 20, 20, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #E7D57B;
    --accent-hover: #f0e19a;
    --glow: rgba(231, 213, 123, 0.4);
    
    --font-cmd: 'Fira Code', monospace;
    --font-main: 'Outfit', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-cmd);
    color: var(--text-main);
    overflow: hidden;
    cursor: none;
}

a, button {
    cursor: none;
}

/* ── Custom Cursor ── */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px var(--accent), 0 0 20px rgba(231, 213, 123, 0.4);
    transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
    will-change: left, top;
}

.custom-cursor.hover {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0.6;
    background: var(--accent-hover);
    box-shadow: 0 0 14px var(--accent), 0 0 35px rgba(231, 213, 123, 0.5);
}

/* ── CRT Scanlines ── */
.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 50;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 0, 0, 0.06) 2px,
        rgba(0, 0, 0, 0.06) 4px
    );
}

/* ── Loading Screen ── */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-cmd);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(231, 213, 123, 0.15);
    border-top-color: var(--accent);
    animation: loaderSpin 1s linear infinite, loaderGlow 2.4s ease-in-out infinite;
}

@keyframes loaderSpin {
    to { transform: rotate(360deg); }
}

@keyframes loaderGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(231, 213, 123, 0.2); }
    50% { box-shadow: 0 0 28px rgba(231, 213, 123, 0.5); }
}

.loader-text {
    font-family: var(--font-cmd);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loader-dots {
    display: inline-block;
    animation: dotPulse 1.4s steps(4, end) infinite;
    overflow: hidden;
    vertical-align: bottom;
    width: 1.5em;
    text-align: left;
}

@keyframes dotPulse {
    0% { content: ''; width: 0; }
    25% { width: 0.5em; }
    50% { width: 1em; }
    75% { width: 1.5em; }
    100% { width: 0; }
}
#main-layout {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#main-layout.visible {
    opacity: 1;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: -1;
}

/* ── THE GLITCH PULSE ── */
@keyframes glitch-pulse {
    0% { border-color: var(--card-border); transform: translate(0); }
    1% { border-color: #fff; transform: translate(-2px, 2px); }
    2% { border-color: var(--card-border); transform: translate(0); }
    99% { border-color: var(--card-border); transform: translate(0); }
    100% { border-color: #fff; transform: translate(2px, -2px); }
}

.profile-card {
    background: rgba(20, 20, 20, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    animation: glitch-pulse 10s infinite;
}

.card-content {
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.avatar-container {
    position: relative;
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 15px var(--glow);
}

.status-dot {
    position: absolute;
    bottom: 5px;
    right: 10px;
    width: 18px;
    height: 18px;
    background-color: #747f8d;
    border: 3px solid var(--card-bg);
    border-radius: 50%;
    box-shadow: 0 0 10px #747f8d;
    transition: all 0.3s ease;
}

.name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.tagline {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--glow);
}

.roblox-svg {
    width: 20px;
    height: 20px;
    transition: var(--transition);
}

.email-icon {
    position: relative;
}

.email-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(18, 18, 18, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.75rem;
    font-family: var(--font-cmd);
    color: var(--accent-hover);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.email-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(18, 18, 18, 0.92);
}

.email-icon:hover .email-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.bottom-bar {
    border-top: 1px solid var(--card-border);
    transition: var(--transition);
}

.bar-header {
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: var(--transition);
}

.bar-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.bar-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 600;
}

.toggle-icon {
    color: var(--text-muted);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.bar-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.bottom-bar.expanded .bar-details {
    max-height: 140px;
    transition: max-height 0.6s ease-in-out;
}

.bottom-bar.expanded .toggle-icon {
    transform: rotate(180deg);
}

.bottom-bar.expanded .bar-title {
    color: var(--text-main);
}

@media (hover: hover) and (pointer: fine) {
    .bottom-bar:hover .bar-details {
        max-height: 140px;
        transition: max-height 0.6s ease-in-out;
    }

    .bottom-bar:hover .toggle-icon {
        transform: rotate(180deg);
    }

    .bottom-bar:hover .bar-title {
        color: var(--text-main);
    }
}

.about-scroll-row {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 10px 16px 14px;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.about-scroll-row::-webkit-scrollbar {
    display: none;
}

.about-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.3);
}

.about-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50px;
}

.about-btn:hover::before {
    opacity: 0.2;
}

.about-btn i {
    font-size: 0.9rem;
    color: var(--accent-hover);
    transition: var(--transition);
}

.about-btn:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--accent);
    color: var(--text-main);
    box-shadow: 0 0 20px var(--glow), 0 4px 16px rgba(231, 213, 123, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.about-btn:hover i {
    color: #fff;
    transform: scale(1.15);
}

.about-btn:active {
    transform: translateY(0) scale(0.97);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 4px rgba(0, 0, 0, 0.3);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: rgba(22, 22, 22, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px 28px;
    width: 90%;
    max-width: 550px;
    position: relative;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(231, 213, 123, 0.1);
}

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

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-hover);
}

.modal-body {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    max-height: 60vh;
    overflow-y: auto;
    padding: 8px; /* Pushes content slightly inward so shadows don't clip */
}

.modal-body::-webkit-scrollbar {
    width: 4px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
}

.modal-body li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    padding-left: 18px;
}

.modal-body li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.modal-body li:last-child {
    border-bottom: none;
}

.lover-highlight {
    background: rgba(255, 192, 203, 0.03);
    border: 1px solid rgba(255, 192, 203, 0.25);
    border-radius: 16px;
    padding: 24px;
    margin: 15px 0;
    text-align: center;
    box-shadow: inset 0 0 20px rgba(255, 192, 203, 0.05), 0 8px 32px rgba(255, 192, 203, 0.15);
    transition: all 0.4s ease;
    isolation: isolate;
    transform: translateZ(0);
}

.lover-highlight:hover {
    box-shadow: inset 0 0 25px rgba(255, 192, 203, 0.1), 0 10px 40px rgba(255, 192, 203, 0.25);
    border-color: rgba(255, 192, 203, 0.4);
    transform: translateY(-2px);
}

.lover-highlight p {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.8), 0 0 25px rgba(255, 192, 203, 0.6);
    letter-spacing: 2px;
}

/* ── Main Action Wrapper (top tier) ── */
.main-action-wrapper {
    padding: 12px 16px 4px 16px;
}

/* ── King Button Animation ── */
@keyframes primaryPulse {
    0%, 100% { box-shadow: 0 4px 18px rgba(231, 213, 123, 0.4), 0 0 30px rgba(231, 213, 123, 0.12); }
    50% { box-shadow: 0 4px 26px rgba(231, 213, 123, 0.65), 0 0 50px rgba(231, 213, 123, 0.2); }
}

/* ── The King Button ── */
.primary-main-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: var(--accent);
    border: none;
    border-radius: 12px;
    color: #1a1a1a;
    box-shadow: 0 4px 18px rgba(231, 213, 123, 0.4), 0 0 30px rgba(231, 213, 123, 0.12);
    animation: primaryPulse 2.8s infinite ease-in-out;
}

.primary-main-btn i {
    color: #1a1a1a;
    font-size: 1.1rem;
}

.primary-main-btn:hover {
    background: var(--accent-hover);
    animation: none;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 30px rgba(231, 213, 123, 0.6), 0 0 45px rgba(231, 213, 123, 0.25);
}

.primary-main-btn:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(231, 213, 123, 0.35);
}

.modal-body p {
    margin-bottom: 10px;
}

/* ── Lover Button (highlighted text in the paragraph) ── */
.lover-btn {
    background: rgba(255, 105, 180, 0.1);
    border: 1px solid rgba(255, 105, 180, 0.4);
    color: #f9c2d0;
    isolation: isolate;
    transform: translateZ(0);
}

.lover-btn i {
    color: #ff6eb4;
}

.lover-btn::before {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.5), transparent 60%);
    border-radius: 50px;
}

.lover-btn:hover {
    border-color: rgba(255, 105, 180, 0.7);
    color: #ffffff;
    border-radius: 50px;
    transform: translateY(-2px) scale(1.05) translateZ(0);
    box-shadow: 0 0 20px rgba(255, 105, 180, 0.35),
                0 4px 16px rgba(255, 105, 180, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lover-btn:hover i {
    color: #ff85c8;
}

/* ══════════════════════════════════════════════════════
   CUSTOM MODAL LAYOUTS (experimental – remove this
   block to revert to standard <ul>/<li> styles)
   ══════════════════════════════════════════════════════ */

/* ── 1. Icon Grid (Comforts) ── */
.icon-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 12px; /* Room for card hover shadows */
}

.grid-card {
    flex: 1 1 auto;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 16px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.grid-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(231, 213, 123, 0.15), 0 0 20px rgba(231, 213, 123, 0.08);
}

.grid-card i {
    font-size: 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 6px var(--glow));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.grid-card:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 12px var(--glow));
}

.grid-card span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.grid-card:hover span {
    color: var(--text-main);
}

/* ── 2. Tag Cloud (Fun Facts) ── */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px; /* Room for tag hover shadows */
}

.glass-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: default;
}

.glass-tag:hover {
    background: rgba(231, 213, 123, 0.1);
    border-color: var(--accent);
    color: var(--text-main);
    box-shadow: 0 0 16px rgba(231, 213, 123, 0.2), 0 4px 12px rgba(231, 213, 123, 0.1);
    transform: translateY(-2px) scale(1.04);
}

/* ── 3. Timeline (Goals) ── */
.timeline-container {
    position: relative;
    padding-left: 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Glowing vertical line */
.timeline-container::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), rgba(231, 213, 123, 0.15));
    border-radius: 2px;
    box-shadow: 0 0 8px var(--glow), 0 0 20px rgba(231, 213, 123, 0.1);
}

.timeline-node {
    position: relative;
    padding: 14px 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid rgba(22, 22, 22, 0.9);
    box-shadow: 0 0 10px var(--glow), 0 0 22px rgba(231, 213, 123, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.timeline-node:hover .timeline-dot {
    transform: scale(1.35);
    box-shadow: 0 0 16px var(--glow), 0 0 32px rgba(231, 213, 123, 0.25);
}

.timeline-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
    transition: color 0.3s ease;
}

.timeline-node:hover .timeline-text {
    color: var(--text-main);
}

/* ── 4. Chat Layout (Talk to Me) ── */
.chat-layout {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px; /* Room for chat bubble hover shadows */
}

.chat-bubble {
    position: relative;
    background: rgba(231, 213, 123, 0.12);
    border: 1px solid rgba(231, 213, 123, 0.2);
    border-radius: 0 14px 14px 14px;
    padding: 10px 14px;
    font-size: 0.85rem;
    color: #e7d57b;
    line-height: 1.5;
    max-width: 92%;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chat-bubble:first-child {
    border-radius: 14px 14px 14px 0;
}

.chat-bubble:hover {
    background: rgba(231, 213, 123, 0.2);
    border-color: rgba(231, 213, 123, 0.4);
    color: var(--text-main);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(231, 213, 123, 0.15);
}

/* Alternating slight offset to feel more conversational */
.chat-bubble:nth-child(even) {
    align-self: flex-end;
    border-radius: 14px 0 14px 14px;
    background: rgba(226, 226, 233, 0.12);
    border-color: rgba(226, 226, 233, 0.2);
    color: #e2e2e9;
}

.chat-bubble:nth-child(even):hover {
    background: rgba(226, 226, 233, 0.2);
    border-color: rgba(226, 226, 233, 0.4);
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(226, 226, 233, 0.15);
}

/* ═══ END CUSTOM MODAL LAYOUTS ═══ */

/* ══════════════════════════════════════════════════════
   MESSAGING SYSTEM
   ══════════════════════════════════════════════════════ */
.fab-msg {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #1a1a1a;
    border: none;
    font-size: 1.6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(231, 213, 123, 0.4);
    z-index: 9000;
    transition: var(--transition);
    cursor: none;
}

.fab-msg:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--accent-hover);
    box-shadow: 0 8px 30px rgba(231, 213, 123, 0.6);
}

.msg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 15000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.msg-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.msg-card {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid var(--accent);
    box-shadow: 0 0 30px rgba(231, 213, 123, 0.15), inset 0 0 15px rgba(231, 213, 123, 0.05);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    padding: 30px;
    transform: translateY(40px) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.msg-header h3 {
    color: var(--accent);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

#msg-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.msg-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.msg-field-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.msg-field-group input,
.msg-field-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 12px 14px;
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition);
    resize: none;
    cursor: none;
}

.msg-field-group input:focus,
.msg-field-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(231, 213, 123, 0.05);
}

.msg-anon-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -6px;
}

.msg-anon-row input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    cursor: none;
    transition: var(--transition);
}

.msg-anon-row input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.msg-anon-row input[type="checkbox"]:checked::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #1a1a1a;
    font-size: 0.65rem;
}

.msg-anon-row label {
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: none;
}

.msg-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.msg-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: none;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.msg-btn-back {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.msg-btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
}

.msg-btn-send {
    background: var(--accent);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(231, 213, 123, 0.3);
}

.msg-btn-send:hover {
    background: var(--accent-hover);
    box-shadow: 0 6px 20px rgba(231, 213, 123, 0.4);
    transform: translateY(-2px);
}

.msg-toast {
    position: fixed;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 22, 22, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 16px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(231, 213, 123, 0.2);
    z-index: 20000;
    pointer-events: none;
    transition: top 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.msg-toast.visible {
    top: 40px;
}

/* ══════════════════════════════════════════════════════
   CANVAS BACKGROUND SYSTEM
   ══════════════════════════════════════════════════════ */
#bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background-color: var(--bg-cmd);
}
