* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0f0f0f;
    --bg-darker: #0a0a0a;
    --bg-card: #1a1a1a;
    --accent-purple: #8b5cf6;
    --accent-rose: #ec4899;
    --text-light: #f3f4f6;
    --text-muted: #9ca3af;
    --border-dark: #2d2d2d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a0a1f 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-brand {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.navbar-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.nav-link:hover {
    border-color: var(--accent-purple);
    color: var(--text-light);
}

.nav-link.active {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: white;
}

/* MAIN LAYOUT */
main {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* HERO SECTION */
.hero-section {
    padding: 60px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.1), transparent);
}

.hero-subtitle {
    color: var(--accent-rose);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-title {
    font-family: "Montserrat", sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #f3f4f6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.hero-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* SHOP CARDS GRID */
.shop-section {
    padding: 40px 0;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.shop-card {
    display: block;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.shop-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(236, 72, 153, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.shop-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.shop-card:hover::before {
    opacity: 1;
}

.shop-card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.shop-card h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.shop-card p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.shop-cta {
    display: inline-block;
    color: var(--accent-purple);
    font-weight: 600;
    transition: transform 0.2s;
}

.shop-card:hover .shop-cta {
    transform: translateX(4px);
}

/* SHOP HEADER SECTION */
.shop-header-section {
    padding: 40px 0 30px;
    border-bottom: 1px solid var(--border-dark);
}

.shop-header-section h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.shop-header-section p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.currency-selector label {
    font-weight: 500;
}

.currency-selector select {
    padding: 8px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.currency-selector select:hover,
.currency-selector select:focus {
    border-color: var(--accent-purple);
    outline: none;
}

/* RANKS TABLE */
.ranks-table {
    margin: 30px 0;
}

.ranks-table-head {
    display: grid;
    grid-template-columns: 120px 200px 1fr 100px 80px;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    border-bottom: 2px solid var(--accent-purple);
}

.ranks-table-row {
    display: grid;
    grid-template-columns: 120px 200px 1fr 100px 80px;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-darker);
    border: 1px solid var(--border-dark);
    border-top: none;
    align-items: center;
    transition: all 0.2s;
}

.ranks-table-row:last-child {
    border-radius: 0 0 8px 8px;
}

.ranks-table-row:hover {
    background: var(--bg-card);
    border-color: var(--accent-purple);
}

.rank-col {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rank-col strong {
    color: var(--text-light);
}

/* KEYS GRID */
.keys-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.key-card {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.key-card:hover {
    border-color: var(--accent-rose);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(236, 72, 153, 0.2);
}

.key-card.popular {
    border-color: var(--accent-rose);
}

.popular-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-rose);
    color: white;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.key-name {
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.key-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
    line-height: 1.5;
}

.key-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-rose);
    margin-bottom: 12px;
}

/* BUTTONS */
.btn-buy-glow {
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-rose));
    border: none;
    color: white;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
    font-size: 0.95rem;
}

.btn-buy-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.6), 0 0 60px rgba(236, 72, 153, 0.4);
}

.btn-buy-glow:active {
    transform: scale(0.98);
}

/* LIVE ACTIVITY */
.live-activity {
    padding: 50px 0;
    border-top: 1px solid var(--border-dark);
}

.live-activity h2 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.live-feed {
    display: grid;
    gap: 12px;
}

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    transition: all 0.2s;
}

.feed-item:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.05);
}

.feed-item img {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    border: 1px solid var(--border-dark);
}

.feed-main {
    flex: 1;
}

.feed-main strong {
    display: block;
    color: var(--text-light);
    margin-bottom: 2px;
}

.feed-main span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.feed-time {
    color: var(--accent-purple);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* MODAL */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 30px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.close:hover {
    color: var(--text-light);
}

.modal-content h2 {
    font-family: "Montserrat", sans-serif;
    margin-bottom: 20px;
}

.item-details {
    background: var(--bg-darker);
    border: 1px solid var(--border-dark);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.item-details-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.item-details-price {
    font-size: 1.4rem;
    color: var(--accent-rose);
    font-weight: 700;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section:first-of-type {
    padding-top: 0;
}

.modal-section h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 12px;
    font-weight: 600;
}

.form-group {
    margin-bottom: 12px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    background: var(--bg-darker);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.payment-btn {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    background: var(--bg-darker);
    border: 1px solid var(--border-dark);
    color: var(--text-light);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.payment-btn:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .navbar-container {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .navbar-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .ranks-table-head,
    .ranks-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .keys-grid {
        grid-template-columns: 1fr;
    }

    .shop-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }
}
