@import url("background.css");

:root {
    --accent: #00e676;
    --glass-bg: rgba(255,255,255,.06);
    --border: rgba(255,255,255,.12);
    --shadow: 0 8px 16px rgba(0,0,0,.45);
    --radius: 20px;
    --blur: 18px;
}

/* Base layout */
html,
body {
    height: 100%;
}

body {
    color: #E5E5E5;
}

/* Space for bottom nav on mobile */
@media (max-width: 768px) {
    body {
        /* Provide extra space so fixed bottom nav doesn't cover content */
        padding-bottom: 70px;
    }

    /* Prevent fixed nav from covering actions inside admin tabs */
    .tab-content {
        padding-bottom: 70px;
    }
}

/* Container + Card */
.container {
    max-width: 500px;
    width: 100%;
    margin: 60px auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.card {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Utility classes */
.hidden {
    display: none;
}

/* Headings */
h1,
h2,
h3 {
    font-weight: 600;
    color: #E5E5E5;
    margin-bottom: 20px;
}

/* Forms */
form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #b0bec5;
}

input,
button {
    font-size: 16px;
    padding: 12px;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

input {
    width: 95%;
    margin-bottom: 20px;
    background-color: #2a2a2a;
    color: #E5E5E5;
    border: 1px solid #444;
}
select, textarea {
    width: 95%;
    margin-bottom: 20px;
    background-color: #2a2a2a;
    color: #E5E5E5;
    border: 1px solid #444;
    border-radius: 12px;
    font-size: 18px;
}


input:focus {
    outline: none;
    border-color: #00e676;
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.3);
}
select:focus, textarea:focus {
    outline: none;
    border-color: #00e676;
    box-shadow: 0 0 0 2px rgba(0, 230, 118, 0.3);
}


button {
    background-color: #00e676;
    color: #000;
    font-weight: bold;
    width: 100%;
}

button:hover {
    background-color: #00c853;
    transform: translateY(-1px);
}

/* Glass cards & buttons */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(var(--blur)) saturate(160%);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(160%);
    box-shadow: var(--shadow);
    outline: 1px solid rgba(255,255,255,.06);
}

.form-card {
    padding: 2rem;
    max-width: 400px;
    width: 100%;
}

.btn {
    display: inline-block;
    padding: .6rem 1.4rem;
    border: none;
    border-radius: 40px;
    font-weight: 500;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(0,0,0,.5);
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,.55);
}

.btn.secondary {
    background: none;
    border: 1px solid var(--accent);
}

.btn-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

/* Message styles */
.error {
    color: #ff5252;
    background-color: #2e1a1a;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.success {
    color: #00e676;
    background-color: #1b2e1a;
    padding: 10px 12px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* Images */
img {
    max-width: 200px;
    border-radius: 12px;
    border: 2px solid #333;
    display: block;
    margin: 20px auto;
}
.event-banner {
    max-width: 100%;
    width: 100%;
    margin: 0 0 10px;
}
.event-card h2 {
    margin-top: 0;
}

/* Center content vertically + horizontally */
.fullscreen-center {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 60px);
    padding: 20px;
    box-sizing: border-box;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .container {
        margin: 20px auto;
        padding: 0 16px;
    }

    .card {
        padding: 24px 18px;
    }


    h2 {
        font-size: 22px;
    }

    input,
    button {
        font-size: 14px;
        padding: 10px;
    }

}
.map { width: 100%; height: 300px; margin: 10px 0; border-radius: 12px; overflow: hidden; }

@media (max-width: 600px) {
    .map {
        height: 400px;
    }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-overlay.hidden {
    display: none;
}

.popup {
    background: var(--glass-bg, #222);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    max-width: 400px;
    width: 90%;
}
.popup button {
    width: auto;
    margin-top: 10px;
}
.popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.popup input[type="text"] {
    width: 100%;
    padding: 8px;
    margin-top: 10px;
    border: 1px solid #555;
    border-radius: 4px;
    background: #111;
    color: #eee;
}
.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    cursor: pointer;
    font-size: 20px;
}

.shop-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}
.shop-item {
    border: 1px solid #333;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
}
.shop-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    margin-bottom: 5px;
    border-radius: 6px;
}

.admin-help {
    text-align: center;
    margin: 10px 0 20px;
    color: #b0bec5;
}

/* Admin navigation */
.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
    background: #111;
    padding: 8px;
    border-radius: 12px;
}

.admin-nav a {
    background: #222;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 12px;
    padding: 8px 16px;
    text-decoration: none;
    transition: background 0.3s;
}

.admin-nav a:hover {
    background: #333;
}

.admin-nav a.active {
    background: #00e676;
    color: #000;
}

.section-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
    background: #1c1c1c;
    padding: 6px;
    border-radius: 10px;
}

.section-nav a {
    background: #222;
    color: #ccc;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 6px 12px;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s;
}

.section-nav a:hover {
    background: #333;
}

.section-nav a.active {
    background: #00e676;
    color: #000;
}

.section-content {
    display: none;
}

.section-content.active {
    display: block;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Lists */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #222;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 8px;
}
ol {
    list-style: none;
    counter-reset: num;
    padding: 0;
}
ol li {
    counter-increment: num;
    background: #222;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 6px 10px;
    margin-bottom: 4px;
}
ol li::before {
    content: counter(num) ". ";
    font-weight: bold;
    margin-right: 4px;
}
.leaderboard {
    padding-left: 0;
}
.leaderboard li:first-child {background:#ffd700;color:#000;}
.leaderboard li:nth-child(2) {background:#c0c0c0;color:#000;}
.leaderboard li:nth-child(3) {background:#cd7f32;color:#000;}

/* Toggle switch */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}
.toggle-list .toggle-row {
    margin: 0;
    width: 100%;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.switch input:checked + .slider {
    background-color: #00e676;
}

.switch input:checked + .slider:before {
    transform: translateX(20px);
}

/* Integrated search + list container */

/* keep search and list centered */
.search-select {
    width: 100%;
    margin: 0 0 20px;

}

.search-select input {
    width: 100%;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.search-select select {
    width: 100%;
    margin: 0;
    border-radius: 0 0 12px 12px;
    font-size: 18px;
    overflow-y: auto;
}

.search-select .toggle-list {
    width: 100%;
}


/* Custom scrollbar */
.search-select select::-webkit-scrollbar,
.toggle-list::-webkit-scrollbar {
    width: 8px;
}
.search-select select::-webkit-scrollbar-track,
.toggle-list::-webkit-scrollbar-track {
    background: #222;
    border-radius: 8px;
}
.search-select select::-webkit-scrollbar-thumb,
.toggle-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 8px;
}
.search-select select {
    scrollbar-width: thin;
    scrollbar-color: #555 #222;
}
.toggle-list {
    list-style: none;
    padding: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 0 0 12px 12px;
    margin: 0;
}
.toggle-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 18px;
    border-bottom: 1px solid #333;
}
.toggle-list li:last-child {
    border-bottom: none;
}
.admin-name {
    flex: 1;
}

#savedLocationSelect {
    font-size: 18px;
}

/* --- keep the whole search-and-list block centred --- */
.search-select{
    width:100%;               /* or 100 % â€“ whatever you like */
    margin:0 auto 20px;
    box-sizing:border-box;   /* include padding/border in the 95 % */
}

/* --- ensure children donâ€™t overflow --- */
.search-select input,
.search-select select,
.toggle-list{
    width:100%;
    box-sizing:border-box;   /* ? key line */
}

/* Hero header */
.hero {
    position: relative;
    background: linear-gradient(135deg,#1e2b21 0%,#284431 30%,#787b77 65%,#36332f 100%);
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 32px;
}
.hero button {
    margin-top: 10px;
    padding: 12px 24px;
    font-size: 18px;
    cursor: pointer;
}

/* Video background inside hero */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

@media (max-width: 600px) {
    .hero {
        min-height: 25vh;
    }
}


/* Event masonry grid */
.event-grid {
    column-count: 3;
    column-gap: 24px;
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 24px;
}
@media (max-width:900px){
    .event-grid {column-count:2;}
}
@media (max-width:700px){
    .event-grid {column-count:1;}
}
.event-card {
    break-inside: avoid;
    transition: transform .3s, box-shadow .3s;
    background: rgba(30,30,30,.6);
    backdrop-filter: blur(8px);
    padding: 0;
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}
.event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}
.event-card .event-content {
    padding: 16px 24px;
}
.event-card .snippet{
    font-size:0.9rem;
    color:#ccc;
    margin-top:4px;
}
.banner-container {
    width: 100%;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}
.banner-container img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}
.banner-bg {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 16px 16px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.banner-bg h1 {
    margin: 0;
    font-size: 28px;
    color: #E5E5E5;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.countdown-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #333;
    color: #E5E5E5;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    transition: transform .3s;
}
.countdown-text {
    text-align: center;
    font-weight: bold;
    margin: 4px 0 0;
}

/* Chips */
.chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.chip {
    display: flex;
    align-items: center;
    background: #333;
    color: #E5E5E5;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 14px;
}
.chip .material-icons {
    font-size:16px;
    margin-right:4px;
}

.chips.selectable .chip {
    cursor: pointer;
}
.chips.selectable .chip.selected {
    background: #555;
}

/* Leaderboard table */
.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}
.leaderboard-table td {
    padding: 2px 4px;
}
.leaderboard-table td:first-child{
    padding-right:4px;
    padding-left:0;
}
.avatar-cell {
    padding-left: 0;
    padding-right: 4px;
}
.leaderboard-table .rank-1 {
    background: radial-gradient(circle,#ffd700,#b8860b);
}
.leaderboard-table .rank-2 {
    background: radial-gradient(circle,#c0c0c0,#808080);
}
.leaderboard-table .rank-3 {
    background: radial-gradient(circle,#cd7f32,#8b4513);
}
.progress {
    height:2px;
    background:#555;
    border-radius:2px;
    overflow:hidden;
}
.progress span {
    display:block;
    height:100%;
    background:#00e676;
}

.leaderboard-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 32px;
}

/* Placeholder avatar for users without a photo */
.leaderboard-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #444;
    color: #ccc;
    font-size: 16px;
    vertical-align: middle;
    line-height: 32px;
}

/* Leaderboard rows clickable */
.profile-row,
.progress-row {
    cursor: pointer;
}

.profile-row td {
    height: 36px;
    vertical-align: middle;
}

.progress-row td {
    padding: 2px 6px;
}


/* Lightbox for avatars */
#avatarLightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s;
    z-index: 1000;
}
#avatarLightbox.open {
    visibility: visible;
    opacity: 1;
}
#avatarLightbox .lightbox-content {
    text-align: center;
    position: relative;
}
#avatarLightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
}
#avatarLightbox .view-profile-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 16px;
    background: #fff;
    color: #333;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
}

/* Leaderboard username styling */
.leaderboard-name a {
    font-size: 18px;
    font-weight: 600;
}
.leaderboard-name,
.leaderboard-xp {
    font-weight: 600;
}

@media (max-width: 600px) {
    .leaderboard-name a {
        font-size: 20px;
    }
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {opacity:0; transform:translateY(10px);}
    to {opacity:1; transform:none;}
}
.fade-in {
    animation: fadeInUp .3s ease both;
}
@media (prefers-reduced-motion:reduce){
    .fade-in, .event-card:hover, .countdown-badge {animation:none;transition:none;}
}

/* Countdown pulse */
.pulse {
    animation: pulseAnim .3s;
}
@keyframes pulseAnim {
    from {transform:scale(1);} to {transform:scale(1.2);}
}

/* Button ripple */
button {
    position: relative;
    overflow: hidden;
}
button::after {
    content:'';
    position:absolute;
    background:rgba(255,255,255,0.3);
    border-radius:50%;
    transform:scale(0);
    width:100px;height:100px;
    top:50%;left:50%;
    pointer-events:none;
    transition:transform .4s, opacity .8s;
    opacity:0;
}
button:active::after {
    transform:scale(2);
    opacity:1;
}

/* Image slideshow */
.slideshow {
    position: relative;
    margin-bottom: 20px;
}
.slideshow img {
    display: none;
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
}
.slideshow img.active {
    display: block;
}
.slideshow button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 50%;
    cursor: pointer;
    width: auto;
}
.slideshow button.prev { left: 0; }
.slideshow button.next { right: 0; }

/* Lightbox overlay for gallery */
.lightbox {
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,0.8);
    display:flex;
    align-items:center;
    justify-content:center;
    visibility:hidden;
    opacity:0;
    transition:opacity .3s;
    z-index:1000;
}
.lightbox.open {
    visibility:visible;
    opacity:1;
}
.lightbox img {
    max-width:90%;
    max-height:90%;
    border-radius:12px;
}
.lightbox button {
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.5);
    color:#fff;
    border:none;
    padding:8px 12px;
    border-radius:50%;
    cursor:pointer;

    width:auto;

}
.lightbox button.prev { left:0; }
.lightbox button.next { right:0; }

/* Stat tiles */
.stat-tiles {
    display:flex;
    gap:10px;
    justify-content:center;
}
.stat-tile {
    flex:1;
    background:#333;
    padding:10px;
    border-radius:12px;
    text-align:center;
}
.stat-number {
    font-size:20px;
    font-weight:bold;
}
.stat-label {
    font-size:14px;
    color:#ccc;
}

.floating-uad {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #222;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 4px 8px;
    font-weight: bold;
    z-index: 1000;
}

@media (max-width: 768px) {
    .floating-uad {
        display: none;
    }
}


.qr-link{margin-left:8px;text-decoration:none;font-size:1.2em;}
#eventChat .chat-box {
    height: 60vh;
    overflow-y: auto;
    padding: 14px;
    margin-bottom: 12px;
    border-radius: var(--radius);
}
#eventChat .chat-message {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 14px;
}
#eventChat .chat-message.you {
    flex-direction: row-reverse;
    justify-content: flex-end;
}
#eventChat .chat-message img,
#eventChat .chat-message .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #444;
    color: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 8px;
}
#eventChat .chat-message.you img,
#eventChat .chat-message.you .avatar {
    margin-right: 0;
    margin-left: 8px;
}
#eventChat .chat-bubble {
    background: rgba(255,255,255,0.08);
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 75%;
    word-wrap: break-word;
}
#eventChat .chat-message.you .chat-bubble {
    background: var(--accent);
    color: #000;
}
#eventChat .chat-bubble .timestamp {
    display: block;
    color: #888;
    font-size: 12px;
    margin-top: 4px;
    text-align: right;
}
.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}
.post-user {
    font-weight: bold;
    color: #90caf9;
}
.post-body {
    margin-bottom: 6px;
    white-space: pre-wrap;
}
.reaction-bar{margin-top:2px;font-size:16px}
.reaction-bar button{background:none;border:none;color:#90caf9;cursor:pointer;margin-left:4px;font-size:16px}
.reaction-bar span{margin-right:6px}
.react-menu-btn{background:none;border:none;color:#90caf9;cursor:pointer;margin-left:4px;font-size:16px}
.open-tab{margin-left:8px;font-size:14px}
.search-results{background:#222;border:1px solid #333;border-radius:4px;max-height:150px;overflow-y:auto;padding:4px;position:absolute;z-index:10}
.search-results a{display:block;padding:2px 4px;color:#90caf9;text-decoration:none}
.search-results a:hover{background:#333}
#eventChat .chat-input{display:flex;gap:8px;margin-top:8px}
#eventChat .chat-input textarea{flex:1;resize:vertical}
#eventChat .chat-input button{padding:.6rem 1.4rem}
.dm-icon{position:fixed;bottom:20px;right:20px;background:#222;border:1px solid #444;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1000;font-size:24px}
.dm-icon.dm-has{background:#e00;color:#fff}
.timestamp {
    color: #888;
    font-size: 12px;
    margin-left: 4px;
}
.dm-popup{position:fixed;bottom:70px;right:20px;width:300px;height:400px;border:1px solid #444;background:#111;z-index:1000;border-radius:8px;overflow:hidden}
.dm-header{background:#222;padding:4px;text-align:right}
.dm-header button{background:#444;border:none;color:#fff;padding:2px 6px;border-radius:4px;cursor:pointer;font-size:14px}
.dm-header button:hover{background:#666}
.dm-popup.hidden{display:none}
.dm-popup.open{display:block}
.dm-frame{width:100%;height:100%;border:0}
.profile-actions{display:flex;justify-content:center;gap:12px;margin:10px 0}
.icon-btn{background:#222;border:1px solid #444;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;font-size:24px;color:#90caf9;text-decoration:none}
.icon-btn:hover{background:#333}
.qr-link{margin-left:8px;text-decoration:none;font-size:1.2em;}
.qr-link .qr-icon{display:inline-block;width:1em;height:1em;background:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCAxMDAgMTAwJz4KPHJlY3Qgd2lkdGg9JzEwMCcgaGVpZ2h0PScxMDAnIGZpbGw9J3doaXRlJy8+CjxyZWN0IHg9JzUnIHk9JzUnIHdpZHRoPScyNScgaGVpZ2h0PScyNScgZmlsbD0nYmxhY2snLz4KPHJlY3QgeD0nNScgeT0nNzAnIHdpZHRoPScyNScgaGVpZ2h0PScyNScgZmlsbD0nYmxhY2snLz4KPHJlY3QgeD0nNzAnIHk9JzUnIHdpZHRoPScyNScgaGVpZ2h0PScyNScgZmlsbD0nYmxhY2snLz4KPHJlY3QgeD0nNDAnIHk9JzQwJyB3aWR0aD0nMTAnIGhlaWdodD0nMTAnIGZpbGw9J2JsYWNrJy8+CjxyZWN0IHg9JzcwJyB5PSc3MCcgd2lkdGg9JzEwJyBoZWlnaHQ9JzEwJyBmaWxsPSdibGFjaycvPgo8cmVjdCB4PSc1NScgeT0nMjAnIHdpZHRoPScxNScgaGVpZ2h0PScxMCcgZmlsbD0nYmxhY2snLz4KPC9zdmc+Cg==") center/contain no-repeat}
.created-at{margin-left:6px;color:#888;font-size:12px}
.trash{cursor:pointer;margin-left:4px;color:#c33;background:none;border:none;padding:0;font-size:14px}

/* Direct messages layout */
.dm-page{display:flex;flex-direction:column;gap:20px}
.dm-columns{display:flex;flex-wrap:wrap;gap:20px}
.dm-list{flex:1 1 200px;max-width:250px}
.dm-chat{flex:3 1 300px}
.chat-message{margin-bottom:6px;display:flex}
.chat-message.you{justify-content:flex-end}
.chat-message .bubble{background:#333;padding:6px 10px;border-radius:12px;max-width:80%;overflow-wrap:anywhere;word-break:break-word}
.chat-message.you .bubble{background:#1976d2;color:#fff}
.dm-list button{width:100%;background:#222;color:#90caf9;border:1px solid #333;border-radius:8px;padding:6px 8px;margin-bottom:6px;text-align:left;cursor:pointer}
.dm-list button:hover{background:#333}
.dm-list li{display:flex;align-items:center;justify-content:space-between}
.dm-list li .trash{margin-left:8px}
.dm-icon{position:fixed;bottom:20px;right:20px;background:#222;border:1px solid #444;border-radius:50%;width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:1000;font-size:24px}
.dm-icon.dm-has{background:#e00;color:#fff}
.dm-count{position:absolute;top:-4px;right:-4px;background:#e00;color:#fff;border-radius:50%;width:16px;height:16px;font-size:10px;display:none;align-items:center;justify-content:center}
.dm-icon.dm-has .dm-count{display:flex}

/* Scrollable lists and tables */
.scroll-list{
    max-height:300px;
    overflow-y:auto;
    margin-bottom:15px;
}
.scroll-list details{
    background:#222;
    border:1px solid #333;
    border-radius:12px;
    padding:8px 12px;
    margin-bottom:8px;
}
.scroll-list summary{
    cursor:pointer;
    font-weight:bold;
    outline:none;
}
.table-scroll{
    max-height:300px;
    overflow-y:auto;
    overflow-x:auto;
    width:100%;
}

.table-scroll table{
    width:100%;
    border-collapse:collapse;
}

.table-scroll th,
.table-scroll td{
    padding:6px 8px;
    text-align:left;
    white-space:nowrap;
}

.proof-img{
    max-width:150px;
    height:auto;
}

@media (max-width:600px){
    .proof-img{max-width:100px;}
}

.uad-filter-bar{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:8px 0;
}
.uad-filter-bar input,
.uad-filter-bar select{
    font-size:16px;
    padding:4px;
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   0.  Base â€“ your animated charcoal gradient
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€*/
html,body{height:100%}
body{
  background:linear-gradient(-45deg,#1e2b21 0%,#284431 30%,#787b77 65%,#36332f 100%);
  background-size:400% 400%;
  animation:gradientBG 20s ease-in-out infinite;

  color:#E5E5E5;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  margin:0;
  line-height:1.6;

  position:relative;
  overflow-x:hidden;   /* avoid scroll while layers drift */
}
@keyframes gradientBG{
  0%{background-position:0% 50%}
 50%{background-position:100% 50%}
100%{background-position:0% 50%}
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   1.  Two star-field layers (a bit faster)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€*/
html::before,              /* dense micro-stars */
html::after{               /* larger, twinkling stars */
  content:"";
  position:fixed;inset:0;
  width:200%;height:200%;        /* over-sized tile = seamless drift */
  background-repeat:repeat;
  pointer-events:none;
  z-index:-3;
}

html::before{
  opacity:.5;
  background-size:350px 350px;   /* slightly finer grid      */
  background-image:
    radial-gradient(1px 1px at 12% 18%,#fff 60%,transparent 61%),
    radial-gradient(1px 1px at 45% 82%,#fff 60%,transparent 61%),
    radial-gradient(1px 1px at 70%  8%,#fff 60%,transparent 61%),
    radial-gradient(1px 1px at 88% 57%,#fff 60%,transparent 61%),
    radial-gradient(1px 1px at 96% 37%,#fff 60%,transparent 61%),
    radial-gradient(1px 1px at 38% 44%,#fff 60%,transparent 61%);
  animation:starDrift1 40s linear infinite;   /* was 60s â†’ 40s */
}

html::after{
  opacity:.9;
  background-size:550px 550px;
  background-image:
    radial-gradient(2px 2px at 28% 63%,#fff 70%,transparent 71%),
    radial-gradient(3px 3px at 72% 22%,#fff 70%,transparent 71%),
    radial-gradient(2px 2px at 58% 77%,#fff 70%,transparent 71%),
    radial-gradient(3px 3px at 84% 49%,#fff 70%,transparent 71%);
  animation:
    starDrift2 70s linear infinite,             /* was 90s â†’ 70s */
    starPulse   2.2s ease-in-out infinite alternate;
}

@keyframes starDrift1{from{transform:translateX(0)} to{transform:translateX(-350px)}}
@keyframes starDrift2{from{transform:translateX(0)} to{transform:translateX(-550px)}}
@keyframes starPulse {from{opacity:.4}           to{opacity:.95}}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   2.  Soft aurora / nebula glow (unchanged)
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€*/
body::before{
  content:"";
  position:fixed;inset:-25%;
  z-index:-2;
  background:
    radial-gradient(circle at 40% 60%, rgba(0,220,255,.35) 0%,transparent 60%),
    radial-gradient(circle at 80% 30%, rgba(255,0,170,.25) 0%,transparent 65%),
    radial-gradient(circle at 20% 25%, rgba(0,255,140,.20) 0%,transparent 70%);
  filter:blur(120px);
  mix-blend-mode:screen;
  animation:aurora 18s ease-in-out infinite;
}
@keyframes aurora{
  0%{transform:translate(-15%, -10%) rotate(0)}
 50%{transform:translate( 15%,  10%) rotate(60deg)}
100%{transform:translate(-15%, -10%) rotate(0)}
}

/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€
   3.  Shooting-star layer
       â€“ creates five bright streaks that fly
         diagonally across the sky at random-ish
         intervals (pure CSS hackery).
   â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€*/
body::after{
  /* 5 invisible â€œdotsâ€ whose box-shadows are the real streaks */
  content:"";
  position:fixed;top:-50vh;left:120vw;        /* start off-screen */
  width:2px;height:2px;
  background:transparent;
  border-radius:50%;
  box-shadow:                         /* x-offset  y-offset   blur spread color  */
     0   0   0   0   rgba(255,255,255,.75),   /* streak #1 */
    0   0   0   0   rgba(255,255,255,.75),   /* streak #2 */
    0   0   0   0   rgba(255,255,255,.75),   /* streak #3 */
    0   0   0   0   rgba(255,255,255,.75),   /* streak #4 */
    0   0   0   0   rgba(255,255,255,.75);   /* streak #5 */

  pointer-events:none;
  z-index:-1;
  transform:rotate(-45deg) translateZ(0);     /* hardware-accelerate */
  animation:shoot 12s linear infinite;
}

/* Each keyframe snapshot relocates the â€œdotsâ€, producing
   five separate shooting stars on different paths.
   Timing gaps between snapshots create natural pauses. */
@keyframes shoot{
  /* --- streak 1 ------------------------------------------------ */
   0%  {box-shadow:
          0 0 0 0 rgba(255,255,255,0),        /* hidden */
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0);}
   5%  {box-shadow:
          -20vw 20vh 2px 0 rgba(255,255,255,.75),
          0      0    0   0 rgba(255,255,255,0),
          0      0    0   0 rgba(255,255,255,0),
          0      0    0   0 rgba(255,255,255,0),
          0      0    0   0 rgba(255,255,255,0);}
  15%  {box-shadow:
          -140vw 140vh 4px 0 rgba(255,255,255,0), /* streak flown off-screen & fades */
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0);}

  /* --- streak 2 ------------------------------------------------ */
  25%  {box-shadow:
          0 0 0 0 rgba(255,255,255,0),
          -10vw 50vh 2px 0 rgba(255,255,255,.80),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0);}
  35%  {box-shadow:
          0 0 0 0 rgba(255,255,255,0),
          -130vw 190vh 4px 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0);}

  /* --- streak 3 ------------------------------------------------ */
  45%  {box-shadow:
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          -30vw 10vh 1px 0 rgba(255,255,255,.70),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0);}
  55%  {box-shadow:
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          -160vw 140vh 4px 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0);}

  /* --- streak 4 ------------------------------------------------ */
  65%  {box-shadow:
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          -25vw 30vh 2px 0 rgba(255,255,255,.78),
          0 0 0 0 rgba(255,255,255,0);}
  75%  {box-shadow:
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          -155vw 160vh 4px 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0);}

  /* --- streak 5 ------------------------------------------------ */
  85%  {box-shadow:
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          -15vw 70vh 2px 0 rgba(255,255,255,.85);}
  95%  {box-shadow:
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          -145vw 200vh 4px 0 rgba(255,255,255,0);}
 100%  {box-shadow:
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0),
          0 0 0 0 rgba(255,255,255,0);}
}
