* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overscroll-behavior: none;
    -webkit-overflow-scrolling: touch;
}

body {
    overscroll-behavior-y: none;
}

.container {
    position: relative;
    z-index: 1;
    max-width: 600px;
    width: 100%;
    min-height: 800px;
}

@media (max-width: 768px) {
    .container {
        min-height: 900px;
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.nav-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(16, 185, 129, 0.3);
}

.nav-tab {
    padding: 10px 20px;
    background: transparent;
    color: #6ee7b7;
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: -2px;
}

.nav-tab:hover {
    color: #10b981;
    transform: none;
}

.nav-tab.active {
    color: #10b981;
    border-bottom-color: #10b981;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at center, #0b1410 0%, #08110d 50%, #000000 100%);
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Subtle glowing grid overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(16, 185, 129, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 185, 129, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center;
    z-index: 0;
    pointer-events: none;
}

/* Central teal glow effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at center, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 25%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    mix-blend-mode: screen;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

h1 {
    color: #10b981;
    margin-bottom: 10px;
    font-size: 39px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
    letter-spacing: 1px;
}

.subtitle {
    color: #6ee7b7;
    margin-bottom: 35px;
    font-size: 14px;
    text-shadow: 0 0 10px rgba(110, 231, 183, 0.3);
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #6ee7b7;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(110, 231, 183, 0.3);
}

input[type="text"], input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: #6ee7b7;
    transition: all 0.3s;
}

input[type="text"]:focus, input[type="number"]:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    background: rgba(0, 0, 0, 0.7);
}

input[type="text"]::placeholder {
    color: rgba(110, 231, 183, 0.4);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #10b981;
}

.checkbox-group label {
    margin-bottom: 0;
}

.stats {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: inset 0 0 20px rgba(16, 185, 129, 0.05);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    color: #6ee7b7;
}

.stat-value {
    color: #10b981;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.worker-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 15px;
    justify-items: center;
}

.worker-status {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    text-align: center;
    color: #6ee7b7;
    transition: all 0.3s;
}

.worker-status.active {
    background: rgba(16, 185, 129, 0.2);
    border-color: #10b981;
    color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.worker-status.found {
    background: #10b981;
    color: #000;
    font-weight: bold;
    border-color: #6ee7b7;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.6);
}

.estimate {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6ee7b7;
    display: none;
}

.estimate.running {
    background: rgba(16, 185, 129, 0.15);
    border-color: #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.estimate strong {
    color: #10b981;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #000;
    border: 2px solid #10b981;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 30px rgba(16, 185, 129, 0.5);
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 2px solid #ef4444;
}

.btn-secondary:hover {
    background: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.result {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid #10b981;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.3);
}

.result h3 {
    color: #10b981;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

.result-field {
    margin-bottom: 15px;
}

.result-field label {
    color: #6ee7b7;
    font-size: 12px;
    margin-bottom: 5px;
}

.result-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #10b981;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #10b981;
}

.result-field input:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.discovery-info {
    font-size: 12px;
    color: #6ee7b7;
    background: rgba(16, 185, 129, 0.1);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.error {
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid #ef4444;
    color: #fca5a5;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.hint {
    font-size: 12px;
    color: rgba(110, 231, 183, 0.6);
    margin-top: 5px;
}

/* Info sections for About and Donate pages */
.info-section {
    color: #6ee7b7;
    line-height: 1.6;
}

.info-section p {
    margin-bottom: 15px;
}

.info-section h3 {
    color: #10b981;
    margin-top: 25px;
    margin-bottom: 12px;
    font-size: 20px;
    text-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.info-section code {
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    word-break: break-all;
    display: inline-block;
    max-width: 100%;
}

.donate-address {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.donate-address label {
    display: block;
    margin-bottom: 10px;
}

.donate-address input {
    margin-bottom: 15px;
}

.donate-address button {
    margin-bottom: 0;
}