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

body {
    background-color: #111111;
    background: linear-gradient(135deg, #111111 0%, #1a1a1c 100%);
    background-attachment: fixed;
    color: #f5f5f7;
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
}

.bg-glow {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: -1;
    background: radial-gradient(circle at 50% -10%, #1e2329 0%, #111111 100%);
}

.sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(25, 25, 27, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.user-profile-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 0;
    cursor: pointer;
    border-radius: 16px;
    padding: 12px;
    transition: background 0.3s;
    text-decoration: none;
    color: inherit;
}

.user-profile-section:hover {
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #333336;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.sidebar-avatar .u-head, .sidebar-avatar .u-body {
    transition: opacity 0.2s ease;
}

.user-name {
    font-weight: 600;
    font-size: 1rem;
    color: #f5f5f7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    padding: 0.9rem 1.2rem;
    border-radius: 12px;
    color: #a1a1a6;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
    transform: translateX(4px);
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f5f7;
    font-weight: 600;
}

.bottom-section {
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1rem;
}

.main-wrapper {
    flex-grow: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 280px);
    min-width: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 2rem;
    background: transparent;
    transition: background 0.3s ease, border-bottom 0.3s ease, backdrop-filter 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar.scrolled {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-top {
    height: 48px;
    width: auto;
    border-radius: 14px;
}

.profile-trigger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #333336;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.profile-trigger .u-head, .profile-trigger .u-body {
    transition: opacity 0.2s ease;
}

.u-head { width: 10px; height: 10px; background-color: #a0a6b1; border-radius: 50%; margin-bottom: 2px; }
.u-body { width: 20px; height: 9px; background-color: #a0a6b1; border-radius: 10px 10px 3px 3px; }

.filter-bar {
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    position: sticky;
    top: 80px;
    z-index: 90;
    transition: background 0.3s ease, border-bottom 0.3s ease, backdrop-filter 0.3s ease;
}

.filter-bar.scrolled {
    background: rgba(17, 17, 17, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.7rem 1.5rem;
    color: #f5f5f7;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

.search-wrapper {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-container {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 0.7rem 1.2rem 0.7rem 3rem;
    color: #f5f5f7;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.search-input::placeholder {
    color: #a1a1a6;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #a1a1a6;
    pointer-events: auto;
    cursor: pointer;
    z-index: 5;
}

.filter-name {
    color: #f5f5f7;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(23, 26, 30, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

.search-dropdown.active {
    display: block;
}

.dropdown-header {
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #a1a1a6;
    font-size: 0.9rem;
}

.dropdown-header span {
    color: #f5f5f7;
    font-weight: 600;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item-image {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.dropdown-item-info {
    flex: 1;
    min-width: 0;
}

.dropdown-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-item-author {
    font-size: 0.8rem;
    color: #a1a1a6;
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-item-author svg {
    width: 12px;
    height: 12px;
    fill: #00d2ff;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.6));
}

.dropdown-no-results {
    padding: 2rem 1rem;
    text-align: center;
    color: #a1a1a6;
}

.dropdown-no-results img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.addons-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}

.addon-card {
    background: rgba(25, 25, 27, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    gap: 1.5rem;
    transition: background 0.2s ease;
    width: 100%;
    position: relative;
}

.flame-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    fill: #ff6b00;
    filter: drop-shadow(0 0 10px rgba(255, 107, 0, 0.6));
    z-index: 10;
    cursor: help;
}

.flame-tooltip {
    position: absolute;
    top: 45px;
    right: 0;
    background: rgba(23, 26, 30, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #f5f5f7;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 20;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.flame-icon:hover + .flame-tooltip {
    opacity: 1;
}

.flame-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background: rgba(23, 26, 30, 0.98);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.addon-logo {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.addon-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.addon-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f5f5f7;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    color: #a1a1a6;
    margin-bottom: 8px;
}

.author-row span {
    color: #f5f5f7;
    font-weight: 500;
}

.author-verified-icon {
    width: 16px;
    height: 16px;
    fill: #00d2ff;
    margin-left: 4px;
    vertical-align: middle;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.6));
}

.addon-desc {
    font-size: 0.9rem;
    color: #a1a1a6;
    margin-bottom: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.addon-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: #a1a1a6;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #64748b;
    stroke-width: 2;
}

.platform-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 6px;
    color: #f5f5f7;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.05);
    flex-shrink: 0;
}

.global-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.global-overlay.active {
    display: flex;
    opacity: 1;
}

.filter-modal-content {
    background: rgba(23, 26, 30, 0.98);
    width: 90%;
    max-width: 480px;
    border-radius: 28px;
    padding: 65px 30px 30px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.global-overlay.active .filter-modal-content {
    transform: scale(1);
}

.filter-image-overlap {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.filter-image-overlap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.filter-header-text {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 5;
}

.filter-header-text h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #f5f5f7;
    margin-bottom: 8px;
    letter-spacing: -0.8px;
}

.filter-header-text p {
    font-size: 1rem;
    color: #a1a1a6;
    line-height: 1.5;
    max-width: 300px;
    margin: 0 auto;
}

.filter-options-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.filter-option-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #a1a1a6;
    padding: 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.filter-option-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #a1a1a6;
    stroke-width: 2;
    transition: all 0.2;
    flex-shrink: 0;
}

.filter-option-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f5f5f7;
}

.filter-option-btn:hover svg {
    stroke: #f5f5f7;
}

.filter-option-btn.selected {
    background: #ffffff;
    color: #111111;
    border-color: #ffffff;
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.filter-option-btn.selected svg {
    stroke: #111111;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 999;
}

.custom-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(23, 26, 30, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 12px 24px;
    color: #f5f5f7;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.custom-notification.show {
    transform: translateX(0);
}

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

.notification-content::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #ff6b00;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff6b00;
}

.hero-carousel {
    width: 100%;
    padding: 1.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background: #1a1a1c;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 21 / 9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
    z-index: 2;
}

.slide-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.15);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    flex-shrink: 0;
}

.slide-text {
    flex: 1;
    min-width: 0;
}

.slide-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-author {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.slide-description {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 700px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
}

.carousel-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

.carousel-btn.prev { left: 25px; }
.carousel-btn.next { right: 25px; }

.carousel-dots {
    position: absolute;
    bottom: 25px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dot.active {
    background: white;
    width: 30px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

@media (min-width: 769px) {
    .sidebar { transform: translateX(0) !important; }
    .profile-trigger { display: none; }
    .sidebar-overlay { display: none !important; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.active { transform: translateX(0); }
    .main-wrapper { margin-left: 0; width: 100%; }
    .sidebar-overlay.active { display: block; }
    .navbar { padding: 1rem; }
    .navbar.scrolled { background: rgba(17, 17, 17, 0.95); }
    .filter-bar { padding: 0.8rem 1rem; top: 72px; gap: 0.8rem; }
    .filter-bar.scrolled { background: rgba(17, 17, 17, 0.95); }
    .filter-button { padding: 0.6rem 1rem; }
    .filter-button span { display: none; }
    .filter-name { display: none; }
    .search-wrapper { max-width: none; }
    .search-input { padding: 0.6rem 1rem 0.6rem 2.5rem; font-size: 0.85rem; }
    .container { padding: 1rem; }
    .addon-card { padding: 1rem; gap: 1rem; }
    .addon-logo { width: 70px; height: 70px; }
    .addon-title { font-size: 1.1rem; }
    .addon-desc { -webkit-line-clamp: 1; margin-bottom: 0.6rem; }
    .addon-meta { gap: 0.8rem; display: flex; flex-wrap: wrap; }
    .meta-item:nth-child(3) { display: none; }
    .filter-options-grid { grid-template-columns: 1fr; }
    .flame-icon { width: 22px; height: 22px; top: 8px; right: 8px; }
    .flame-tooltip { top: 35px; font-size: 0.75rem; padding: 6px 12px; }
    .author-row { gap: 3px; }
    .author-verified-icon { width: 13px; height: 13px; margin-left: 1px; }
    .hero-carousel { padding: 0.5rem 1rem; }
    .carousel-slide { aspect-ratio: 16 / 9; }
    .slide-icon { width: 55px; height: 55px; border-radius: 14px; }
    .slide-title { font-size: 1.1rem; }
    .slide-author { font-size: 0.75rem; }
    .slide-description { display: none; }
    .carousel-btn { width: 34px; height: 34px; }
    .carousel-btn svg { width: 18px; height: 18px; }
    .slide-info { padding: 1.25rem; gap: 1rem; }
    .carousel-dots { bottom: 15px; right: 20px; gap: 6px; }
    .dot { width: 7px; height: 7px; }
    .dot.active { width: 20px; }
}
