/* =========================================
   KEYBOARD TESTER PRO
   Cyberpunk Neon Theme
========================================= */

:root {
    --primary: #a855f7;
    --primary-dark: #7e22ce;
    --primary-light: rgba(168, 85, 247, 0.15);

    --neon-cyan: #00ffff;
    --neon-pink: #ec4899;
    --neon-purple: #a855f7;

    --dark: #ffffff;
    --text: #d5d5f0;
    --muted: #a5b4fc;

    --border: rgba(168, 85, 247, 0.3);
    --background: #0f0c29;
    --light: rgba(15, 12, 41, 0.5);

    --success: #22d3ee;
    --danger: #ef4444;

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(168, 85, 247, 0.15);

    --radius: 16px;
}

/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    background-attachment: fixed;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

header, main, footer {
    position: relative;
    z-index: 1;
}

button, a {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

/* =========================================
   CONTAINER
========================================= */

.container {
    width: min(1400px, calc(100% - 40px));
    margin: 0 auto;
}

.narrow-container {
    max-width: 900px;
}

/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 12, 41, 0.9);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.nav-container {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.logo-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    font-size: 20px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
}

.navigation {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navigation a {
    padding: 9px 11px;
    border-radius: 8px;
    color: #a5b4fc;
    font-size: 14px;
    font-weight: 600;
    transition: 0.2s ease;
}

.navigation a:hover {
    color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.08);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 27px;
    color: var(--neon-cyan);
}

/* =========================================
   HERO
========================================= */

.hero {
    padding: 95px 0 85px;
    background: transparent;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    align-items: center;
    gap: 70px;
}

.badge,
.section-label {
    display: inline-block;
    color: var(--neon-cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.7);
}

.badge {
    padding: 7px 11px;
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 30px;
    margin-bottom: 18px;
}

.hero h1 {
    max-width: 760px;
    color: #ffffff;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    text-shadow: 0 0 25px rgba(0, 255, 255, 0.4);
}

.hero-description {
    max-width: 720px;
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.3s ease;
}

.primary-button {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    border: none;
    box-shadow:
        0 8px 25px rgba(168, 85, 247, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.primary-button:hover {
    background: linear-gradient(135deg, #9333ea, #4f46e5);
    transform: translateY(-2px);
    box-shadow:
        0 12px 35px rgba(168, 85, 247, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.secondary-button {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.secondary-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
    transform: translateY(-2px);
}

/* =========================================
   HERO CARD
========================================= */

.hero-card {
    padding: 34px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 24px;
    background: rgba(30, 20, 70, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(168, 85, 247, 0.15);
}

.hero-card-icon {
    width: 65px;
    height: 65px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.4);
    font-size: 31px;
    margin-bottom: 22px;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.hero-card h2 {
    color: #ffffff;
    font-size: 25px;
    margin-bottom: 10px;
}

.hero-card p {
    color: var(--muted);
    margin-bottom: 25px;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding-top: 20px;
    gap: 10px;
}

.mini-stats div {
    display: flex;
    flex-direction: column;
}

.mini-stats strong {
    color: var(--neon-cyan);
    font-size: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.mini-stats span {
    color: var(--muted);
    font-size: 12px;
}

/* =========================================
   SECTIONS
========================================= */

.section {
    padding: 90px 0;
}

.light-section {
    background: rgba(15, 12, 41, 0.5);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading h2 {
    color: #ffffff;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin: 8px 0 14px;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.section-heading p {
    color: var(--muted);
    font-size: 16px;
}

/* =========================================
   TESTER
========================================= */

.tester-section {
    background: transparent;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.info-card {
    padding: 22px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 14px;
    background: rgba(30, 20, 70, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(168, 85, 247, 0.1);
}

.info-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
}

.info-card strong {
    color: #ffffff;
    font-size: 22px;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
}

#statusDisplay {
    color: var(--success);
}

/* =========================================
   TEST AREA
========================================= */

.test-area {
    min-height: 190px;
    display: grid;
    place-items: center;
    border: 2px dashed rgba(0, 255, 255, 0.4);
    border-radius: 18px;
    background: rgba(30, 20, 70, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    outline: none;
    transition: 0.3s ease;
    margin-bottom: 30px;
}

.test-area:focus {
    border-color: var(--neon-cyan);
    box-shadow:
        0 0 25px rgba(0, 255, 255, 0.5),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
}

.test-message {
    text-align: center;
    padding: 30px;
}

.test-icon {
    font-size: 38px;
    margin-bottom: 5px;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.5));
}

.test-message h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 4px;
}

.test-message p {
    color: var(--muted);
}

/* ============================================
   KEYBOARD + DETAILS SECTION
============================================ */

.keyboard-details-section {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 25px;
    margin-top: 40px;
    align-items: start;
}

@media (max-width: 1100px) {
    .keyboard-details-section {
        grid-template-columns: 1fr;
    }
}

/* ---------- KEYBOARD WRAPPER ---------- */

.keyboard-wrapper-3d {
    padding: 18px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 18px;
    background: rgba(30, 20, 70, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow:
        0 5px 25px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(168, 85, 247, 0.1);
}

.keyboard-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.keyboard-title h3 {
    color: #ffffff;
    font-size: 20px;
}

.keyboard-title p {
    color: var(--muted);
    font-size: 13px;
}

.clear-button {
    padding: 9px 14px;
    border: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 8px;
    background: transparent;
    color: var(--neon-cyan);
    font-weight: 700;
    transition: 0.2s ease;
}

.clear-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* =========================================
   KEYBOARD
========================================= */

.keyboard {
    width: 100%;
    padding: 22px 25px;
    border-radius: 18px;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 50%, #0f0c29 100%);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, 0.06),
        inset 0 -4px 0 rgba(0, 0, 0, 0.5),
        0 0 40px rgba(168, 85, 247, 0.15),
        0 20px 50px rgba(0, 0, 0, 0.7),
        0 0 100px rgba(0, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(168, 85, 247, 0.15);
    box-sizing: border-box;
}

.keyboard::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        #a855f7 15%,
        #00ffff 35%,
        #ec4899 55%,
        #00ffff 75%,
        #a855f7 90%,
        transparent 100%);
    border-radius: 2px;
    box-shadow:
        0 0 15px rgba(0, 255, 255, 0.8),
        0 0 25px rgba(168, 85, 247, 0.6);
    opacity: 0.85;
}

/* =========================================
   KEYBOARD ROWS
========================================= */

.keyboard-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    margin-bottom: 7px;
}

.keyboard-row:last-child {
    margin-bottom: 0;
}

.arrow-row {
    justify-content: center;
    gap: 6px;
}

.arrow-spacer {
    width: 60px;
}

/* =========================================
   KEYS
========================================= */

.key {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-bottom: 3px solid rgba(0, 0, 0, 0.6);
    border-radius: 8px;
    background: linear-gradient(180deg, #3d3d5c 0%, #2a1a4a 45%, #1f1238 100%);
    color: #e0e0ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 1px 0 0 rgba(255, 255, 255, 0.05),
        inset -1px 0 0 rgba(0, 0, 0, 0.2),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 6px rgba(168, 85, 247, 0.1);
    transition:
        transform 0.08s ease,
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
    position: relative;
    cursor: pointer;
    user-select: none;
}

.key::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 6px;
    right: 6px;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 100%);
    border-radius: 4px;
    pointer-events: none;
}

.key:hover {
    background: linear-gradient(180deg, #4c4c7a 0%, #3b2560 45%, #2a1a4a 100%);
    border-color: rgba(0, 255, 255, 0.6);
    border-bottom-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 255, 0.5),
        0 0 30px rgba(0, 255, 255, 0.2);
    transform: translateY(-1px);
    z-index: 10;
}

.key.active {
    background: linear-gradient(180deg, #00ffff 0%, #a855f7 50%, #7e22ce 100%);
    color: #ffffff;
    border-color: #00ffff;
    border-bottom-color: #7e22ce;
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2),
        0 0 25px rgba(0, 255, 255, 0.9),
        0 0 45px rgba(168, 85, 247, 0.7),
        0 0 70px rgba(0, 255, 255, 0.4);
    transform: translateY(2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    z-index: 5;
}

/* Special key widths */

.key-small {
    flex: 0 0 auto;
    min-width: 60px;
}

.key-medium {
    flex: 0 0 auto;
    min-width: 65px;
}

.key-wide {
    flex: 2 1 auto;
    min-width: 90px;
}

.key-extra-wide {
    flex: 2.5 1 auto;
    min-width: 110px;
}

.key-space {
    flex: 8 1 auto;
    min-width: 200px;
}

.arrow-key {
    flex: 0 0 auto;
    min-width: 50px;
}

/* =========================================
   CONTENT CARDS
========================================= */

.content-card {
    padding: 30px;
    margin-top: 22px;
    background: rgba(30, 20, 70, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(168, 85, 247, 0.08);
}

.content-card h3 {
    color: #ffffff;
    font-size: 22px;
    margin-bottom: 12px;
}

.content-card p {
    color: var(--text);
    margin-bottom: 15px;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.check-list {
    padding-left: 20px;
}

.check-list li {
    margin-bottom: 10px;
    color: var(--text);
}

/* =========================================
   STEPS
========================================= */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step-card {
    padding: 25px;
    background: rgba(30, 20, 70, 0.7);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(0, 255, 255, 0.3);
}

.step-number {
    display: inline-block;
    color: var(--neon-cyan);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.step-card h3 {
    color: #ffffff;
    font-size: 19px;
    margin-bottom: 8px;
}

.step-card p {
    color: var(--muted);
    font-size: 14px;
}

/* =========================================
   PROBLEMS
========================================= */

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.problem-card {
    padding: 27px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius);
    background: rgba(30, 20, 70, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 25px rgba(0, 255, 255, 0.3);
}

.problem-card h3 {
    color: #ffffff;
    font-size: 19px;
    margin-bottom: 9px;
}

.problem-card p {
    color: var(--muted);
    font-size: 14px;
}

/* =========================================
   FAQ
========================================= */

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list details {
    padding: 20px 22px;
    margin-bottom: 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 12px;
    background: rgba(30, 20, 70, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.2s ease;
}

.faq-list details:hover {
    border-color: rgba(0, 255, 255, 0.4);
}

.faq-list summary {
    cursor: pointer;
    color: #ffffff;
    font-weight: 700;
}

.faq-list summary:hover {
    color: var(--neon-cyan);
}

.faq-list details p {
    padding-top: 14px;
    color: var(--muted);
    font-size: 15px;
}

/* =========================================
   CONTACT
========================================= */

.contact-section {
    padding-top: 55px;
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 35px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(0, 255, 255, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2);
}

.contact-card h2 {
    color: #ffffff;
    font-size: 28px;
    margin: 5px 0 8px;
}

.contact-card p {
    max-width: 700px;
    color: var(--muted);
}

/* =========================================
   FOOTER
========================================= */

.site-footer {
    background: #0a0820;
    color: white;
    padding-top: 50px;
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

.footer-content h3 {
    margin-bottom: 8px;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.5);
}

.footer-content p {
    max-width: 400px;
    color: #94a3b8;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    justify-content: flex-end;
    gap: 10px 20px;
}

.footer-links a {
    color: #a5b4fc;
    font-size: 14px;
    transition: 0.2s ease;
}

.footer-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.footer-bottom {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(168, 85, 247, 0.15);
}

.footer-bottom p {
    color: #64748b;
    font-size: 13px;
}
/* ============================================
   DETAILS PANEL
============================================ */

.details-panel {
    background: rgba(30, 20, 70, 0.75);
    border-radius: 16px;
    padding: 25px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 90px;
}

@media (max-width: 1100px) {
    .details-panel {
        position: static;
    }
}

.details-header h3 {
    color: #ffffff;
    margin: 6px 0;
    font-size: 22px;
}

.details-header p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ---------- MINI 3D PREVIEW ---------- */

.mini-3d-preview {
    display: flex;
    justify-content: center;
    perspective: 1000px;
    margin-bottom: 25px;
    padding: 25px 0 15px;
    background: linear-gradient(180deg, rgba(15, 12, 41, 0.8) 0%, rgba(30, 20, 70, 0.4) 100%);
    border-radius: 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    overflow: hidden;
}

.mini-keyboard {
    transform: rotateX(28deg) rotateY(-8deg) rotateZ(2deg);
    transform-style: preserve-3d;
    background: linear-gradient(145deg, #2a1a4a, #1a1030);
    padding: 14px 18px;
    border-radius: 10px;
    box-shadow:
        0 25px 40px rgba(0, 0, 0, 0.6),
        0 10px 20px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(168, 85, 247, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    cursor: pointer;
}

.mini-keyboard:hover {
    transform: rotateX(8deg) rotateY(0deg) rotateZ(0deg) scale(1.05);
    box-shadow:
        0 30px 50px rgba(0, 0, 0, 0.7),
        0 15px 25px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(0, 255, 255, 0.4);
}

.mini-row {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    justify-content: center;
}

.mini-row:last-child {
    margin-bottom: 0;
}

.mini-row span {
    width: 16px;
    height: 16px;
    background: linear-gradient(180deg, #4c1d95, #2a1a4a);
    border-radius: 3px;
    display: inline-block;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 2px 0 rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.mini-row .mini-esc { width: 22px; }
.mini-row .mini-tab { width: 28px; }
.mini-row .mini-caps { width: 32px; }
.mini-row .mini-shift { width: 34px; }
.mini-row .mini-enter {
    width: 28px;
    background: linear-gradient(180deg, #00ffff, #0891b2);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 2px 0 rgba(0, 0, 0, 0.5),
        0 0 8px rgba(0, 255, 255, 0.5);
}
.mini-row .mini-ctrl { width: 20px; }
.mini-row .mini-space { width: 110px; }

/* ---------- FORM ---------- */

.details-form .form-group {
    margin-bottom: 14px;
}

.details-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 5px;
}

.details-form input,
.details-form select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(15, 12, 41, 0.8);
    transition: border 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
    color: #e0e0ff;
}

.details-form input::placeholder {
    color: #6b7280;
}

.details-form input:focus,
.details-form select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    background: rgba(30, 20, 70, 0.9);
}

.details-form select option {
    background: #1a1030;
    color: #e0e0ff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ---------- BATTERY SECTION ---------- */

.battery-section {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px;
    padding: 14px;
    margin: 16px 0;
    animation: fadeIn 0.3s ease;
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.05);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.battery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--neon-cyan);
}

.battery-header strong {
    color: var(--neon-cyan);
    font-size: 16px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.6);
}

.battery-slider {
    width: 100%;
    accent-color: var(--neon-cyan);
    cursor: pointer;
    margin: 5px 0;
}

.battery-bar-wrapper {
    width: 100%;
    height: 10px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-top: 8px;
}

.battery-bar {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    transition: width 0.3s ease, background 0.3s ease;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
}

.battery-note {
    font-size: 12px;
    color: var(--neon-cyan);
    margin-top: 8px;
    text-align: center;
    font-weight: 600;
}

/* ---------- FORM ACTIONS ---------- */

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.form-actions button {
    flex: 1;
    min-width: 90px;
    padding: 10px 12px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    font-family: inherit;
}

.form-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.form-actions .primary-button {
    background: linear-gradient(135deg, #a855f7, #6366f1);
    color: white;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.form-actions .primary-button:hover {
    background: linear-gradient(135deg, #9333ea, #4f46e5);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.8);
}

.form-actions .secondary-button {
    background: rgba(30, 20, 70, 0.7);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 255, 255, 0.4);
}

.form-actions .secondary-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* =========================================
   PRINT STYLES
========================================= */

@media print {
    .site-header,
    .site-footer,
    .hero,
    .test-area,
    .info-grid,
    .form-actions,
    .keyboard-title,
    .menu-button,
    .navigation,
    .battery-slider {
        display: none !important;
    }

    .keyboard-details-section {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .details-panel {
        position: static;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {
    .keyboard-details-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1000px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-card {
        max-width: 650px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .navigation {
        gap: 0;
    }

    .navigation a {
        padding: 8px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .nav-container {
        min-height: 64px;
    }

    .menu-button {
        display: block;
    }

    .navigation {
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        background: rgba(15, 12, 41, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }

    .navigation.open {
        display: flex;
    }

    .navigation a {
        padding: 12px;
        border-radius: 8px;
    }

    .hero {
        padding: 65px 0;
    }

    .hero h1 {
        font-size: 43px;
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section {
        padding: 65px 0;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid,
    .problem-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .keyboard-wrapper-3d {
        padding: 12px;
    }

    .details-panel {
        padding: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 37px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-card {
        padding: 25px;
    }

    .content-card {
        padding: 22px;
    }

    .keyboard-title {
        align-items: flex-start;
        flex-direction: column;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}
