/* ========================================
   WALLET & UNLOCK GATE STYLES
   PuBear Gaming - Phantom Wallet Integration
   ======================================== */

/* ========================================
   UNLOCK GATE CARD
   ======================================== */

.unlock-gate-card {
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.95), rgba(20, 20, 35, 0.98));
    border: 1px solid rgba(153, 69, 255, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 420px;
    margin: 0 auto;
    box-shadow: 
        0 0 40px rgba(153, 69, 255, 0.15),
        0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.unlock-gate-header {
    margin-bottom: var(--space-xl);
}

.unlock-gate-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-md);
    background: linear-gradient(145deg, rgba(153, 69, 255, 0.2), rgba(20, 241, 149, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.unlock-gate-header h3 {
    font-size: var(--font-2xl);
    margin-bottom: var(--space-xs);
    background: linear-gradient(90deg, #9945FF, #14F195);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.unlock-gate-header p {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
}

/* ========================================
   STATUS INDICATOR
   ======================================== */

.unlock-gate-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #6b7280;
    animation: pulse 2s infinite;
}

.status-text {
    font-size: var(--font-sm);
    font-weight: 500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ========================================
   WALLET SECTION
   ======================================== */

.unlock-gate-wallet {
    margin-bottom: var(--space-lg);
}

.btn-connect-wallet {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-md);
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #9945FF, #7B3FE4);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

.btn-connect-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(153, 69, 255, 0.4);
}

.btn-connect-wallet:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ========================================
   WALLET INFO
   ======================================== */

.unlock-gate-info {
    background: rgba(153, 69, 255, 0.1);
    border: 1px solid rgba(153, 69, 255, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.wallet-address {
    font-family: monospace;
    font-size: var(--font-sm);
    color: var(--color-primary);
    background: rgba(0, 0, 0, 0.3);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.wallet-balance {
    font-size: var(--font-md);
    font-weight: 600;
    color: #14F195;
}

.btn-disconnect {
    font-size: var(--font-xs);
    color: var(--color-text-muted);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    padding: var(--space-xs) var(--space-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-disconnect:hover {
    border-color: #ef4444;
    color: #ef4444;
}

/* ========================================
   PAYMENT SECTION
   ======================================== */

.unlock-gate-payment {
    margin-bottom: var(--space-lg);
}

.entry-fee {
    background: rgba(20, 241, 149, 0.1);
    border: 1px solid rgba(20, 241, 149, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fee-label {
    color: var(--color-text-muted);
    font-size: var(--font-sm);
}

.fee-amount {
    font-size: var(--font-lg);
    font-weight: 700;
    color: #14F195;
}

.btn-pay {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-md);
    font-weight: 600;
    color: #0a0a18;
    background: linear-gradient(135deg, #14F195, #00D9C0);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(20, 241, 149, 0.4);
}

.btn-pay:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    background: #6b7280;
    color: white;
}

/* ========================================
   VERIFIED SECTION
   ======================================== */

.unlock-gate-verified {
    padding: var(--space-lg);
    background: rgba(20, 241, 149, 0.1);
    border: 1px solid rgba(20, 241, 149, 0.3);
    border-radius: var(--radius-lg);
}

.verified-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    background: rgba(20, 241, 149, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-text {
    font-size: var(--font-lg);
    font-weight: 600;
    color: #14F195;
    margin-bottom: var(--space-xs);
}

.verified-time {
    font-size: var(--font-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.explorer-link {
    display: inline-block;
    font-size: var(--font-xs);
    color: var(--color-primary);
    text-decoration: underline;
    margin-bottom: var(--space-md);
}

.explorer-link:hover {
    color: #14F195;
}

.btn-play {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-lg);
    font-weight: 700;
    color: white;
    background: linear-gradient(135deg, #9945FF, #14F195);
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: glow 2s ease-in-out infinite alternate;
}

.btn-play:hover {
    transform: translateY(-2px) scale(1.02);
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(153, 69, 255, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(20, 241, 149, 0.5);
    }
}

/* ========================================
   PHANTOM INSTALL
   ======================================== */

.unlock-gate-install {
    padding: var(--space-lg);
    background: rgba(255, 180, 0, 0.1);
    border: 1px solid rgba(255, 180, 0, 0.3);
    border-radius: var(--radius-md);
}

.unlock-gate-install p {
    color: #FFB800;
    margin-bottom: var(--space-md);
    font-size: var(--font-sm);
}

.btn-phantom-install {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-phantom-install:hover {
    background: rgba(153, 69, 255, 0.2);
    border-color: var(--color-primary);
}

.btn-phantom-install img {
    border-radius: 4px;
}

/* ========================================
   ERROR MESSAGE
   ======================================== */

.unlock-gate-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    color: #ef4444;
    font-size: var(--font-sm);
}

/* ========================================
   NETWORK BADGE
   ======================================== */

.unlock-gate-network {
    margin-top: var(--space-lg);
}

.network-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-pill);
    letter-spacing: 0.5px;
}

.network-badge.devnet {
    background: rgba(255, 180, 0, 0.2);
    color: #FFB800;
    border: 1px solid rgba(255, 180, 0, 0.4);
}

.network-badge.mainnet-beta {
    background: rgba(20, 241, 149, 0.2);
    color: #14F195;
    border: 1px solid rgba(20, 241, 149, 0.4);
}

/* ========================================
   GAME CONTAINER WRAPPER
   ======================================== */

#game-unlock-gate {
    padding: var(--space-2xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#game-content {
    display: none;
}

#game-content.unlocked {
    display: block;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 480px) {
    .unlock-gate-card {
        padding: var(--space-lg);
        margin: 0 var(--space-sm);
    }

    .unlock-gate-icon {
        width: 64px;
        height: 64px;
    }

    .unlock-gate-icon svg {
        width: 32px;
        height: 32px;
    }

    .unlock-gate-info {
        flex-direction: column;
        text-align: center;
    }

    .btn-connect-wallet,
    .btn-pay,
    .btn-play {
        padding: var(--space-lg);
        font-size: var(--font-lg);
        min-height: 56px;
    }
}

/* ========================================
   NAV WALLET CONNECT BUTTON
   Phase 1: Connect Only
   ======================================== */

.btn-wallet {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-sm);
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.2), rgba(153, 69, 255, 0.1));
    border: 1px solid rgba(153, 69, 255, 0.4);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 36px;
    white-space: nowrap;
}

.btn-wallet:hover {
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.3), rgba(153, 69, 255, 0.2));
    border-color: rgba(153, 69, 255, 0.6);
    box-shadow: 0 0 15px rgba(153, 69, 255, 0.3);
    transform: translateY(-1px);
}

.btn-wallet .wallet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
}

.btn-wallet .wallet-text {
    font-family: 'Syne', sans-serif;
}

.btn-wallet .wallet-status-dot {
    display: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6b7280;
}

/* Connected State */
.btn-wallet.connected {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.15), rgba(20, 241, 149, 0.08));
    border-color: rgba(20, 241, 149, 0.5);
}

.btn-wallet.connected:hover {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.25), rgba(20, 241, 149, 0.15));
    border-color: rgba(20, 241, 149, 0.7);
    box-shadow: 0 0 15px rgba(20, 241, 149, 0.3);
}

.btn-wallet.connected .wallet-icon {
    color: var(--color-secondary);
}

.btn-wallet.connected .wallet-text {
    font-family: monospace;
    font-size: var(--font-xs);
    letter-spacing: 0.5px;
}

.btn-wallet.connected .wallet-status-dot {
    display: block;
    background: var(--color-secondary);
    animation: pulse 2s infinite;
}

/* Mobile Wallet Button */
.btn-wallet-mobile {
    width: 100%;
    justify-content: center;
    padding: var(--space-md);
    margin-top: var(--space-md);
    font-size: var(--font-md);
    min-height: 48px;
}

/* ========================================
   TOKEN MODE NOTICE (Play Area)
   ======================================== */

.token-mode-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-xl);
    background: linear-gradient(135deg, rgba(255, 180, 0, 0.08), rgba(255, 180, 0, 0.04));
    border: 1px solid rgba(255, 180, 0, 0.25);
    border-radius: var(--radius-lg);
}

.token-mode-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.token-mode-lock {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFB800;
}

.token-mode-label {
    font-size: var(--font-sm);
    font-weight: 600;
    color: var(--color-text-muted);
}

.token-mode-status {
    font-size: var(--font-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    background: rgba(255, 180, 0, 0.2);
    color: #FFB800;
    border-radius: var(--radius-sm);
}

.token-mode-hint {
    font-size: var(--font-xs);
    color: var(--color-text-dim);
    text-align: center;
}

/* Token Mode Notice - Wallet Connected State */
.token-mode-notice.wallet-connected {
    background: linear-gradient(135deg, rgba(20, 241, 149, 0.08), rgba(20, 241, 149, 0.04));
    border-color: rgba(20, 241, 149, 0.25);
}

.token-mode-notice.wallet-connected .token-mode-lock {
    color: var(--color-secondary);
}

.token-mode-notice.wallet-connected .token-mode-status {
    background: rgba(20, 241, 149, 0.2);
    color: var(--color-secondary);
}

.token-mode-notice.wallet-connected .token-mode-hint {
    color: var(--color-text-muted);
}

/* ========================================
   WALLET MODALS
   ======================================== */

.wallet-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.wallet-modal.active {
    opacity: 1;
    visibility: visible;
}

.wallet-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

.wallet-modal-content {
    position: relative;
    max-width: 400px;
    width: calc(100% - var(--space-xl) * 2);
    padding: var(--space-2xl);
    background: linear-gradient(145deg, rgba(30, 30, 50, 0.98), rgba(20, 20, 35, 0.99));
    border: 1px solid rgba(153, 69, 255, 0.3);
    border-radius: var(--radius-xl);
    box-shadow:
        0 0 40px rgba(153, 69, 255, 0.2),
        0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.wallet-modal.active .wallet-modal-content {
    transform: scale(1) translateY(0);
}

.wallet-modal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    background: linear-gradient(145deg, rgba(20, 241, 149, 0.2), rgba(20, 241, 149, 0.1));
    border-radius: 50%;
    color: var(--color-secondary);
}

.wallet-modal-icon-warning {
    background: linear-gradient(145deg, rgba(255, 180, 0, 0.2), rgba(255, 180, 0, 0.1));
    color: #FFB800;
}

.wallet-modal-title {
    font-size: var(--font-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    background: linear-gradient(90deg, #9945FF, #14F195);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wallet-modal-text {
    font-size: var(--font-md);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.wallet-modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.wallet-modal-actions .btn {
    width: 100%;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.wallet-toast-container {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    pointer-events: none;
}

.wallet-toast {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    background: rgba(30, 30, 50, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.wallet-toast.visible {
    opacity: 1;
    transform: translateX(0);
}

.wallet-toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-toast-message {
    font-size: var(--font-sm);
    font-weight: 500;
    color: var(--color-text);
}

/* Toast Types */
.wallet-toast-success {
    border-color: rgba(20, 241, 149, 0.4);
}

.wallet-toast-success .wallet-toast-icon {
    color: var(--color-secondary);
}

.wallet-toast-warning {
    border-color: rgba(255, 180, 0, 0.4);
}

.wallet-toast-warning .wallet-toast-icon {
    color: #FFB800;
}

.wallet-toast-error {
    border-color: rgba(239, 68, 68, 0.4);
}

.wallet-toast-error .wallet-toast-icon {
    color: #ef4444;
}

.wallet-toast-info {
    border-color: rgba(153, 69, 255, 0.4);
}

.wallet-toast-info .wallet-toast-icon {
    color: var(--color-primary);
}

/* ========================================
   RESPONSIVE - WALLET CONNECT
   ======================================== */

@media (max-width: 768px) {
    .btn-wallet {
        padding: var(--space-xs) var(--space-sm);
    }

    .btn-wallet .wallet-text {
        display: none;
    }

    .btn-wallet.connected .wallet-text {
        display: inline;
    }

    .wallet-toast-container {
        bottom: var(--space-lg);
        right: var(--space-md);
        left: var(--space-md);
    }

    .wallet-toast {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .wallet-modal-content {
        padding: var(--space-xl);
        width: calc(100% - var(--space-lg) * 2);
    }

    .wallet-modal-icon {
        width: 64px;
        height: 64px;
    }

    .wallet-modal-icon svg {
        width: 36px;
        height: 36px;
    }

    .token-mode-notice {
        padding: var(--space-sm) var(--space-md);
    }

    .token-mode-badge {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   SITE LOCK SYSTEM
   ======================================== */

/* Lock Overlay - Covers content sections */
.site-lock-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Hide overlay when unlocked (check both html and body) */
.site-unlocked .site-lock-overlay,
html.site-unlocked .site-lock-overlay {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.site-lock-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Lock state - blur and disable non-hero content */
.site-locked #page-home .hero ~ *,
.site-locked #page-about,
.site-locked #page-play,
.site-locked #page-rewards,
.site-locked #page-community,
.site-locked .page:not(#page-home),
.site-locked .footer,
html.site-locked #page-home .hero ~ *,
html.site-locked #page-about,
html.site-locked #page-play,
html.site-locked #page-rewards,
html.site-locked #page-community,
html.site-locked .page:not(#page-home),
html.site-locked .footer {
    filter: blur(8px) grayscale(0.3);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

/* Blur stats and community CTA inside hero when locked */
.site-locked .hero-stats,
.site-locked .vault-cta,
.site-locked .badge-demo,
html.site-locked .hero-stats,
html.site-locked .vault-cta,
html.site-locked .badge-demo {
    filter: blur(8px) grayscale(0.3);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

/* Keep core hero elements visible */
.site-locked #page-home .hero,
html.site-locked #page-home .hero {
    filter: none;
    opacity: 1;
    pointer-events: auto;
}

/* Ensure core hero children stay visible */
.site-locked .hero-title,
.site-locked .hero-mascot,
.site-locked .hero-buttons,
html.site-locked .hero-title,
html.site-locked .hero-mascot,
html.site-locked .hero-buttons {
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Keep contract address interactive */
.site-locked .contract-address-content,
html.site-locked .contract-address-content {
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Reset all sections when unlocked */
.site-unlocked #page-home .hero ~ *,
.site-unlocked #page-about,
.site-unlocked #page-play,
.site-unlocked #page-rewards,
.site-unlocked #page-community,
.site-unlocked .page,
.site-unlocked .footer,
.site-unlocked .hero-stats,
.site-unlocked .vault-cta,
.site-unlocked .badge-demo,
html.site-unlocked #page-home .hero ~ *,
html.site-unlocked #page-about,
html.site-unlocked #page-play,
html.site-unlocked #page-rewards,
html.site-unlocked #page-community,
html.site-unlocked .page,
html.site-unlocked .footer,
html.site-unlocked .hero-stats,
html.site-unlocked .vault-cta,
html.site-unlocked .badge-demo {
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    user-select: auto !important;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

/* Lock Icons in Navigation */
.lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    color: #FFB800;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.lock-icon.fade-out {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
}

/* Nav link lock styling */
.site-locked .nav-link,
.site-locked .btn-primary,
.site-locked .btn-wallet,
html.site-locked .nav-link,
html.site-locked .btn-primary,
html.site-locked .btn-wallet {
    cursor: not-allowed !important;
}

/* Reset cursor when unlocked */
.site-unlocked .nav-link,
.site-unlocked .btn-primary,
.site-unlocked .btn-wallet,
html.site-unlocked .nav-link,
html.site-unlocked .btn-primary,
html.site-unlocked .btn-wallet {
    cursor: pointer !important;
}

.site-locked .nav-link:hover .lock-icon,
.site-locked .btn-primary:hover .lock-icon,
.site-locked .btn-wallet:hover .lock-icon,
html.site-locked .nav-link:hover .lock-icon,
html.site-locked .btn-primary:hover .lock-icon,
html.site-locked .btn-wallet:hover .lock-icon {
    opacity: 1;
    animation: shake-lock 0.3s ease;
}

@keyframes shake-lock {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* Hide Play button when locked, show Unlock button */
.site-locked #hero-play-btn,
html.site-locked #hero-play-btn {
    display: none !important;
}

.site-locked #hero-unlock-btn,
html.site-locked #hero-unlock-btn {
    display: inline-flex !important;
}

/* Hide Unlock button when unlocked, show Play button */
.site-unlocked #hero-unlock-btn,
html.site-unlocked #hero-unlock-btn {
    display: none !important;
}

.site-unlocked #hero-play-btn,
html.site-unlocked #hero-play-btn {
    display: inline-flex !important;
}

/* Unlock Button Styling */
.btn-unlock {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.btn-unlock svg {
    flex-shrink: 0;
}

/* ========================================
   UNLOCK MODAL CONTENT
   ======================================== */

.unlock-modal-content {
    max-width: 440px;
}

.unlock-modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.unlock-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.unlock-modal-icon {
    background: linear-gradient(145deg, rgba(255, 180, 0, 0.2), rgba(255, 180, 0, 0.1));
    color: #FFB800;
}

/* Steps Container */
.unlock-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin: var(--space-xl) 0 var(--space-md);
    text-align: left;
}

.unlock-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.unlock-step.completed {
    border-color: rgba(20, 241, 149, 0.4);
    background: rgba(20, 241, 149, 0.05);
}

/* Step Check Circle */
.unlock-step-check {
    flex-shrink: 0;
    position: relative;
    width: 24px;
    height: 24px;
}

.unlock-step-check .check-empty,
.unlock-step-check .check-filled {
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
}

.unlock-step-check .check-empty {
    color: var(--color-text-dim);
    opacity: 1;
}

.unlock-step-check .check-filled {
    color: var(--color-secondary);
    opacity: 0;
    transform: scale(0.5);
}

.unlock-step.completed .check-empty {
    opacity: 0;
    transform: scale(0.5);
}

.unlock-step.completed .check-filled {
    opacity: 1;
    transform: scale(1);
    animation: check-pop 0.3s ease;
}

@keyframes check-pop {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Step Content */
.unlock-step-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.unlock-step-label {
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-text-dim);
}

.unlock-step-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--font-md);
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.unlock-step-link:hover {
    color: var(--color-primary-light);
}

.unlock-step.completed .unlock-step-link {
    color: var(--color-secondary);
}

.unlock-step-done {
    font-size: var(--font-xs);
    color: var(--color-secondary);
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}

.unlock-step.completed .unlock-step-done {
    opacity: 1;
    transform: translateY(0);
}

/* Progress Text */
.unlock-progress {
    font-size: var(--font-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
}

/* Instructions */
.unlock-instructions {
    font-size: var(--font-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-lg);
    text-align: center;
}

.unlock-instructions code {
    background: rgba(153, 69, 255, 0.2);
    color: var(--color-primary);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}

/* Password Input Group */
.unlock-password-group {
    margin-bottom: var(--space-lg);
}

.unlock-password-input {
    width: 100%;
    padding: var(--space-md);
    font-size: var(--font-md);
    font-family: inherit;
    color: white;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    outline: none;
    transition: all 0.3s ease;
}

.unlock-password-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.2);
}

.unlock-password-input::placeholder {
    color: var(--color-text-dim);
}

/* Style browser's password reveal button (Chrome/Edge) */
.unlock-password-input::-ms-reveal,
.unlock-password-input::-ms-clear {
    filter: invert(1);
}

.unlock-password-input::-webkit-credentials-auto-fill-button,
.unlock-password-input::-webkit-contacts-auto-fill-button {
    filter: invert(1);
}

/* Chrome password reveal eye icon */
input[type="password"]::-webkit-reveal {
    filter: invert(1);
}

/* Make the reveal button area white */
.unlock-password-input {
    color-scheme: dark;
}

.unlock-password-input.shake {
    animation: input-shake 0.5s ease;
}

@keyframes input-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Error Message */
.unlock-error {
    font-size: var(--font-sm);
    color: #ef4444;
    margin-top: var(--space-sm);
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.unlock-error.visible {
    opacity: 1;
}

/* Unlock Submit Button */
.btn-unlock-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-size: var(--font-md);
    font-weight: 600;
}

/* ========================================
   RESPONSIVE - SITE LOCK
   ======================================== */

@media (max-width: 480px) {
    .unlock-modal-content {
        padding: var(--space-lg);
    }

    .unlock-step {
        padding: var(--space-sm);
    }

    .unlock-step-link {
        font-size: var(--font-sm);
    }
}
