@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/regular/style.css");
@import url("https://cdn.jsdelivr.net/npm/@phosphor-icons/web@2.1.1/src/fill/style.css");

@font-face {
    font-family: 'CustomFont';
    src: url('resources/font.ttf') format('truetype');
}

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

body {
    font-family: 'CustomFont', 'Segoe UI', Tahoma, sans-serif;
    background: #0b0b0f;
    color: #d4d4dc;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: url('resources/banner.png') center center / cover no-repeat fixed;
    filter: blur(4px) brightness(0.25);
    transform: scale(1.05);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(200, 120, 20, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0b0b0f;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid rgba(240, 165, 0, 0.1);
    border-top: 4px solid #f0a500;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

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

.loading-text {
    margin-top: 20px;
    font-size: 0.85rem;
    color: rgba(212, 212, 220, 0.35);
    letter-spacing: 3px;
    animation: loadFade 1.4s ease-in-out infinite;
}

@keyframes loadFade {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

.content {
    max-width: 960px;
    width: 100%;
    padding: 40px 24px;
    position: relative;
    z-index: 2;
}

.header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 10px;
    background: rgba(11, 11, 15, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(240, 165, 0, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 0 20px rgba(240, 165, 0, 0.15);
}

.header-text h1 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f0a500 0%, #d4880f 40%, #f0a500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.header-text .subtitle {
    color: rgba(212, 212, 220, 0.55);
    font-size: 0.9rem;
    margin-top: -2px;
    letter-spacing: 0.4px;
}

.version-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(11, 11, 15, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 8px 18px;
    font-size: 0.88rem;
    margin: 12px 0 24px 0;
    color: rgba(212, 212, 220, 0.7);
    flex-wrap: wrap;
}

.version-badge strong {
    color: #f0a500;
    font-weight: 600;
}

.version-badge .dot {
    color: rgba(212, 212, 220, 0.12);
}

#visitorDisplay i {
    margin-right: 2px;
}

.floating-visitor {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(11, 11, 15, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 8px 14px 8px 8px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.floating-visitor.show {
    opacity: 1;
    transform: translateY(0);
}

.floating-visitor .gif {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
}

.floating-visitor .info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.floating-visitor .label {
    font-size: 0.65rem;
    color: rgba(212, 212, 220, 0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.floating-visitor .count {
    font-size: 0.95rem;
    color: #f0a500;
    font-weight: 700;
}

.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #5865F2, #4752c4);
    color: #fff;
    padding: 10px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
    margin-bottom: 32px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(88, 101, 242, 0.25);
}

.discord-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35);
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 36px 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e8e8f0;
}

.section-title i {
    color: #f0a500;
    font-size: 1.5rem;
}

.card-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 10px;
}

.card {
    background: rgba(11, 11, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 22px 16px;
    text-align: center;
    text-decoration: none;
    color: #d4d4dc;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.card:hover {
    border-color: rgba(240, 165, 0, 0.5);
    background: rgba(18, 18, 26, 0.75);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(240, 165, 0, 0.1);
}

.card i {
    font-size: 2rem;
    color: #f0a500;
    margin-bottom: 4px;
    transition: transform 0.3s;
}

.card:hover i {
    transform: scale(1.15);
}

.card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e8e8f0;
}

.card p {
    font-size: 0.75rem;
    color: rgba(212, 212, 220, 0.45);
    margin: 0;
}

.download-all {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: rgba(212, 212, 220, 0.5) !important;
    text-decoration: none;
    font-size: 0.82rem;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 11, 15, 0.5);
    backdrop-filter: blur(6px);
    transition: all 0.25s;
}

.download-all:hover {
    border-color: rgba(240, 165, 0, 0.4);
    color: #f0a500 !important;
}

.donate-section {
    margin-top: 48px;
    background: rgba(11, 11, 15, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 36px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donate-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('https://i.imgur.com/zBXTcDW.png') center / 60px repeat;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

.donate-section > * {
    position: relative;
    z-index: 1;
}

.donate-section h2 {
    font-size: 1.3rem;
    color: #e8e8f0;
    margin-bottom: 10px;
}

.donate-section h2 i {
    color: #f0a500;
}

.donate-section p {
    color: rgba(212, 212, 220, 0.6);
    font-size: 0.9rem;
    max-width: 540px;
    margin: 0 auto 22px auto;
    line-height: 1.7;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #f0a500, #d4880f);
    color: #0b0b0f;
    padding: 12px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.25s, box-shadow 0.25s;
    border: none;
    cursor: pointer;
}

.donate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(240, 165, 0, 0.3);
}

.donate-btn i {
    font-size: 1.3rem;
}

footer {
    margin-top: 36px;
    padding: 20px 0 40px 0;
    text-align: center;
    color: rgba(212, 212, 220, 0.3);
    font-size: 0.8rem;
}

footer a {
    color: rgba(212, 212, 220, 0.45);
    text-decoration: none;
    transition: color 0.2s;
}

footer a:hover {
    color: #f0a500;
}

@media (max-width: 600px) {
    .content { padding: 24px 16px; }
    .header { flex-direction: column; text-align: center; padding: 20px; }
    .header-text h1 { font-size: 1.6rem; }
    .card-row { grid-template-columns: repeat(2, 1fr); }
}

@keyframes waveRedWhite {
    0%, 100% { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.3); }
    50%      { color: #ff3333; text-shadow: 0 0 10px rgba(255,51,51,0.5); }
}

@keyframes waveYellowWhite {
    0%, 100% { color: #fff; text-shadow: 0 0 6px rgba(255,255,255,0.3); }
    50%      { color: #ffcc00; text-shadow: 0 0 10px rgba(255,204,0,0.5); }
}

.dev-name {
    animation: waveRedWhite 1.8s ease-in-out infinite;
}

.assist-name {
    animation: waveYellowWhite 1.8s ease-in-out infinite;
}

.auth-status {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(240, 165, 0, 0.3);
}

.logout-btn {
    color: rgba(212, 212, 220, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    transition: color 0.2s;
}

.logout-btn:hover {
    color: #ff4444;
}

.warn-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 50, 50, 0.12);
    border: 1px solid rgba(255, 50, 50, 0.25);
    border-radius: 10px;
    padding: 10px 16px;
    margin-bottom: 14px;
    animation: warnPulse 2s ease-in-out infinite;
}

@keyframes warnPulse {
    0%, 100% { border-color: rgba(255, 50, 50, 0.25); }
    50% { border-color: rgba(255, 50, 50, 0.6); }
}

.warn-text {
    flex: 1;
    font-size: 0.78rem;
    color: #ff6666;
    line-height: 1.5;
}

.warn-close {
    background: none;
    border: none;
    color: #ff6666;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.6;
    transition: opacity 0.2s;
    line-height: 1;
}

.warn-close:hover {
    opacity: 1;
}
