/* --- 1. GLOBAL LAYOUT & DEEP OBSIDIAN THEME --- */
body {
    background-color: #0C0D0C;
    color: #E0E3E0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.app-container {
    width: 360px;
    height: 640px;
    background: #0E100E;
    border: 1px solid #191C19;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
}

/* --- 2. TELEMETRY STATUS HEADER --- */
.telemetry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.token-badge {
    background: #141614;
    border: 1px solid #222622;
    padding: 6px 10px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 10px;
}

.token-badge .label { color: #666A66; margin-right: 4px; }
.token-badge .value { color: #4CAF50; font-weight: bold; }

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.pulse-dot.idle { background: #333733; }
.pulse-dot.active {
    background: #4CAF50;
    box-shadow: 0 0 8px #4CAF50;
    animation: pulse-glow 1.5s infinite;
}

.status-label {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #AFA;
}

/* --- 3. CENTRAL RESONANCE NODE --- */
.shield-workspace {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.shield-trigger-zone {
    position: relative;
    width: 200px;
    height: 200px;
    cursor: pointer;
}

.shield-svg { width: 100%; height: 100%; }
.ring { fill: none; stroke-width: 1.5; }
.outer-ring { stroke: #191C19; }
.pulse-ring { stroke: #222622; transform-origin: center; }

.shield-trigger-zone.active .pulse-ring {
    animation: radar-sweep 2s infinite linear;
    stroke: #4CAF50;
}

.core-node { fill: #141614; stroke: #222622; stroke-width: 1; transition: all 0.3s; }
.shield-trigger-zone.active .core-node { fill: #162417; stroke: #4CAF50; }

.shield-label-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.action-text { font-size: 11px; font-weight: 700; letter-spacing: 0.15em; color: #666A66; }
.shield-trigger-zone.active .action-text { color: #4CAF50; }
.frequency-display { font-size: 9px; font-family: monospace; color: #333733; margin-top: 4px; }
.shield-trigger-zone.active .frequency-display { color: #666A66; }

/* --- 4. CONTROL CONSOLE --- */
.control-console { display: flex; flex-direction: column; gap: 16px; }
.control-meta { display: flex; justify-content: space-between; font-size: 9px; font-weight: 700; color: #666A66; letter-spacing: 0.05em; }
.readout-value { font-family: monospace; color: #4CAF50; }

.telemetry-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 3px;
    background: #191C19;
    border-radius: 2px;
    outline: none;
}

.telemetry-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
}

.telemetry-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: none;
}

.layer-indicator { font-size: 8px; font-family: monospace; color: #222222; text-align: left; }

/* --- 5. ANIMATIONS --- */
@keyframes radar-sweep {
    0% { transform: scale(0.95); opacity: 1; stroke-width: 3; }
    100% { transform: scale(1.25); opacity: 0; stroke-width: 0.5; }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* --- 6. PAYWALL OVERLAY ARCHITECTURE --- */
.paywall-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(12, 13, 12, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    border-radius: 12px;
    transition: opacity 0.6s ease, visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

.paywall-overlay.unlocked { opacity: 0; visibility: hidden; pointer-events: none; }
.paywall-card { width: 85%; text-align: center; padding: 10px; }
.lock-icon { font-size: 32px; margin-bottom: 16px; }
.paywall-card h2 { font-size: 14px; font-weight: 700; letter-spacing: 0.15em; color: #E0E3E0; margin-bottom: 12px; }
.paywall-card p { font-size: 11px; line-height: 1.6; color: #666A66; margin-bottom: 32px; }

.paywall-btn { background: #4CAF50; color: #0C0D0C; border: none; border-radius: 6px; width: 100%; padding: 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; cursor: pointer; transition: all 0.2s ease; }
.stripe-badge { font-size: 9px; color: #333733; margin-top: 16px; }

/* --- 7. LIABILITY DISCLAIMER STYLING --- */
.disclaimer-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #0C0D0C;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
    border-radius: 12px;
    padding: 24px;
    box-sizing: border-box;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.disclaimer-card { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.warning-tag { font-size: 9px; font-weight: 700; color: #FFC107; letter-spacing: 0.1em; }
.disclaimer-card h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.15em; color: #E0E3E0; margin: 0; }
.disclaimer-text { font-size: 11px; line-height: 1.6; color: #666A66; background: #080908; border: 1px solid #141614; padding: 12px; border-radius: 6px; max-height: 140px; overflow-y: auto; }
.consent-checkbox-container { display: flex; align-items: flex-start; gap: 10px; font-size: 11px; line-height: 1.4; color: #AFA; cursor: pointer; margin: 8px 0; }
.disclaimer-btn { background: #222622; color: #666A66; border: 1px solid #2D332D; border-radius: 6px; padding: 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; cursor: not-allowed; transition: all 0.2s ease; }
.disclaimer-btn.ready { background: #4CAF50; color: #0C0D0C; border: none; cursor: pointer; }
.app-unlocked }
    padding-top: 50px; /* Adjust this value to get the perfect center-look */
    display: flex;
    flex-direction: column;
    align-items: center;
.disclaimer-overlay.accepted { 
    transform: translateY(-100%);
    pointer-events: none;
}