/* === FIXED POSITIONING - NO MOVEMENT === */
html,
body {
    overflow: hidden !important;
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

*:not(.app-layout) {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    transform-style: flat !important;
    perspective: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}

.app-layout {
    animation: none !important;
    transition: none !important;
    transform-style: flat !important;
    perspective: none !important;
    animation-duration: 0s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    will-change: auto !important;
    backface-visibility: visible !important;
}

body {
    background-color: #000000;
    color: #f1f1f1;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    overflow: hidden !important;
}

.app-layout {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px;
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed !important;
    top: 0;
    left: 50%;
    transform: translateX(-50%) !important;
    overflow: hidden !important;
    pointer-events: auto;
}

/* Header */
.header {
    margin-bottom: 20px;
    position: static !important;
    transform: none !important;
    border-bottom: 1px solid #1a1a1a;
    padding-bottom: 20px;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: static !important;
}

h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
    position: static !important;
}

.subtitle {
    font-size: 10px;
    color: #666666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: static !important;
    margin-top: 5px;
}

/* Status Badge */
.badge {
    background: transparent;
    border: 1px solid #333333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #aaaaaa;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: static !important;
}

/* Cards (Reset for HUD theme) */
.card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    position: static !important;
    transform: none !important;
}

/* MASSIVE RING HUD */
.main-stats {
    width: 250px;
    height: 250px;
    margin: 30px auto;
    border-radius: 50%;
    border: 2px solid #ff5500;
    box-shadow: inset 0 0 40px rgba(255, 85, 0, 0.05), 0 0 20px rgba(255, 85, 0, 0.15);
    background: radial-gradient(circle, #0a0a0a, #000000);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: static !important;
}

.main-stats .label {
    font-size: 10px;
    color: #ff5500;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 600;
    position: static !important;
}

.big-value {
    font-size: 42px;
    font-weight: 300;
    color: #ffffff;
    margin: 12px 0;
    letter-spacing: -1px;
    position: static !important;
    transform: none !important;
}

.unit {
    font-size: 14px;
    color: #666666;
    font-weight: 500;
    letter-spacing: 2px;
    position: static !important;
}

.sub-value {
    font-size: 12px;
    color: #ff5500;
    font-family: 'Inter', monospace;
    background: transparent;
    border: none;
    margin-top: 10px;
    letter-spacing: 1px;
    position: static !important;
}

/* Stats HUD Strip */
.grid-stats {
    display: flex;
    justify-content: space-between;
    padding: 20px 30px;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    margin: 20px 0;
    position: static !important;
}

.stat-card {
    text-align: center;
    width: 45%;
}

.stat-card .label {
    font-size: 10px;
    color: #666666;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: static !important;
}

.stat-card .value {
    font-size: 22px;
    font-weight: 300;
    color: #ffffff;
    position: static !important;
}

/* Actions */
.actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 20px;
    position: static !important;
}

.btn {
    width: 100%;
    height: 55px;
    min-height: 55px;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    position: static !important;
    transform: none !important;
}

.btn:active {
    transform: scale(1) !important;
}

.primary-btn {
    background: transparent;
    color: #ff5500;
    border: 1px solid #ff5500;
    box-shadow: 0 0 15px rgba(255, 85, 0, 0.1);
}

.primary-btn.active {
    background: #ff5500;
    color: #000000;
    border: none;
    box-shadow: 0 0 25px rgba(255, 85, 0, 0.3);
}

.secondary-btn {
    background: #111111;
    color: #666666;
    border: 1px solid #222222;
}

.secondary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.danger-btn {
    background: #1a0505;
    color: #ff3333;
    border: 1px solid #330000;
}

/* Footer Log */
.footer-log {
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    position: static !important;
}

#terminalLog {
    font-size: 10px;
    font-family: 'Inter', monospace;
    color: #555555;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: static !important;
}

.id-text {
    font-size: 10px;
    color: #444444;
    letter-spacing: 2px;
    position: static !important;
}

/* JS State Helpers */
.active .switch-icon {
    content: "aaa";
}

/* Lock text and selections */
* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
}

#miningBalance,
#hashRate,
#rigTemp,
#boostTimer,
#terminalLog,
#userIdDisplay,
#rigStatus,
.switch-icon,
.switch-text {
    position: static !important;
    transform: none !important;
    display: inline-block !important;
    vertical-align: baseline !important;
}

#miningBalance {
    min-width: 180px;
    text-align: center;
    display: inline-block !important;
}

#hashRate {
    min-width: 120px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

#rigTemp {
    min-width: 50px;
    text-align: center;
    white-space: nowrap;
}

#boostTimer {
    min-width: 40px;
    text-align: center;
    white-space: nowrap;
}

#rigStatus {
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

#terminalLog {
    min-width: 150px;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#userIdDisplay {
    min-width: 80px;
    text-align: right;
    white-space: nowrap;
}

.switch-text {
    min-width: 90px;
    text-align: center;
    display: inline-block !important;
}

*::before,
*::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

*:focus,
*:focus-visible,
*:focus-within {
    outline: none !important;
    box-shadow: none !important;
}