:root {
    /* PoshyFinity Logo Brand Palette */
    --bg-base: #0a0112;            /* Deep obsidian base with plum tint */
    --bg-card: #150324;            /* Dark plum / deep card container */
    --bg-nav: #12021f;             /* Dark plum navbar */
    --border: #3b0b63;             /* Subtle deep purple border */
    --border-glow: #8C1EFF;        /* Neon purple glow */
    --accent: #8C1EFF;             /* Signature Neon Purple */
    --accent-hover: #a855f7;       /* Lighter violet glow hover */
    --accent-deep: #4B088A;        /* Deep purple accent */
    --text-main: #f5f3ff;          /* Crisp metallic white with faint violet tint */
    --text-muted: #d8d3e6;         /* Metallic silver / light chrome */
    --text-sub: #a78bfa;           /* Soft violet secondary text */
    --danger: #ef4444;
    --success: #10b981;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* Base styling applied to every page: Deep Dark Plum base */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    background-color: var(--bg-base); 
    color: var(--text-main); 
    min-height: 100vh;
    margin: 0;
}

/* 1. HOMEPAGE: Deep violet-plum radial vignette */
body.home-page {
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(75, 8, 138, 0.35) 0%, rgba(33, 2, 59, 0.6) 50%, var(--bg-base) 85%);
    background-attachment: fixed;
}

/* 2. INNER PAGES: Subtle purple/plum tinted wallpaper overlay across all other pages */
body.inner-page {
    background-image: 
        linear-gradient(rgba(10, 1, 18, 0.88), rgba(21, 3, 36, 0.94)),
        url('/assets/img/bg.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Navbar: Dark plum background with bottom neon purple glow line */
nav { 
    background: rgba(18, 2, 31, 0.92); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border); 
    box-shadow: 0 4px 20px rgba(140, 30, 255, 0.12);
    padding: 14px 32px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.nav-left { display: flex; align-items: center; gap: 24px; }
.nav-brand { 
    font-weight: 800; 
    font-size: 1.15rem; 
    color: #fff; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    text-decoration: none; 
    text-shadow: 0 0 15px rgba(140, 30, 255, 0.6);
}
.nav-tabs { display: flex; gap: 8px; align-items: center; }
.tab-btn {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.tab-btn:hover { 
    color: #fff; 
    background: rgba(140, 30, 255, 0.15); 
    box-shadow: 0 0 12px rgba(140, 30, 255, 0.2);
}
.tab-btn.active { 
    color: #fff; 
    background: rgba(140, 30, 255, 0.25); 
    border: 1px solid rgba(140, 30, 255, 0.4);
    box-shadow: 0 0 15px rgba(140, 30, 255, 0.3);
}

.nav-right { display: flex; align-items: center; gap: 16px; font-size: 0.9rem; }

/* Cards: Dark plum container with neon accent borders */
.card { 
    background: rgba(21, 3, 36, 0.82) !important; 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border); 
    border-radius: 12px; 
    padding: 20px; 
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.container { max-width: 1100px; margin: 32px auto; padding: 0 20px; }
.notes-layout { display: grid; grid-template-columns: 280px 1fr; gap: 20px; }

/* Buttons & Forms with Brand Purple Glows */
.btn { 
    padding: 8px 14px; 
    border: none; 
    border-radius: 6px; 
    font-weight: 600; 
    font-size: 0.85rem; 
    cursor: pointer; 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    text-decoration: none; 
    transition: 0.2s; 
}
.btn-primary { 
    background: linear-gradient(135deg, #8C1EFF 0%, #4B088A 100%); 
    color: #fff; 
    box-shadow: 0 0 15px rgba(140, 30, 255, 0.4);
    border: 1px solid rgba(216, 211, 230, 0.2);
}
.btn-primary:hover { 
    background: linear-gradient(135deg, #a855f7 0%, #6b11c4 100%); 
    box-shadow: 0 0 25px rgba(140, 30, 255, 0.65);
    color: #fff; 
}
.btn-secondary { 
    background: rgba(75, 8, 138, 0.3); 
    color: var(--text-muted); 
    border: 1px solid var(--border);
}
.btn-secondary:hover { 
    background: rgba(140, 30, 255, 0.25); 
    color: #fff; 
    border-color: var(--accent);
}
.btn-danger { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.3); }

.creator-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: rgba(10, 1, 18, 0.6); border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; cursor: pointer; transition: 0.2s; }
.creator-item:hover, .creator-item.selected { border-color: var(--accent); background: rgba(140, 30, 255, 0.12); box-shadow: 0 0 12px rgba(140, 30, 255, 0.25); }
.creator-item.selected { font-weight: 700; color: #fff; }

.notes-textarea { width: 100%; min-height: 420px; background: #0c0217; border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); padding: 16px; font-family: inherit; font-size: 0.95rem; resize: vertical; outline: none; margin-top: 14px; line-height: 1.6; }
.notes-textarea:focus { border-color: var(--accent); box-shadow: 0 0 10px rgba(140, 30, 255, 0.3); }

/* User Pills & Badges */
.user-pill { display: flex; align-items: center; gap: 10px; background: rgba(140, 30, 255, 0.08); padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.85rem; }
.badge.discord { background: #5865F2; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; }
.badge.link-btn { background: rgba(88, 101, 242, 0.15); color: #5865F2; border: 1px solid #5865F2; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; text-decoration: none; }
.btn-sm { padding: 6px 10px; font-size: 0.8rem; }

/* Mobile Viewport Optimizations */
@media (max-width: 768px) {
    nav { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px 16px; }
    .nav-tabs { flex-wrap: wrap; }
    .nav-right { justify-content: space-between; border-top: 1px solid var(--border); padding-top: 8px; }
    .notes-layout { grid-template-columns: 1fr; }
    .notes-textarea { font-size: 16px; }
}
/* Live Scrolling Event Ticker */
.nav-ticker-container {
    background: linear-gradient(90deg, #090d16, #131c2e, #090d16);
    border-bottom: 1px solid rgba(251, 191, 36, 0.35);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    height: 36px;
    display: flex;
    align-items: center;
    z-index: 9999;
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.nav-ticker-track {
    display: inline-block;
    white-space: nowrap;
    animation: tickerAnimation 32s linear infinite;
    will-change: transform;
}
.nav-ticker-container:hover .nav-ticker-track {
    animation-play-state: paused; /* Pause scrolling on hover so players can read */
}
@keyframes tickerAnimation {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-right: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}
.ticker-highlight {
    color: #fbbf24;
}
.ticker-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
}