:root {
    --bg: #1a1a1a;
    --text: #f3f4f6;
    --accent: #10b981;
    --secondary: #9ca3af;
    --border: #333;
    --card-bg: #222;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

    --discord-brand: #5865F2;
    --discord-bg: #2b2d31;
    --discord-dark: #1e1f22;
    --discord-hover: #3f4147;
    --discord-text: #f2f3f5;
    --discord-muted: #b5bac1;
}

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

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 600px;
    text-align: center;
}

.logo {
    width: 110px;
    height: auto;
    display: block;
    margin: 0 auto 12px;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.5));
    animation: float 3s ease-in-out infinite;
    transition: filter 0.3s ease;
}

.logo:hover { filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.65)); }

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

h1 {
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text);
}

h1 span { color: var(--accent); }

.status {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 600;
}

.date {
    font-size: 16px;
    color: var(--secondary);
    margin-bottom: 30px;
}
.date span { color: var(--accent); font-weight: bold; }

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 16px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease;
}

.unit:hover { border-color: var(--accent); }

.unit span:first-child {
    font-size: 36px;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.label {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sep {
    font-size: 30px;
    color: var(--secondary);
    opacity: 0.7;
    margin: 0 4px;
    user-select: none;
}

footer { margin-top: 35px; }
footer a {
    color: var(--secondary);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s ease;
}
footer a:hover { color: var(--accent); text-decoration: underline; }

.ultimate-discord-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.discord-float {
    background: var(--discord-brand);
    color: white;
    border-radius: 50px;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    user-select: none;
}

.discord-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(88, 101, 242, 0.4);
}

.discord-icon { width: 22px; height: 22px; flex-shrink: 0; }
.discord-text { font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.5px; }

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #23a559;
    border-radius: 50%;
    margin-left: 5px;
    box-shadow: 0 0 0 0 rgba(35, 165, 89, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(35, 165, 89, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(35, 165, 89, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(35, 165, 89, 0); }
}

.ud-popup {
    position: absolute;
    bottom: 65px;
    right: 0;
    width: 350px;
    background: var(--discord-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(88, 101, 242, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ud-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ud-header {
    background: var(--discord-dark);
    padding: 20px 20px 15px;
    border-bottom: 1px solid #1f2023;
}

.ud-title {
    color: var(--discord-text);
    font-weight: 800;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.ud-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--discord-muted);
    font-size: 13px;
    font-weight: 600;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 5px;
}
.status-dot.green { background-color: #23a559; }

.ud-sep { opacity: 0.5; }

.ud-body {
    padding: 15px 10px 15px 20px;
    height: 320px;
    overflow-y: auto;
}

.ud-body::-webkit-scrollbar { width: 6px; }
.ud-body::-webkit-scrollbar-track { background: transparent; }
.ud-body::-webkit-scrollbar-thumb { background: #1a1b1e; border-radius: 10px; }
.ud-body:hover::-webkit-scrollbar-thumb { background: #3f4147; }

.ud-category {
    color: var(--discord-muted);
    font-size: 12px;
    font-weight: 700;
    margin: 15px 0 8px 0;
}
.ud-category:first-child { margin-top: 0; }

.ud-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ud-channel {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--discord-muted);
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.1s;
}
.ud-channel:hover {
    background: var(--discord-hover);
    color: var(--discord-text);
}
.ud-channel svg { width: 18px; height: 18px; opacity: 0.7; }

.ud-member {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background 0.1s;
}
.ud-member:hover { background: var(--discord-hover); }

.ud-avatar-wrapper { position: relative; width: 32px; height: 32px; }
.ud-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ud-status-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--discord-bg);
}
.ud-status-icon.online { background-color: #23a559; }
.ud-status-icon.idle { background-color: #f0b232; }
.ud-status-icon.dnd { background-color: #f23f43; }

.ud-username { color: var(--discord-text); font-size: 14px; font-weight: 500; }
.ud-loader { color: var(--discord-muted); font-size: 13px; font-style: italic; padding: 5px 8px; }

.ud-footer {
    background: var(--discord-dark);
    padding: 15px;
    text-align: center;
    border-top: 1px solid #1f2023;
}

.ud-join-btn {
    display: block;
    background: #23a559;
    color: white;
    text-decoration: none;
    padding: 10px 0;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}
.ud-join-btn:hover { background: #1a8747; }

@media (max-width: 480px) {
    .discord-widget { bottom: 15px; right: 15px; }
    .ud-popup { width: 310px; right: 0; }
    .ud-body { height: 280px; }
}