/* ===================== DEFAULT THEME (CURRENT) ===================== */

:root {
    --bg: #0f0f0f;
    --text: #e5e5e5;

    --header-bg: #181818;
    --header-border: #333;

    --card-bg: #181818;
    --card-bg-alt: #1a1a1a;
    --card-shadow: rgba(0,0,0,0.4);

    --input-bg: #1a1a1a;
    --input-border: #333;
    --input-focus: #cc6a00;
    --input-focus-glow: rgba(204, 106, 0, 0.5);

    --btn-orange-bg: #cc6a00;
    --btn-orange-hover: #e07a00;
    --btn-red-bg: #b30000;
    --btn-red-hover: #cc0000;

    --scrollbar-thumb: #444;
    --scrollbar-track: #1a1a1a;

    --mobile-menu-bg: #111;

    --motor-item-bg: #1a1a1a;
    --motor-item-hover: #222;
    --motor-icon-bg: #333;
}

/* ===================== CYBERPUNK GLASS NEON THEME ===================== */

:root.cyberpunk {
    --bg: rgba(5, 5, 15, 0.85);
    --text: #d6baff;

    --header-bg: rgba(10, 10, 25, 0.55);
    --header-border: rgba(120, 80, 255, 0.35);

    --card-bg: rgba(20, 20, 40, 0.28);
    --card-bg-alt: rgba(25, 25, 55, 0.28);
    --card-shadow: rgba(150, 80, 255, 0.35);

    --input-bg: rgba(20, 20, 40, 0.28);
    --input-border: rgba(150, 80, 255, 0.35);
    --input-focus: #8f5bff;
    --input-focus-glow: rgba(150, 80, 255, 0.55);

    --btn-orange-bg: #8f5bff;
    --btn-orange-hover: #a06cff;
    --btn-red-bg: #ff0066;
    --btn-red-hover: #ff3385;

    --scrollbar-thumb: rgba(150, 80, 255, 0.45);
    --scrollbar-track: rgba(20, 20, 40, 0.4);

    --mobile-menu-bg: rgba(10, 10, 25, 0.55);

    --motor-item-bg: rgba(30, 20, 50, 0.28);
    --motor-item-hover: rgba(60, 40, 90, 0.45);
    --motor-icon-bg: rgba(80, 40, 120, 0.35);

    --glass-blur: 18px;

    --neon-blue: #00eaff;
    --neon-purple: #b400ff;

    --fog-purple: rgba(150, 80, 255, 0.25);
    --fog-blue: rgba(0, 150, 255, 0.25);
}


/* ============================================================
   ===============   GLOBAL RESET & BASE   =====================
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0f0f0f;
    color: #e5e5e5;
    font-family: "Inter", sans-serif;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}

/* Fade */
.fade { opacity: 0; transition: opacity .25s ease; }
.show { opacity: 1; }

/* ============================================================
   =====================   HEADER   ============================
   ============================================================ */

#main_header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    background: #181818;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    z-index: 3000;
}

#main_header button {
    background: #222;
    border: 1px solid #333;
    color: #ddd;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: .2s;
}

#main_header button:hover {
    background: #333;
    color: #fff;
}

#main_header .nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

#main_header img#user_avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid #333;
}

/* Burger */
#burger {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: #fff;
}

/* ============================================================
   =====================   MOBILE MENU   =======================
   ============================================================ */

#mobile_menu {
    position: fixed;
    top: 0;
    right: -260px;
    width: 260px;
    height: 100vh;
    background: #111;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: right .3s ease;
    z-index: 2500;
}

#mobile_menu button {
    background: #222;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    text-align: left;
}

#menu_overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index: 2000;
}

/* Hide desktop buttons when menu open */
.hide-buttons {
    opacity: 0;
    
}

/* ============================================================
   =====================   MAIN APP   ==========================
   ============================================================ */

.site-wrapper {
    padding-top: 70px; /* compensate fixed header */
}

#app {
    max-width: 1100px;
    margin: 20px auto;
    padding: 20px;
}

/* ============================================================
   =====================   MODAL   =============================
   ============================================================ */

#modal_bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#modal_box {
    background: rgba(30,30,30,0.9);
    padding: 25px;
    border-radius: 14px;
    width: 90%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 0 25px rgba(0,0,0,0.6);
    transform: scale(0.8);
    opacity: 0;
    transition: .2s;
}

#modal_text {
    font-size: 18px;
    margin-bottom: 20px;
}

.modal-btn-ok,
.modal-btn-cancel {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin: 5px;
    font-size: 15px;
}

.modal-btn-ok {
    background: #cc6a00;
    color: #fff;
}

.modal-btn-cancel {
    background: #444;
    color: #fff;
}

/* ============================================================
   =====================   PHOTO MODAL   =======================
   ============================================================ */

.photo-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9000;
}

.photo-full {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.photo-close {
    position: absolute;
    top: 20px; right: 20px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.photo-prev,
.photo-next {
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.photo-prev { left: 20px; }
.photo-next { right: 20px; }

/* ============================================================
   =====================   SKELETONS   =========================
   ============================================================ */

.skeleton {
    background: linear-gradient(90deg, #222, #333, #222);
    background-size: 200% 100%;
    animation: skeleton 1.2s infinite;
    border-radius: 6px;
}

.skeleton-photo {
    width: 90px;
    height: 90px;
    border-radius: 10px;
}

@keyframes skeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================================
   =====================   ADAPTIVE   ==========================
   ============================================================ */

@media(max-width: 900px) {
    #app {
        margin: 10px;
        padding: 15px;
    }
}

@media(max-width: 768px) {
    #burger { display: block; }
    .nav-right { display: none; }
}

@media(max-width: 480px) {
    #main_header button {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* ============================================================
   =====================   BUTTONS   ===========================
   ============================================================ */

.btn-orange {
    background: #cc6a00;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: .2s;
}
.btn-orange:hover {
    background: #e07a00;
}

.btn-red {
    background: #b30000;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: .2s;
}
.btn-red:hover {
    background: #cc0000;
}

.btn-file-orange {
    background: #cc6a00;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-block;
}


/* ============================================================
   =====================   CARDS   =============================
   ============================================================ */

.app-card {
    background: #181818;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
    margin-bottom: 20px;
}

.app-card-wide {
    background: #181818;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}


/* ============================================================
   =====================   MOTOR PHOTOS   ======================
   ============================================================ */

.motor-photo {
    width: 150px;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
}

.photo-item {
    display: inline-block;
    position: relative;
    margin: 6px;
}


/* ============================================================
   =====================   FLIP CLOCK   ========================
   ============================================================ */

.flip-clock {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.flip-unit {
    text-align: center;
}

.flip-label {
    font-size: 14px;
    opacity: 0.7;
}

.flip {
    font-size: 32px;
    font-weight: bold;
    background: #222;
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-block;
    transition: .3s;
}

.flip.animate {
    transform: scale(1.15);
}


/* ============================================================
   =====================   FORECAST   ==========================
   ============================================================ */

.forecast-item {
    display: flex;
    justify-content: space-between;
    background: #1a1a1a;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 6px 0;
}


/* ============================================================
   =====================   OWNER CARD   ========================
   ============================================================ */

.motor-owner-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    padding: 12px;
    border-radius: 10px;
    margin: 20px 0;
}

.owner-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.owner-info {
    display: flex;
    flex-direction: column;
}


/* ============================================================
   =====================   NOTES COUNTER   =====================
   ============================================================ */

.notes-counter {
    text-align: right;
    font-size: 14px;
    margin-top: 4px;
    opacity: 0.8;
}

.notes-pulse {
    animation: pulse 0.4s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to   { transform: scale(1.05); }
}

.notes-glow {
    text-shadow: 0 0 6px #ff7a00;
}


/* ============================================================
   =====================   MOTOR LIST   ========================
   ============================================================ */

.motor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1a1a1a;
    padding: 12px;
    border-radius: 10px;
    margin: 8px 0;
    cursor: pointer;
    transition: .2s;
}

.motor-item:hover {
    background: #222;
}

.motor-icon {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 8px;
}

.motor-text {
    display: flex;
    flex-direction: column;
}

#map_all {
    height: 400px;
    border-radius: 12px;
    margin-top: 10px;
}
/* ============================================================
   =====================   PROFILE AVATAR   ====================
   ============================================================ */

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #333;
    display: block;
    margin: 0 auto 15px auto;
}
input[type="file"] {
    display: none;
}
/* =====================  ADD PAGE INPUTS  ===================== */

.add-motor-card input.input-text,
.add-motor-card textarea.input-text {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px 14px;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    outline: none;
    transition: 0.2s;
}

.add-motor-card input.input-text:focus,
.add-motor-card textarea.input-text:focus {
    border-color: #cc6a00;
    box-shadow: 0 0 8px rgba(204, 106, 0, 0.5);
}

.add-motor-card textarea.input-text {
    min-height: 90px;
    resize: vertical;
}

/* Поля в одной строке */
.motor-row {
    display: flex;
    gap: 12px;
}

.motor-row input {
    flex: 1;
}
.btn-center {
    text-align: center;
    width: 100%;
}
.btn-center .btn-orange {
    min-width: 160px;
}
/* =====================  UNIVERSAL INPUT STYLE  ===================== */

.input-text,
.page input,
.page textarea {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 12px 14px;
    border-radius: 10px;
    color: #fff;
    font-size: 16px;
    margin-bottom: 12px;
    outline: none;
    transition: 0.2s;
}

.page input:focus,
.page textarea:focus {
    border-color: #cc6a00;
    box-shadow: 0 0 8px rgba(204, 106, 0, 0.5);
}

.page textarea {
    min-height: 90px;
    resize: vertical;
}

/* Чтобы подписи выглядели аккуратно */
.page label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #ddd;
}
/* Десктоп: всё как есть */
#burger {
    display: none;
}

/* Мобильная версия */
@media (max-width: 768px) {

    /* Оставляем только MAIN слева */
    .nav-right {
        display: none;
    }

    /* Показываем бургер */
    #burger {
        display: block;
        font-size: 26px;
        cursor: pointer;
    }
}
#mobile_menu {
    top: 60px; /* или точная высота твоей шапки */
}
@media (max-width: 768px) {

    /* скрываем всё справа: ADD, FIND, MAP, PROFILE, LOGOUT, AVATAR */
    #main_header .nav-right {
        display: none !important;
    }

    /* показываем бургер */
    #burger {
        display: block !important;
    }
}
.main-buttons {
    display: flex;
    gap: 42px; /* расстояние между кнопками */
    justify-content: center; /* по центру */
    margin-top: 20px;
}
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: cover;
}
.hero-img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    object-fit: cover;

    /* вот эти две строки — ключевые */
    min-width: 280px;
    min-height: 180px;
}
.motor-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #333;
    cursor: pointer;
}

.motor-icon {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    background: #222;
    flex-shrink: 0;
}

.motor-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.motor-text {
    margin-left: 12px;
    display: flex;
    flex-direction: column;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.65);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease-out;
}

.modal-box {
    background: #1e1e1e;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    color: #fff;

    /* 🔥 Красная драматичная рамка */
    border: 2px solid #ff3b3b;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);

    animation: popIn 0.25s ease-out;
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.modal-buttons button {
    width: 48%;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0 }
    to   { opacity: 1 }
}

@keyframes popIn {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}
/* Вибрация — быстрые микро‑движения */
.modal-vibrate {
    will-change: transform;
    transform: translateZ(0);
}

@keyframes phoneVibrate {
    0%   { transform: translate3d(0, 0, 0) }
    20%  { transform: translate3d(-2px, 1px, 0) }
    40%  { transform: translate3d(2px, -1px, 0) }
    60%  { transform: translate3d(-1px, 2px, 0) }
    80%  { transform: translate3d(1px, -2px, 0) }
    100% { transform: translate3d(0, 0, 0) }
}

.modal-vibrate.vibrate {
    animation: phoneVibrate 0.12s linear infinite;
    will-change: transform;
    transform: translateZ(0);
}
.form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap; /* чтобы на телефоне переносились */
}

.form-row > div {
    flex: 1;
    min-width: 120px; /* чтобы не исчезали */
}

.input-short {
    width: 100%; /* занимает ширину своего блока */
    padding: 6px 8px;
    box-sizing: border-box;
}
.info-cards {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.info-card {
    flex: 1;
    min-width: 140px;
    background: rgba(255,255,255,0.1);
    padding: 12px 15px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
}

.info-card.small {
    min-width: 120px;
}

.info-title {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 4px;
}

.info-value {
    font-size: 20px;
    font-weight: 600;
}

.forecast-cards .forecast-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    margin-bottom: 8px;
}
.motor-list {
    display: flex;
    flex-direction: column;
    gap: 4px; /* было 6–12px → стало меньше */
}

.motor-item {
    padding: 6px 10px; /* было 10–14px → уменьшено */
    background: rgba(255,255,255,0.08);
    border-radius: 8px; /* чуть меньше радиус */
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: 0.15s;
}

.motor-item:hover {
    background: rgba(255,255,255,0.15);
}

.motor-name {
    font-size: 14px; /* было 15–18px → компактнее */
    font-weight: 600;
    margin-bottom: 2px; /* меньше отступ */
}

.motor-info-row {
    display: flex;
    gap: 8px; /* было 10–15px */
    font-size: 12px; /* компактнее */
    opacity: 0.75;
    margin-bottom: 2px; /* уменьшено */
}

.motor-id {
    font-size: 10px; /* было 11–12px */
    opacity: 0.55;
}


.sort-row {
    display: flex;
    gap: 10px;
    margin: 10px 0 15px 0;
}
#map_all {
    height: 520px; /* было ~300, теперь выше */
    border-radius: 12px;
}
#map_add {
    height: 520px;
    border-radius: 12px;
}
.profile-card {
    padding: 25px;
    text-align: center;
}

.avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.avatar-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-name {
    margin: 8px 0 4px 0;
}

.email {
    opacity: 0.8;
    margin-bottom: 15px;
}

.file-upload {
    margin-bottom: 15px;
}
.stats-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 14px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.stat-item {
    background: rgba(255,255,255,0.08);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(6px);
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    opacity: 0.75;
}
.avatar-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.25);
    box-shadow:
        0 0 10px rgba(0, 200, 255, 0.6),
        0 0 20px rgba(0, 200, 255, 0.4),
        0 0 35px rgba(0, 200, 255, 0.25);
    transition: 0.3s ease;
}

.avatar-img:hover {
    box-shadow:
        0 0 15px rgba(0, 200, 255, 0.9),
        0 0 30px rgba(0, 200, 255, 0.7),
        0 0 45px rgba(0, 200, 255, 0.5);
    transform: scale(1.03);
}
.avatar-img {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 200, 255, 0.4);
    box-shadow:
        0 0 12px rgba(0, 200, 255, 0.6),
        0 0 25px rgba(0, 200, 255, 0.4),
        0 0 40px rgba(0, 200, 255, 0.25);
    animation: neonPulse 2.8s ease-in-out infinite;
}

/* Анимация пульсации */
@keyframes neonPulse {
    0% {
        box-shadow:
            0 0 10px rgba(0, 200, 255, 0.5),
            0 0 20px rgba(0, 200, 255, 0.3),
            0 0 35px rgba(0, 200, 255, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 18px rgba(0, 200, 255, 0.9),
            0 0 35px rgba(0, 200, 255, 0.6),
            0 0 55px rgba(0, 200, 255, 0.4);
        transform: scale(1.03);
    }
    100% {
        box-shadow:
            0 0 10px rgba(0, 200, 255, 0.5),
            0 0 20px rgba(0, 200, 255, 0.3),
            0 0 35px rgba(0, 200, 255, 0.2);
        transform: scale(1);
    }
}
.avatar-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 12px auto;
}

.avatar-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* Вращающееся неоновое кольцо */
.avatar-wrapper::before {
    content: "";
    position: absolute;
    top: -6px;
    left: -6px;
    width: 152px;
    height: 152px;
    border-radius: 50%;
    background: conic-gradient(
        rgba(255, 120, 0, 0.8) 0deg,
        rgba(0, 200, 255, 0.8) 90deg,
        rgba(0, 200, 255, 0.0) 180deg,
        rgba(0, 200, 255, 0.8) 270deg,
        rgba(0, 200, 255, 0.0) 360deg
    );
    filter: blur(12px);
    animation: neonRotate 4s linear infinite;
    z-index: 1;
}

/* Анимация вращения */
@keyframes neonRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.upload-progress {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 12px;
    display: none;
}

.upload-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #00eaff, #0088ff);
    transition: width 0.15s linear;
}

.upload-progress { width: 100%; height: 6px; background: rgba(255,255,255,0.15); border-radius: 4px; overflow: hidden; display: none; }

.uppercase {
    text-transform: uppercase;
}
@media (max-width: 600px) {
    .motor-row {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .motor-row-vertical {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
}
@media (max-width: 600px) {
    .profile-stats-title {
        font-size: 14px !important;
    }
}
@media (max-width: 600px) {
    .profile-stats-title {
        margin-bottom: 8px !important; /* уменьшаем отступ */
    }
}
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 25px;
}

.avatar-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-buttons {
    display: flex;
    gap: 10px;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}
@media (max-width: 600px) {

    .profile-header {
        flex-direction: column;
        align-items: center;
        gap: 18px;
    }

    .avatar-img {
        width: 140px;
        height: 140px;
    }

    .avatar-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 260px;
    }

    .avatar-buttons button {
        width: 100%;
    }

    .small-upload {
        width: 100%;
        max-width: 260px;
        text-align: center;
    }
}
/* Десктоп: EDIT по центру, BACK слева */
@media (min-width: 900px) {
    .btn-center {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 20px !important;
    }

    .btn-back {
        margin-left: 0;
    }

    .btn-edit {
        margin-right: auto;
        margin-left: auto; /* расстояние от BACK до EDIT */
    }
}

@media (max-width: 899px) {
    .btn-center {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }
}
/*       THEME cyberpunk

/* ===================== CYBERPUNK BACKGROUND — STATIC DEEP BLUE FOG ===================== */

:root.cyberpunk body {
    background:
        /* Верхний слой — яркий холодный синий туман */
        radial-gradient(circle at 30% 25%, rgba(0, 120, 255, 0.35), transparent 60%),
        radial-gradient(circle at 70% 75%, rgba(0, 80, 180, 0.32), transparent 60%),

        /* Нижний слой — глубокий тёмно-синий туман */
        radial-gradient(circle at 20% 120%, rgba(0, 30, 80, 0.45), transparent 70%),
        radial-gradient(circle at 80% -20%, rgba(0, 20, 50, 0.40), transparent 70%),

        /* Базовый чёрный фон */
        #02030a;

    background-size: 200% 200%;
    background-attachment: fixed; /* делает фон более глубоким */
}

/* Второй слой тумана — статичный */
:root.cyberpunk body::before {
    content: "";
    position: fixed;
    inset: 0;
   
    z-index: -1;

    background:
        radial-gradient(circle at 40% 60%, rgba(0, 100, 220, 0.22), transparent 65%),
        radial-gradient(circle at 60% 20%, rgba(0, 50, 120, 0.20), transparent 65%);

    background-size: 220% 220%;
    opacity: 0.55;
}

/* ===================== CYBERPUNK GLASS LINES ===================== */

:root.cyberpunk body::before,
:root.cyberpunk body::after {
    content: "";
    position: fixed;
    inset: -10%;
   
    background:
        linear-gradient(
            115deg,
            rgba(255, 255, 255, 0.08) 0%,
            rgba(255, 255, 255, 0.0) 40%,
            rgba(255, 255, 255, 0.08) 60%,
            rgba(255, 255, 255, 0.0) 100%
        );
    mix-blend-mode: screen;
    opacity: 0.18;
    transform: translate3d(0,0,0);
    animation: glassLines 15s linear infinite;
    z-index: -1;
}

:root.cyberpunk body::after {
    animation-direction: reverse;
    opacity: 0.12;
}

@keyframes glassLines {
    0% {
        transform: translate3d(-5%, -5%, 0);
    }
    50% {
        transform: translate3d(5%, 5%, 0);
    }
    100% {
        transform: translate3d(-5%, -5%, 0);
    }
}


/* ===================== CYBERPUNK GLASS CARDS ===================== */

.cyberpunk .app-card,
.cyberpunk .app-card-wide,
.cyberpunk .stats-card,
.cyberpunk .info-card,
.cyberpunk .forecast-item,
.cyberpunk .motor-item,
.cyberpunk .modal-box {
    background: var(--card-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--header-border);
    box-shadow: 0 0 25px var(--card-shadow);
}

.cyberpunk .btn-orange,
.cyberpunk .btn-file-orange {
    box-shadow: 0 0 12px var(--neon-purple);
}

.cyberpunk .btn-red {
    box-shadow: 0 0 12px var(--neon-blue);
}

.cyberpunk .motor-item:hover {
    box-shadow: 0 0 20px var(--neon-purple);
    transform: translateY(-2px);
}

.theme-icon {
    font-size: 22px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: .2s;
}
.theme-icon:hover {
    background: rgba(255,255,255,0.1);
}

.theme-btn-mobile {
    background: #222;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    margin-top: 10px;
    text-align: left;
    transition: .2s;
}

.theme-btn-mobile:hover {
    background: #333;
}

/* ===================== CYBERPUNK BUTTONS — DARK NEON BLUE ===================== */

:root.cyberpunk .btn-orange,
:root.cyberpunk .btn-file-orange,
:root.cyberpunk .header-btn,
:root.cyberpunk #theme_toggle,
:root.cyberpunk #theme_toggle_mobile {
    background: rgba(10, 20, 40, 0.45);
    border: 1px solid rgba(0, 120, 255, 0.45);
    color: #cfe8ff;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 12px rgba(0, 120, 255, 0.25);
    transition: 0.25s ease;
}

:root.cyberpunk .btn-orange:hover,
:root.cyberpunk .btn-file-orange:hover,
:root.cyberpunk .header-btn:hover,
:root.cyberpunk #theme_toggle:hover,
:root.cyberpunk #theme_toggle_mobile:hover {
    background: rgba(20, 40, 80, 0.55);
    border-color: rgba(0, 150, 255, 0.75);
    box-shadow: 0 0 18px rgba(0, 150, 255, 0.45);
    transform: translateY(-1px);
}

:root.cyberpunk .btn-red {
    background: rgba(40, 0, 0, 0.45);
    border: 1px solid rgba(255, 40, 40, 0.45);
    color: #ffb3b3;
    box-shadow: 0 0 12px rgba(255, 40, 40, 0.25);
}

:root.cyberpunk .btn-red:hover {
    background: rgba(60, 0, 0, 0.55);
    border-color: rgba(255, 60, 60, 0.75);
    box-shadow: 0 0 18px rgba(255, 60, 60, 0.45);
    transform: translateY(-1px);
}

/* ===================== CYBERPUNK HEADER — DARK NEON GLASS ===================== */

:root.cyberpunk header {
    background: rgba(5, 10, 25, 0.55);
    border-bottom: 1px solid rgba(0, 120, 255, 0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 0 18px rgba(0, 120, 255, 0.25);
}

:root.cyberpunk header h1 {
    color: #cfe8ff;
    text-shadow: 0 0 8px rgba(0, 120, 255, 0.4);
}

:root.cyberpunk .header-btn {
    background: rgba(10, 20, 40, 0.45);
    border: 1px solid rgba(0, 120, 255, 0.45);
    color: #cfe8ff;
    box-shadow: 0 0 12px rgba(0, 120, 255, 0.25);
}

:root.cyberpunk .header-btn:hover {
    background: rgba(20, 40, 80, 0.55);
    border-color: rgba(0, 150, 255, 0.75);
    box-shadow: 0 0 18px rgba(0, 150, 255, 0.45);
    transform: translateY(-1px);
}

/* ===================== CYBERPUNK BURGER MENU ===================== */

:root.cyberpunk #mobile_menu {
    background: rgba(5, 10, 25, 0.75);
    backdrop-filter: blur(18px);
    border-left: 1px solid rgba(0, 120, 255, 0.35);
    box-shadow: -4px 0 25px rgba(0, 120, 255, 0.25);
}

:root.cyberpunk #mobile_menu button {
    background: rgba(10, 20, 40, 0.45);
    border: 1px solid rgba(0, 120, 255, 0.45);
    color: #cfe8ff;
    box-shadow: 0 0 12px rgba(0, 120, 255, 0.25);
    transition: 0.25s ease;
}

:root.cyberpunk #mobile_menu button:hover {
    background: rgba(20, 40, 80, 0.55);
    border-color: rgba(0, 150, 255, 0.75);
    box-shadow: 0 0 18px rgba(0, 150, 255, 0.45);
    transform: translateX(3px);
}

/* Иконка бургера */
:root.cyberpunk #burger span {
    background: rgba(0, 120, 255, 0.8);
    box-shadow: 0 0 8px rgba(0, 120, 255, 0.5);
    transition: 0.25s ease;
}

:root.cyberpunk #burger:hover span {
    background: rgba(0, 150, 255, 1);
    box-shadow: 0 0 12px rgba(0, 150, 255, 0.7);
}

/* ===================== CYBERPUNK HEADER — FINAL OVERRIDE ===================== */

:root.cyberpunk header {
    background: rgba(5, 12, 28, 0.75) !important;
    backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(0, 120, 255, 0.45) !important;
    box-shadow: 0 0 22px rgba(0, 120, 255, 0.35) !important;
}

:root.cyberpunk header h1 {
    color: #cfe8ff !important;
    text-shadow: 0 0 10px rgba(0, 120, 255, 0.45) !important;
}

/* Кнопки в шапке */
:root.cyberpunk header .header-btn {
    background: rgba(10, 20, 40, 0.55) !important;
    border: 1px solid rgba(0, 120, 255, 0.45) !important;
    color: #cfe8ff !important;
    box-shadow: 0 0 14px rgba(0, 120, 255, 0.35) !important;
    backdrop-filter: blur(12px) !important;
}

:root.cyberpunk header .header-btn:hover {
    background: rgba(20, 40, 80, 0.65) !important;
    border-color: rgba(0, 150, 255, 0.75) !important;
    box-shadow: 0 0 20px rgba(0, 150, 255, 0.55) !important;
    transform: translateY(-1px);
}

/* Иконка бургера */
:root.cyberpunk #burger span {
    background: rgba(0, 120, 255, 0.9) !important;
    box-shadow: 0 0 10px rgba(0, 120, 255, 0.6) !important;
}

:root.cyberpunk #burger:hover span {
    background: rgba(0, 150, 255, 1) !important;
    box-shadow: 0 0 14px rgba(0, 150, 255, 0.8) !important;
}
/* ===================== CYBERPUNK — TOTAL MOTORS COUNTER ===================== */



:root.cyberpunk #motors_total {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.75rem;          /* маленький шрифт */
    font-weight: 600;
    color: #b7d9ff;

    padding: 3px 10px;
    border-radius: 20px;         /* форма чипа */
    background: rgba(10, 25, 50, 0.45);
    border: 1px solid rgba(0, 140, 255, 0.55);

    box-shadow: 0 0 10px rgba(0, 140, 255, 0.35);
    text-shadow: 0 0 6px rgba(0, 140, 255, 0.4);

    backdrop-filter: blur(8px);

    margin-left: auto;           /* прижимает вправо */
    margin-top: 10px;
    margin-right: 5px;           /* чуть ближе к правому краю */

    letter-spacing: 0.5px;
    white-space: nowrap;

    transition: 0.25s ease;
}

:root.cyberpunk #motors_total:hover {
    background: rgba(20, 45, 80, 0.55);
    border-color: rgba(0, 170, 255, 0.85);
    box-shadow: 0 0 14px rgba(0, 170, 255, 0.55);
    transform: translateY(-1px);
}

.main-buttons {
    position: relative;
    display: flex;
    flex-direction: row;      /* ← кнопки снова горизонтально */
    justify-content: center;  /* ← центрируем */
    align-items: center;
    gap: 15px;                /* расстояние между кнопками */
}

/* Чип в правом верхнем углу */
#motors_total {
    position: absolute;
    top: -5px;
    right: -5px;
}
/* ===================== DEFAULT THEME — TOTAL MOTORS COUNTER ===================== */
/* ===================== DEFAULT THEME — MINI CHIP COUNTER ===================== */

#motors_total {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 0.75rem;
    font-weight: 600;
    color: #333;

    padding: 3px 10px;
    border-radius: 20px;

    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.15);

    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15);

    backdrop-filter: blur(6px);

    position: absolute;
    top: -5px;
    right: -5px;

    white-space: nowrap;
    letter-spacing: 0.3px;

    transition: 0.25s ease;
}

#motors_total:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

/* ===================== USER RANING ===================== */

/* Контейнер списка */
.users-ranking-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Строка пользователя */
.user-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(0,0,0,0.1);
}

/* Аватар */
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Информация */
.user-info {
    flex: 1;
}

/* Имя */
.user-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Дата */
.user-date {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 6px;
}

/* Полоска */
.user-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.user-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fa3ff, #0066ff);
    border-radius: 6px;
    transition: width 0.4s ease;
}

/* Количество моторов */
.user-count {
    font-size: 1rem;
    font-weight: 700;
    width: 40px;
    text-align: right;
}

@media (max-width: 480px) {

    .stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        width: 100%;
    }

    .stat-item {
        padding: 12px;
        background: rgba(255,255,255,0.05);
        border-radius: 10px;
        text-align: center;
    }

    .stat-value {
        font-size: 1.3rem;
        line-height: 1.2;
        word-break: break-word;
    }

    .stat-label {
        font-size: 0.75rem;
        opacity: 0.8;
    }
}

.stats-grid,
.stat-item {
    min-width: 0; /* iOS Safari fix */
}


/* ===================== USER RANING DIV ===================== */

/* ===== USERS RANKING CONTAINER ===== */

.users-ranking-container {
    margin-top: 40px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255,255,255,0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.1);
}

.users-ranking-title {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.85;
}

/* ===== USERS LIST ===== */

.users-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ===== USER ROW ===== */

.user-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    border: 1px solid rgba(0,0,0,0.1);
    backdrop-filter: blur(6px);
}

/* Avatar */
.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* Info block */
.user-info {
    flex: 1;
}

/* Name */
.user-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Registration date */
.user-date {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-bottom: 6px;
}

/* Progress bar */
.user-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 6px;
    overflow: hidden;
}

.user-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fa3ff, #0066ff);
    border-radius: 6px;
    transition: width 0.4s ease;
}

/* Motors count */
.user-count {
    font-size: 1rem;
    font-weight: 700;
    width: 40px;
    text-align: right;
}
.user-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fa3ff, #0066ff);
    border-radius: 6px;
    width: 0;                     /* стартовое значение */
    transition: width 0.8s ease;  /* плавная анимация */
}
.user-role {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* admin — красный */
.user-role.admin {
    background: rgba(255, 80, 80, 0.2);
    color: #d62828;
    border: 1px solid rgba(214, 40, 40, 0.4);
}

/* viewer — синий */
.user-role.viewer {
    background: rgba(80, 150, 255, 0.2);
    color: #1d4ed8;
    border: 1px solid rgba(29, 78, 216, 0.4);
}
.user-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #4fa3ff, #0066ff);
    border-radius: 6px;
    width: 0;                     /* стартовое значение */
    transition: width 0.8s ease;  /* плавная анимация */
}
/* ================= STANDARD THEME FOR USERS PROFILES================= */

.users-ranking-container {
    margin-top: 40px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.users-ranking-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #eaeaea;
}

/* Строка пользователя */
.user-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.25s ease;
}

.user-row:hover {
    transform: translateY(-2px);
    background: rgba(40, 40, 40, 0.8);
    box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

/* Аватар */
.user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.08);
}

/* Информация */
.user-info {
    flex: 1;
}

.user-name {
    font-size: 1rem;
    font-weight: 600;
    color: #f0f0f0;
}

/* Роль */
.user-role {
    display: inline-block;
    margin: 4px 0 6px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.user-role.admin {
    background: rgba(255, 80, 80, 0.15);
    color: #ff6b6b;
}

.user-role.viewer {
    background: rgba(80, 150, 255, 0.15);
    color: #6bb6ff;
}

/* Дата */
.user-date {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 6px;
}

/* Прогресс-бар */
.user-bar {
    width: 100%;
    height: 10px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
}

.user-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #4fa3ff, #0066ff);
    border-radius: 6px;
    transition: width 0.8s ease;
}

/* Количество */
.user-count {
    font-size: 1.1rem;
    font-weight: 700;
    color: #eaeaea;
    width: 40px;
    text-align: right;
}

/* ================= CYBERPUNK THEME FOR USERS PROFILES================= */

:root.cyberpunk .users-ranking-container {
    background: rgba(10,10,20,0.7);
    border: 1px solid rgba(0,255,255,0.2);
    box-shadow: 0 0 20px rgba(0,255,255,0.15);
}

:root.cyberpunk .users-ranking-title {
    color: #00eaff;
    text-shadow: 0 0 8px #00eaff;
}

:root.cyberpunk .user-row {
    background: rgba(20,20,40,0.7);
    border: 1px solid rgba(0,255,255,0.15);
    box-shadow: 0 0 12px rgba(0,255,255,0.1);
}

:root.cyberpunk .user-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 18px rgba(0,255,255,0.25);
}

:root.cyberpunk .user-avatar {
    border: 2px solid rgba(0,255,255,0.4);
    box-shadow: 0 0 10px rgba(0,255,255,0.3);
}

:root.cyberpunk .user-name {
    color: #fff;
    text-shadow: 0 0 6px #00eaff;
}

:root.cyberpunk .user-role.admin {
    background: rgba(255, 0, 80, 0.25);
    color: #ff4d8d;
    border: 1px solid rgba(255,0,80,0.4);
    text-shadow: 0 0 6px #ff4d8d;
}

:root.cyberpunk .user-role.viewer {
    background: rgba(0, 255, 255, 0.25);
    color: #00eaff;
    border: 1px solid rgba(0,255,255,0.4);
    text-shadow: 0 0 6px #00eaff;
}

:root.cyberpunk .user-date {
    color: #9be7ff;
}

:root.cyberpunk .user-bar {
    background: rgba(0,255,255,0.1);
}

:root.cyberpunk .user-bar-fill {
    background: linear-gradient(90deg, #00eaff, #ff00ff);
    box-shadow: 0 0 12px #00eaff;
}

:root.cyberpunk .user-count {
    color: #00eaff;
    text-shadow: 0 0 6px #00eaff;
}

/* ===== MOBILE FIX FOR renderMain() ===== */
@media (max-width: 480px) {

    /* Кнопки в колонку */
    .main-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%; /* критично для iPhone Safari */
    }

    /* Кнопки растягиваются */
    .main-buttons .btn-orange {
        width: 100%;
    }

}
    /* Total motors — отдельный блок под кнопками */
#motors_total {
    display: block !important;
    position: relative !important;
    float: none !important;
    text-align: center !important;
    margin: 15px 0 0 0 !important;
    width: 100% !important;
}
@media (max-width: 480px) { #motors_total { font-size: 1.5rem; margin-top: 18px !important; } }

#motors_total_card {
    margin-top: 18px;
    padding: 16px 16px; /* одинаковые отступы слева и справа */
    width: 100%;

    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    backdrop-filter: blur(12px);

    box-shadow: 0 4px 20px rgba(0,0,0,0.35);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}

.mt-label {
    font-size: 1.1rem;
    color: #dcdcdc;
    margin: 0;              /* убираем смещение */
    padding: 0;
}

.mt-value {
    width: 120px;
    min-width: 120px;
    max-width: 120px;

    background: #000;          /* чёрный фон */
    color: #ff7a00;            /* оранжевый текст */

    padding: 3px 10px;         /* как в инспекторе */
    margin: 15px 0 0 0;        /* как на скрине */

    font-size: 1.4rem;         /* чтобы не вылазило */
    font-weight: 700;
    line-height: 1;

    border-radius: 8px;        /* аккуратные углы */
    text-align: center;

    display: flex;
    justify-content: center;
    align-items: center;

    box-sizing: border-box;
}

#motors_total.mt-value {
    all: unset;                 /* Сбрасываем всё, что навешано раньше */

    width: 120px;
    min-width: 120px;
    max-width: 120px;

    background: #000000;        /* чёрный фон */
    color: #ff7a00;             /* оранжевые цифры */

    padding: 3px 10px;
    margin: 15px 0 0 0;

    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;

    border-radius: 8px;
    text-align: center;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    box-sizing: border-box;
}
#main_header .nav-left button {
    padding: 6px 16px;
    border-radius: 999px;
    border: none;
    outline: none;

    background: #ff7a00;
    color: #ffffff;

    font-size: 14px;
    font-weight: 600;
    font-family: inherit;

    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

#main_header .nav-left button:hover {
    background: #ff8f26;
    transform: translateY(-1px);
}

#main_header .nav-left button:active {
    background: #e86b00;
    transform: translateY(0);
}
#main_header .nav-left button {
    padding: 6px 16px;
    border-radius: 8px;
    border: none;
    outline: none;

    background: #ff7a00;      /* оранжевый фон */
    color: #ffffff;           /* белый текст */

    font-size: 14px;
    font-weight: 600;
    font-family: inherit;

    cursor: pointer;

    transition: 
        background 0.15s ease,
        transform 0.1s ease;
}

#main_header .nav-left button:hover {
    background: #ff8f26;      /* светлее при наведении */
    transform: translateY(-1px);
}

#main_header .nav-left button:active {
    background: #e86b00;      /* темнее при нажатии */
    transform: translateY(0);
}
:root.cyberpunk #main_header .nav-left button {
    padding: 6px 18px;
    border-radius: 6px;
    border: 1px solid #00eaff;

    background: #0a0a0a;
    color: #00eaff;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.6px;

    box-shadow:
        0 0 6px #00eaff,
        0 0 12px rgba(0, 234, 255, 0.5),
        inset 0 0 6px rgba(0, 234, 255, 0.4);

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.1s ease;
}

:root.cyberpunk #main_header .nav-left button:hover {
    background: #111;
    box-shadow:
        0 0 10px #00eaff,
        0 0 20px rgba(0, 234, 255, 0.7),
        inset 0 0 8px rgba(0, 234, 255, 0.5);
    transform: translateY(-1px);
}

:root.cyberpunk #main_header .nav-left button:active {
    transform: translateY(0);
    box-shadow:
        0 0 6px #00eaff,
        0 0 12px rgba(0, 234, 255, 0.5),
        inset 0 0 10px rgba(0, 234, 255, 0.7);
}
.avatar-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* ← ВЫРАВНИВАЕТ ВСЁ ВЛЕВО */
    gap: 10px;
}
.edit-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    backdrop-filter: blur(3px);
}

.progress-ring {
    width: 60px;
    height: 60px;
    border: 6px solid #fff;
    border-top-color: #ff7a00;
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.progress-text {
    margin-top: 12px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Блокировка кнопок */
button.disabled {
    opacity: 0.4;
    
}

:root.cyberpunk {
    --cp-pink: #ff2bd6;
    --cp-blue: #00eaff;
    --cp-bg: rgba(0, 0, 0, 0.55);
}
:root.cyberpunk #edit_upload_progress {
    background: var(--cp-bg);
    backdrop-filter: blur(4px);
}

:root.cyberpunk #edit_upload_progress .progress-ring {
    width: 70px;
    height: 70px;
    border: 6px solid var(--cp-blue);
    border-top-color: var(--cp-pink);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    box-shadow: 0 0 12px var(--cp-pink), 0 0 18px var(--cp-blue);
}

:root.cyberpunk #edit_upload_progress .progress-text {
    margin-top: 14px;
    color: var(--cp-blue);
    font-size: 17px;
    font-weight: 700;
    text-shadow: 0 0 8px var(--cp-pink);
}
:root.cyberpunk button.disabled {
    opacity: 0.3;
    filter: drop-shadow(0 0 4px var(--cp-pink));
   
}

#mobile_menu {
    position: fixed;
    top: 0;
    right: -250px; /* меню спрятано за экраном */
    width: 250px;
    height: 100%;
    background: #111;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 40px 20px;
    transition: right 0.3s ease;
    z-index: 999999;
}


#menu_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    display: none;      /* по умолчанию скрыт */
    z-index: 998;
}

.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; }

#main {
  position: relative;
  z-index: 1;
}



