/* Token Gate Styles */
#tokenGate {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    flex-direction: column;
}

.gate-container {
    max-width: 420px;
    width: 90%;
    text-align: center;
    padding: 2rem;
}

.gate-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--accent);
}

.gate-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.gate-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.gate-requirements {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.gate-requirements h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.gate-requirement {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.gate-requirement svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.gate-requirement span {
    flex: 1;
}

.gate-or {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0;
}

.gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gate-buttons .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.gate-buttons .btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.gate-buttons .btn-outline:hover {
    background: var(--bg-secondary);
    border-color: var(--accent);
}

.gate-status {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    min-height: 50px;
}

.gate-status.checking {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    animation: pulse 1.5s infinite;
}

.gate-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.gate-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.gate-status.denied {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    text-align: left;
}

.gate-denied {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.gate-denied-icon {
    font-weight: 700;
    color: #ef4444;
    font-size: 1rem;
}

.gate-denied p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.gate-denied strong {
    color: var(--accent);
}

.gate-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.gate-links .btn {
    flex: 1;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.gate-footer {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.gate-footer a {
    color: var(--accent);
    text-decoration: none;
}

.gate-footer a:hover {
    text-decoration: underline;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Hide app content when gated */
body.gated .nav,
body.gated #appContent {
    display: none !important;
}
