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

body {
    background-color: #0f172a;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    padding-bottom: 50px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* NAVBAR */
.nav {
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand i {
    color: #8b5cf6;
}

.nav-links a {
    margin: 0 15px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: white;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* GRID SYSTEM (CRITICAL) */
.shop {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

/* PRODUCT CARD */
.product-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #8b5cf6;
}

.badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 2;
}

.product-img {
    height: 200px;
    width: 100%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
}

.category-tag {
    color: #a78bfa;
    font-weight: bold;
    text-transform: uppercase;
}

.stock-status {
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.in-stock {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.out-of-stock {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

h3 {
    font-size: 18px;
    color: white;
    margin-bottom: 10px;
}

p {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.price {
    font-size: 20px;
    font-weight: 800;
    color: white;
}

.btn-buy {
    background: white;
    color: black;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    transition: 0.2s;
}

.btn-buy:hover {
    background: #e2e8f0;
}

/* Login Elements */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

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

.nav .btn-login {
    background: #5865F2;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
}

/* Background Orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: -100px;
    right: -100px;
    animation: floatOrb 15s ease-in-out infinite;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #3b82f6, transparent);
    bottom: -100px;
    left: -100px;
    animation: floatOrb 12s ease-in-out infinite reverse;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, #8b5cf6, #6366f1);
    color: white;
    text-align: center;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
}

.announcement-bar a {
    color: #fbbf24;
    text-decoration: underline;
    font-weight: 600;
}

/* Brand Icon */
.brand-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

/* Discord Button */
.discord-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #5865F2;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.discord-btn:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* User Details */
.user-details {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

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

.user-role {
    font-size: 11px;
    color: #94a3b8;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 80px 20px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa, #818cf8, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: #94a3b8;
    font-size: 16px;
    max-width: 500px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

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

/* Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    border-color: transparent;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.2s;
}

.feature:hover {
    background: rgba(30, 41, 59, 0.8);
    transform: translateY(-5px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a78bfa;
    font-size: 20px;
}

.feature-text h4 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.feature-text p {
    color: #64748b;
    font-size: 13px;
    margin: 0;
}

/* Footer */
.footer {
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 60px;
    padding: 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
}

.footer-logo i {
    color: #8b5cf6;
}

.footer-brand p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 18px;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: #5865F2;
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    text-align: center;
}

.footer-bottom p {
    color: #475569;
    font-size: 13px;
    margin: 0;
}