/* Modern Reset & Base Styles */
:root {
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-glow: rgba(139, 92, 246, 0.5);

    --bg-dark: #0f0f10;
    --bg-card: #18181b;
    --bg-input: #27272a;

    --text-main: #f4f4f5;
    --text-muted: #a1a1aa;
    --border: #3f3f46;

    --danger: #ef4444;
    --success: #22c55e;

    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-8 {
    gap: 2rem;
}

.col {
    flex-direction: column;
}

.grid {
    display: grid;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.w-full {
    width: 100%;
}

/* Buttons & Inputs */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.95);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 0 15px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 0 25px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(139, 92, 246, 0.05);
}

.btn-danger {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.btn-danger:hover {
    background-color: var(--danger);
    color: white;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input,
.textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: white;
    outline: none;
    transition: all 0.3s;
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Components */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}

.card:hover {
    border-color: rgba(139, 92, 246, 0.3);
}

.navbar {
    background: rgba(15, 15, 16, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 0.75rem 0;
}

.nav-logo img {
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.3));
}

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: white;
}

/* Hero Updated */
/* Hero Updated - Nuclear Option */
.hero {
    position: relative;
    width: 100%;
    min-height: auto;
    height: auto;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.hero-bg {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-image: url('../images/background.jpg');
    background-size: cover;
    background-position: top center;
    filter: blur(4px) brightness(0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    text-align: center !important;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(135deg, #fff, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 1000px;
    width: 100%;
}

.hero p {
    text-align: center !important;
    margin: 0 auto 1.5rem auto;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 800px;
}

/* Discord Button Specifics */
.btn-discord {
    border: 1px solid #5865F2;
    color: #5865F2;
    background: transparent;
    transition: all 0.3s;
}

.btn-discord:hover {
    background: #5865F2;
    color: white;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

/* IP Widget */
.ip-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    cursor: pointer;
}

/* Market */
.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.market-card {
    background: linear-gradient(145deg, #1e1e24, #18181b);
    border-radius: 16px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.market-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.market-image-wrapper {
    width: 100%;
    padding-top: 100%;
    /* Square */
    position: relative;
    border-bottom: 1px solid var(--border);
}

.market-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.market-card:hover .market-image {
    transform: scale(1.1);
}

.market-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.market-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.market-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.market-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-top: auto;
    margin-bottom: 1rem;
}

/* Category Sidebar */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cat-btn {
    text-align: left;
    padding: 1rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.cat-btn.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1), transparent);
    border-left: 3px solid var(--primary);
    color: white;
    /* was var(--primary), white looks better on dark */
    font-weight: 600;
}

/* Staff Widget */
.staff-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.staff-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s;
}

.staff-item:hover {
    background: rgba(139, 92, 246, 0.05);
    border-color: var(--primary);
    transform: translateX(5px);
}

.staff-role-badge {
    margin-left: auto;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Cart Modal */
#cart-modal {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #18181b;
}

/* Utils */
.slide-in-bottom {
    animation: slideInBottom 0.5s;
}

@keyframes slideInBottom {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Table */
.table th {
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    color: var(--primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    text-align: left;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}