/*/var/www/dekst.com/assets/css/style.css*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* =========================================
   1. ПЕРЕМЕННЫЕ И ТЕМЫ
   ========================================= */
:root {
    /* --- СВЕТЛАЯ ТЕМА --- */
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-input: #f1f5f9;
    --bg-terminal: #1e293b;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-on-accent: #ffffff;
    --text-terminal: #f1f5f9;

    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-glow: rgba(79, 70, 229, 0.3);
    --primary-light-bg: rgba(79, 70, 229, 0.1);
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);

    /* Шахматный фон (Светлый) */
    --checker-color-1: #ffffff;
    --checker-color-2: #e2e8f0;

    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius: 12px;
    --header-height: 70px;
    --sidebar-width: 270px;
}

[data-theme="dark"] {
    /* --- ТЕМНАЯ ТЕМА --- */
    --bg-body: #0b0f19;
    --bg-card: rgba(30, 41, 59, 0.6);
    --bg-sidebar: #0f172a;
    --bg-input: #1e293b;
    --bg-terminal: #0f111a;
    --text-terminal: #a5b4fc;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;

    --border: #334155;
    --border-hover: #475569;

    --primary: #6366f1;
    --primary-hover: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.25);
    --primary-light-bg: rgba(99, 102, 241, 0.15);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);

    /* Шахматный фон (Темный) */
    --checker-color-1: #1e293b;
    --checker-color-2: #334155;

    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

/* =========================================
   2. БАЗОВЫЕ СТИЛИ
   ========================================= */
* { box-sizing: border-box; outline: none; -webkit-tap-highlight-color: transparent; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

/* Скроллбар */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Классы утилит */
.img-cover { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }

/* =========================================
   HIGH-TECH HERO SECTION
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-section {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% -10%, var(--primary-glow), transparent 50%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: var(--primary-light-bg);
    border: 1px solid var(--primary-glow);
    border-radius: 100px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 32px;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-main);
    margin-bottom: 24px;
    background: linear-gradient(180deg, var(--text-main) 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.tech-btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary-glow {
    background: var(--primary);
    color: #ffffff !important;
    box-shadow: 0 10px 25px -5px var(--primary-glow);
}

.btn-primary-glow:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px var(--primary-glow);
}

.btn-outline-tech {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main) !important;
}

.btn-outline-tech:hover {
    border-color: var(--text-muted);
    background: var(--bg-input);
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .hero-section { padding: 100px 0 60px; }
    .hero-btns { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .tech-btn { width: 100%; }
}

/* =========================================
   FEATURES SECTION
   ========================================= */
.features-section { padding: 120px 0; position: relative; }
.section-tag { text-align: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 15px; }
.section-main-title { text-align: center; font-size: 2.5rem; font-weight: 900; margin-bottom: 70px; color: var(--text-main); }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; align-items: stretch; }
.tech-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 24px; padding: 48px; display: flex; flex-direction: column; transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1); position: relative; overflow: hidden; height: 100%; }

.tech-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, var(--primary-glow), transparent 70%);
    opacity: 0; transition: opacity 0.4s ease; z-index: 0;
}

.tech-card:hover { transform: translateY(-12px); border-color: var(--primary); box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25); }
.tech-card:hover::before { opacity: 0.15; }

.card-icon-box, .tech-card h3, .tech-card p, .card-action { position: relative; z-index: 1; }
.card-icon-box { width: 60px; height: 60px; background: var(--primary-light-bg); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 30px; margin-bottom: 30px; border: 1px solid var(--primary-glow); }
.tech-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 16px; color: var(--text-main); }
.tech-card p { font-size: 16px; color: var(--text-muted); line-height: 1.6; margin-bottom: 40px; flex-grow: 1; }
.card-action { margin-top: auto; }
.card-action .tech-btn { width: 100%; justify-content: center; }

@media (max-width: 992px) { .section-main-title { font-size: 2rem; } .tech-card { padding: 32px; } }
@media (max-width: 768px) { .features-grid { grid-template-columns: 1fr; max-width: 450px; margin: 0 auto; } }

/* =========================================
   3. КОМПОНЕНТЫ UI (Кнопки, Карточки, Алерт)
   ========================================= */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.card h3 { margin-top: 0; font-size: 18px; font-weight: 700; margin-bottom: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border-radius: 8px; font-weight: 600; font-size: 14px; cursor: pointer; border: none; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); gap: 6px; text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--primary); color: #ffffff !important; box-shadow: 0 4px 12px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 6px 16px var(--primary-glow); transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--text-muted); background: var(--bg-input); }
.btn-success { background: rgba(16, 185, 129, 0.1); color: var(--success); border: 1px solid transparent; }
.btn-success:hover { background: rgba(16, 185, 129, 0.2); border-color: var(--success); }
.btn-danger { background: rgba(239, 68, 68, 0.1); color: var(--danger); border: 1px solid transparent; }
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); border-color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }

.badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; display: inline-block; }
.status-active { background: rgba(16, 185, 129, 0.15); color: var(--success); border: 1px solid rgba(16, 185, 129, 0.2); }
.status-pending { background: rgba(100, 116, 139, 0.15); color: var(--text-muted); border: 1px solid var(--border); }
.status-moderation { background: rgba(245, 158, 11, 0.15); color: var(--warning); border: 1px solid rgba(245, 158, 11, 0.2); }
.status-rejected { background: rgba(239, 68, 68, 0.15); color: var(--danger); border: 1px solid rgba(239, 68, 68, 0.2); }

.alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; font-size: 14px; border: 1px solid transparent; }
.alert-warning { background: rgba(245, 158, 11, 0.1); color: #d97706; border-color: rgba(245, 158, 11, 0.2); }
.alert-success { background: rgba(16, 185, 129, 0.1); color: #059669; border-color: rgba(16, 185, 129, 0.2); }

.checkerboard-bg {
    background-color: var(--checker-color-1);
    background-image:
            linear-gradient(45deg, var(--checker-color-2) 25%, transparent 25%),
            linear-gradient(-45deg, var(--checker-color-2) 25%, transparent 25%),
            linear-gradient(45deg, transparent 75%, var(--checker-color-2) 75%),
            linear-gradient(-45deg, transparent 75%, var(--checker-color-2) 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
    transition: background-color 0.3s ease, background-image 0.3s ease;
}

.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th { text-align: left; padding: 12px 16px; font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; border-bottom: 1px solid var(--border); }
td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-main); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover { background: var(--bg-input); }

/* =========================================
   4. ФОРМЫ И INPUTS
   ========================================= */
label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--text-muted); }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"], input[type="date"], select, textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    transition: 0.2s;
    font-family: inherit;
    box-sizing: border-box;

    background-clip: padding-box;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}

::placeholder { color: var(--text-muted); opacity: 0.7; }

input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow); background-color: var(--bg-card); outline: none; }
input:disabled, select:disabled, textarea:disabled { background-color: var(--bg-body); color: var(--text-muted); cursor: not-allowed; opacity: 0.7; border-color: var(--border); }

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--bg-input) inset !important;
    -webkit-text-fill-color: var(--text-main) !important;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--text-main);
    border-radius: 8px !important;
    background-clip: padding-box !important;
    border: 1px solid var(--border) !important;
}

/* =========================================
   5. ГЕОГРАФИЯ И ТЭГИ
   ========================================= */
.autocomplete-wrapper { position: relative; width: 100%; }
.autocomplete-items { position: absolute; border: none; z-index: 99; top: 100%; left: 0; right: 0; background-color: var(--bg-card); border-radius: 8px; box-shadow: var(--shadow-lg); max-height: 250px; overflow-y: auto; margin-top: 4px; }
.autocomplete-items div { padding: 12px 16px; cursor: pointer; border-bottom: 1px solid transparent; font-size: 14px; color: var(--text-main); transition: background 0.2s; }
.autocomplete-items div:hover { background-color: var(--bg-input); color: var(--primary); border-radius: 4px; }

.loc-tag, .city-tag { display: inline-flex; align-items: center; background: var(--primary-light-bg); color: var(--primary); padding: 6px 12px; border-radius: 6px; font-size: 13px; font-weight: 500; margin-right: 5px; margin-bottom: 5px; border: 1px solid var(--primary-glow); }
.loc-tag b { margin-right: 5px; color: var(--text-main); font-weight: 600; }
.loc-tag span.remove-loc:hover { opacity: 1; color: var(--danger); cursor: pointer; }

.avatars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px; margin-top: 10px; }
.avatar-option { width: 100%; aspect-ratio: 1/1; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: 0.2s; object-fit: cover; }
.avatar-option:hover { transform: scale(1.1); border-color: var(--primary); }
.avatar-option.selected { border-color: var(--success); box-shadow: 0 0 0 2px var(--success); transform: scale(1.05); }

/* =========================================
   6. ЛЕЙАУТ (SIDEBAR + MAIN)
   ========================================= */
.layout { display: flex; min-height: 100vh; }

.sidebar { width: var(--sidebar-width); background-color: var(--bg-sidebar); border-right: 1px solid var(--border); display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0; z-index: 50; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.sidebar-header { height: var(--header-height); display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--border); }
.nav-links { flex: 1; padding: 20px 12px; overflow-y: auto; }
.nav-group-title { font-size: 11px; text-transform: uppercase; color: var(--text-muted); font-weight: 800; letter-spacing: 1px; margin: 15px 20px 5px; }
.nav-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; color: var(--text-muted); font-weight: 600; border-radius: 8px; margin-bottom: 2px; transition: all 0.2s; text-decoration: none; position: relative; }
.nav-link:hover { background-color: var(--bg-input); color: var(--text-main); }
.nav-link.active { background: var(--primary); color: #ffffff; box-shadow: 0 4px 12px var(--primary-glow); }
.nav-link span { font-size: 16px; }
.nav-divider { height: 1px; background: var(--border); margin: 15px 20px; opacity: 0.5; }

.main-content { flex: 1; margin-left: var(--sidebar-width); padding: 30px 40px; width: 100%; max-width: 100%; min-height: 100vh; background-color: var(--bg-body); }

/* =========================================
   7. СТРАНИЦЫ (DASHBOARD, AUTH, LANDING)
   ========================================= */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-box { background: var(--bg-card); padding: 20px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 800; color: var(--text-main); }

.hero { text-align: center; padding: 100px 20px; background: radial-gradient(circle at 50% -20%, var(--primary-glow), transparent 70%); }
.hero h1 { font-size: 3.5rem; font-weight: 900; margin-bottom: 20px; letter-spacing: -1px; }
.hero p { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

.social-grid { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.btn-social-wrap { width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-body); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.05); text-decoration: none; position: relative; }
.btn-social-wrap:hover { border-color: var(--primary); transform: translateY(-2px); background: var(--bg-card); }
.btn-social-wrap img, .btn-social-wrap svg { width: 24px; height: 24px; display: block; }

/* =========================================
   8. БРЕНДИНГ И ПРОФИЛЬ
   ========================================= */
.logo { display: flex; align-items: center; gap: 0; text-decoration: none; user-select: none; }
.logo-img { height: 44px; width: auto; display: block; margin-right: -4px; z-index: 2; transition: 0.3s; }
.logo:hover .logo-img { transform: scale(1.05); }
.logo-text { font-family: 'Inter', system-ui, sans-serif; font-weight: 900; font-size: 24px; letter-spacing: -1px; text-transform: uppercase; line-height: 1; padding-left: 4px; transition: 0.3s; }

:root .logo-text { color: var(--primary); }
:root .logo-img { background-color: var(--primary); -webkit-mask-image: url('../img/logo.png'); mask-image: url('../img/logo.png'); -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; }

[data-theme="dark"] .logo-text { color: #ffffff; text-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
[data-theme="dark"] .logo-img { background-color: #ffffff; filter: drop-shadow(0 0 2px rgba(99, 102, 241, 0.3)); }
[data-theme="dark"] .logo:hover .logo-text { text-shadow: 0 0 5px #fff, 0 0 15px var(--primary), 0 0 30px var(--primary); }
[data-theme="dark"] .logo:hover .logo-img { filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 10px var(--primary)) drop-shadow(0 0 25px var(--primary)); }

.profile-header-card { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 20px; }
.profile-cover { height: 200px; width: 100%; background: linear-gradient(135deg, #6366f1, #a855f7); background-size: cover; background-position: center; position: relative; }
.cover-upload-btn { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.5); color: #fff; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; transition: 0.2s; backdrop-filter: blur(4px); display: flex; align-items: center; gap: 5px; opacity: 0; }
.profile-cover:hover .cover-upload-btn { opacity: 1; }
.profile-info-section { padding: 0 30px 20px; display: flex; align-items: flex-end; position: relative; margin-top: -50px; gap: 20px; flex-wrap: wrap; }
.profile-avatar-wrap { position: relative; width: 140px; height: 140px; border-radius: 50%; border: 4px solid var(--bg-card); background: var(--bg-card); overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.profile-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.profile-details { flex: 1; margin-bottom: 10px; margin-top: 50px; }
.profile-name { font-size: 24px; font-weight: 800; color: var(--text-main); margin: 0; display: flex; align-items: center; gap: 8px; }
.profile-bio { color: var(--text-muted); font-size: 14px; margin-top: 5px; max-width: 600px; }
.profile-stats-row { display: flex; gap: 30px; margin-top: 15px; }

/* НАВИГАЦИЯ ПРОФИЛЯ */
.profile-nav {
    display: flex; align-items: center; justify-content: flex-start;
    width: 100%; min-width: 100%; height: 55px;
    overflow-x: auto; overflow-y: hidden;
    background-color: var(--bg-card); border-top: 1px solid var(--border);
    padding: 0; margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none !important; -ms-overflow-style: none !important;
}

div.profile-nav::-webkit-scrollbar {
    display: none !important; width: 0 !important; height: 0 !important; background: transparent !important; -webkit-appearance: none !important;
}

.p-nav-item {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; height: 100%;
    padding: 0 20px; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; white-space: nowrap;
    border-bottom: 2px solid transparent; box-sizing: border-box; transition: color 0.2s;
}

.p-nav-item.active { color: var(--primary); border-bottom-color: var(--primary); background: linear-gradient(to top, rgba(79, 70, 229, 0.05), transparent); }
.p-nav-item:hover { color: var(--primary); }
.p-nav-item .badge { margin-left: 8px; padding: 2px 6px; font-size: 10px; line-height: 12px; }

/* =========================================
   9. ПЕРЕКЛЮЧАТЕЛЬ ТЕМЫ & АДАПТИВ
   ========================================= */
.theme-toggle-btn { background: transparent; border: 1px solid var(--border); color: var(--text-main); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; padding: 0; }
.theme-toggle-btn:hover { border-color: var(--primary); background: var(--bg-input); box-shadow: 0 0 10px var(--primary-glow); }
.theme-icon { position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
:root[data-theme="light"] .icon-sun { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); fill: var(--text-main); }
:root[data-theme="light"] .icon-moon { opacity: 0; transform: translate(-50%, -50%) rotate(90deg) scale(0.5); fill: var(--text-main); }
:root[data-theme="dark"] .icon-sun { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg) scale(0.5); }
:root[data-theme="dark"] .icon-moon { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); fill: #ffffff; }

.mobile-toggle { display: none; background: none; border: none; font-size: 24px; color: var(--text-main); cursor: pointer; }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 40; backdrop-filter: blur(4px); }

@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .mobile-toggle { display: block; }
    .mobile-header { display: flex !important; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
    .geo-inputs { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .profile-info-section { flex-direction: column; align-items: center; text-align: center; margin-top: -60px; }
    .profile-details { margin-top: 10px; }
    .profile-stats-row { justify-content: center; }
}

/* =========================================
   10. ПРАВЫЙ САЙДБАР (SIDEBAR INFO)
   ========================================= */
.sidebar-right {
    width: var(--sidebar-width); background-color: var(--bg-sidebar); border-left: 1px solid var(--border);
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; right: 0; z-index: 45;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); overflow-y: auto; display: none;
}

.user-mini-card { display: flex; align-items: center; gap: 12px; padding: 15px; background: var(--bg-input); border-radius: 12px; margin-bottom: 20px; margin-top: 20px; margin-left: 10px; margin-right: 10px; }
.avatar-circle { width: 40px; height: 40px; background: var(--primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; text-transform: uppercase; flex-shrink: 0; }
.user-info .u-name { font-size: 10px; color: var(--text-muted); text-transform: uppercase; }
.user-info .u-role { font-size: 13px; font-weight: 700; color: var(--text-main); }
.badge-counter { background: var(--danger); color: white; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 10px; margin-left: auto; }

.news-list { padding: 0 10px; }
.news-item { padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 13px; display: flex; gap: 10px; }
.news-item:last-child { border-bottom: none; }
.news-date { color: var(--primary); font-weight: 700; font-size: 11px; background: var(--primary-light-bg); padding: 2px 6px; border-radius: 4px; height: fit-content; flex-shrink: 0; }
.news-text { color: var(--text-muted); line-height: 1.4; }

.promo-box { text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin: 10px; box-shadow: var(--shadow-sm); }

@media (min-width: 1200px) {
    .sidebar-right { display: flex; }
    .main-content { margin-right: var(--sidebar-width); }
}
@media (max-width: 1199px) {
    .sidebar-right { display: none; }
    .main-content { margin-right: 0; }
}

/* =========================================
   11. МОДАЛЬНЫЕ ОКНА И UI-ЭЛЕМЕНТЫ
   ========================================= */

/* Модалка */
.modal-overlay { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px); justify-content: center; align-items: center; }
.modal-content-img { max-width: 90%; max-height: 90vh; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); animation: zoom 0.3s; }
.modal-close { position: absolute; top: 20px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; z-index: 10000; }
@keyframes zoom { from {transform:scale(0.8); opacity: 0;} to {transform:scale(1); opacity: 1;} }

/* Переключатель (Switch) */
.switch { position: relative; display: inline-block; width: 44px; height: 22px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #334155; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%; }
.switch input:checked + .slider { background-color: var(--primary); }
.switch input:checked + .slider:before { transform: translateX(22px); }

/* Стили выбора цвета (Цвет кнопки) */
.theme-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 15px; }
.theme-option { position: relative; cursor: pointer; }
.theme-option input { display: none; }
.theme-circle { width: 32px; height: 32px; border-radius: 50%; display: block; border: 2px solid transparent; transition: 0.2s; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
.theme-option input:checked + .theme-circle { border-color: #fff; box-shadow: 0 0 0 2px var(--primary); transform: scale(1.1); }

.bg-default { background: #8b5cf6; }
.bg-blue    { background: #3b82f6; }
.bg-green   { background: #10b981; }
.bg-red     { background: #ef4444; }
.bg-dark    { background: #1f2937; }
.bg-light   { background: #fff; border: 1px solid #ddd; }

/* =========================================
   12. СЛОТЫ И ЗАКАЗЫ (ОБЪЯВЛЕНИЯ)
   ========================================= */
.top-section-grid { display: grid; grid-template-columns: 1fr 300px; gap: 20px; margin-bottom: 30px; }

/* Слоты */
.slot-card-classic { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 30px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); display: flex; gap: 40px; flex-wrap: wrap; align-items: flex-start; transition: box-shadow 0.2s; }
.slot-card-classic:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.slot-left { flex: 1; min-width: 340px; }
.slot-right { width: 280px; flex-shrink: 0; padding-left: 30px; border-left: 1px dashed var(--border); }
.slot-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 1px solid var(--border); }
.slot-title { font-size: 20px; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }

.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; }
.form-section-title { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; font-weight: 800; color: var(--text-muted); margin: 0 0 12px; opacity: 0.8; }
.discounts-wrapper { background: rgba(79, 70, 229, 0.05); border-radius: 8px; padding: 15px; margin-bottom: 25px; border: 1px dashed var(--primary); }
.discounts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.discount-item label { font-size: 10px; display: block; text-align: center; color: var(--primary); font-weight: 700; margin-bottom: 4px; }
.discount-item input { text-align: center; font-weight: bold; color: var(--primary); }

details.modern-details { margin-bottom: 20px; background: var(--bg-input); border-radius: 8px; overflow: hidden; }
details.modern-details summary { cursor: pointer; padding: 12px 15px; font-weight: 600; outline: none; }
details.modern-details .details-content { padding: 15px; border-top: 1px solid var(--border); }
textarea.code-area { width: 100%; height: 80px; font-family: monospace; font-size: 12px; background: var(--bg-body); border: 1px solid var(--border); padding: 10px; border-radius: 6px; color: var(--text-main); }
.preview-box { width: 100%; height: 140px; background: var(--bg-input); border-radius: 8px; overflow: hidden; margin-bottom: 12px; border: 1px solid var(--border); display: flex; justify-content: center; align-items: center; }

/* Сетка заказов */
.orders-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 25px; }
.order-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: all 0.3s ease; position: relative; }
.order-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--primary); }

.order-preview-area { background-color: var(--bg-input); height: 160px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border); padding: 15px; position: relative; }
.banner-contain { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 5px 15px rgba(0,0,0,0.15); cursor: zoom-in; }

.order-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.order-title { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; margin-bottom: 15px; }
.meta-item { display: flex; flex-direction: column; }
.meta-label { font-size: 10px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.meta-value { font-size: 13px; color: var(--text-main); font-weight: 500; }

.income-block { margin-top: auto; padding-top: 15px; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: center; }
.income-val { font-size: 18px; font-weight: 800; color: var(--success); }

.order-actions { padding: 15px 20px; background: var(--bg-body); border-top: 1px solid var(--border); display: flex; gap: 10px; }
.btn-act { flex: 1; text-align: center; }

@media (max-width: 900px) {
    .top-section-grid, .orders-grid { grid-template-columns: 1fr; }
    .slot-card-classic { flex-direction: column; }
    .slot-right { width: 100%; padding-left: 0; border-left: none; border-top: 1px dashed var(--border); margin-top: 20px; padding-top: 20px; }
}

/* =========================================
   13. DEKST FINAL HIGH-TECH FOOTER (V3.0)
   ========================================= */
.site-footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 100px 0 50px;
    margin-top: 120px;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.f-main-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 80px;
}

.f-brand-side { flex: 0 1 380px; }

.f-logo-link {
    display: flex; align-items: center; gap: 0;
    text-decoration: none; margin-bottom: 25px;
}

.f-desc-text {
    font-size: 15px; line-height: 1.7;
    color: var(--text-muted); margin-bottom: 30px;
}

.f-status-badge {
    display: inline-flex; align-items: center; gap: 12px;
    background: rgba(16, 185, 129, 0.05); padding: 10px 20px;
    border-radius: 50px; color: var(--success);
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 1.5px; border: 1px solid rgba(16, 185, 129, 0.1);
}

.f-pulse-dot {
    width: 8px; height: 8px; background-color: var(--success);
    border-radius: 50%; box-shadow: 0 0 10px var(--success);
    animation: f-pulse-anim 2s infinite;
}

@keyframes f-pulse-anim {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

.f-nav-group-wrapper { display: flex; gap: 120px; }
.f-nav-column { display: flex; flex-direction: column; min-width: 170px; }

.f-nav-column h5 {
    font-size: 11px; font-weight: 900; text-transform: uppercase;
    color: var(--text-main); letter-spacing: 2px;
    margin-bottom: 28px; opacity: 0.9;
}

.f-nav-column a {
    font-size: 14px; color: var(--text-muted); text-decoration: none;
    margin-bottom: 14px; transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.f-nav-column a:hover { color: var(--primary); transform: translateX(5px); }

.f-bottom-legal-row {
    border-top: 1px solid var(--border); padding-top: 60px;
    display: flex; justify-content: space-between; align-items: flex-end;
}

.f-copy-title { font-size: 14px; font-weight: 800; color: var(--text-main); margin-bottom: 10px; }
.f-ip-details-text { font-size: 12px; line-height: 1.8; color: var(--text-muted); }

.f-trust-side { display: flex; flex-direction: column; align-items: flex-end; gap: 24px; }
.f-payment-icons-list { display: flex; align-items: center; gap: 30px; }

.f-pay-img-icon { height: 18px; width: auto; filter: grayscale(1) opacity(0.4); transition: 0.4s; }
.f-pay-img-icon:hover { filter: grayscale(0) opacity(1); transform: translateY(-3px); }

.f-pci-badge-box {
    font-size: 10px; font-weight: 900; color: var(--text-muted);
    border: 1px solid var(--border); padding: 7px 16px; border-radius: 8px;
    display: flex; align-items: center; gap: 10px; letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.02);
}

.shield-icon { color: var(--success); font-size: 13px; }

/* =========================================
   АДАПТИВНОСТЬ ДЛЯ ФУТЕРА (RESPONSIVE)
   ========================================= */
@media (max-width: 1200px) {
    .f-nav-group-wrapper { gap: 60px; }
    .footer-container { padding: 0 30px; }
}

@media (max-width: 992px) {
    .f-main-row { flex-direction: column; gap: 70px; }
    .f-brand-side { max-width: 100%; flex: none; }
    .f-nav-group-wrapper { width: 100%; justify-content: space-between; }
}

@media (max-width: 768px) {
    .f-nav-group-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px 20px; }
    .f-nav-column:last-child { grid-column: span 2; border-top: 1px dashed var(--border); padding-top: 30px; }
    .f-bottom-legal-row { flex-direction: column; align-items: flex-start; gap: 50px; text-align: left; }
    .f-trust-side { align-items: flex-start; width: 100%; }
    .f-payment-icons-list { justify-content: flex-start; gap: 20px; }
}

@media (max-width: 480px) {
    .f-nav-group-wrapper { grid-template-columns: 1fr; }
    .f-nav-column:last-child { grid-column: span 1; }
}