/* --- Global & Theme --- */
:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-primary: #00f0ff;
    --accent-hover: #00d4ff;
    --accent-glow: rgba(0, 240, 255, 0.3);
    --border-color: #2a2a2a;
    --greyed-out: #4a4a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #1a1a2e 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.5px;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(21, 21, 21, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

nav .logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #00a8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

nav > div {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent-primary);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* --- Forms & Buttons --- */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #00a8ff 100%);
    color: var(--bg-primary);
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.4);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.form-group input[type="file"] {
    padding: 0.5rem;
}

/* --- Homepage: Product Gallery --- */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-primary) 0%, #00a8ff 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.2);
    border-color: var(--accent-primary);
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-card > a {
    display: block;
    color: inherit;
}

.product-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-card h3 {
    font-size: 1.4rem;
    color: var(--text-primary);
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    margin: 0;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

.product-card:hover h3 {
    color: var(--accent-primary);
}

.product-card a {
    display: block;
    padding: 0.5rem 1.5rem 1.5rem 1.5rem;
    color: var(--text-primary);
    position: relative;
    z-index: 2;
}

/* --- Product Details Page --- */
.product-details {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    margin-top: 2rem;
}

.product-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
}

.product-image img {
    width: 100%;
    height: auto;
}

.product-info h1 {
    color: var(--text-primary);
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.product-info h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.product-info p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.eboy-id {
    font-family: 'Courier New', Courier, monospace;
    color: var(--accent-primary);
    background-color: var(--bg-card);
    padding: 0.75rem 1rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.module {
    background: var(--bg-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.module h3 {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    margin-top: 0;
    font-size: 1.2rem;
}

.icon-row {
    display: flex;
    gap: 1.5rem;
    font-size: 2.2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.icon-row i {
    color: var(--accent-primary);
    opacity: 1;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-row i:hover {
    transform: scale(1.2);
    color: var(--accent-hover);
}

.icon-row i.greyed-out {
    color: var(--greyed-out);
    opacity: 0.3;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.game-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.game-tag:hover {
    background: var(--bg-primary);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.pricing-tiers {
    list-style: none;
    padding: 0;
}

.pricing-tiers li {
    background: var(--bg-secondary);
    padding: 1.25rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3px solid var(--accent-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    gap: 1rem;
}

.pricing-tiers li:hover {
    background: var(--bg-card);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
}

.pricing-tiers .tier-duration {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
    flex: 1;
}

.pricing-tiers .tier-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-right: 1rem;
}

.pricing-tiers .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.85rem;
}

/* --- Checkout & Thank You Page --- */
.checkout-box, .thank-you-box, .code-check-box {
    background: var(--bg-card);
    padding: 2.5rem;
    max-width: 700px;
    margin: 2rem auto;
    border-top: 3px solid var(--accent-primary);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.checkout-box h1,
.thank-you-box h1,
.code-check-box h1 {
    margin-bottom: 1.5rem;
}

.checkout-box p,
.thank-you-box p,
.code-check-box p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.checkout-box hr,
.thank-you-box hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

.code-display {
    font-family: 'Courier New', Courier, monospace;
    background: var(--bg-primary);
    color: var(--accent-primary);
    padding: 1.25rem;
    border: 2px dashed var(--accent-primary);
    border-radius: 8px;
    font-size: 1.15rem;
    word-wrap: break-word;
    margin-top: 1rem;
    box-shadow: 0 0 20px var(--accent-glow);
    text-align: center;
}

.code-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--accent-primary);
}

.code-result h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.code-result span {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.code-result span strong {
    color: var(--text-primary);
}

/* --- Social Links & Info Lists --- */
.socials-list,
.public-info-list {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    border: 1px solid var(--border-color);
}

.socials-list h3,
.public-info-list h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--accent-primary);
}

.socials-list ul,
.public-info-list ul {
    list-style: none;
    padding: 0;
}

.socials-list li,
.public-info-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.socials-list li:last-child,
.public-info-list li:last-child {
    border-bottom: none;
}

.socials-list strong,
.public-info-list strong {
    color: var(--text-primary);
    margin-right: 0.5rem;
}

/* --- Admin Panel Styles --- */
.checkout-box input[type="checkbox"] {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

.checkout-box h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 5%;
    }

    nav > div {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .product-gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .product-details {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-info h1 {
        font-size: 2rem;
    }

    .checkout-box, .thank-you-box, .code-check-box {
        padding: 1.5rem;
        margin: 1rem;
    }

    .pricing-tiers li {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .pricing-tiers .tier-price {
        margin-right: 0;
    }
}