:root {
    --bg-color: #050505;
    --text-primary: #e0e0e0;
    --text-muted: #888888;
    --accent-gold: #c5a059;
    --accent-glow: rgba(197, 160, 89, 0.4);
    --border-dark: #222222;
    --card-bg: #0a0a0a;
    
    --font-heading: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hidden {
    display: none !important;
}

/* Inputs & Buttons */
.dob-input {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 15px 20px;
    font-family: var(--font-body);
    font-size: 1.1rem;
    outline: none;
    text-align: center;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
    text-transform: uppercase;
    color-scheme: dark;
}

.dob-input:focus {
    box-shadow: 0 0 15px var(--accent-glow);
}

.dob-small {
    padding: 10px 15px;
    font-size: 0.9rem;
}

.btn-luxury {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 15px 40px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.4s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.btn-luxury:hover {
    background: var(--accent-gold);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-luxury:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* ENTRY GATE */
.gate-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-color);
    z-index: 1000;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
}

.gate-container.fade-out {
    opacity: 0;
    visibility: hidden;
}

.gate-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    animation: pulseGlow 4s infinite alternate;
}

.gate-title {
    font-size: 3rem;
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-glow);
}

.gate-subtitle {
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* HEADER NAV */
.top-nav {
    display: flex;
    justify-content: flex-end;
    padding: 30px 50px;
    gap: 20px;
}

.icon-link {
    width: 30px;
    height: 30px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.3s ease;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-link:hover {
    color: var(--accent-gold);
}

/* HERO SECTION */
.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 2s ease forwards;
}

.main-title {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 20px var(--accent-glow);
    font-weight: 600;
    animation: titleGlow 3s infinite alternate ease-in-out;
}

.numerology-result {
    margin: 30px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.num-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

.num-value {
    font-size: 5rem;
    font-family: var(--font-heading);
    color: var(--accent-gold);
    text-shadow: 0 0 30px var(--accent-glow);
    line-height: 1;
}

.explanation-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.edit-dob-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
}

/* CONTROLS & CATEGORIES */
.controls {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
}

.filter-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s;
    letter-spacing: 0.1em;
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s;
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    color: var(--accent-gold);
}

.filter-btn.active::after {
    width: 100%;
}

/* NFT GRID */
.gallery {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.nft-card {
    background: var(--card-bg);
    border: 1px solid var(--border-dark);
    padding: 15px;
    border-radius: 4px;
    transition: transform 0.4s, box-shadow 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nft-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15);
    border-color: rgba(197, 160, 89, 0.3);
}

.nft-image-wrapper {
    width: 100%;
    aspect-ratio: 1/1;
    background: #000;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.nft-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nft-card:hover .nft-image {
    opacity: 1;
}

.nft-info {
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}

.nft-id {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.nft-sphere {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-opensea {
    width: 100%;
    text-align: center;
    padding: 10px 0;
    border: 1px solid var(--border-dark);
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-opensea:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* PAGINATION */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.page-info {
    font-family: var(--font-heading);
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border-dark);
    padding: 40px 20px;
    text-align: center;
}

.legal-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: #555;
}

.legal-text p {
    margin-bottom: 10px;
}

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    from { text-shadow: 0 0 10px var(--accent-glow); }
    to { text-shadow: 0 0 25px var(--accent-gold); }
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px rgba(197, 160, 89, 0.2);
        letter-spacing: 0.1em;
    }
    to {
        text-shadow: 0 0 30px rgba(197, 160, 89, 0.6);
        letter-spacing: 0.15em;
    }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .nft-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .main-title { font-size: 2.5rem; }
    .nft-grid { grid-template-columns: 1fr; }
    .top-nav { padding: 20px; }
    .gate-title { font-size: 2rem; }
}

body.loading {
    overflow: hidden;
}