/* ============================================
   PlugifyTR - Modrinth Style UI
   ============================================ */

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

:root {
    --bg-primary: #000000;
    --bg-secondary: #050505;
    --bg-tertiary: #0A0A0A;
    --bg-card: #0A0A0A;
    --bg-card-hover: #111111;
    --bg-input: #0A0A0A;
    --bg-elevated: #111111;
    --border: #1A1A1A;
    --border-hover: #333333;
    --border-active: #007AFF;
    --text-primary: #F0F6FC;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;
    --text-bright: #FFFFFF;
    --accent: #007AFF;
    --accent-dark: #0066CC;
    --accent-light: #3395FF;
    --accent-glow: rgba(0, 122, 255, 0.25);
    --accent-subtle: rgba(0, 122, 255, 0.08);
    --green: #34C759;
    --green-subtle: rgba(52, 199, 89, 0.12);
    --red: #FF3B30;
    --red-subtle: rgba(255, 59, 48, 0.12);
    --yellow: #FF9F0A;
    --yellow-subtle: rgba(255, 159, 10, 0.12);
    --blue: #007AFF;
    --blue-subtle: rgba(0, 122, 255, 0.12);
    --cyan: #5AC8FA;
    --pink: #FF2D55;
    --orange: #FF9500;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --radius-full: 999px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow: 0 4px 16px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 30px var(--accent-glow);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== LIGHT THEME ===== */
[data-theme="light"] {
    --bg-primary: #f5f5f9;
    --bg-secondary: #eeeef4;
    --bg-tertiary: #e8e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8ff;
    --bg-input: #f0f0f8;
    --bg-elevated: #ffffff;
    --border: #d8d8e8;
    --border-hover: #b8b8d0;
    --border-active: #007AFF;
    --text-primary: #1a1a2e;
    --text-secondary: #555570;
    --text-muted: #8888a0;
    --text-bright: #0a0a1a;
    --accent-glow: rgba(0, 122, 255, 0.15);
    --accent-subtle: rgba(0, 122, 255, 0.06);
    --green-subtle: rgba(52, 199, 89, 0.08);
    --red-subtle: rgba(255, 59, 48, 0.08);
    --yellow-subtle: rgba(255, 159, 10, 0.08);
    --blue-subtle: rgba(0, 122, 255, 0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 0 30px rgba(0,122,255,0.1);
}
[data-theme="light"] .navbar {
    background: rgba(255,255,255,0.85);
    border-bottom-color: var(--border);
}
[data-theme="light"] .hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,122,255,0.06) 0%, transparent 60%),
        var(--bg-primary);
}
[data-theme="light"] .hero h1 {
    background: linear-gradient(180deg, #1a1a2e 0%, #007AFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero-search input {
    background: rgba(255,255,255,0.9);
}
[data-theme="light"] .brand-text {
    background: linear-gradient(135deg, #007AFF 0%, #0066CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .hero-stat-number {
    background: linear-gradient(135deg, #007AFF, #5AC8FA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
[data-theme="light"] .tag-purple { color: #007AFF; }
[data-theme="light"] .tag-green { color: #34C759; }
[data-theme="light"] .tag-blue { color: #007AFF; }
[data-theme="light"] .tag-red { color: #FF3B30; }
[data-theme="light"] .tag-yellow { color: #FF9F0A; }
[data-theme="light"] .tag-cyan { color: #5AC8FA; }
[data-theme="light"] .stars i.active { color: #FF9F0A; }
[data-theme="light"] ::selection { background: var(--accent); color: white; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #c8c8d8; }
[data-theme="light"] .toast { background: var(--bg-card); border-color: var(--border); }
[data-theme="light"] .ticker-bar { background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(0,122,255,0.04) 50%, var(--bg-primary) 100%); }
[data-theme="light"] .ticker-bar::before { background: linear-gradient(90deg, var(--bg-primary), transparent); }
[data-theme="light"] .ticker-bar::after { background: linear-gradient(270deg, var(--bg-primary), transparent); }
[data-theme="light"] .ticker-item { background: rgba(0,0,0,0.02); }
[data-theme="light"] .ticker-item:hover { background: rgba(0,122,255,0.06); }
[data-theme="light"] .announcement-info { background: linear-gradient(90deg, rgba(0,122,255,0.08), rgba(0,122,255,0.02)); color: #0055AA; }
[data-theme="light"] .announcement-info .announcement-icon { background: rgba(0,122,255,0.1); color: #007AFF; }
[data-theme="light"] .announcement-warning { background: linear-gradient(90deg, rgba(245,158,11,0.08), rgba(245,158,11,0.02)); color: #92400e; }
[data-theme="light"] .announcement-warning .announcement-icon { background: rgba(245,158,11,0.1); color: #d97706; }
[data-theme="light"] .announcement-success { background: linear-gradient(90deg, rgba(52,199,89,0.08), rgba(52,199,89,0.02)); color: #0D6B23; }
[data-theme="light"] .announcement-success .announcement-icon { background: rgba(52,199,89,0.1); color: #34C759; }
[data-theme="light"] .announcement-danger { background: linear-gradient(90deg, rgba(255,59,48,0.08), rgba(255,59,48,0.02)); color: #AA0D0D; }
[data-theme="light"] .announcement-danger .announcement-icon { background: rgba(255,59,48,0.1); color: #FF3B30; }
[data-theme="light"] .announcement-close:hover { background: rgba(0,0,0,0.05); }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

::selection { background: var(--accent); color: white; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== TICKER ===== */
.ticker-bar {
    background: linear-gradient(90deg, var(--bg-primary) 0%, rgba(0,122,255,0.06) 25%, rgba(0,122,255,0.06) 50%, rgba(0,122,255,0.06) 75%, var(--bg-primary) 100%);
    border-bottom: 1px solid rgba(0,122,255,0.15);
    overflow: hidden;
    height: 36px;
    display: flex;
    align-items: center;
    position: relative;
}
.ticker-bar::before, .ticker-bar::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}
.ticker-bar::before { left: 0; background: linear-gradient(90deg, var(--bg-primary), transparent); }
.ticker-bar::after { right: 0; background: linear-gradient(270deg, var(--bg-primary), transparent); }

.ticker-track {
    display: flex;
    width: 100%;
    min-width: 100%;
    overflow: hidden;
    align-items: center;
}
.ticker-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 100%;
    width: max-content;
    animation: ticker-scroll 35s linear infinite;
    white-space: nowrap;
    flex-shrink: 0;
    padding-right: 16px;
}
.ticker-bar:hover .ticker-content {
    animation-play-state: paused;
}
.ticker-item {
    display: inline-flex;
    align-items: center;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255,255,255,0.03);
    transition: background 0.2s;
}
.ticker-item:hover {
    background: rgba(0,122,255,0.1);
}
.ticker-item a:hover {
    text-decoration: underline !important;
}
.ticker-separator {
    color: var(--accent);
    opacity: 0.3;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== ANNOUNCEMENTS ===== */
#announcements-wrapper {
    position: relative;
    z-index: 50;
}
.announcement {
    padding: 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    animation: ann-slide-in 0.4s ease-out;
    transition: all 0.3s ease;
}
@keyframes ann-slide-in {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}
.announcement .container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
}
.announcement-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}
.announcement-body {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    line-height: 1.5;
}
.announcement-body strong {
    font-weight: 600;
}
.announcement-text {
    opacity: 0.85;
}
.announcement-link {
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    opacity: 0.7;
    transition: opacity 0.2s;
}
.announcement-link:hover { opacity: 1; }
.announcement-pin {
    font-size: 11px;
    opacity: 0.5;
    flex-shrink: 0;
}
.announcement-close {
    margin-left: auto;
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.4;
    padding: 4px 10px;
    border-radius: var(--radius-xs);
    transition: all 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.announcement-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.08);
}

.announcement-info {
    background: linear-gradient(90deg, rgba(0,122,255,0.12), rgba(0,122,255,0.04));
    color: #6BB5FF;
    border-left: 3px solid var(--blue);
}
.announcement-info .announcement-icon { background: rgba(0,122,255,0.15); color: var(--blue); }
.announcement-info .announcement-link { color: #6BB5FF; }

.announcement-warning {
    background: linear-gradient(90deg, rgba(255,159,10,0.12), rgba(255,159,10,0.04));
    color: #FFB84D;
    border-left: 3px solid var(--yellow);
}
.announcement-warning .announcement-icon { background: rgba(255,159,10,0.15); color: var(--yellow); }
.announcement-warning .announcement-link { color: #FFB84D; }

.announcement-success {
    background: linear-gradient(90deg, rgba(52,199,89,0.12), rgba(52,199,89,0.04));
    color: #5DD97A;
    border-left: 3px solid var(--green);
}
.announcement-success .announcement-icon { background: rgba(52,199,89,0.15); color: var(--green); }
.announcement-success .announcement-link { color: #5DD97A; }

.announcement-danger {
    background: linear-gradient(90deg, rgba(255,59,48,0.12), rgba(255,59,48,0.04));
    color: #FF6B63;
    border-left: 3px solid var(--red);
}
.announcement-danger .announcement-icon { background: rgba(255,59,48,0.15); color: var(--red); }
.announcement-danger .announcement-link { color: #FF6B63; }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 122, 255, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    border-bottom-color: rgba(0, 122, 255, 0.25);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    flex-wrap: nowrap;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-bright) !important;
    letter-spacing: -0.5px;
    flex-shrink: 0;
    margin-right: 20px;
}
.brand-icon { font-size: 24px; }
.brand-text {
    background: linear-gradient(135deg, #3395FF 0%, #007AFF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

/* Layout Containers */
.navbar-menu { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end;
    flex: 1;
    gap: 20px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Nav Links */
.nav-link {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    padding: 8px 16px;
    border-radius: 99px;
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
}

.nav-link:hover { 
    color: var(--text-primary) !important; 
    background: rgba(255,255,255,0.05); 
}

.nav-link.active {
    color: var(--text-primary) !important;
    background: var(--accent-subtle);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; 
    transform: translateX(-50%);
    width: 24px; height: 2px;
    background: var(--accent);
    border-radius: 2px 2px 0 0;
    box-shadow: 0 -2px 10px var(--accent-glow);
}

.nav-link i { font-size: 15px; opacity: 0.8; }
.nav-link:hover i, .nav-link.active i { opacity: 1; color: var(--accent-light); }

/* Search Area */
.navbar-search {
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 14px;
    color: var(--text-muted);
    font-size: 14px;
    pointer-events: none;
    transition: var(--transition);
}

.navbar-search input {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 99px;
    padding: 9px 16px 9px 38px;
    font-size: 13.5px;
    color: var(--text-primary);
    width: 200px;
    transition: var(--transition);
}

.navbar-search input:focus {
    outline: none;
    border-color: rgba(0, 122, 255, 0.5);
    background: rgba(10, 10, 10, 0.9);
    width: 260px;
    box-shadow: 0 0 0 4px var(--accent-subtle);
}

.navbar-search input:focus + .search-icon {
    color: var(--accent-light);
}

.search-results {
    position: absolute;
    top: calc(100% + 12px); right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 16px;
    min-width: 320px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}
.search-results.show { opacity: 1; visibility: visible; transform: translateY(0); }
.search-result-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-primary);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: rgba(139, 92, 246, 0.1); padding-left: 20px; }
.search-result-item img {
    width: 40px; height: 40px;
    border-radius: 50%; object-fit: cover;
}
.search-result-info h4 { margin: 0 0 2px 0; font-size: 14px; }
.search-result-info p { margin: 0; font-size: 12px; color: var(--text-muted); }
.search-no-results { padding: 20px; text-align: center; color: var(--text-muted); }

/* Icons & Actions */
.nav-action-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: var(--text-secondary) !important;
    font-size: 16px;
    transition: var(--transition);
    position: relative;
    background: transparent;
    border: 1px solid transparent;
}
.nav-action-btn:hover { 
    color: var(--text-primary) !important; 
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
}
.nav-action-btn.active { 
    color: var(--accent-light) !important; 
    background: var(--accent-subtle); 
    border-color: rgba(139, 92, 246, 0.2);
}

.badge-count {
    position: absolute;
    top: 0px; right: 0px;
    min-width: 18px; height: 18px;
    padding: 0 4px;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 99px;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-card);
    box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}

/* User Dropdown */
.nav-dropdown { position: relative; }

.nav-user-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px 4px 4px;
    border-radius: 99px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-primary);
}

.nav-user-toggle:hover {
    background: rgba(0, 122, 255, 0.1);
    border-color: rgba(0, 122, 255, 0.2);
}

.user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 13.5px;
    font-weight: 600;
}

.dropdown-arrow {
    font-size: 10px;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px); right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 16px;
    min-width: 220px;
    padding: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1; visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-secondary) !important;
    font-size: 13.5px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-dropdown-menu a:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary) !important;
    transform: translateX(4px);
}

.nav-dropdown-menu a i { width: 16px; text-align: center; font-size: 14px; color: var(--text-muted); }
.nav-dropdown-menu a:hover i { color: var(--accent-light); }

.dropdown-divider { height: 1px; background: rgba(255,255,255,0.05); margin: 8px 0; }
.text-purple { color: var(--accent-light) !important; }
.text-danger { color: var(--red) !important; }
.text-danger:hover { background: rgba(239, 68, 68, 0.1) !important; }
.text-danger:hover i { color: var(--red) !important; }

/* Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-login:hover {
    color: var(--text-primary);
}

/* Mobile Toggle */
.navbar-toggle {
    display: none;
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-primary); 
    font-size: 18px;
    width: 40px; height: 40px; 
    border-radius: 10px; 
    cursor: pointer;
    transition: var(--transition);
}
.navbar-toggle:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--accent-light);
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .navbar-menu {
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(0, 122, 255, 0.2);
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .navbar-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .navbar-toggle { display: inline-flex; align-items: center; justify-content: center; }
    
    .navbar-nav {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 10px;
    }

    .nav-link {
        width: 100%;
        padding: 12px 20px;
        border-radius: 12px;
        background: rgba(255,255,255,0.02);
    }
    
    .nav-link.active::after {
        display: none;
    }
    .nav-link.active {
        border-left: 3px solid var(--accent);
    }

    .navbar-actions {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.05);
    }

    .navbar-search, .navbar-search input {
        width: 100%;
    }
    
    .navbar-search input:focus {
        width: 100%;
    }

    .search-results {
        width: 100%;
        min-width: 100%;
        position: relative;
        top: 8px;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.2);
    }

    .nav-user-toggle {
        width: 100%;
        padding: 8px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        position: relative;
        top: 8px;
        width: 100%;
        box-shadow: none;
        border: none;
        background: rgba(0,0,0,0.2);
        opacity: 1; visibility: visible; transform: none;
        display: none;
    }

    .nav-dropdown.active .nav-dropdown-menu {
        display: block;
    }
}

.badge {
    background: var(--red);
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    font-weight: 700;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
    animation: pulse-badge 2s ease-in-out infinite;
}
@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px;
    border: none; border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: var(--transition);
    text-decoration: none; white-space: nowrap;
    position: relative; overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.08) 0%, transparent 100%);
    pointer-events: none;
}
.btn-sm { padding: 7px 14px; font-size: 12.5px; border-radius: var(--radius-xs); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-xs { padding: 4px 10px; font-size: 11px; }

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--accent-glow);
    color: white;
    background: var(--accent-light);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: var(--bg-card-hover); border-color: var(--border-hover); color: var(--text-primary); }

.btn-success {
    background: var(--green);
    color: white;
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.25);
}
.btn-success:hover { transform: translateY(-2px); color: white; box-shadow: 0 8px 24px rgba(52, 199, 89, 0.3); }

.btn-danger { background: var(--red); color: white; }
.btn-danger:hover { transform: translateY(-1px); color: white; }

.btn-warning { background: var(--yellow); color: #000; }

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-subtle); }

.btn-ghost { background: transparent; color: var(--text-secondary); padding: 8px; }
.btn-ghost:hover { background: var(--accent-subtle); color: var(--accent-light); }

.btn-block { width: 100%; justify-content: center; }

.btn-icon {
    width: 36px; height: 36px; padding: 0;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
}
.btn-icon.btn-sm { width: 30px; height: 30px; }

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}
.card:hover { border-color: var(--border-hover); }

.card-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(0,0,0,0.3);
}
.card-header h2, .card-header h3 {
    font-size: 15px; font-weight: 700;
    display: flex; align-items: center; gap: 10px;
}
.card-header h3 i { color: var(--accent-light); font-size: 14px; }

.card-body { padding: 22px; word-wrap: break-word; overflow-wrap: break-word; }
.card-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    background: rgba(0,0,0,0.1);
}

/* Glass card variant */
.card-glass {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    border-color: rgba(0, 122, 255, 0.15);
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-label {
    display: block; margin-bottom: 7px;
    font-size: 13px; font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

.form-control {
    width: 100%;
    padding: 11px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font); font-size: 14px;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow), 0 0 20px var(--accent-glow);
    background: var(--bg-elevated);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { min-height: 120px; resize: vertical; }

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

.form-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}
.form-text { font-size: 12px; color: var(--text-muted); margin-top: 5px; }

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
    font-size: 13.5px;
    border: 1px solid transparent;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success { background: var(--green-subtle); color: #86efac; border-color: rgba(34,197,94,0.2); }
.alert-danger { background: var(--red-subtle); color: #fca5a5; border-color: rgba(239,68,68,0.2); }
.alert-warning { background: var(--yellow-subtle); color: #fcd34d; border-color: rgba(245,158,11,0.2); }
.alert-info { background: var(--blue-subtle); color: #93c5fd; border-color: rgba(59,130,246,0.2); }

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}
.hero-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0,122,255,0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(0,122,255,0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(0,122,255,0.08) 0%, transparent 50%),
        var(--bg-primary);
}
.hero-bg::after {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%238b5cf6' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px;
    background: var(--accent-subtle);
    border: 1px solid rgba(139,92,246,0.2);
    border-radius: var(--radius-full);
    font-size: 12px; font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 24px;
    animation: fadeUp 0.6s ease;
}

.hero h1 {
    font-size: 52px; font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -1px;
    background: linear-gradient(180deg, #ffffff 0%, #3395FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeUp 0.6s ease 0.1s both;
}

.hero p {
    font-size: 17px; color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeUp 0.6s ease 0.2s both;
}

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

.hero-search {
    max-width: 540px;
    margin: 0 auto 48px;
    position: relative;
    animation: fadeUp 0.6s ease 0.3s both;
}

.hero-search input {
    width: 100%;
    padding: 16px 24px 16px 52px;
    background: rgba(10,10,10,0.8);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 15px;
    font-family: var(--font);
    transition: var(--transition);
}
.hero-search input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow), 0 8px 32px rgba(0,0,0,0.5);
}
.hero-search .search-icon {
    position: absolute;
    left: 20px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 16px;
}
.hero-search button {
    position: absolute;
    right: 6px; top: 50%; transform: translateY(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border: none; color: white;
    width: 42px; height: 42px;
    border-radius: var(--radius-full);
    cursor: pointer; font-size: 15px;
    transition: var(--transition);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.hero-stats {
    display: flex; justify-content: center; gap: 48px;
    animation: fadeUp 0.6s ease 0.4s both;
}
.hero-stat { text-align: center; }
.hero-stat-number {
    font-size: 36px; font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

/* ===== SECTION ===== */
.section { padding: 48px 0; }
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
}
.section-header h2 {
    font-size: 22px; font-weight: 700;
    display: flex; align-items: center; gap: 12px;
}
.section-header h2 i { color: var(--accent-light); }
.section-subtitle { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ===== PLUGIN GRID ===== */
.plugin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.plugin-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    display: flex;
    flex-direction: column;
}
.plugin-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 122, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 122, 255, 0.2);
}

.plugin-card-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--bg-tertiary);
}
.plugin-card-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.plugin-card:hover .plugin-card-img { transform: scale(1.1); }

.plugin-card-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(8, 8, 22, 0) 40%, rgba(8, 8, 22, 0.95) 100%);
}

.plugin-card-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; gap: 6px;
}

.plugin-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.plugin-badge-featured {
    background: var(--yellow);
    color: #000;
}
.plugin-badge-trending {
    background: var(--red);
    color: white;
}
.plugin-badge-new {
    background: var(--accent);
    color: white;
}
.plugin-badge-free {
    background: var(--green-subtle);
    color: var(--green);
    border: 1px solid rgba(34,197,94,0.3);
}
.plugin-badge-bumped {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.plugin-card-icon {
    position: absolute; top: 130px; left: 20px;
    width: 60px; height: 60px;
    border-radius: 14px;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    background: var(--bg-tertiary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: transform 0.3s ease;
}
.plugin-card:hover .plugin-card-icon {
    transform: translateY(-4px);
}

.plugin-card-body { 
    padding: 40px 20px 20px; 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

.plugin-card-title {
    font-size: 18px; font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
}
.plugin-card-title a { color: var(--text-primary); text-decoration: none; transition: color 0.2s; }
.plugin-card-title a:hover { color: var(--accent-light); }

.plugin-card-tagline {
    font-size: 13.5px; color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.6;
    flex: 1;
}

.plugin-card-author {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
}
.plugin-card-author img {
    width: 24px; height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.1);
}
.plugin-card-author span { color: var(--text-muted); transition: color 0.2s; }
.plugin-card-author:hover span { color: var(--text-primary); }
.plugin-card-author .verified {
    color: var(--accent-light);
    font-size: 12px;
}
.plugin-card-author .team-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: #fff;
    font-size: 10px;
    margin-left: 4px;
}

.plugin-card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }

.plugin-card-footer {
    display: flex; align-items: center; justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 13px;
}
.plugin-card-stats {
    display: flex; gap: 16px;
    color: var(--text-muted);
    font-weight: 500;
}
.plugin-card-stats span { display: flex; align-items: center; gap: 6px; }
.plugin-card-stats i { font-size: 12px; color: var(--text-secondary); }

.plugin-card-rating { 
    display: flex; align-items: center; gap: 6px; 
    background: rgba(255,255,255,0.03);
    padding: 4px 8px;
    border-radius: 8px;
}
.plugin-card-rating .stars { font-size: 11px; }

/* Tags */
.tag {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 11px; font-weight: 600;
    border: 1px solid transparent;
}
.tag-purple { background: var(--accent-subtle); color: var(--accent-light); border-color: rgba(0,122,255,0.2); }
.tag-green { background: var(--green-subtle); color: #5DD97A; border-color: rgba(52,199,89,0.2); }
.tag-blue { background: var(--blue-subtle); color: #6BB5FF; border-color: rgba(0,122,255,0.2); }
.tag-red { background: var(--red-subtle); color: #FF6B63; border-color: rgba(255,59,48,0.2); }
.tag-yellow { background: var(--yellow-subtle); color: #FFB84D; border-color: rgba(255,159,10,0.2); }
.tag-cyan { background: rgba(90,200,250,0.12); color: #7DD8FC; border-color: rgba(90,200,250,0.2); }
.tag-default { background: rgba(160,160,160,0.12); color: #A0A0A0; border-color: rgba(160,160,160,0.2); }

/* Stars */
.stars { display: inline-flex; gap: 1px; }
.stars i { color: var(--text-muted); font-size: 12px; }
.stars i.active { color: var(--yellow); }

/* Star Rating Input */
.stars input:checked ~ label { color: var(--yellow); }
.stars label:hover,
.stars label:hover ~ label { color: #fbbf24 !important; }
.stars label { color: var(--text-muted); transition: color 0.2s; }

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.category-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    color: var(--text-primary);
}
.category-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    color: var(--text-primary);
}

.category-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.category-name { font-weight: 600; font-size: 13px; }
.category-count { font-size: 11px; color: var(--text-muted); margin-top: 1px; }

/* ===== PLUGIN DETAIL ===== */
.plugin-detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
.plugin-detail-layout > div:first-child { min-width: 0; overflow: hidden; }
pre, code { white-space: pre-wrap; word-break: break-all; max-width: 100%; }

.plugin-detail-header {
    padding: 28px;
    display: flex; align-items: flex-start; gap: 22px;
}
.plugin-detail-icon {
    width: 80px; height: 80px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.plugin-detail-info { flex: 1; min-width: 0; word-wrap: break-word; overflow-wrap: break-word; }
.plugin-detail-info h1 {
    font-size: 26px; font-weight: 800;
    margin-bottom: 4px;
    display: flex; align-items: center; gap: 10px;
}
.plugin-detail-info .tagline {
    font-size: 14px; color: var(--text-secondary);
    margin-bottom: 12px;
}

.plugin-meta-row {
    display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-muted);
}
.plugin-meta-row span { display: flex; align-items: center; gap: 5px; }
.plugin-meta-row a { color: var(--text-muted); }
.plugin-meta-row a:hover { color: var(--accent-light); }

/* Plugin tabs */
.plugin-tabs {
    display: flex; gap: 0;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.3);
    overflow-x: auto;
}
.plugin-tab {
    padding: 14px 22px;
    font-size: 13.5px; font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer; transition: var(--transition);
    background: none; border-top: none; border-left: none; border-right: none;
    font-family: var(--font);
    white-space: nowrap;
    display: flex; align-items: center; gap: 8px;
}
.plugin-tab:hover { color: var(--text-secondary); background: rgba(255,255,255,0.02); }
.plugin-tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }
.plugin-tab .tab-count {
    background: var(--bg-input);
    padding: 1px 7px;
    border-radius: var(--radius-full);
    font-size: 11px;
}

.tab-content { display: none; padding: 24px; word-wrap: break-word; overflow-wrap: break-word; }
.tab-content.active { display: block; }

/* Plugin sidebar */
.plugin-sidebar { min-width: 0; }
.plugin-sidebar .card { margin-bottom: 16px; }

.download-box {
    padding: 22px;
    text-align: center;
}
.download-btn {
    width: 100%;
    padding: 15px 24px;
    font-size: 15px;
    justify-content: center;
    border-radius: var(--radius);
    margin-bottom: 14px;
}
.download-btn i { font-size: 17px; }

.download-info {
    display: flex; justify-content: center; gap: 20px;
    font-size: 12px; color: var(--text-muted);
    margin-top: 6px;
}

.plugin-info-list { list-style: none; }
.plugin-info-list li {
    display: flex; justify-content: space-between; align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(30,30,74,0.5);
    font-size: 13px;
}
.plugin-info-list li:last-child { border-bottom: none; }
.plugin-info-list li .label { color: var(--text-muted); display: flex; align-items: center; gap: 7px; }
.plugin-info-list li .label i { width: 16px; text-align: center; font-size: 12px; }
.plugin-info-list li .value { font-weight: 600; color: var(--text-secondary); }

/* ===== SIDEBAR BANNERS ===== */
.sidebar-banner {
    display: block;
    margin-bottom: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.sidebar-banner:hover { border-color: var(--accent); transform: scale(1.02); }
.sidebar-banner img { width: 100%; display: block; }

/* ===== HEADER/FOOTER BANNERS ===== */
.header-banners, .footer-banners {
    padding: 16px 0;
    background: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    border-bottom: 1px solid var(--border);
}
.banner-grid {
    display: flex; gap: 16px;
    justify-content: center; flex-wrap: wrap;
}
.banner-item {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.banner-item:hover {
    border-color: var(--accent);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(139,92,246,0.15);
}
.banner-item img { display: block; max-height: 90px; width: auto; }

/* Banner Slider */
.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
}
.banner-slider-track {
    position: relative;
    min-height: 100px;
}
.banner-slide {
    display: none;
    text-decoration: none;
    position: relative;
    text-align: center;
    animation: banner-fade-in 0.5s ease;
}
.banner-slide.active { display: block; }
@keyframes banner-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.banner-slide img {
    display: block;
    max-height: 120px;
    margin: 0 auto;
    width: auto;
}
.banner-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 16px 12px 8px;
    text-align: center;
}
.banner-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px;
}
.banner-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--text-muted);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}
.banner-dot.active, .banner-dot:hover {
    opacity: 1;
    background: var(--accent);
    transform: scale(1.3);
}

/* ===== AUTH ===== */
.auth-container { max-width: 460px; margin: 60px auto; }
.auth-container .card { border-color: rgba(0,122,255,0.2); }
.auth-container .card-body { padding: 36px; }

.auth-header { text-align: center; margin-bottom: 32px; }
.auth-header .auth-icon {
    width: 64px; height: 64px;
    border-radius: 20px;
    background: var(--accent);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px; color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
}
.auth-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-header p { color: var(--text-muted); font-size: 14px; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 13px; color: var(--text-muted); }

.auth-divider {
    display: flex; align-items: center; gap: 16px;
    margin: 24px 0;
    font-size: 12px; color: var(--text-muted);
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ===== PROFILE ===== */
.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, rgba(0,122,255,0.3), rgba(0,122,255,0.2), rgba(90,200,250,0.2));
    position: relative;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
}
.profile-cover img {
    width: 100%; height: 100%; object-fit: cover;
}

.profile-header {
    padding: 0 28px 28px;
    position: relative;
    margin-top: -50px;
}

.profile-avatar-wrap {
    position: relative;
    display: inline-block;
}

.profile-avatar {
    width: 110px; height: 110px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 4px solid var(--bg-card);
    box-shadow: var(--shadow);
    background: var(--bg-tertiary);
}

.profile-info { margin-top: 14px; }
.profile-info h1 {
    font-size: 24px; font-weight: 800;
    display: flex; align-items: center; gap: 10px;
}
.profile-info p { color: var(--text-secondary); font-size: 14px; margin-top: 4px; line-height: 1.6; }

.verified-badge {
    display: inline-flex; align-items: center; gap: 4px;
    color: var(--accent-light);
    font-size: 14px;
}

.profile-stats {
    display: flex; gap: 28px;
    margin-top: 16px;
}
.profile-stat { text-align: center; }
.profile-stat-value { font-size: 22px; font-weight: 800; color: var(--accent-light); }
.profile-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }

.profile-social {
    display: flex; gap: 8px;
    margin-top: 16px;
}
.profile-social a {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 15px;
}
.profile-social a:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-subtle); }

/* ===== TABLE ===== */
.table-responsive { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(30,30,74,0.5);
}
.table th {
    font-weight: 600; color: var(--text-muted);
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px;
    background: rgba(0,0,0,0.2);
}
.table tr:hover td { background: rgba(139,92,246,0.03); }
.table .avatar-sm { width: 32px; height: 32px; border-radius: var(--radius-xs); object-fit: cover; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 4px; justify-content: center; margin: 32px 0; }
.pagination a, .pagination span {
    display: flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: 13px; font-weight: 600;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent-light); background: var(--accent-subtle); }
.pagination .active { background: var(--accent); border-color: var(--accent); color: white; }

/* ===== NOTIFICATIONS ===== */
.notification-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(30,30,74,0.5);
    transition: var(--transition);
}
.notification-item:hover { background: rgba(139,92,246,0.04); }
.notification-item.unread {
    background: var(--accent-subtle);
    border-left: 3px solid var(--accent);
}
.notification-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--accent-subtle);
    color: var(--accent-light);
    font-size: 16px;
}
.notification-content { flex: 1; }
.notification-title { font-weight: 600; font-size: 13.5px; }
.notification-text { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.notification-time { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== DISCUSSION ===== */
.discussion-item {
    display: flex; gap: 14px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(30,30,74,0.5);
}
.discussion-item:last-child { border-bottom: none; }
.discussion-avatar {
    width: 40px; height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}
.discussion-content { flex: 1; }
.discussion-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 6px;
}
.discussion-header strong { font-size: 13.5px; }
.discussion-header .time { font-size: 11px; color: var(--text-muted); }
.discussion-type-badge {
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 10px; font-weight: 600;
}
.discussion-message {
    font-size: 13.5px; color: var(--text-secondary);
    line-height: 1.6;
}
.discussion-actions {
    display: flex; gap: 12px; margin-top: 8px;
    font-size: 12px;
}
.discussion-actions a { color: var(--text-muted); }
.discussion-actions a:hover { color: var(--accent-light); }

/* ===== VERSION HISTORY ===== */
.version-item {
    padding: 20px 0;
    border-bottom: 1px solid rgba(30,30,74,0.5);
}
.version-item:last-child { border-bottom: none; }
.version-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px;
}
.version-tag {
    display: flex; align-items: center; gap: 8px;
}
.version-tag h4 { font-size: 16px; font-weight: 700; }
.version-type {
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 10px; font-weight: 700;
    text-transform: uppercase;
}
.version-type-release { background: var(--green-subtle); color: #5DD97A; }
.version-type-beta { background: var(--yellow-subtle); color: #FFB84D; }
.version-type-alpha { background: var(--red-subtle); color: #FF6B63; }
.version-type-breaking {
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    animation: pulse-breaking 2s ease-in-out infinite;
}
@keyframes pulse-breaking {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}
.version-breaking-change {
    border-left: 3px solid var(--red);
}
.version-breaking-details {
    margin-top: 12px;
}

.version-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.version-changelog {
    font-size: 13px; color: var(--text-secondary);
    line-height: 1.7;
    padding-left: 16px;
}
.version-changelog li { margin-bottom: 4px; }

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 56px 0 24px;
    margin-top: 80px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-section h3 {
    font-size: 18px; font-weight: 800; margin-bottom: 6px;
}
.footer-section h3 .brand-icon { margin-right: 4px; }
.footer-section h4 {
    font-size: 13px; font-weight: 700; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 16px;
}
.footer-section p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a {
    color: var(--text-muted); font-size: 13px;
    display: flex; align-items: center; gap: 6px;
    transition: var(--transition);
}
.footer-section ul li a:hover { color: var(--accent-light); transform: translateX(3px); }

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; color: var(--text-muted);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: var(--text-muted); }
.footer-bottom-links a:hover { color: var(--accent-light); }

/* ===== ADMIN ===== */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }

.admin-sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 0;
    position: sticky; top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar-brand {
    display: flex; align-items: center; gap: 10px;
    padding: 20px 22px;
    font-size: 17px; font-weight: 800;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
}
.admin-nav { list-style: none; }
.admin-nav-item a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 22px;
    color: var(--text-muted); font-size: 13px; font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}
.admin-nav-item a:hover, .admin-nav-item a.active {
    background: var(--accent-subtle);
    color: var(--accent-light);
    border-left-color: var(--accent);
}
.admin-nav-item a i { width: 20px; text-align: center; font-size: 14px; }

.admin-nav-section {
    padding: 18px 22px 6px;
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: var(--text-muted);
}

.admin-content { padding: 32px; overflow-y: auto; }
.admin-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px;
}
.admin-header h1 {
    font-size: 26px; font-weight: 800;
    display: flex; align-items: center; gap: 12px;
}
.admin-header h1 i { color: var(--accent-light); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex; align-items: center; gap: 16px;
    transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-hover); transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-icon {
    width: 50px; height: 50px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; flex-shrink: 0;
}
.stat-info h3 { font-size: 26px; font-weight: 800; line-height: 1; }
.stat-info p { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.8);
    display: none; align-items: center; justify-content: center;
    z-index: 2000; backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; }

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 540px; width: 90%; max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalIn 0.25s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(0,0,0,0.3);
}
.modal-header h3 { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-close {
    background: none; border: none; color: var(--text-muted);
    font-size: 20px; cursor: pointer; padding: 4px 8px;
    border-radius: var(--radius-xs);
}
.modal-close:hover { background: var(--red-subtle); color: var(--red); }

.modal-body { padding: 24px; }
.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    display: flex; gap: 10px; justify-content: flex-end;
    background: rgba(0,0,0,0.3);
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.d-flex { display: flex; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }

.empty-state { text-align: center; padding: 60px 24px; }
.empty-state i { font-size: 48px; color: var(--text-muted); opacity: 0.4; margin-bottom: 16px; display: block; }
.empty-state h3 { color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { color: var(--text-muted); font-size: 13px; }

/* File upload */
.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 40px; text-align: center;
    cursor: pointer; transition: var(--transition);
}
.file-upload:hover { border-color: var(--accent); background: var(--accent-subtle); }
.file-upload i { font-size: 32px; color: var(--accent-light); margin-bottom: 10px; }
.file-upload p { color: var(--text-muted); font-size: 13px; }
.file-upload input { display: none; }

/* Avatar upload */
.avatar-upload { position: relative; width: 110px; height: 110px; margin: 0 auto 20px; }
.avatar-upload img {
    width: 110px; height: 110px;
    border-radius: var(--radius);
    object-fit: cover;
    border: 3px solid var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}
.avatar-upload label {
    position: absolute; bottom: -4px; right: -4px;
    width: 34px; height: 34px;
    background: var(--accent); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: white; font-size: 13px;
    transition: var(--transition); box-shadow: var(--shadow-sm);
}
.avatar-upload label:hover { background: var(--accent-dark); }
.avatar-upload input { display: none; }

/* Switch */
.switch { position: relative; width: 44px; height: 24px; }
.switch input { display: none; }
.switch-slider {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: 24px; cursor: pointer; transition: var(--transition);
}
.switch-slider::before {
    content: ''; position: absolute; width: 18px; height: 18px;
    left: 2px; bottom: 2px;
    background: var(--text-muted); border-radius: 50%;
    transition: var(--transition);
}
.switch input:checked + .switch-slider { background: var(--accent); border-color: var(--accent); }
.switch input:checked + .switch-slider::before { transform: translateX(20px); background: white; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab {
    padding: 12px 18px; font-size: 13px; font-weight: 600;
    color: var(--text-muted); border-bottom: 2px solid transparent;
    cursor: pointer; transition: var(--transition);
    background: none; border-top: none; border-left: none; border-right: none;
    font-family: var(--font);
}
.tab:hover { color: var(--text-secondary); }
.tab.active { color: var(--accent-light); border-bottom-color: var(--accent); }

/* Filter bar */
.filter-bar { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.filter-bar .form-control { flex: 1; min-width: 200px; }
.filter-bar select.form-control { flex: 0 0 180px; }

/* Action buttons */
.action-buttons { display: flex; gap: 5px; }
.action-buttons .btn { padding: 6px 10px; font-size: 12px; }

/* Favorites button */
.favorite-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer; font-family: var(--font);
    font-size: 13px; font-weight: 500;
    transition: var(--transition);
}
.favorite-btn:hover { border-color: var(--pink); color: var(--pink); }
.favorite-btn.active { color: var(--pink); border-color: var(--pink); background: rgba(236,72,153,0.08); }
.favorite-btn.active i { font-weight: 900; }

/* Top Dev Card */
.top-dev-card:hover {
    transform: translateY(-2px);
    background: rgba(139, 92, 246, 0.05);
    border-color: rgba(139, 92, 246, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .plugin-detail-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar {
        position: fixed; left: -280px; width: 260px; z-index: 1001;
        transition: var(--transition);
    }
    .admin-sidebar.open { left: 0; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 32px; }
    .hero { padding: 60px 0 50px; }
    .hero-stats { gap: 24px; }
    .navbar-toggle { display: block; }
    .navbar-menu {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 16px; gap: 4px;
        backdrop-filter: blur(20px);
    }
    .navbar-menu.open { display: flex; }
    .nav-dropdown-menu { position: static; width: 100%; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .profile-header { text-align: center; }
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .plugin-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 26px; }
    .stat-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== BUMP SYSTEM ===== */
.btn-bump {
    background: var(--green);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.btn-bump:hover {
    background: #2DB86E;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(52, 199, 89, 0.3);
    color: #fff;
}
.btn-bump:active {
    transform: translateY(0);
}
.btn-bump.bump-cooldown {
    background: var(--bg-input);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.7;
    border: 1px solid var(--border);
}
.btn-bump.bump-cooldown:hover {
    transform: none;
    box-shadow: none;
}
.plugin-badge-bumped {
    background: var(--green) !important;
    color: #fff !important;
    font-weight: 600;
    animation: bumpPulse 2s ease-in-out infinite;
}
@keyframes bumpPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ===== EXPERIENCE LAYER ===== */
.navbar.scrolled { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); border-bottom-color: rgba(0, 122, 255, 0.18); }
.theme-toggle { border: none; background: transparent; cursor: pointer; min-width: 102px; }
.theme-toggle-icons { position: relative; width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle-icon { position: absolute; transition: transform 0.24s ease, opacity 0.24s ease; }
.theme-icon-light { opacity: 0; transform: scale(0.6) rotate(-18deg); }
.theme-toggle[data-theme-state="light"] .theme-icon-dark { opacity: 0; transform: scale(0.6) rotate(18deg); }
.theme-toggle[data-theme-state="light"] .theme-icon-light { opacity: 1; transform: scale(1) rotate(0deg); }
.theme-toggle[data-theme-preference="system"] .theme-toggle-label::after { content: ' Auto'; opacity: 0.65; font-size: 11px; }
.toast-stack { position: fixed; top: 86px; right: 24px; z-index: 1600; display: flex; flex-direction: column; gap: 12px; width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; background: rgba(10, 10, 10, 0.94); border: 1px solid rgba(0, 122, 255, 0.18); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5); transform: translateY(-8px) scale(0.96); opacity: 0; transition: opacity 0.22s ease, transform 0.22s ease; pointer-events: auto; backdrop-filter: blur(18px); }
.toast.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.toast-success { border-color: rgba(52, 199, 89, 0.28); }
.toast-error { border-color: rgba(255, 59, 48, 0.28); }
.toast-icon { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-subtle); color: var(--accent-light); }
.toast-success .toast-icon { background: rgba(52, 199, 89, 0.14); color: #5DD97A; }
.toast-error .toast-icon { background: rgba(255, 59, 48, 0.14); color: #FF6B63; }
.toast-title { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.toast-message { color: var(--text-primary); font-size: 13px; line-height: 1.55; }
.toast-close { border: none; background: transparent; color: var(--text-muted); cursor: pointer; padding: 0; }
.toast-close:hover { color: var(--text-primary); }
.scroll-top { position: fixed; right: 24px; bottom: 24px; width: 48px; height: 48px; border: none; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4); cursor: pointer; opacity: 0; transform: translateY(14px); pointer-events: none; transition: opacity 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease; z-index: 1400; }
.scroll-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 22px 40px rgba(0, 0, 0, 0.5); }
.plugin-card, .category-card, .card, .notification-item, .version-item, .discussion-item, .profile-stat { transition: transform 0.34s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.34s ease, border-color 0.34s ease; will-change: transform; }
.plugin-card:hover, .category-card:hover, .profile-stat:hover { transform: translateY(-7px); }
.card:hover, .version-item:hover, .discussion-item:hover { transform: translateY(-4px); }
.plugin-card:hover { box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 122, 255, 0.14); }
.category-card:hover { box-shadow: 0 16px 34px rgba(0, 0, 0, 0.4); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal-fast { transition-duration: 0.34s; }
body.ui-skeleton-enabled.is-page-loading .hero, body.ui-skeleton-enabled.is-page-loading .plugin-card, body.ui-skeleton-enabled.is-page-loading .category-card, body.ui-skeleton-enabled.is-page-loading .card, body.ui-skeleton-enabled.is-page-loading .hero-stat, body.ui-skeleton-enabled.is-page-loading .notification-item, body.ui-skeleton-enabled.is-page-loading .profile-stat { position: relative; overflow: hidden; }
body.ui-skeleton-enabled.is-page-loading .hero > *, body.ui-skeleton-enabled.is-page-loading .plugin-card > *, body.ui-skeleton-enabled.is-page-loading .category-card > *, body.ui-skeleton-enabled.is-page-loading .card > *, body.ui-skeleton-enabled.is-page-loading .hero-stat > *, body.ui-skeleton-enabled.is-page-loading .notification-item > *, body.ui-skeleton-enabled.is-page-loading .profile-stat > * { opacity: 0.4; }
body.ui-skeleton-enabled.is-page-loading .hero::after, body.ui-skeleton-enabled.is-page-loading .plugin-card::after, body.ui-skeleton-enabled.is-page-loading .category-card::after, body.ui-skeleton-enabled.is-page-loading .card::after, body.ui-skeleton-enabled.is-page-loading .hero-stat::after, body.ui-skeleton-enabled.is-page-loading .notification-item::after, body.ui-skeleton-enabled.is-page-loading .profile-stat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.03) 28%, rgba(255,255,255,0.08) 46%, rgba(255,255,255,0.03) 64%, transparent 100%); transform: translateX(-120%); animation: skeleton-shimmer 1.45s linear infinite; }
body.is-page-loaded .hero > *, body.is-page-loaded .plugin-card > *, body.is-page-loaded .category-card > *, body.is-page-loaded .card > *, body.is-page-loaded .hero-stat > *, body.is-page-loaded .notification-item > *, body.is-page-loaded .profile-stat > * { transition: opacity 0.3s ease; }
@keyframes skeleton-shimmer { 100% { transform: translateX(120%); } }

/* ===== INLINE SKELETON PLACEHOLDERS ===== */
.skeleton-block {
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    position: relative;
    overflow: hidden;
}
.skeleton-block::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-circle {
    border-radius: 50%;
    background: var(--bg-input);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.skeleton-circle::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}

.skeleton-line {
    height: 14px;
    background: var(--bg-input);
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}
.skeleton-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-line.h-sm { height: 10px; }
.skeleton-line.h-lg { height: 18px; }
.skeleton-line.h-xl { height: 24px; }
.skeleton-line.w-xs { width: 25%; }
.skeleton-line.w-sm { width: 33%; }
.skeleton-line.w-md { width: 50%; }
.skeleton-line.w-lg { width: 75%; }
.skeleton-line.w-xl { width: 90%; }
.skeleton-line.w-full { width: 100%; }
.skeleton-line.w-auto { width: auto; }

/* Skeleton Grid */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.skeleton-card-banner {
    width: 100%;
    height: 140px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}
.skeleton-card-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
}
.skeleton-card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.skeleton-card-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.skeleton-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}

/* Fade-in animation for loaded content */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}
.content-loaded .plugin-card,
.content-loaded .category-card {
    animation: fadeInUp 0.4s ease forwards;
}
.content-loaded .plugin-card:nth-child(1) { animation-delay: 0.05s; }
.content-loaded .plugin-card:nth-child(2) { animation-delay: 0.1s; }
.content-loaded .plugin-card:nth-child(3) { animation-delay: 0.15s; }
.content-loaded .plugin-card:nth-child(4) { animation-delay: 0.2s; }
.content-loaded .plugin-card:nth-child(5) { animation-delay: 0.25s; }
.content-loaded .plugin-card:nth-child(6) { animation-delay: 0.3s; }
.achievement-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.achievement-row--plugin { margin-top: 12px; }
.achievement-row--profile { margin-top: 14px; margin-bottom: 2px; }
.achievement-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; border: 1px solid transparent; background: rgba(139, 92, 246, 0.12); color: var(--text-primary); }
.achievement-purple { background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.24); color: #c4b5fd; }
.achievement-blue { background: rgba(59, 130, 246, 0.12); border-color: rgba(59, 130, 246, 0.24); color: #93c5fd; }
.achievement-green { background: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.24); color: #86efac; }
.achievement-gold { background: rgba(245, 158, 11, 0.14); border-color: rgba(245, 158, 11, 0.26); color: #fcd34d; }
.achievement-hot { background: rgba(249, 115, 22, 0.14); border-color: rgba(249, 115, 22, 0.26); color: #fdba74; }
.achievement-pink { background: rgba(236, 72, 153, 0.14); border-color: rgba(236, 72, 153, 0.26); color: #f9a8d4; }
.achievement-red { background: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.26); color: #fca5a5; }
.achievement-legend { background: rgba(168, 85, 247, 0.18); border-color: rgba(168, 85, 247, 0.3); color: #ddd6fe; box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.1); }
.profile-info .achievement-row { max-width: 640px; }
[data-theme="light"] .toast { background: rgba(255, 255, 255, 0.92); box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12); }
[data-theme="light"] .scroll-top { box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14); }
@media (max-width: 900px) { .toast-stack { top: 74px; right: 16px; left: 16px; width: auto; } }
@media (max-width: 640px) { .theme-toggle .theme-toggle-label { display: none; } .theme-toggle { min-width: 42px; justify-content: center; } .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; border-radius: 14px; } }
/* ===== FOOTER THEME SELECT ===== */
.footer-theme-control {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(139, 92, 246, 0.14);
}
.footer-theme-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.theme-selector-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.theme-select-shell {
    flex: 1;
    position: relative;
}
.theme-select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--bg-input);
    color: var(--text-primary);
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.theme-select:hover,
.theme-select:focus {
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.08);
}
.theme-indicator {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,122,255,0.24), rgba(10,10,10,0.5));
    border: 1px solid rgba(0,122,255,0.22);
    box-shadow: 0 12px 26px rgba(0,0,0,0.5);
    color: #ffffff;
    flex-shrink: 0;
}
.theme-indicator[data-mode="light"] {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.28), rgba(249, 115, 22, 0.18));
    border-color: rgba(251, 191, 36, 0.24);
    color: #fde68a;
}
.theme-indicator[data-mode="dark"] {
    background: linear-gradient(135deg, rgba(76, 29, 149, 0.28), rgba(30, 41, 59, 0.5));
    border-color: rgba(139, 92, 246, 0.24);
    color: #ddd6fe;
}
.theme-indicator.is-animating {
    animation: theme-indicator-bounce 0.38s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes theme-indicator-bounce {
    0% { transform: scale(0.82) rotate(-10deg); }
    55% { transform: scale(1.08) rotate(8deg); }
    100% { transform: scale(1) rotate(0deg); }
}
@media (max-width: 640px) {
    .theme-selector-wrap {
        gap: 10px;
    }
    .theme-indicator {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}

/* ============================================
   Rating Modal Styles
   ============================================ */
#ratingModal {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#ratingModal.active {
    display: flex !important;
    opacity: 1;
}

#ratingModal .modal-content {
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

#ratingModal.active .modal-content {
    transform: scale(1) translateY(0);
}

#ratingModal .modal-content button:hover {
    opacity: 0.8;
}

.rating-stars-input label {
    cursor: pointer;
    transition: all 0.15s ease;
}

.rating-stars-input label:hover,
.rating-stars-input label.active {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

/* ============================================
   Download Button with Rating Prompt
   ============================================ */
.download-btn-with-rating {
    position: relative;
}

.download-btn-with-rating::after {
    content: '';
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background: #fbbf24;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #000;
    animation: pulse 2s infinite;
}

.download-btn-with-rating.has-rating-prompt::after {
    display: flex;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ============================================
   Default Gradient Avatars & Icons
   ============================================ */
.default-avatar,
.default-avatar-img,
.profile-avatar,
.plugin-card-icon,
.plugin-detail-icon,
.discussion-avatar,
.nav-avatar,
.avatar-sm {
    background: var(--accent) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 18px !important;
}

.default-avatar::before,
.default-avatar-img::before,
.profile-avatar::before,
.plugin-card-icon::before,
.plugin-detail-icon::before,
.discussion-avatar::before,
.nav-avatar::before,
.avatar-sm::before {
    content: attr(data-initials);
}

/* Plugin card default banner */
.default-plugin-banner {
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 48px;
}

/* Cover image default */
.default-cover {
    background: var(--bg-primary);
}

/* Site logo fallback */
.default-site-logo {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    padding: 8px 16px;
    border-radius: 8px;
}