:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --primary-dark: #0d1354;
    --primary-bg: #f0f2ff;
    --bg: #f4f5fb;
    --surface: #fff;
    --text: #222;
    --text-muted: #777;
    --border: #e4e7f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --transition: 0.25s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--primary);
    color: #fff;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(26,35,126,0.15);
}

.nav-brand {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.nav-links a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.nav-links a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 40px;
}

/* ===== HEADINGS ===== */
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
}

h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

h3 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

/* ===== STATS CARDS ===== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

.stat-icon.blue { background: linear-gradient(135deg, #1a237e, #3949ab); }
.stat-icon.green { background: linear-gradient(135deg, #1b5e20, #43a047); }
.stat-icon.orange { background: linear-gradient(135deg, #e65100, #ff9800); }
.stat-icon.red { background: linear-gradient(135deg, #b71c1c, #ef5350); }

.stat-number {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== DEVICE GRID ===== */
.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

.device-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all var(--transition);
}

.device-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--primary-light);
}

.device-card-header {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.device-card-header .device-name {
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.device-card-header .device-name svg {
    width: 18px;
    height: 18px;
    fill: var(--primary);
}

.device-card-body {
    padding: 16px 20px;
}

.device-card-body p {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.device-card-body p:last-child {
    margin-bottom: 0;
}

.device-card-body p span:first-child {
    color: var(--text-muted);
}

.device-card-footer {
    padding: 12px 20px;
    background: #f8f9ff;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
    line-height: 1;
}

.btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-light); box-shadow: 0 4px 12px rgba(26,35,126,0.3); }

.btn-success { background: #2e7d32; color: #fff; }
.btn-success:hover { background: #388e3c; }

.btn-danger { background: #c62828; color: #fff; }
.btn-danger:hover { background: #d32f2f; }

.btn-warning { background: #f57c00; color: #fff; }
.btn-warning:hover { background: #ff9800; }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }
.btn-block { display: flex; width: 100%; justify-content: center; }

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

/* ===== TABLES ===== */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.table th {
    background: #f8f9fe;
    padding: 11px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f1f8;
    color: #444;
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background: #f8f9ff;
}

/* ===== BADGES ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.badge-success { background: #e8f5e9; color: #2e7d32; }
.badge-danger { background: #fbe9e7; color: #c62828; }
.badge-warning { background: #fff3e0; color: #e65100; }
.badge-info { background: #e3f2fd; color: #1565c0; }
.badge-secondary { background: #f5f5f5; color: #616161; }

/* ===== ALERTS ===== */
.alert {
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid transparent;
}

.alert-danger { background: #fbe9e7; color: #bf360c; border-color: #ffccbc; }
.alert-success { background: #e8f5e9; color: #1b5e20; border-color: #c8e6c9; }
.alert-info { background: #e3f2fd; color: #0d47a1; border-color: #bbdefb; }

/* ===== FORMS ===== */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper .input-icon {
    position: absolute;
    left: 12px;
    width: 18px;
    height: 18px;
    fill: #aaa;
    pointer-events: none;
    transition: fill var(--transition);
}

.input-wrapper .form-control {
    width: 100%;
    padding: 11px 12px 11px 40px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: #fafbff;
    transition: all var(--transition);
    outline: none;
}

.input-wrapper .form-control:focus {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(26,35,126,0.08);
}

.input-wrapper.focused .input-icon {
    fill: var(--primary);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: #fafbff;
    transition: border-color var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26,35,126,0.08);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

select.form-control {
    appearance: auto;
}

.password-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.45;
    transition: opacity var(--transition);
}

.password-toggle:hover { opacity: 1; }

.password-toggle svg {
    width: 20px;
    height: 20px;
    fill: #666;
}

/* ===== LOGIN / REGISTER ===== */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0c29 0%, var(--primary) 50%, #24243e 100%);
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 30% 40%, rgba(100,100,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255,100,100,0.05) 0%, transparent 50%);
    animation: bgFloat 20s ease-in-out infinite;
}

@keyframes bgFloat {
    0%, 100% { transform: translate(0,0) rotate(0deg); }
    33% { transform: translate(2%,-2%) rotate(1deg); }
    66% { transform: translate(-2%,2%) rotate(-1deg); }
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-box {
    background: rgba(255,255,255,0.97);
    padding: 40px 36px 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 80px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
}

.login-box .logo-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 30px rgba(26,35,126,0.3);
}

.login-box .logo-icon svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

.login-box h1 {
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    color: var(--primary);
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.login-box h2 {
    font-size: 13px;
    font-weight: 400;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ===== TABS ===== */
.tab-nav {
    display: flex;
    gap: 6px;
    margin: 20px 0 22px;
    flex-wrap: wrap;
}

.tab-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: #555;
    background: var(--surface);
    font-size: 12px;
    font-weight: 500;
    transition: all var(--transition);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.tab-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

.tab-link:hover {
    background: #f0f2ff;
    border-color: #c5cae9;
    color: var(--primary);
}

.tab-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px rgba(26,35,126,0.25);
}

.tab-link.active svg { fill: #fff; }

/* ===== DEVICE INFO ===== */
.device-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.device-header h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0;
}

.rename-form {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rename-form .form-control {
    width: 170px;
    padding: 7px 12px;
    font-size: 13px;
}

.device-info {
    background: var(--surface);
    padding: 18px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.device-info p {
    font-size: 13px;
    margin: 0;
    color: #444;
}

.device-info p strong {
    color: var(--text);
}

.device-info .secret-form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
}

.device-info .secret-form .form-control {
    width: 90px;
    padding: 4px 8px;
    font-size: 12px;
}

/* ===== COMMAND FORM ===== */
.command-card {
    background: var(--surface);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.command-card h3 {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.command-card h3 svg { width: 18px; height: 18px; fill: var(--primary); }

.command-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.command-form select { flex: 1; }

/* ===== DELETE BAR ===== */
.delete-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0 12px;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
}

.row-checkbox, #selectAll {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--primary);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 4px;
    margin-top: 20px;
    justify-content: center;
}

.page-link {
    padding: 7px 13px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--primary);
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.page-link:hover, .page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== DOWNLOAD PAGE ===== */
.download-card {
    max-width: 560px;
    margin: 0 auto;
    background: var(--surface);
    padding: 36px 36px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.download-icon {
    font-size: 52px;
    margin-bottom: 12px;
}

.download-card h2 {
    font-size: 20px;
    margin-bottom: 6px;
}

.download-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.download-info {
    font-size: 13px;
}

.setup-steps {
    text-align: left;
    padding-left: 20px;
}

.setup-steps li {
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.setup-steps li strong {
    color: var(--text);
}

/* ===== PROFILE PAGE ===== */
.profile-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.profile-card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 24px;
}

.profile-card h2 {
    font-size: 16px;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.profile-header h1 {
    font-size: 20px;
    margin-bottom: 2px;
}

.profile-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.profile-meta {
    background: #f8f9fe;
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 18px;
}

.profile-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.profile-meta-item:last-child {
    border-bottom: none;
}

.profile-meta-item span:first-child {
    color: var(--text-muted);
}

.profile-token-box {
    background: #f8f9fe;
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 14px;
    word-break: break-all;
}

.profile-token-box code {
    font-size: 11px;
    background: transparent;
    padding: 0;
}

code {
    background: #f0f2f5;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    word-break: break-all;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 20px 0;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 16px; }
.mt-3 a { color: var(--primary); text-decoration: none; font-weight: 600; }
.mt-3 a:hover { text-decoration: underline; }

.msg-cell {
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== LANDING PAGE ===== */
.landing-nav {
    background: transparent;
    color: var(--primary);
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.landing-nav .nav-brand {
    color: #fff;
}

.landing-nav .nav-brand svg { fill: #fff; }

.landing-nav .nav-links a {
    color: rgba(255,255,255,0.8);
}

.landing-nav .nav-links a:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.hero {
    background: linear-gradient(135deg, #0f0c29 0%, var(--primary) 50%, #24243e 100%);
    color: #fff;
    padding: 120px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: -50%;
    background:
        radial-gradient(circle at 20% 50%, rgba(100,100,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255,100,100,0.05) 0%, transparent 50%);
    animation: bgFloat 25s ease-in-out infinite;
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 17px;
    opacity: 0.85;
    margin-bottom: 28px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.hero-buttons .btn-primary {
    background: #fff;
    color: var(--primary);
}

.hero-buttons .btn-primary:hover {
    background: #f0f2ff;
    box-shadow: 0 8px 24px rgba(255,255,255,0.2);
}

.hero-buttons .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

.hero-buttons .btn-outline:hover {
    background: rgba(255,255,255,0.12);
    border-color: #fff;
}

.features-section {
    padding: 60px 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature-card {
    background: var(--surface);
    padding: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.feature-card .feat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.feature-card .feat-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.feature-card h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== ADMIN ===== */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
}

.admin-stat .stat-num {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}

.admin-stat .stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .navbar { padding: 0 16px; }
    .nav-links a { padding: 6px 10px; font-size: 12px; }
    .container { padding: 20px 16px; }
    .device-grid { grid-template-columns: 1fr; }
    .profile-row { grid-template-columns: 1fr; }
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 15px; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .device-info { grid-template-columns: 1fr 1fr; }
    .command-form { flex-direction: column; }
    .command-form select { width: 100%; }
    .stats-row { grid-template-columns: 1fr 1fr; }
}
