* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu Mono', monospace;
}

body {
    font-family: 'Ubuntu Mono', monospace;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: row;
}

/* Navbar (Side Navigation) */
.navbar {
    background-color: #0d0d0d;
    color: white;
    padding: 2rem 0;
    border-right: 2px solid #440000;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 250px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.navbar-brand {
    padding: 0 2rem;
    border-bottom: 2px solid #440000;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.navbar-brand h1 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #aa0000;
}

.navbar-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0.5rem;
    padding: 0 1rem;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 1rem;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    display: block;
}

.nav-link:hover {
    background-color: rgba(170, 0, 0, 0.1);
    border-left-color: #aa0000;
    color: #aa0000;
}

.nav-link.active {
    background-color: rgba(170, 0, 0, 0.15);
    border-left-color: #aa0000;
    color: #aa0000;
}

/* Logout Button */
.logout-btn {
    background-color: #aa0000;
    color: white;
    border: 2px solid #aa0000;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    margin: 0 1rem;
}

.logout-btn:hover {
    background-color: transparent;
    color: #aa0000;
    box-shadow: 0 0 12px rgba(170, 0, 0, 0.3);
}

.sidebar-spacer {
    flex: 1;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
}

/* Footer */
.footer {
    background-color: #0d0d0d;
    color: #888;
    text-align: center;
    padding: 1.5rem;
    border-top: 2px solid #440000;
    font-size: 0.9rem;
    width: 100%;
}

/* Dashboard */
.dashboard {
    background: transparent;
    padding: 0;
}

.dashboard h2 {
    margin-bottom: 2rem;
    color: #aa0000;
    font-size: 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: #262626;
    border: 2px solid #440000;
    color: #e0e0e0;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.stat-card:hover {
    border-color: #aa0000;
    background-color: rgba(170, 0, 0, 0.05);
    box-shadow: 0 6px 16px rgba(170, 0, 0, 0.2);
}

.stat-card h3 {
    font-size: 0.95rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: #aa0000;
}

/* Miners Page */
.miners-page,
.config-page {
    background-color: #262626;
    padding: 2rem;
    border: 2px solid #440000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.miners-page h2,
.config-page h2 {
    margin-bottom: 1.5rem;
    color: #aa0000;
    font-size: 1.5rem;
}

.miners-controls {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #333;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #aa0000;
    box-shadow: 0 0 8px rgba(170, 0, 0, 0.2);
}

/* Tables */
.miners-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.miners-table thead {
    background-color: #1a1a1a;
    border-bottom: 2px solid #440000;
}

.miners-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #aa0000;
}

.miners-table td {
    padding: 1rem;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
}

.miners-table tbody tr:hover {
    background-color: rgba(74, 222, 128, 0.08);
}

/* Status Badge */
.status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.status.online {
    background-color: rgba(170, 0, 0, 0.15);
    color: #aa0000;
    border-color: #aa0000;
}

.status.offline {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: #ef4444;
}

.status.error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: #ef4444;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #aa0000;
    color: white;
    border: 2px solid #aa0000;
}

.btn-primary:hover {
    background-color: transparent;
    color: #aa0000;
    box-shadow: 0 0 12px rgba(170, 0, 0, 0.3);
}

.btn-success {
    background-color: #aa0000;
    color: white;
    border: 2px solid #aa0000;
}

.btn-success:hover {
    background-color: transparent;
    color: #aa0000;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
    border: 2px solid #ef4444;
}

.btn-danger:hover {
    background-color: transparent;
    color: #ef4444;
}

.btn-secondary {
    background-color: transparent;
    color: #888;
    border: 2px solid #444;
}

.btn-secondary:hover {
    background-color: transparent;
    color: #e0e0e0;
    border-color: #666;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Forms */
.config-form,
#minerForm {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #e0e0e0;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"] {
    padding: 0.75rem;
    border: 2px solid #333;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #aa0000;
    box-shadow: 0 0 8px rgba(170, 0, 0, 0.2);
}

.form-group small {
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.85rem;
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
}

.form-group.checkbox label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Modal */
.form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.form-modal.hidden {
    display: none;
}

.form-modal-content {
    background: #262626;
    padding: 2rem;
    border: 2px solid #440000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #aa0000;
}

/* Preview */
.miners-preview {
    margin-top: 2rem;
}

.miners-preview h3 {
    margin-bottom: 1rem;
    color: #aa0000;
    font-size: 1.2rem;
}

.empty-message {
    text-align: center;
    color: #666;
    padding: 2rem;
    background-color: #262626;
    border: 2px solid #440000;
}

.empty-message a {
    color: #aa0000;
    text-decoration: none;
}

.empty-message a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .navbar {
        flex-direction: row;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #440000;
        gap: 1rem;
        padding: 1rem 2rem;
    }

    .navbar-brand {
        padding: 0;
        border-bottom: none;
        border-right: 2px solid #440000;
        padding-right: 2rem;
        margin-right: 2rem;
    }

    .navbar-menu {
        flex-direction: row;
        gap: 1rem;
        padding: 0;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        border-left: none;
        border-bottom: 2px solid transparent;
    }

    .nav-link:hover,
    .nav-link.active {
        border-left: none;
        border-bottom-color: #4ade80;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 1rem;
    }

    .miners-table {
        font-size: 0.875rem;
    }

    .miners-table th,
    .miners-table td {
        padding: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }
}

/* Pagination */
.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: #262626;
    border: 2px solid #440000;
}

.page-info {
    color: #e0e0e0;
    font-weight: 600;
    min-width: 150px;
    text-align: center;
}

.pagination-controls .btn {
    min-width: 120px;
}

.pagination-controls .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Refined application shell */
:root {
    --bg: #1a1a1a;
    --bg-soft: #141414;
    --surface: #202020;
    --surface-raised: #262626;
    --surface-hover: #2c2c2c;
    --border: #333333;
    --border-strong: #440000;
    --text: #e0e0e0;
    --text-soft: #b3b3b3;
    --text-muted: #888888;
    --accent: #aa0000;
    --accent-strong: #c51616;
    --accent-soft: rgba(170, 0, 0, 0.15);
    --success: #00aa55;
    --danger: #aa3333;
    --warning: #ff6b00;
    --radius: 6px;
    --shadow: 0 16px 38px rgba(0, 0, 0, 0.24);
}

html {
    background: var(--bg);
}

body {
    min-width: 320px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        var(--bg);
    background-size: 32px 32px;
    color: var(--text);
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.5;
}

button,
input,
select,
textarea {
    font: inherit;
}

code,
textarea,
.hashrate,
.hashrate-total,
.stat-value {
    font-family: 'IBM Plex Mono', monospace;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-strong);
    outline-offset: 2px;
}

.container {
    min-height: 100vh;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 232px;
    height: 100vh;
    flex: 0 0 232px;
    gap: 1.25rem;
    padding: 1.25rem 0;
    overflow: hidden;
    background: rgba(13, 13, 13, 0.97);
    border: 0;
    border-right: 1px solid var(--border);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(18px);
}

.navbar-header {
    padding: 0 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0;
    color: var(--text);
    text-decoration: none;
    border: 0;
}

.navbar-logo {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    object-fit: cover;
}

.navbar-brand span {
    display: grid;
    line-height: 1.1;
}

.navbar-brand strong {
    font-size: 1rem;
    font-weight: 700;
}

.navbar-brand small {
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.navbar-menu {
    gap: 0.25rem;
    padding: 0 0.75rem;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 42px;
    padding: 0.65rem 0.75rem;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 500;
    border: 0;
    border-radius: var(--radius);
    transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.nav-link svg,
.logout-btn svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.nav-link:hover {
    color: var(--text);
    background: var(--surface-raised);
    border: 0;
    transform: translateX(2px);
}

.nav-link.active {
    color: #fff;
    background: var(--accent-soft);
    border: 0;
}

.nav-link.active::before {
    position: absolute;
    left: -0.75rem;
    width: 3px;
    height: 22px;
    content: '';
    background: var(--accent-strong);
    border-radius: 0 3px 3px 0;
}

.logout-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 42px;
    margin: 0 0.75rem;
    padding: 0.65rem 0.75rem;
    color: var(--text-soft);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: 160ms ease;
}

.logout-btn:hover {
    color: #fff;
    background: var(--accent-soft);
    border-color: rgba(170, 0, 0, 0.65);
    box-shadow: none;
}

.nav-toggle {
    display: none;
}

.app-shell {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.main-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: clamp(1.25rem, 2.5vw, 2.5rem);
}

.footer {
    padding: 1rem 2rem;
    color: var(--text-muted);
    background: transparent;
    border: 0;
    font-size: 0.78rem;
}

.dashboard,
.miners-page,
.config-page,
.updates-page,
.donations-container {
    animation: content-enter 280ms ease-out both;
}

@keyframes content-enter {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

.miners-page,
.config-page {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.dashboard h2,
.miners-page h2,
.config-page h2,
.updates-page h2,
.donations-container h2 {
    color: var(--text) !important;
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.35rem, 2.2vw, 1.8rem) !important;
    font-weight: 650;
    letter-spacing: 0 !important;
}

.stats-grid {
    gap: 0.9rem;
}

.stat-card,
.config-section,
.empty-message,
.pagination-controls {
    background: linear-gradient(145deg, rgba(38, 38, 38, 0.98), rgba(30, 30, 30, 0.98));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.stat-card {
    transition: border-color 180ms ease, transform 180ms ease, background-color 180ms ease;
}

.stat-card:hover {
    background: var(--surface-raised);
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.miners-list,
.miners-preview,
.config-section {
    overflow: hidden;
    border-radius: var(--radius);
}

.miners-table {
    margin-top: 0;
    background: rgba(26, 26, 26, 0.78);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.miners-table thead {
    background: var(--surface-raised);
    border-bottom: 1px solid var(--border-strong);
}

.miners-table th {
    color: var(--text-soft) !important;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.miners-table td {
    color: var(--text-soft);
    border-bottom-color: var(--border);
}

.miners-table tbody tr {
    transition: background-color 140ms ease;
}

.miners-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.035);
}

.status {
    position: relative;
    padding: 0.28rem 0.55rem 0.28rem 1.15rem !important;
    border: 0 !important;
    border-radius: 999px;
    font-size: 0.72rem !important;
    font-weight: 600;
    text-transform: capitalize;
}

.status::before {
    position: absolute;
    top: 50%;
    left: 0.5rem;
    width: 5px;
    height: 5px;
    content: '';
    border-radius: 50%;
    transform: translateY(-50%);
}

.status.online {
    color: #4dcc8d;
    background: rgba(0, 170, 85, 0.13);
}

.status.online::before { background: var(--success); box-shadow: 0 0 7px var(--success); }

.status.offline,
.status.error {
    color: #d56b6b;
    background: rgba(170, 51, 51, 0.15);
}

.status.offline::before,
.status.error::before { background: var(--danger); }

/* Mining state badges (independent of the online/offline device status) */
.status.active {
    color: #4dcc8d;
    background: rgba(0, 170, 85, 0.13);
}

.status.active::before { background: var(--success); box-shadow: 0 0 7px var(--success); }

.status.paused {
    color: #d9a441;
    background: rgba(217, 164, 65, 0.14);
}

.status.paused::before { background: #d9a441; }

.status.disabled,
.status.unknown {
    color: #8a8a8a;
    background: rgba(138, 138, 138, 0.13);
}

.status.disabled::before,
.status.unknown::before { background: #8a8a8a; }

.btn,
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 38px;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.btn svg,
.copy-btn svg,
.page-title svg {
    width: 17px;
    height: 17px;
}

.btn:hover,
.copy-btn:hover {
    transform: translateY(-1px);
}

.btn-primary,
.btn-success {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-success:hover {
    color: #fff;
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    box-shadow: none;
}

.btn-danger {
    color: #d98181;
    background: rgba(170, 51, 51, 0.12);
    border-color: rgba(170, 51, 51, 0.45);
}

.btn-danger:hover {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.btn-secondary {
    color: var(--text-soft);
    background: var(--surface-raised);
    border-color: var(--border);
}

.btn-secondary:hover {
    color: var(--text);
    background: var(--surface-hover);
    border-color: var(--border-strong);
}

.btn-sm {
    min-height: 32px;
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
}

input:not([type='checkbox']):not([type='radio']),
select,
textarea,
.search-input,
.address-input {
    min-height: 40px;
    padding: 0.6rem 0.7rem !important;
    color: var(--text) !important;
    background: var(--bg-soft) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:not([type='checkbox']):not([type='radio']):focus,
select:focus,
textarea:focus,
.search-input:focus {
    border-color: rgba(170, 0, 0, 0.85) !important;
    box-shadow: 0 0 0 3px var(--accent-soft) !important;
    outline: none;
}

input[type='checkbox'] {
    accent-color: var(--accent);
}

.pagination-controls {
    margin-top: 0;
    padding: 0.85rem;
    border-top: 0;
    box-shadow: none;
}

.page-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem !important;
}

.page-title svg {
    color: var(--accent-strong);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 1.75rem;
}

.dashboard-stats .stat-card {
    position: relative;
    min-width: 0;
    min-height: 128px;
    padding: 1.25rem !important;
    font-family: 'Space Grotesk', sans-serif !important;
}

.dashboard-stats .stat-card h3 {
    margin-top: 0.65rem !important;
    color: var(--text-muted) !important;
    font-family: 'Space Grotesk', sans-serif !important;
    letter-spacing: 0.05em !important;
}

.dashboard-stats .stat-card p {
    color: var(--text) !important;
}

.dashboard-stats .stat-card:first-child p {
    color: var(--success) !important;
}

.dashboard-stats .stat-card:nth-child(2) p {
    color: #d56b6b !important;
}

.stat-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.stat-icon-online { color: var(--success); }
.stat-icon-offline { color: #d56b6b; }

.search-field {
    position: relative;
    width: 100%;
}

.search-field > svg {
    position: absolute;
    top: 50%;
    left: 0.8rem;
    z-index: 1;
    width: 17px;
    height: 17px;
    color: var(--text-muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.search-field .search-input {
    width: 100%;
    padding-left: 2.35rem !important;
}

.update-current,
.update-available {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.update-current {
    color: var(--success);
}

.update-current svg {
    width: 15px;
    height: 15px;
}

#versionTableBody td:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.copy-btn {
    color: var(--text);
    background: var(--surface-raised);
    cursor: pointer;
}

.icon-btn {
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
}

.icon-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 900px) {
    .container {
        flex-direction: column;
    }

    .navbar {
        position: sticky;
        width: 100%;
        height: auto;
        flex: 0 0 auto;
        padding: 0.75rem 1rem;
        border: 0;
        border-bottom: 1px solid var(--border);
    }

    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        border: 0;
    }

    .navbar-brand {
        padding: 0;
        margin: 0;
        border: 0;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .navbar-menu,
    .navbar .sidebar-spacer,
    .navbar .logout-btn {
        display: none;
    }

    .navbar.nav-open .navbar-menu {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.35rem;
        padding: 0.75rem 0 0;
    }

    .navbar.nav-open .logout-btn {
        display: flex;
        margin: 0.5rem 0 0;
    }

    .nav-link:hover {
        transform: none;
    }

    .nav-link.active::before {
        display: none;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 1rem;
    }

    .navbar.nav-open .navbar-menu {
        grid-template-columns: 1fr;
    }

    .miners-controls,
    .pagination-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination-controls .btn {
        width: 100%;
    }

    .footer {
        padding-inline: 1rem;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
