/* Base Reset and Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Orbitron', 'Consolas', 'Monaco', 'Lucida Console', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    color: #00ff41;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    max-width: 100%;
}

/* iPhone/iPod Style Device Container */
.device-container {
    width: 100%;
    max-width: 600px;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a, #2a2a2a);
    border-radius: 20px;
    padding: 15px;
    margin: 0 auto;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        inset 2px 2px 6px rgba(80, 80, 80, 0.4),
        inset -2px -2px 6px rgba(0, 0, 0, 0.8),
        0 0 30px rgba(0, 255, 65, 0.1);
    border: 4px solid;
    border-color: #404040 #1a1a1a #1a1a1a #404040;
}

/* Device Header */
.device-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
    position: relative;
}

.device-title {
    font-family: 'Orbitron', 'Consolas', 'Monaco', 'Lucida Console', monospace;
    font-size: 1.8rem;
    font-weight: 900;
    color: #00ff41;
    letter-spacing: 8px;
    text-transform: none;
    margin: 0;
    text-shadow: 
        0 0 10px rgba(0, 255, 65, 0.3),
        0 0 20px rgba(0, 255, 65, 0.1);
}

.device-subtitle {
    font-size: 0.9rem;
    color: #888;
    margin-top: 5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.help-btn {
    position: absolute;
    right: 0;
    top: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 1px solid #00ff41;
    color: #00ff41;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-btn:hover {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
    transform: scale(1.1);
}

/* Main Screen Container */
.main-screen {
    background: 
        repeating-linear-gradient(
            45deg,
            transparent 0px,
            rgba(0, 255, 65, 0.02) 1px,
            transparent 2px,
            transparent 20px
        ),
        radial-gradient(ellipse at center, #001a00 0%, #000a00 50%, #000000 100%);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    position: relative;
    min-height: 280px;
    border: 3px solid;
    border-color: #0a0a0a #404040 #404040 #0a0a0a;
    box-shadow: 
        inset 0 0 25px rgba(0, 0, 0, 0.9),
        inset 2px 2px 4px rgba(0, 0, 0, 0.8),
        inset -2px -2px 4px rgba(64, 64, 64, 0.3),
        0 0 20px rgba(0, 255, 65, 0.15);
}

/* Spectrum Analyzer Canvas */
#spectrumAnalyzer {
    width: 100%;
    height: 240px;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            rgba(0, 255, 65, 0.05) 1px,
            transparent 2px,
            transparent 10px
        ),
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            rgba(0, 255, 65, 0.05) 1px,
            transparent 2px,
            transparent 10px
        ),
        radial-gradient(ellipse at center, #001100 0%, #000800 40%, #000000 100%);
    border-radius: 8px;
    position: relative;
    border: 4px solid;
    border-color: #1a1a1a #505050 #505050 #1a1a1a;
    box-shadow: 
        inset 0 0 30px rgba(0, 0, 0, 0.9),
        inset 2px 2px 4px rgba(0, 0, 0, 0.8),
        inset -2px -2px 4px rgba(80, 80, 80, 0.3),
        0 0 15px rgba(0, 255, 65, 0.1);
}



/* Frequency Labels */
.frequency-labels {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px 0;
    font-size: 0.8rem;
    color: #00ff41;
    opacity: 0.7;
}

/* Control Buttons */
.control-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.load-btn, .cloak-btn {
    pointer-events: auto !important;
    position: relative;
    z-index: 10;
}

/* Control buttons container */
.control-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    pointer-events: auto;
    position: relative;
    z-index: 50;
}

/* Base button styles */
.iphone-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a, #2a2a2a);
    border: 3px solid;
    border-color: #404040 #0a0a0a #0a0a0a #404040;
    border-radius: 10px;
    padding: 12px 16px;
    color: #00ff41;
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    box-shadow: 
        inset 1px 1px 3px rgba(80, 80, 80, 0.4),
        inset -1px -1px 3px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

.iphone-btn:hover:not(:disabled) {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
    transform: translateY(-2px);
}

/* Specific styles for load button - Force maximum priority */
.load-btn, #loadBtn {
    display: flex !important;
    visibility: visible !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1000 !important;
    opacity: 1 !important;
}

/* Ensure no pseudo-elements or overlays interfere */
.load-btn::before, .load-btn::after, #loadBtn::before, #loadBtn::after {
    pointer-events: none !important;
}

/* Make sure the button content is also clickable */
.load-btn *, #loadBtn * {
    pointer-events: none !important;
}

.iphone-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.2);
}

.iphone-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
    border-color: #333;
    color: #666;
}

.btn-subtitle {
    font-size: 11px;
    margin-top: 4px;
    opacity: 0.8;
    font-weight: normal;
}



/* Audio Player */
.audio-player {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.play-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.play-btn, .loop-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #00ff41;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #00ff41;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-btn:hover, .loop-btn:hover {
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.timeline {
    flex: 1;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #00ff41;
}

.progress-container {
    flex: 1;
    height: 4px;
    background: #333;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.progress-bar {
    height: 100%;
    background: #00ff41;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.progress-handle {
    position: absolute;
    top: -4px;
    width: 12px;
    height: 12px;
    background: #00ff41;
    border-radius: 50%;
    left: 0%;
    transform: translateX(-50%);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.5);
}

/* Status Panel */
.status-panel {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.status-light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0a8;
    box-shadow: 0 0 10px currentColor;
    animation: pulse 2s ease-in-out infinite;
}

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

.status-text {
    font-family: 'Perfect DOS VGA 437', 'Web437 IBM VGA8', 'VT323', monospace;
    font-size: 12px;
    color: #00ff41;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Processing Info */
.processing-info {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 12px;
    margin: 12px 0;
    text-align: center;
}

.processing-title {
    font-size: 10px;
    color: #00ff41;
    letter-spacing: 1px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.processing-text {
    font-size: 12px;
    color: #00ff41;
    font-family: 'Perfect DOS VGA 437', 'Web437 IBM VGA8', 'VT323', monospace;
    letter-spacing: 0.5px;
    font-style: italic;
}

/* Dashboard Styling */
.dash {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff41;
    border-radius: 12px;
    padding: 15px;
    font-family: 'Perfect DOS VGA 437', 'Web437 IBM VGA8', 'VT323', monospace;
    color: #00ff41;
    margin-top: 15px;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    margin-bottom: 10px;
}

.badge.pass {
    background: #0a4;
    color: #fff;
}

.badge.fail {
    background: #a40;
    color: #fff;
}

.row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.box {
    flex: 1;
    background: #0a0a0a;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px;
}

.box .label {
    display: block;
    font-size: 8px;
    color: #888;
    margin-bottom: 4px;
}

.box .val {
    font-size: 10px;
    color: #00ff41;
    font-family: monospace;
}

details {
    margin: 10px 0;
}

summary {
    cursor: pointer;
    font-size: 10px;
    color: #888;
    padding: 4px 0;
}

#techRows {
    background: #0a0a0a;
    padding: 8px;
    border-radius: 3px;
    border: 1px solid #333;
    font-family: 'Perfect DOS VGA 437', 'Web437 IBM VGA8', 'VT323', monospace;
    font-size: 10px;
    line-height: 1.4;
    color: #00ff41;
}

/* Tooltips */
.tip {
    position: relative;
    cursor: help;
    color: #888;
    font-size: 8px;
}

.tip:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #000;
    color: #fff;
    padding: 4px 6px;
    border-radius: 3px;
    font-size: 0.6rem;
    white-space: nowrap;
    z-index: 1000;
    border: 1px solid #333;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.tip:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    border: 3px solid transparent;
    border-top-color: #000;
    z-index: 1000;
}

/* Verification Details Panel */
.verification-details-panel {
    width: 100%;
    max-width: 600px;
    margin: 15px auto 10px auto;
}

.verification-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
}

.verification-title {
    font-size: 14px;
    color: #00ff41;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

.verification-content {
    margin-top: 15px;
    background: linear-gradient(145deg, #0a0a0a, #1a1a1a);
    border: 2px solid #00ff41;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(0, 255, 65, 0.1),
        0 0 20px rgba(0, 255, 65, 0.2);
}

.verification-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.3);
}

.verification-subtitle {
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.verification-status {
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
}

.status-badge {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.status-badge.pass {
    color: #0a4;
}

.status-badge.fail {
    color: #a40;
}

.status-message {
    font-size: 10px;
    color: #888;
    font-style: italic;
}

.hash-comparison-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.hash-item {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 12px;
}

.hash-label {
    font-size: 10px;
    color: #888;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hash-value {
    font-family: 'Perfect DOS VGA 437', 'Web437 IBM VGA8', 'VT323', monospace;
    font-size: 12px;
    color: #00ff41;
    word-break: break-all;
    line-height: 1.4;
}

.tech-details {
    margin: 20px 0;
}

.tech-header {
    font-size: 12px;
    color: #00ff41;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-content {
    background: #0a0a0a;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #333;
    font-family: 'Perfect DOS VGA 437', 'Web437 IBM VGA8', 'VT323', monospace;
    font-size: 10px;
    line-height: 1.4;
    color: #00ff41;
}

.spectrogram-wrapper {
    text-align: center;
    margin-top: 20px;
}

.spectrogram-image {
    width: 90%;
    border-radius: 4px;
}

.spectrogram-caption {
    font-size: 0.7rem;
    color: #AAA;
    margin-top: 5px;
}

/* Footer Links */
.footer-separator {
    color: #666;
    margin: 0 10px;
}

/* Terms Modal Styles */
.terms-modal-content {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.terms-modal-text {
    font-size: 11px;
    color: #ccc;
    line-height: 1.6;
    padding: 15px 0;
}

.terms-modal-text h4 {
    color: #00ff41;
    font-size: 12px;
    margin: 20px 0 10px 0;
    font-weight: bold;
}

.terms-modal-text h4:first-of-type {
    margin-top: 15px;
}

.terms-modal-text p {
    margin-bottom: 12px;
}

.terms-modal-text a {
    color: #00ff41;
    text-decoration: none;
}

.terms-modal-text a:hover {
    text-decoration: underline;
}

/* Device Manual / FAQ Section */
.device-manual {
    width: 100%;
    max-width: 600px;
    margin: 10px auto 20px auto;
}

.manual-section {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 15px;
}

.manual-title {
    font-size: 14px;
    color: #00ff41;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Orbitron', monospace;
}

.manual-content {
    margin-top: 15px;
}

.faq-item {
    margin-bottom: 10px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-item summary {
    font-size: 12px;
    color: #00ff41;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    margin-bottom: 8px;
}

.faq-content {
    font-size: 11px;
    color: #ccc;
    line-height: 1.5;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    border-left: 3px solid #00ff41;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #00ff41;
    border-radius: 15px;
    width: 80%;
    max-width: 500px;
    color: #00ff41;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #00ff41;
}

/* Payment Modal Styles */
.payment-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    overflow-y: auto;
}

.payment-content {
    background: #000000;
    border: 2px solid #00ff41;
    border-radius: 15px;
    width: 90%;
    max-width: 400px;
    max-height: calc(100vh - 40px);
    padding: 0;
    position: relative;
    margin: auto;
    overflow-y: auto;
}

.payment-header {
    padding: 15px;
    border-bottom: 1px solid #333;
}

.close-payment {
    color: #aaa;
    float: right;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-payment:hover {
    color: #00ff41;
}

.payment-body {
    padding: 20px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.payment-disclaimer {
    background: rgba(255, 69, 0, 0.1);
    border: 1px solid #ff4500;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    color: #ff6b35;
    font-size: 0.9rem;
    line-height: 1.4;
}

.payment-disclaimer p {
    margin: 8px 0;
}

.payment-disclaimer strong {
    color: #ff4500;
}

.payment-checkbox {
    margin: 15px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.payment-checkbox input[type="checkbox"] {
    margin-top: 3px;
    accent-color: #00ff41;
}

.payment-checkbox label {
    font-size: 0.9rem;
    line-height: 1.3;
    color: #ccc;
    cursor: pointer;
}

.free-downloads-status {
    text-align: center;
    padding: 20px;
}

.free-downloads-status h3 {
    color: #00ff41;
    margin-bottom: 10px;
}

.free-downloads-status p {
    margin-bottom: 20px;
    color: #ccc;
}

.free-btn {
    background: linear-gradient(135deg, #00ff41, #00cc33);
    color: #000;
    font-weight: bold;
}

.payment-options {
    width: 100%;
}

.payment-header-text {
    text-align: center;
    margin-bottom: 20px;
}

.payment-header-text h3 {
    color: #00ff41;
    margin-bottom: 8px;
    font-family: 'Perfect DOS VGA 437', 'Web437 IBM VGA8', 'VT323', monospace;
}

.payment-choices {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.payment-choice {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 10px;
    padding: 15px;
}

.choice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-tag {
    background: #00ff41;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
}

.features {
    list-style: none;
    margin: 10px 0;
}

.features li {
    font-size: 11px;
    color: #ccc;
    margin-bottom: 4px;
}

.payment-btn {
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border: 2px solid #00ff41;
    border-radius: 8px;
    padding: 12px 20px;
    color: #00ff41;
    font-family: 'Orbitron', monospace;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.payment-btn:hover {
    background: linear-gradient(145deg, #3a3a3a, #2a2a2a);
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.payment-divider {
    text-align: center;
    margin: 15px 0;
    color: #666;
    font-size: 12px;
}

.sub-plans {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.plan {
    font-size: 12px;
}

.plan strong {
    color: #00ff41;
}

.subscription-buttons {
    display: flex;
    gap: 10px;
}



.paypal-badge {
    text-align: center;
    margin-top: 15px;
    color: #666;
    font-size: 10px;
}

/* Credits Footer Bottom */
.credits-footer-bottom {
    text-align: center;
    padding: 20px 20px 40px;
    margin-top: 10px;
}

.credits-footer-bottom a {
    color: #ccc;
    text-decoration: none;
    font-size: 12px;
    transition: color 0.3s ease;
}

.credits-footer-bottom a:hover {
    color: #00ff41;
}

/* Responsive Design */
@media (max-width: 768px) {
    .device-container {
        max-width: 100%;
        padding: 12px 10px;
        border-radius: 15px;
    }

    .device-title {
        font-size: 1.2rem;
        letter-spacing: 4px;
    }

    .device-subtitle {
        font-size: 0.7rem;
        letter-spacing: 1px;
    }

    .main-screen {
        padding: 12px;
        min-height: 220px;
    }

    #spectrumAnalyzer {
        height: 180px;
    }

    .frequency-labels {
        font-size: 0.6rem;
        padding: 0 5px;
    }

    .iphone-btn {
        padding: 10px 12px;
        font-size: 11px;
    }

    .cloak-confirmation-panel {
        padding: 15px;
        margin: 15px auto;
    }

    .confirmation-title {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hash-comparison {
        flex-direction: column;
        gap: 8px;
    }

    .device-manual {
        margin: 8px auto 15px auto;
    }

    .manual-section {
        padding: 12px;
    }

    .manual-title {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .faq-item summary {
        font-size: 10px;
        padding: 8px 10px;
    }

    .faq-content {
        font-size: 10px;
        padding: 10px;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 15px;
    }

    .payment-content {
        width: 95%;
        max-width: 350px;
    }

    /* Collapse FAQ by default on mobile */
    .manual-section {
        display: block;
    }
}