/* Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #0a0a0a;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

/* Custom Cursor */
#cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #8B5CF6;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

#cursor-ring { display: none; }

*, *::before, *::after {
    cursor: none !important;
}

/* Layout */
.page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-container {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.admin-container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px 60px;
}

/* Logo/Brand */
.brand {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
}

.brand-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #8B5CF6;
    border-radius: 50%;
    margin-left: 4px;
    margin-top: 8px;
    animation: brandPulse 2s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

@keyframes brandPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(139, 92, 246, 0.6); }
    50% { transform: scale(1.3); box-shadow: 0 0 16px rgba(139, 92, 246, 0.9), 0 0 32px rgba(139, 92, 246, 0.3); }
}

.tagline {
    color: #888888;
    font-weight: 300;
    margin-top: 8px;
    font-size: 1.1rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #888888;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background-color: #111111;
    border: 1px solid #1a1a1a;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.form-input:focus {
    border-color: #8B5CF6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-input::placeholder {
    color: #444444;
}

.code-input {
    font-family: monospace;
    letter-spacing: 2px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-small {
    font-family: inherit;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #8B5CF6 0%, #7C3AED 50%, #6D28D9 100%);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background-size: 200% 200%;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4), 0 0 60px rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.97) translateY(0);
}

/* Ripple effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: rippleEffect 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleEffect {
    to { transform: scale(4); opacity: 0; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid #222222;
    color: #888888;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    font-size: 14px;
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
    width: auto;
}

/* Cards */
.card {
    background-color: #111111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.08), 0 0 1px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.15);
    transform: translateY(-2px);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 24px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #111111;
    border-left: 3px solid #8B5CF6;
    padding: 16px 20px;
    border-radius: 6px;
    color: #ffffff;
    font-size: 14px;
    animation: slideIn 0.3s ease-out forwards;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    min-width: 250px;
    transition: opacity 0.3s ease-out;
}

.toast.fade-out {
    opacity: 0;
}

.toast-success {
    border-color: #10B981;
}

.toast-error {
    border-color: #EF4444;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-top: 16px;
}

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

.data-table th {
    color: #888888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
    font-weight: 500;
}

.data-table td {
    padding: 12px;
    border-bottom: 1px solid #0f0f0f;
    font-size: 14px;
    color: #cccccc;
}

.data-table tr:hover {
    background-color: rgba(139, 92, 246, 0.03);
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 500;
}

.badge-available {
    background-color: rgba(16, 185, 129, 0.1);
    color: #10B981;
}

.badge-used {
    background-color: rgba(239, 68, 68, 0.1);
    color: #EF4444;
}

.badge-admin {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8B5CF6;
}

.badge-user {
    background-color: rgba(136, 136, 136, 0.1);
    color: #888888;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px rgba(139,92,246,0.5); }
    100% { transform: scale(1); opacity: 0.8; }
}

.animate-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: 1px solid #1a1a1a;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    color: #888888;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #8B5CF6;
}

/* Subtle background effect */
.bg-glow {
    position: fixed;
    top: -20vh;
    right: -20vw;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, rgba(10,10,10,0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Landing page */
.landing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.landing-hero {
    text-align: center;
}

.landing-brand {
    font-size: 3.5rem;
    justify-content: center;
}

.landing-brand .brand-dot {
    width: 12px;
    height: 12px;
    margin-top: 14px;
}

.landing-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.divider {
    width: 40px;
    height: 1px;
    background-color: #222222;
    margin: 32px auto;
    position: relative;
}

.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 4px;
    background-color: #8B5CF6;
    border-radius: 50%;
}

/* Copy Button */
.copy-btn {
    background-color: transparent;
    border: 1px solid #222222;
    color: #888888;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    transition: all 0.2s;
}

.copy-btn:hover {
    border-color: #8B5CF6;
    color: #8B5CF6;
}

.copy-btn.copied {
    border-color: #10B981;
    color: #10B981;
}

.action-btn {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.action-btn:hover {
    color: #EF4444;
}

.ml-2 { margin-left: 8px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

.text-center { text-align: center; }
.text-muted { color: #555555; }
.text-secondary { color: #888888; }
.text-sm { font-size: 12px; }

a {
    color: #8B5CF6;
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

.link-muted {
    color: #888;
}
.link-muted:hover {
    color: #fff;
    text-decoration: none;
}

.grid {
    display: grid;
    gap: 24px;
}

.code-display {
    background: #0a0a0a;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid #1a1a1a;
    font-family: monospace;
    font-size: 18px;
    letter-spacing: 2px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Responsive */
@media (max-width: 640px) {
    .nav {
        padding: 16px 20px;
    }
    
    .card {
        padding: 24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .auth-container .card {
        border: 1px solid #1a1a1a;
        border-radius: 8px;
    }
    
    .landing-brand {
        font-size: 2.5rem;
    }
    
    .landing-actions {
        flex-direction: column;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
    }

    .profile-avatar-large {
        margin: 0 auto;
    }

    .profile-info {
        align-items: center;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Profile Styles ──────────────────────────────────────── */

.profile-header {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px;
}

.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #1a1a1a;
    flex-shrink: 0;
    background-color: #111;
}

.profile-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 600;
    color: #fff;
}

.profile-username {
    font-size: 14px;
    color: #888;
}

.profile-uid {
    font-family: monospace;
    font-size: 12px;
    color: #555;
    background: rgba(139, 92, 246, 0.08);
    padding: 3px 10px;
    border-radius: 99px;
    display: inline-block;
    width: fit-content;
}

.profile-meta {
    display: flex;
    gap: 24px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.profile-meta-item {
    font-size: 13px;
    color: #888;
}

.profile-meta-item span {
    color: #ccc;
}

.profile-bio {
    padding: 24px 32px;
    border-top: 1px solid #1a1a1a;
}

.profile-bio-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
    margin-bottom: 8px;
}

.profile-bio-text {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    white-space: pre-wrap;
}

.profile-bio-empty {
    font-size: 14px;
    color: #333;
    font-style: italic;
}

/* Avatar edit */
.avatar-edit-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.avatar-edit-wrapper:hover .avatar-edit-overlay {
    opacity: 1;
}

.avatar-edit-overlay {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 12px;
    color: #fff;
    font-weight: 500;
}

.avatar-small {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a1a1a;
}

.avatar-small-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
}

/* Members grid */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.member-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.member-card:hover {
    border-color: #8B5CF6;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.08);
    text-decoration: none;
}

.member-card-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.member-card-avatar-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    flex-shrink: 0;
}

.member-card-info {
    flex: 1;
    min-width: 0;
}

.member-card-name {
    font-weight: 500;
    font-size: 15px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-card-meta {
    font-size: 12px;
    color: #555;
    margin-top: 2px;
}

/* Profile edit form */
.profile-edit-section {
    margin-top: 24px;
}

.form-textarea {
    width: 100%;
    background-color: #111111;
    border: 1px solid #1a1a1a;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    max-height: 200px;
}

.form-textarea:focus {
    border-color: #8B5CF6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-textarea::placeholder {
    color: #444444;
}

.char-count {
    font-size: 11px;
    color: #444;
    text-align: right;
    margin-top: 4px;
}

.file-upload-area {
    border: 2px dashed #1a1a1a;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-area:hover {
    border-color: #8B5CF6;
    background: rgba(139, 92, 246, 0.03);
}

.file-upload-area input[type="file"] {
    display: none;
}

.btn-danger {
    background-color: transparent;
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: #EF4444;
}

.flex-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ─── NEW STYLES ──────────────────────────────────────── */

/* Announcement styles */
.announcement-card {
    background: #111;
    border-left: 3px solid #8B5CF6;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 12px;
}
.announcement-card.pinned {
    border-left-color: #F59E0B;
}
.announcement-title {
    font-weight: 500;
    font-size: 15px;
}
.announcement-content {
    color: #888;
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.5;
}
.announcement-meta {
    font-size: 11px;
    color: #555;
    margin-top: 8px;
}
.pin-indicator {
    color: #F59E0B;
    font-size: 11px;
    margin-right: 8px;
}

/* Download styles */
.download-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.download-card:hover {
    border-color: #8B5CF6;
}
.download-info {
    flex: 1;
}
.download-name {
    font-weight: 500;
    font-size: 15px;
}
.download-meta {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}
.download-size {
    color: #888;
    font-family: monospace;
    font-size: 12px;
}
.download-btn {
    background: #8B5CF6;
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.download-btn:hover {
    background: #7C3AED;
    box-shadow: 0 0 10px rgba(139,92,246,0.5);
}
.download-count {
    font-size: 11px;
    color: #555;
}

/* Changelog styles */
.changelog-timeline {
    position: relative;
    padding-left: 24px;
}
.changelog-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #1a1a1a;
}
.changelog-entry {
    position: relative;
    margin-bottom: 32px;
}
.changelog-entry::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #8B5CF6;
    border: 2px solid #0a0a0a;
}
.changelog-version {
    font-family: monospace;
    font-size: 13px;
    color: #8B5CF6;
    font-weight: 500;
}
.changelog-title {
    font-size: 18px;
    font-weight: 500;
    margin-top: 4px;
}
.changelog-content {
    color: #888;
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.6;
    white-space: pre-wrap;
}
.changelog-date {
    font-size: 11px;
    color: #555;
    margin-top: 8px;
}

/* Subscription badge */
.badge-active {
    background: rgba(16,185,129,0.1);
    color: #10B981;
}
.badge-expired {
    background: rgba(239,68,68,0.1);
    color: #EF4444;
}
.badge-none {
    background: rgba(136,136,136,0.1);
    color: #888;
}
.sub-key {
    font-family: monospace;
    font-size: 13px;
    color: #888;
    background: #0a0a0a;
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #1a1a1a;
}

/* Online status */
.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.online-dot.online {
    background: #10B981;
    box-shadow: 0 0 6px rgba(16,185,129,0.5);
}
.online-dot.offline {
    background: #333;
}
.last-seen-text {
    font-size: 12px;
    color: #555;
}

/* Invite tree */
.tree-node {
    padding: 8px 0;
    padding-left: 24px;
    border-left: 1px dashed #1a1a1a;
    position: relative;
}
.tree-node::before {
    content: '';
    width: 16px;
    height: 1px;
    background: #1a1a1a;
    position: absolute;
    left: 0;
    top: 16px;
}
.tree-root {
    padding-left: 0;
    border-left: none;
}
.tree-root::before {
    display: none;
}
.tree-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Session management */
.session-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.session-card.current {
    border-color: #8B5CF6;
}
.session-info {
    flex: 1;
}
.session-device {
    font-size: 14px;
    font-weight: 500;
}
.session-meta {
    font-size: 12px;
    color: #555;
    margin-top: 4px;
}
.session-current-badge {
    font-size: 11px;
    color: #8B5CF6;
    margin-left: 8px;
}

/* Ban styles */
.banned-overlay {
    background: rgba(239,68,68,0.05);
    border: 1px solid rgba(239,68,68,0.2);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}
.banned-text {
    color: #EF4444;
    font-weight: 500;
}

/* Search bar */
.search-container {
    margin-bottom: 24px;
}
.search-input {
    width: 100%;
    background-color: #111111;
    border: 1px solid #1a1a1a;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.search-input:focus {
    border-color: #8B5CF6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}
.search-input::placeholder {
    color: #444444;
}

/* Tab system for admin */
.tab-nav {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 32px;
    flex-wrap: wrap;
    overflow-x: auto;
}
.tab-btn {
    padding: 10px 16px;
    font-size: 13px;
    color: #888;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
    white-space: nowrap;
}
.tab-btn:hover {
    color: #fff;
}
.tab-btn.active {
    color: #8B5CF6;
    border-bottom-color: #8B5CF6;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Admin stat cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: #111;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}
.stat-number {
    font-size: 2rem;
    font-weight: 600;
    color: #8B5CF6;
}
.stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Responsive additions */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tab-nav {
        overflow-x: auto;
    }
}

/* ─── NEW STYLES ──────────────────────────────────────── */

/* Profile banner */
.profile-banner { width: 100%; height: 200px; object-fit: cover; border-radius: 8px 8px 0 0; }
.profile-banner-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, #111 0%, #1a1a1a 100%); border-radius: 8px 8px 0 0; }
.profile-banner-edit { position: absolute; top: 12px; right: 12px; opacity: 0.7; transition: opacity 0.2s; }
.profile-banner-edit:hover { opacity: 1; }
.banner-upload-wrapper { position: relative; }

/* Notification bell */
.notification-bell { position: relative; cursor: pointer; font-size: 18px; color: #888; transition: color 0.2s; }
.notification-bell:hover { color: #fff; }
.notification-badge { position: absolute; top: -6px; right: -8px; background: #EF4444; color: white; font-size: 10px; padding: 1px 5px; border-radius: 99px; min-width: 16px; text-align: center; font-weight: 600; }
.notification-dropdown { position: absolute; top: 100%; right: 0; width: 360px; max-height: 400px; overflow-y: auto; background: #111; border: 1px solid #1a1a1a; border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 200; margin-top: 8px; }
.notification-item { padding: 14px 16px; border-bottom: 1px solid #0f0f0f; cursor: pointer; transition: background 0.2s; }
.notification-item:hover { background: rgba(139,92,246,0.03); }
.notification-item.unread { border-left: 3px solid #8B5CF6; }
.notification-item.read { opacity: 0.6; }
.notification-title { font-size: 13px; font-weight: 500; color: #fff; }
.notification-message { font-size: 12px; color: #888; margin-top: 4px; }
.notification-time { font-size: 11px; color: #555; margin-top: 4px; }
.notification-header { padding: 12px 16px; border-bottom: 1px solid #1a1a1a; display: flex; justify-content: space-between; align-items: center; }

/* Audit log */
.audit-log-entry { padding: 12px 16px; border-bottom: 1px solid #0f0f0f; font-size: 13px; display: flex; gap: 16px; align-items: center; }
.audit-action { font-family: monospace; font-size: 12px; padding: 2px 8px; border-radius: 4px; background: rgba(139,92,246,0.08); color: #8B5CF6; }
.audit-details { color: #888; flex: 1; }
.audit-time { color: #555; font-size: 11px; white-space: nowrap; }
.audit-filters { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-btn { padding: 6px 14px; border-radius: 99px; font-size: 12px; cursor: pointer; border: 1px solid #1a1a1a; background: transparent; color: #888; transition: all 0.2s; font-family: inherit; }
.filter-btn:hover, .filter-btn.active { border-color: #8B5CF6; color: #8B5CF6; }

/* Maintenance page */
.maintenance-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; text-align: center; padding: 20px; }
.maintenance-icon { font-size: 4rem; margin-bottom: 16px; }
.maintenance-title { font-size: 1.5rem; font-weight: 500; margin-bottom: 8px; }
.maintenance-text { color: #888; font-size: 14px; max-width: 400px; }

/* VIP gate */
.vip-gate { text-align: center; padding: 60px 20px; }
.vip-gate-icon { font-size: 4rem; margin-bottom: 16px; }
.vip-gate-title { font-size: 1.5rem; font-weight: 500; margin-bottom: 8px; }
.vip-gate-text { color: #888; font-size: 14px; margin-bottom: 24px; }
.vip-badge-large { display: inline-block; padding: 8px 20px; border-radius: 99px; font-size: 14px; font-weight: 600; background: rgba(245,158,11,0.15); color: #F59E0B; border: 1px solid rgba(245,158,11,0.3); }

/* HWID */
.hwid-display { font-family: monospace; font-size: 13px; color: #888; background: #0a0a0a; padding: 8px 14px; border-radius: 6px; border: 1px solid #1a1a1a; }

/* Badges */
.badge-vip { background: rgba(245,158,11,0.1); color: #F59E0B; }
.badge-moderator { background: rgba(16,185,129,0.1); color: #10B981; }

/* ═══════════════════════════════════════════════════════════
   ANIMATION SYSTEM
   ═══════════════════════════════════════════════════════════ */

/* Particle canvas */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Mouse glow — disabled */
#mouse-glow {
    display: none;
}

/* Cursor sparkle trail */
.cursor-sparkle {
    position: fixed;
    pointer-events: none;
    z-index: 99997;
    font-size: 8px;
    color: #8B5CF6;
    animation: sparkleFall 0.8s ease-out forwards;
    text-shadow: 0 0 4px rgba(139, 92, 246, 0.8);
}

@keyframes sparkleFall {
    0% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
    100% { opacity: 0; transform: translate(-50%, calc(-50% + 30px)) scale(0) rotate(180deg); }
}

body:hover #mouse-glow {
    opacity: 1;
}

/* Staggered animations */
.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }
.stagger-6 { animation-delay: 0.3s; }
.stagger-7 { animation-delay: 0.35s; }
.stagger-8 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blinkCursor {
    0%, 100% { border-right-color: #8B5CF6; }
    50% { border-right-color: transparent; }
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(139, 92, 246, 0.2); }
    50% { box-shadow: 0 0 20px rgba(139, 92, 246, 0.4), 0 0 40px rgba(139, 92, 246, 0.1); }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease-out both;
}

.animate-fadeInDown {
    animation: fadeInDown 0.5s ease-out both;
}

.animate-fadeInScale {
    animation: fadeInScale 0.4s ease-out both;
}

.animate-slideInLeft {
    animation: slideInLeft 0.5s ease-out both;
}

.animate-slideInRight {
    animation: slideInRight 0.5s ease-out both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-glow {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, #111 25%, #1a1a1a 50%, #111 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 6px;
}

.skeleton-text {
    height: 14px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.skeleton-card {
    padding: 20px;
    border: 1px solid #1a1a1a;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Landing typing effect */
.typing-container {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #8B5CF6;
    animation: typewriter 2s steps(24) 0.5s both, blinkCursor 0.8s step-end infinite;
}

/* Stat counter animation */
.stat-number {
    transition: all 0.3s;
}

.stat-number.counting {
    color: #8B5CF6;
}

/* Enhanced input focus glow */
.form-input:focus {
    border-color: #8B5CF6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 0 20px rgba(139, 92, 246, 0.08);
}

/* Nav link hover underline */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #8B5CF6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Member card hover lift */
.member-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 1px rgba(139, 92, 246, 0.3);
}

/* Badge subtle glow for VIP */
.badge-vip {
    animation: glowPulse 3s ease-in-out infinite;
}

/* Smooth scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B5CF6;
}

/* Toast slide in animation */
.toast {
    animation: slideInRight 0.3s ease-out;
}

.toast.fade-out {
    animation: fadeOutRight 0.3s ease-out forwards;
}

@keyframes fadeOutRight {
    to { opacity: 0; transform: translateX(100%); }
}

/* Page transition */
#app {
    animation: fadeInUp 0.3s ease-out;
}

