/* AutoTools: dark electronic portal, requested 18.10.2026. */
:root {
    color-scheme: dark;
    --bg: #030812;
    --paper: #0c1825;
    --ink: #edf7fb;
    --muted: #adc1d0;
    --blue: #71deef;
    --line: #243e50;
    --soft: #10283a;
}
body {
    background: radial-gradient(ellipse at 50% 410px, #0c3459 0, #061429 36%, #02060e 76%);
    background-attachment: fixed;
}
.page-home {
    background-image: url('circuit-field.svg'), radial-gradient(ellipse at 50% 470px, #11517c 0, #071b36 30%, #02060e 72%);
    background-size: 1600px auto, cover;
    background-position: center 70px, center;
    background-repeat: no-repeat;
}
.container, .header-inner, .site-footer { width: min(1360px, calc(100% - 96px)); }
.site-header { background: transparent; border: 0; }
.header-inner { height: 128px; min-height: 0; padding: 0; flex-wrap: nowrap; gap: 24px; }
.brand { color: #b6e4ed; font-size: 35px; letter-spacing: -.8px; gap: 14px; }
.brand-symbol { width: 47px; height: 52px; border-radius: 12px; color: #87e9f6; background: #103148; border: 1px solid #4b96aa; box-shadow: 0 0 20px #4bd9ff1a; }
.brand-symbol svg { width: 29px; height: 29px; }
.brand small { color: #9ab9ca; font-size: 9px; letter-spacing: 1.5px; }
.header-actions { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.button { font-size: 15px; }
.button-small { font-size: 14px; }
.button-primary { background: #146a9c; color: #fff; border-color: #2e9fc0; box-shadow: 0 4px 15px #001a2b55; }
.button-primary:hover { background: #1c80b2; border-color: #7ce9f5; }
.button-outline { background: #0e2735; color: #e8f5fb; border-color: #759da9; }
.button-outline:hover { background: #163749; border-color: #a0eff5; box-shadow: 0 0 20px #53d4f72b; }
.header-account { min-height: 56px; padding: 15px 25px; border-radius: 40px; border: 2px solid #a8c9d1; font-size: 16px; box-shadow: 0 0 8px #8cecf84a, 0 0 27px #56e4f740; }
.language-switch { gap: 3px; padding: 5px; margin: 0; border: 1px solid #608592; border-radius: 30px; background: #0e2533; font-size: 14px; }
.language-switch a { display: grid; place-items: center; min-width: 41px; min-height: 37px; border-radius: 24px; color: #b4cbd5; }
.language-switch a[aria-current] { color: #f2fcff; background: #224657; }
.header-cart { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 58px; min-height: 46px; color: #c9e9f2; font-size: 15px; }
.header-cart:hover { color: #7ee8f7; }
.portal { padding-top: 46px; padding-bottom: 68px; }
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 50px 48px; }
.portal-card {
    min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 38px 24px 34px; border: 1px solid #70a8b5; border-radius: 28px;
    background: linear-gradient(145deg, #0b151e 20%, #101f2d);
    box-shadow: 0 0 0 1px #85dce329, 0 0 22px #5ddff33b, inset 0 1px 0 #b1eff31c;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.portal-card:hover { transform: translateY(-5px); border-color: #bdffff; box-shadow: 0 0 0 1px #9cf6fa40, 0 0 34px #5ee7ff66; }
.portal-image { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 16px; background: #050d17; }
.portal-card h2 { margin-top: 24px; font-size: clamp(20px, 1.85vw, 27px); line-height: 1.3; letter-spacing: -.025em; text-align: center; color: #f0f7fb; overflow-wrap: anywhere; }
.home-adapters { margin-top: 82px; padding-top: 42px; border-top: 1px solid #4d8aa84a; }
.adapters-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.adapters-heading .eyebrow { color: #75ccdf; font-size: 12px; }
.adapters-heading h2 { font-size: 32px; margin: 8px 0 12px; }
.adapters-heading .muted { font-size: 18px; line-height: 1.65; }
.home-products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.home-products .product-copy { padding: 20px; }
.home-products .product-buy { align-items: flex-start; }
.home-products .product-copy h2 { font-size: 21px; overflow-wrap: anywhere; }
.adapters-empty { padding: 40px 24px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: #0a1928b8; }
.adapters-empty .category-icon { margin-bottom: 16px; }
.adapters-empty p { margin: 12px auto 0; max-width: 540px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.shop-nav { background: #0b1924; color: #c9dfe9; border-color: var(--line); font-size: 14px; flex-wrap: wrap; }
.service-panel, .auth-panel, .panel, .stat-card, .orders-section, .product-card { background: #0c1926; border-color: #28495d; }
.product-card { border-radius: 20px; box-shadow: 0 6px 30px #00000026; }
.product-photo { background: #081420; color: #88adbf; }
.product-photo small { font-size: 14px; }
.product-photo img, .product-gallery img { background: #f6f8fa; }
.product-copy .muted, .dashboard-heading .muted, .auth-panel>.muted, .account-banner p, .hero-description { color: #adc1d0; }
.eyebrow { color: #9bb6c9; }
.text-link, .back-link, .dashboard-bottom a, .auth-aside ul { color: #a7cede; }
.text-link:hover, .back-link:hover { color: #83ecf7; }
.notice, .demo-banner { color: #c0d9e6; background: #102b3e; border-color: #2b536c; }
label { color: #c6d9e5; font-size: 14px; }
input, select, textarea { color: #eff8fc; background: #07131e; border-color: #38566a; font-size: 16px; }
input::placeholder, textarea::placeholder { color: #859dac; }
input:disabled { background: #17232e; }
input[type=file] { max-width: 100%; }
.auth-switch, .auth-security { color: #9bb6c9; font-size: 13px; }
.auth-aside li { font-size: 15px; }
.auth-switch { font-size: 15px; }
.forgot-link { font-size: 14px; }
.form-error { background: #401d29; color: #ffc6c5; font-size: 15px; }
.form-success { background: #123a32; color: #b1efd4; font-size: 15px; }
.category-icon { background: #183347; color: #87d9ed; }
.tone-orange { background: #3d3026; color: #efb57b; }
.tone-violet { background: #2e2947; color: #c0b2f0; }
.tone-green, .tone-teal { background: #153832; color: #8bdbbd; }
.empty-state h3, .empty-state { color: #b2c9d6; }
.empty-state h2 { color: #e1f2f8; }
th { background: #102434; color: #acbfcd; border-color: #233c4f; font-size: 12px; }
td { border-color: #233c4f; font-size: 14px; }
td strong { font-size: 14px; }
td small { color: #9fb6c5; font-size: 12px; }
.orders-toolbar h2>span { background: #1c3a50; color: #bad7e6; }
.table-footer, .dashboard-bottom { color: #9db9cd; font-size: 12px; }
.admin-order .order-editor, .csv-columns { background: #07131e; }
.payment-paid { background: #183c34; color: #a1e9c6; }
.payment-unpaid { background: #40351f; color: #f1cc88; }
.payment-partial { background: #243858; color: #b4ccff; }
.status-in_progress { color: #86baff; }
.status-completed { color: #8ed8b8; }
.status-cancelled { color: #d6b8bd; }
.order-status { font-size: 13px; }
.skip-link { background: #0c2839; }
.site-footer { color: #a0bbcd; font-size: 13px; }
.site-footer a { color: #a8d7e6; }
@media (max-width: 1150px) {
    .container, .header-inner, .site-footer { width: calc(100% - 64px); }
    .portal-grid { gap: 32px 24px; }
    .portal-card { padding: 28px 18px; border-radius: 24px; }
    .portal-card h2 { font-size: 21px; }
    .header-actions { gap: 16px; }
    .header-account { padding-inline: 20px; }
    .home-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
    .header-inner { height: auto; min-height: 118px; padding-block: 22px; flex-wrap: wrap; }
    .brand { font-size: 29px; }
    .brand small { display: none; }
    .portal { padding-top: 28px; }
    .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
    .portal-card { padding: 28px; }
    .portal-card h2 { font-size: 25px; }
    .home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .adapters-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 600px) {
    .container, .header-inner, .site-footer { width: calc(100% - 36px); }
    .header-inner { justify-content: center; gap: 22px; padding-top: 26px; padding-bottom: 18px; }
    .brand { font-size: 31px; }
    .brand-symbol { width: 40px; height: 44px; }
    .header-actions { width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; }
    .header-account { min-height: 46px; font-size: 14px; padding: 11px 14px; gap: 7px; border-width: 1px; }
    .header-account svg { display: none; }
    .language-switch { padding: 3px; font-size: 13px; }
    .language-switch a { min-width: 35px; min-height: 35px; }
    .header-cart { min-width: 39px; gap: 5px; }
    .portal { padding-top: 24px; padding-bottom: 42px; }
    .portal-grid { gap: 20px 14px; }
    .portal-card { padding: 19px 12px 22px; border-radius: 19px; }
    .portal-image { border-radius: 10px; }
    .portal-card h2 { font-size: 18px; margin-top: 18px; line-height: 1.4; }
    .home-adapters { margin-top: 45px; padding-top: 30px; }
    .adapters-heading h2 { font-size: 28px; }
    .adapters-heading .muted { font-size: 18px; }
    .home-products { grid-template-columns: 1fr; }
    .home-products .product-copy { padding: 24px; }
    .shop-nav { gap: 18px; font-size: 13px; }
    .site-footer { flex-wrap: wrap; }
}
@media (max-width: 360px) {
    .header-actions { flex-wrap: wrap; justify-content: center; gap: 10px; }
    .header-account { font-size: 13px; padding-inline: 12px; }
    .portal-grid { grid-template-columns: 1fr; gap: 24px; }
    .portal-card { padding: 28px; border-radius: 24px; }
    .portal-card h2 { font-size: 24px; }
}
