/* --- COLOR PALETTE ALIGNED WITH THE NFT --- */
:root {
    --bg-dark: #401e1e;       
    --card-bg: #2d1919;       
    --nft-blue: #6d84b4;      
    --nft-orange: #f2662c;    
    --nft-cream: #fff4e0;     
    --text-light: #ffffff;
    --text-muted: #bdafae;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background:
    radial-gradient(circle at top left, rgba(242,102,44,0.12), transparent 40%),
    radial-gradient(circle at bottom right, rgba(109,132,180,0.12), transparent 40%),
    linear-gradient(180deg, #2a1515 0%, #120707 100%);
    
    color: var(--text-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("gruff.png");
    opacity: 0.03;
    pointer-events: none;
}

/* --- HEADER --- */
header {
    padding: 20px 5%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo-container {
    max-width: 150px;
}

.header-logo {
    width: 100%;
    height: auto;
}

/* --- MAIN WRAPPER COMPONENT --- */
.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px; /* Accounts for absolute header */
    min-height: calc(100vh - 80px); /* Keeps content dynamically centered */
}

/* --- HERO SECTION --- */
.hero-section {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.hero-section.fade-out {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    margin: auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero-art {
    display: flex;
    justify-content: center;
}

.floating-nft {
    width: 100%;
    max-width: 380px;
    border-radius: 24px;
    border: 4px solid var(--nft-orange);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.hero-text .tagline {
    font-family: 'Syncopate', sans-serif;
    font-size: 0.85rem;
    color: var(--nft-blue);
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-family: 'Syncopate', sans-serif;
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--nft-cream);
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 35px;
}

.cta-reveal-btn {
    background-color: transparent;
    color: var(--nft-orange);
    border: 2px solid var(--nft-orange);
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.cta-reveal-btn:hover {
    background-color: var(--nft-orange);
    color: white;
    box-shadow: 0 0 20px rgba(242,102,44,0.4);
    transform: translateY(-2px);
}

/* --- APPLICATION CONTAINER (TRANSITION STATES) --- */
.container {
    max-width: 1100px;
    width: 100%;
    margin: auto;
    padding: 40px;
    display: none; /* Changed via JS on run */
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.container.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.info-sidebar h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.8rem;
    color: var(--nft-cream);
    margin-bottom: 20px;
}

.info-sidebar p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--nft-blue);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}
.back-btn:hover {
    color: var(--nft-cream);
}

/* --- APPLICATION CARD --- */
.wl-card {
    background-color: var(--card-bg);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 6px solid var(--nft-orange);
}

.wl-card h2 {
    font-size: 1.6rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--nft-cream);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 15px;
}

.step-container {
    margin-bottom: 30px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.step-number {
    background-color: var(--nft-orange);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.task-btn {
    width: 100%;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-light);
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.task-btn:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--nft-blue);
}

.task-btn.completed {
    background-color: rgba(40, 167, 69, 0.15);
    border-color: #28a745;
    color: #5ddc74;
    cursor: default;
}

/* Wallet Input Group */
.wallet-input-group {
    opacity: 0.25;
    pointer-events: none;
    transition: all 0.4s ease;
}

.wallet-input-group.active {
    opacity: 1;
    pointer-events: auto;
}

.wallet-input {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    border-radius: 14px;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    transition: border-color 0.2s ease;
}

.wallet-input:focus {
    border-color: var(--nft-orange);
}

.submit-btn {
    width: 100%;
    padding: 18px;
    background-color: var(--nft-orange);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 0px #b84314;
    transition: all 0.1s ease;
}

.submit-btn:active {
    transform: translateY(4px);
    box-shadow: none;
}

.submit-btn:disabled {
    background-color: #552715;
    color: var(--text-muted);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* --- FOOTER --- */
footer {
    background-color: #0b0404;
    padding: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.02);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-art {
        order: -1;
    }
    .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 20px;
    }
}

/* Styling for hidden input container groups */
.hidden-input-group {
    margin: 10px 0 15px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.submit-btn.style-verify {
    padding: 12px;
    font-size: 0.95rem;
    background-color: var(--nft-blue);
    box-shadow: 0 4px 0px #4b5e85;
}

/* Locked button presentation styles */
.task-btn.locked {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255,255,255,0.02);
}
.task-btn.locked:hover {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(255,255,255,0.02);
}

.hidden {
    display: none !important;
}

/* --- TOAST HUD NOTIFICATION BLOCKS --- */
.toast-hud {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--card-bg);
    color: var(--text-light);
    padding: 16px 28px;
    border-radius: 16px;
    border: 2px solid var(--nft-blue);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    gap: 14px;
    z-index: 9999;
    width: 90%;
    max-width: 450px;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.toast-hud.show {
    bottom: 40px;
    opacity: 1;
    pointer-events: auto;
}

.toast-hud-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.toast-hud-text {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}

/* Success State Override Modifiers */
.toast-hud.toast-success {
    border-color: #22c55e;
    background: linear-gradient(90deg, #2d1919 0%, #102417 100%);
}
.toast-hud.toast-success .toast-hud-icon {
    background-color: #22c55e;
    color: #ffffff;
}

/* Error State Override Modifiers */
.toast-hud.toast-error {
    border-color: #ff4444;
    background: linear-gradient(90deg, #2d1919 0%, #3a1414 100%);
}
.toast-hud.toast-error .toast-hud-icon {
    background-color: #ff4444;
    color: #ffffff;
}

/* Input lock styles when fields are disabled */
.wallet-input:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background-color: rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.03) !important;
}