:root {
    --canvas: #f7f4ef;
    --surface: #fffdf9;
    --surface-soft: #f0ebe4;
    --ink: #1f2933;
    --muted: #6d766f;
    --faint: #9aa19b;
    --line: #e4ddd3;
    --accent: #e96f4c;
    --accent-dark: #c95335;
    --accent-soft: #fff0ea;
    --sage: #477568;
    --shadow: 0 16px 40px rgba(75, 59, 42, 0.08);
    --heading: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'DM Mono', ui-monospace, monospace;
}

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

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--heading);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    padding-bottom: 112px;
}

.bottom-nav {
    position: fixed;
    right: 28px;
    bottom: 20px;
    left: 28px;
    z-index: 30;
    padding: 9px;
    background: rgba(255, 253, 249, .72);
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(75, 59, 42, .14);
    backdrop-filter: blur(20px) saturate(125%);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
}
.bottom-nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1380px; margin: 0 auto; }
.bottom-nav-brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px; color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
.bottom-nav-brand img { width: 28px; height: 28px; object-fit: cover; border-radius: 9px; background: #f4ddd3; }
.bottom-nav-links { display: flex; align-items: center; gap: 5px; }
.bottom-nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; color: var(--muted); border-radius: 10px; font-size: 11px; font-weight: 700; text-decoration: none; transition: .2s ease; }
.bottom-nav-link:hover { color: var(--ink); background: var(--surface-soft); }
.bottom-nav-link.active { color: var(--accent-dark); background: var(--accent-soft); }
.bottom-nav-link.nav-cta { color: #fff; background: var(--accent); }
.bottom-nav-link.nav-cta:hover { background: var(--accent-dark); }
.nav-icon { display: grid; place-items: center; width: 18px; height: 18px; opacity: .82; }
.nav-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .55;
    background:
        radial-gradient(circle at 12% 4%, rgba(233, 111, 76, .12), transparent 28%),
        radial-gradient(circle at 90% 12%, rgba(71, 117, 104, .10), transparent 25%);
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.app-layout {
    position: relative;
    z-index: 1;
    width: min(1380px, 100%);
    margin: 0 auto;
    padding: 28px;
}

.hud-header {
    position: sticky;
    top: 18px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 22px;
    background: rgba(255, 253, 249, .66);
    border: 1px solid rgba(255, 255, 255, .78);
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(75, 59, 42, .10);
    backdrop-filter: blur(20px) saturate(125%);
    -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.brand-section { display: flex; align-items: center; gap: 14px; }
.brand-avatar-box {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    overflow: hidden;
    display: grid;
    place-items: end center;
    border-radius: 18px;
    background: linear-gradient(145deg, #f7d9ca, #ead8ce);
    border: 1px solid rgba(233, 111, 76, .35);
}
.brand-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-title {
    color: var(--ink);
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -.06em;
    line-height: 1;
}
.brand-sub { color: var(--muted); font-size: 12px; margin-top: 6px; }

.hud-telemetry { display: flex; align-items: center; gap: 22px; }
.hud-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.stat-label { color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.stat-val { font-size: 12px; font-weight: 700; }
.val-purple { color: var(--accent-dark); }
.stat-online { display: flex; align-items: center; gap: 7px; color: var(--sage); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #62a18e; box-shadow: 0 0 0 4px rgba(98,161,142,.15); }

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 370px;
    gap: 20px;
    align-items: start;
    margin-top: 20px;
}
.page-shell { margin-top: 20px; }
.app-page { display: none; }
.app-page.active { display: block; }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 20px; align-items: start; }
.page-content { width: min(780px, 100%); margin: 0 auto; }
.page-content-wide { width: min(920px, 100%); }
.page-side { min-width: 0; }
.page-intro { margin: 6px 2px 18px; }
.page-kicker { color: var(--accent-dark); font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: .12em; }
.page-intro h2 { margin-top: 7px; color: var(--ink); font-size: clamp(24px, 4vw, 34px); letter-spacing: -.06em; }
.page-intro p { max-width: 560px; margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.build-terminal-large { min-height: 380px; height: auto; }
.forge-panel, .telemetry-panel { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.cyber-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    overflow-x: auto;
    background: rgba(255, 253, 249, .72);
    border: 1px solid var(--line);
    border-radius: 14px;
}
.cyber-tab {
    flex: 1;
    min-width: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 14px;
    color: var(--muted);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 700;
    transition: .2s ease;
}
.cyber-tab:hover { color: var(--ink); background: var(--surface-soft); }
.cyber-tab.active { color: var(--accent-dark); background: var(--accent-soft); border-color: #f2c1b2; }
.tab-svg { width: 16px; height: 16px; flex: 0 0 auto; }
.tab-content { display: none; }
.tab-content.active { display: block; }

.cyber-card {
    width: 100%;
    padding: 20px;
    background: rgba(255, 253, 249, .9);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(75, 59, 42, .04);
}
.cyber-card.highlight-card {
    background: linear-gradient(135deg, #fffaf5, #f7eee7);
    border-color: #f0c8ba;
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--line);
}
.card-title { color: var(--ink); font-size: 14px; font-weight: 800; letter-spacing: -.02em; }
.card-subtitle { color: var(--muted); font-size: 11px; margin-bottom: 10px; }
.card-chip {
    padding: 5px 9px;
    color: var(--sage);
    background: #edf5f1;
    border: 1px solid #cee3da;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 9px;
    white-space: nowrap;
}
.val-cyan { color: var(--accent-dark); }

.input-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 13px; }
.input-group label, .editor-col label { color: var(--muted); font-size: 11px; font-weight: 700; }
.input-group input[type="text"],
.input-group input[type="url"],
.input-group input[type="number"],
.input-group select,
.color-picker-wrapper input[type="text"] {
    width: 100%;
    padding: 12px 13px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    font-size: 13px;
    transition: .2s ease;
}
.input-group select {
    appearance: none;
    padding-right: 38px;
    background-color: #fff;
    background-image: linear-gradient(45deg, transparent 50%, #78908a 50%), linear-gradient(135deg, #78908a 50%, transparent 50%);
    background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    cursor: pointer;
}
.input-group input:focus, .color-picker-wrapper input[type="text"]:focus,
.input-group select:focus,
.cyber-textarea:focus { border-color: #e7a18f; box-shadow: 0 0 0 4px rgba(233,111,76,.10); }
.input-help { color: var(--faint); font-size: 10px; line-height: 1.5; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 13px; }

.editor-grid { display: flex; flex-direction: column; gap: 12px; }
.editor-col { display: flex; flex-direction: column; gap: 6px; }
.cyber-textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    color: #34404a;
    background: #fbfaf8;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    resize: vertical;
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.55;
}

.color-picker-wrapper { display: flex; align-items: center; gap: 8px; }
.color-picker-wrapper input[type="color"] { width: 40px; height: 40px; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 9px; }
.splash-options input[type="color"] { width: 40px; height: 40px; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.color-picker-wrapper input[type="text"] { flex: 1; }

.icon-config-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
    padding: 12px;
    background: var(--surface-soft);
    border: 1px dashed #d6cabe;
    border-radius: 13px;
}
.icon-preview-box {
    width: 58px;
    height: 58px;
    flex: 0 0 auto;
    overflow: hidden;
    display: grid;
    place-items: end center;
    background: #f1f4f5;
    border: 1px solid #cbd6d9;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 14px;
}
.icon-preview-box img { width: 100%; height: 100%; object-fit: cover; }
.icon-controls { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.icon-controls label { color: var(--ink); font-size: 12px; font-weight: 800; }
.icon-controls input[type="file"] { width: 100%; color: var(--muted); font-size: 11px; }
.splash-config { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.splash-options { margin-top: 4px; }

.switches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.cyber-switch { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); cursor: pointer; user-select: none; }
.cyber-switch input { display: none; }
.switch-box { width: 34px; height: 20px; position: relative; flex: 0 0 auto; background: #ded9d2; border-radius: 999px; transition: .2s ease; }
.switch-box::after { content: ''; position: absolute; width: 14px; height: 14px; top: 3px; left: 3px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,.16); transition: .2s ease; }
.cyber-switch input:checked + .switch-box { background: var(--sage); }
.cyber-switch input:checked + .switch-box::after { left: 17px; }
.permission-copy { display: flex; flex-direction: column; gap: 2px; }
.switch-label { font-size: 11px; }
.permission-help { color: var(--muted); font-size: 9px; line-height: 1.35; }
.permission-summary { margin-top: 16px; padding-top: 12px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; }
.divider-line { height: 1px; margin: 16px 0; background: var(--line); }

.build-action-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.build-mode-selector { display: flex; flex-direction: column; gap: 9px; }
.radio-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; cursor: pointer; }
.radio-label input { accent-color: var(--accent); }
.cyber-btn-forge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(233,111,76,.22);
    transition: .2s ease;
}
.cyber-btn-forge:hover { background: var(--accent-dark); transform: translateY(-1px); }
.cyber-btn-forge:disabled { cursor: wait; }
.btn-svg { width: 17px; height: 17px; }

.dropzone { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 30px 16px; text-align: center; background: #fbfaf8; border: 1px dashed #d6cabe; border-radius: 13px; }
.drop-svg { width: 32px; height: 32px; margin-bottom: 3px; color: var(--accent); }
.drop-title { color: var(--ink); font-size: 12px; font-weight: 800; }
.drop-subtitle { color: var(--faint); font-size: 10px; }
.btn-secondary { margin-top: 7px; padding: 8px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 11px; }

.mockup-header, .terminal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mockup-title, .terminal-title { color: var(--ink); font-size: 12px; font-weight: 800; }
.permission-actions { display: flex; align-items: center; gap: 6px; }
.permission-select-btn, .permission-cancel-btn { padding: 6px 9px; border-radius: 8px; font-size: 10px; font-weight: 800; }
.permission-select-btn { color: var(--accent-dark); background: var(--accent-soft); border: 1px solid #b7dd98; }
.permission-cancel-btn { color: #b34e3b; background: #fff2ee; border: 1px solid #f2c1b2; }
.btn-mini { display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; color: var(--accent-dark); background: var(--accent-soft); border: 1px solid #f2c1b2; border-radius: 8px; font-size: 10px; }
.mini-svg { width: 12px; height: 12px; }
.device-frame { width: 100%; max-width: 320px; height: 360px; margin: 0 auto; padding: 9px; position: relative; display: flex; flex-direction: column; background: #2d3437; border: 4px solid #1f2528; border-radius: 28px; box-shadow: 0 16px 28px rgba(31,37,40,.18); }
.device-camera-notch { width: 55px; height: 8px; margin: 0 auto 7px; background: #101416; border-radius: 0 0 10px 10px; }
.device-screen-wrapper { flex: 1; overflow: hidden; position: relative; background: #fff; border-radius: 15px; }
#previewIframe { width: 100%; height: 100%; border: 0; }

.terminal-card { background: #071a2b; border-color: #0d4960; box-shadow: 0 8px 0 rgba(3, 27, 43, .28); }
.terminal-card .terminal-title { color: #8ee45d; font-size: 13px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 0 12px rgba(88, 204, 2, .2); }
.build-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 18px; }
.build-step { display: flex; align-items: center; gap: 7px; min-width: 0; color: #82958e; font-size: 10px; font-weight: 800; }
.build-step-dot { width: 9px; height: 9px; flex: 0 0 auto; border: 2px solid #82958e; border-radius: 50%; }
.build-step.active { color: #b6d8cb; }
.build-step.active .build-step-dot { background: #58cc02; border-color: #58cc02; box-shadow: 0 0 0 4px rgba(88, 204, 2, .15); }
.build-step.complete { color: #9ed2bd; }
.build-step.complete .build-step-dot { background: #73b29b; border-color: #73b29b; }
.build-step.failed { color: #f3a99d; }
.build-step.failed .build-step-dot { background: #ef4444; border-color: #ef4444; }
.terminal-lights { display: flex; gap: 5px; }
.terminal-lights .light { width: 8px; height: 8px; border-radius: 50%; }
.light.red { background: #eb806d; } .light.yellow { background: #e5bd63; } .light.green { background: #73b29b; }
.terminal-status { padding: 4px 8px; color: #b6d8cb; background: rgba(115,178,155,.14); border: 1px solid rgba(115,178,155,.35); border-radius: 999px; font-family: var(--mono); font-size: 9px; }
.terminal-body { height: 200px; display: flex; flex-direction: column; gap: 5px; overflow-y: auto; padding: 12px; background: #04111d; border: 1px solid rgba(42, 190, 140, .24); border-radius: 10px; color: #bad6cb; font-family: var(--mono); font-size: 10px; line-height: 1.55; }
.terminal-line.muted { color: #82958e; }
.terminal-line.success { color: #9ed2bd; font-weight: 700; }
.terminal-line.error { color: #f3a99d; font-weight: 700; }
.terminal-footer { margin-top: 10px; }
.cyber-btn-download { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; color: #fff; background: var(--sage); border-radius: 10px; font-size: 12px; font-weight: 800; text-decoration: none; }
.dl-svg { width: 16px; height: 16px; }
.build-progress-card { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.build-progress-card .build-step { color: var(--muted); }
.build-progress-card .build-step.active { color: var(--accent-dark); }
.build-progress-card .build-step.complete { color: var(--sage); }
.build-progress-card .build-step-dot { border-color: currentColor; }
.build-progress-card .build-step.active .build-step-dot,
.build-progress-card .build-step.complete .build-step-dot { background: currentColor; border-color: currentColor; box-shadow: 0 0 0 4px rgba(88, 204, 2, .14); }
.progress-summary { display: flex; align-items: center; gap: 13px; padding: 18px 0 14px; }
.progress-spinner { width: 30px; height: 30px; flex: 0 0 auto; border: 3px solid var(--accent-soft); border-top-color: var(--accent); border-radius: 50%; animation: progress-spin .9s linear infinite; }
.progress-spinner.is-idle { visibility: hidden; animation: none; }
.progress-spinner.is-complete { border-color: var(--sage); animation: none; }
.progress-spinner.is-failed { border-color: #ef4444; animation: none; }
.progress-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; }
.progress-copy strong { color: var(--ink); font-size: 14px; }
.progress-copy span { color: var(--muted); font-size: 11px; }
.progress-percent { color: var(--accent-dark); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.build-warning { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 10px 12px; color: #8a5b12; background: #fff7df; border: 1px solid #ead49b; border-radius: 9px; font-size: 11px; line-height: 1.45; }
.build-warning-icon { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; flex: 0 0 auto; color: #fff; background: #d59b27; border-radius: 50%; font-size: 12px; font-weight: 900; }
.progress-track { height: 10px; overflow: hidden; background: var(--surface-soft); border-radius: 999px; }
.progress-fill { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--accent), var(--sage)); border-radius: inherit; transition: width .4s ease; }
.build-log-hidden { display: none; }
@keyframes progress-spin { to { transform: rotate(360deg); } }
.app-footer { margin: -42px 0 8px; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.7; }
.app-footer p:first-child { color: var(--ink); font-weight: 800; }
.app-footer p + p { margin-top: 8px; }

@media (max-width: 1024px) {
    .workspace-grid { grid-template-columns: 1fr; }
    .page-grid { grid-template-columns: 1fr; }
    .device-frame { max-width: 100%; height: 320px; }
}
@media (max-width: 768px) {
    .hud-header {
        top: 8px;
    }

    .app-layout { min-height: calc(100vh - 112px); display: flex; flex-direction: column; padding: 14px 14px 96px; }
    .page-shell { margin-top: 14px; }
    .page-shell { flex: 1; }
    .app-footer { margin: 28px 0 24px; }
    .bottom-nav { right: 14px; bottom: 12px; left: 14px; }
    .bottom-nav-inner { justify-content: center; }
    .bottom-nav-brand { display: none; }
    .bottom-nav-link { padding: 9px 10px; }
    .hud-header { align-items: flex-start; flex-direction: column; padding: 16px; }
    .hud-telemetry { width: 100%; justify-content: space-between; }
    .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; gap: 8px; }
    .build-action-row { align-items: stretch; flex-direction: column; }
    .cyber-btn-forge { width: 100%; }
    .icon-config-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 480px) {
    .bottom-nav-link { gap: 4px; padding: 9px 7px; font-size: 10px; }
    .switches-grid { grid-template-columns: 1fr; }
    .cyber-tab { min-width: 105px; padding: 9px 7px; font-size: 10px; }
    .tab-svg { width: 14px; height: 14px; }
    .cyber-card { padding: 15px; }
}

:root {
    --canvas: #f7f7f3;
    --surface: #ffffff;
    --surface-soft: #f0f5e9;
    --ink: #3c3c3c;
    --muted: #777777;
    --faint: #a0a0a0;
    --line: #e5e5e5;
    --accent: #58cc02;
    --accent-dark: #46a302;
    --accent-soft: #e8f7d9;
    --sage: #1899ad;
    --heading: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--heading);
}

body::before {
    opacity: .65;
    background:
        radial-gradient(circle at 8% 4%, rgba(88, 204, 2, .13), transparent 25%),
        radial-gradient(circle at 94% 14%, rgba(24, 153, 173, .10), transparent 24%);
}

.hud-header, .bottom-nav {
    border-color: #e5e5e5;
    box-shadow: 0 6px 0 rgba(60, 60, 60, .08);
}

.brand-title, .page-intro h2 {
    font-weight: 900;
    letter-spacing: -.04em;
}

.brand-title { color: #3c3c3c; }
.page-kicker { color: var(--accent-dark); font-family: var(--heading); font-weight: 900; }
.page-intro p { font-size: 13px; }

.cyber-card {
    background: rgba(255, 255, 255, .96);
    border-color: #e5e5e5;
    border-radius: 16px;
    box-shadow: 0 7px 0 rgba(60, 60, 60, .07);
}

.cyber-card.highlight-card {
    background: linear-gradient(135deg, #f5fbe9, #ffffff);
    border-color: #c9eaa9;
}

.input-group input[type="text"],
.input-group input[type="url"],
.input-group input[type="number"],
.color-picker-wrapper input[type="text"] {
    border-radius: 13px;
    border-width: 2px;
}

.input-group input:focus, .color-picker-wrapper input[type="text"]:focus,
.cyber-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(88, 204, 2, .14);
}

.card-chip {
    color: var(--accent-dark);
    background: var(--accent-soft);
    border-color: #c9eaa9;
    font-family: var(--heading);
    font-weight: 800;
}

.bottom-nav-link.active {
    color: var(--accent-dark);
    background: var(--accent-soft);
}

.bottom-nav-link.nav-cta, .cyber-btn-forge {
    background: var(--accent);
    border-radius: 13px;
    box-shadow: 0 4px 0 var(--accent-dark);
}

.bottom-nav-link.nav-cta:hover, .cyber-btn-forge:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.bottom-nav-link.nav-cta {
    color: var(--muted);
    background: transparent;
    box-shadow: none;
}

.bottom-nav-link.nav-cta:hover {
    color: var(--ink);
    background: var(--surface-soft);
    transform: none;
}

.bottom-nav-link.nav-cta:active {
    box-shadow: none;
}

.bottom-nav-link {
    flex-direction: column-reverse;
    gap: 4px;
    min-width: 72px;
    padding: 8px 10px 6px;
}

.bottom-nav-link .nav-icon {
    margin-top: 1px;
}

@media (max-width: 768px) {
    .bottom-nav {
        right: 12px;
        bottom: 10px;
        left: 12px;
        padding: 7px;
    }

    .bottom-nav-inner {
        display: block;
    }

    .bottom-nav-brand {
        display: none;
    }

    .bottom-nav-links {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
    }

    .bottom-nav-link {
        min-width: 0;
        width: 100%;
        padding: 7px 3px 5px;
        font-size: 10px;
        line-height: 1.15;
        text-align: center;
    }

    .bottom-nav-link span:last-child {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

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

    .build-steps { gap: 5px; }
    .build-step { gap: 4px; font-size: 9px; }
}

@media (max-width: 420px) {
    .bottom-nav {
        right: 8px;
        bottom: 8px;
        left: 8px;
        padding: 5px;
        border-radius: 16px;
    }

    .bottom-nav-links {
        gap: 2px;
    }

    .bottom-nav-link {
        padding: 6px 2px 4px;
        font-size: 9px;
    }

    .nav-icon,
    .nav-icon svg {
        width: 16px;
        height: 16px;
    }

    .build-steps { grid-template-columns: repeat(2, 1fr); row-gap: 10px; }
}

.cyber-btn-forge:active, .bottom-nav-link.nav-cta:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--accent-dark);
}

.mockup-card { border-top: 5px solid var(--accent); }
.btn-mini { color: var(--accent-dark); background: var(--accent-soft); border-color: #c9eaa9; }
.icon-config-row { background: var(--surface-soft); border-color: #c9eaa9; }
.cyber-switch input:checked + .switch-box { background: var(--accent); }
.radio-label input { accent-color: var(--accent); }