:root {
    --bg: #050505;
    --surface: #0d0d0d;
    --card: #111111;
    --purple: #7c3aed;
    --blue: #3b82f6;
    --text-white: #ffffff;
    --text-secondary: #9ca3af;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
    --font-inter: 'Inter', sans-serif;
    --font-space: 'Space Grotesk', sans-serif;
}

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

body {
    background-color: var(--bg);
    color: var(--text-white);
    font-family: var(--font-inter);
    line-height: 1.6;
}

/* Utils */
.text-gradient {
    background: linear-gradient(to right, var(--purple), var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-logo {
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-space);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo-text span {
    color: var(--purple);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-right: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    gap: 0.6rem;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: var(--purple);
    background: rgba(124, 58, 237, 0.05);
}

.search-box input {
    background: none;
    border: none;
    color: white;
    outline: none;
    font-size: 0.9rem;
    width: 140px;
}

.btn-discord {
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.btn-discord:hover {
    color: #5865F2;
    transform: scale(1.1);
}

.cart-wrapper {
    position: relative;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: all 0.2s;
}

.cart-wrapper:hover {
    color: var(--text-white);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--purple);
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 6px;
    font-weight: 700;
}

.nav-user {
    display: flex;
    align-items: center;
}

.btn-login {
    background: var(--purple);
    border: none;
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-login:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

.hero-content {
    max-width: 900px;
    z-index: 10;
}

.hero-title {
    font-family: var(--font-space);
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search-large {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hero-search-large i {
    margin-left: 1rem;
    color: var(--text-secondary);
}

.hero-search-large input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    padding: 1rem 0;
    font-size: 1.1rem;
    outline: none;
}

.btn-primary {
    background: var(--purple);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.pill {
    background: var(--glass);
    border: 1px solid var(--border);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.pill:hover {
    border-color: var(--purple);
    color: white;
    background: rgba(124, 58, 237, 0.1);
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.btn-primary-large {
    background: var(--purple);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.btn-secondary-large {
    background: var(--glass);
    border: 1px solid var(--border);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

/* Marketplace Section */
.marketplace {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-family: var(--font-space);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--purple);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(124, 58, 237, 0.1);
}

.card-image {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .card-image img {
    transform: scale(1.1);
}

.sale-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #ef4444;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 800;
}

.card-info {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.framework-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #fbbf24;
    font-size: 0.9rem;
}

.card-info h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-family: var(--font-space);
}

.developer {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.developer img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.developer span {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
}

.old-price {
    color: var(--text-secondary);
    text-decoration: line-through;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.btn-add {
    background: var(--glass);
    border: 1px solid var(--border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-add:hover {
    background: var(--purple);
    border-color: var(--purple);
}

/* Trust Stats */
.trust-stats {
    background: var(--surface);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat-number {
    font-family: var(--font-space);
    font-size: 3rem;
    color: var(--purple);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Footer */
.footer {
    padding: 100px 2rem 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin: 1.5rem 0;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    color: var(--text-secondary);
}

.social-links i {
    cursor: pointer;
    transition: color 0.3s;
}

.social-links i:hover {
    color: var(--purple);
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-family: var(--font-space);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 25px;
    height: 45px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--purple);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* Admin Actions */
.admin-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 50;
    display: flex;
    gap: 5px;
}

.btn-delete {
    background: #ef4444;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-delete:hover {
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loader-content {
    text-align: center;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(124, 58, 237, 0.1);
    border-top: 3px solid var(--purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: var(--surface);
    border-left: 1px solid var(--border);
    z-index: 2500;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
}

.cart-item-info h4 {
    font-family: var(--font-space);
    margin-bottom: 0.5rem;
}

.cart-footer {
    padding: 2rem;
    background: var(--card);
    border-top: 1px solid var(--border);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* Account Dropdown */
.account-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 240px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-top: 1rem;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-user:hover .account-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background: var(--glass);
    color: white;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.5rem 0;
}

/* Quick View Modal */
.qv-modal {
    max-width: 900px !important;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    padding: 3rem !important;
}

.qv-image {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
}

.qv-details h2 {
    font-family: var(--font-space);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Auth Redesign */
.auth-grid {
    display: grid;
    gap: 1rem;
}

.password-requirements {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 5px;
}

.requirement.met {
    color: #10b981;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 24px;
    width: 100%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.auth-tabs {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    padding-bottom: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
    position: relative;
}

.auth-tab.active {
    color: white;
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--purple);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    background: var(--card);
    border: 1px solid var(--border);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--purple);
}

.btn-auth {
    width: 100%;
    background: var(--purple);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1rem;
}

/* Sidebar Filters */
.sidebar-filters {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 24px;
    height: fit-content;
    position: sticky;
    top: 120px;
}

.filter-option input[type="checkbox"] {
    accent-color: var(--purple);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-option label {
    cursor: pointer;
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--purple);
    color: white;
    font-weight: 600;
    z-index: 3000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification.error {
    border-color: #ef4444;
}

/* Quick View Overlay */
.quick-view-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(124, 58, 237, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-image:hover .quick-view-overlay {
    opacity: 1;
}

/* Price Value Display */
#price-value {
    color: var(--purple);
    font-size: 1.1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--surface);
    border-radius: 10px;
    border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--purple);
}
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .search-box {
        display: none;
    }
    .trust-stats {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}