/* ==============================================================================
   SysAdmin & Automation Engineer Portfolio — v2.0 Minimalist & Dynamic Stylesheet
   ============================================================================== */

:root {
    --bg-base: #070b12;
    --bg-panel: #0d1320;
    --bg-card: rgba(16, 24, 40, 0.7);
    --bg-card-hover: rgba(22, 33, 54, 0.85);
    --border-dim: #1e293b;
    --border-hover: #334155;
    --border-cyan: rgba(56, 189, 248, 0.45);
    --cyan: #38bdf8;
    --cyan-glow: rgba(56, 189, 248, 0.25);
    --emerald: #10b981;
    --amber: #f59e0b;
    --purple: #a855f7;
    --rose: #f43f5e;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body.v2-body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

/* Шрифты и служебные классы */
.font-mono { font-family: var(--font-mono) !important; }
.text-cyan-400 { color: var(--cyan) !important; }
.text-emerald-400 { color: var(--emerald) !important; }
.text-amber-400 { color: var(--amber) !important; }
.text-purple-400 { color: var(--purple) !important; }
.text-rose-400 { color: var(--rose) !important; }
.mr-1 { margin-right: 0.25rem; }
.mr-1\.5 { margin-right: 0.375rem; }
.mr-2 { margin-right: 0.5rem; }
.mb-1 { margin-bottom: 0.25rem; }
.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* Фоновые градиенты и живая сетка */
.v2-ambient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.v2-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(56, 189, 248, 0.08) 1px, transparent 0);
    background-size: 32px 32px;
}

.v2-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.v2-glow-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    left: -100px;
    background: radial-gradient(circle, #0284c7 0%, transparent 70%);
}

.v2-glow-2 {
    width: 700px;
    height: 700px;
    bottom: -150px;
    right: -150px;
    background: radial-gradient(circle, #059669 0%, transparent 70%);
}

/* Контейнер */
.v2-container {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
    z-index: 1;
}

/* ==================== HEADER ==================== */
.v2-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(7, 11, 18, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dim);
    transition: border-color 0.3s;
}

.v2-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.v2-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.v2-brand-badge {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid var(--border-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 0 14px var(--cyan-glow);
}

.v2-brand-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.v2-brand-status {
    font-size: 0.72rem;
    color: var(--emerald);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 2px;
}

.v2-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
    animation: v2Pulse 2s infinite;
}

@keyframes v2Pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.v2-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 860px) {
    .v2-nav { display: flex; }
}

.v2-nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.v2-nav-link:hover {
    color: var(--cyan);
}

.v2-header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

/* Кнопки */
.v2-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
    white-space: nowrap;
}

.v2-btn-tg {
    background: linear-gradient(135deg, #0284c7, #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.v2-btn-tg:hover {
    background: linear-gradient(135deg, #38bdf8, #1d4ed8);
    transform: translateY(-1px);
}

.v2-btn-primary {
    background: linear-gradient(135deg, var(--cyan), #2563eb);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.v2-btn-primary:hover {
    background: linear-gradient(135deg, #7dd3fc, #3b82f6);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(56, 189, 248, 0.4);
}

.v2-btn-secondary {
    background-color: var(--bg-card);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
}

.v2-btn-secondary:hover {
    border-color: var(--border-cyan);
    background-color: var(--bg-card-hover);
    color: var(--cyan);
}

.v2-btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
}

.v2-btn-outline:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.v2-btn-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.v2-btn-icon:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ==================== HERO ==================== */
.v2-hero {
    padding: 3.5rem 0 2.5rem;
    position: relative;
    z-index: 2;
}

.v2-hero-content {
    max-width: 900px;
}

.v2-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    background-color: rgba(16, 24, 40, 0.8);
    border: 1px solid rgba(16, 185, 129, 0.3);
    font-size: 0.76rem;
    color: #a7f3d0;
    margin-bottom: 1.25rem;
}

.v2-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .v2-hero-title { font-size: 3rem; }
}

.v2-hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    max-width: 820px;
}

/* Метрики статус-бар */
.v2-metrics-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
    padding: 0.85rem 1.25rem;
    background-color: rgba(13, 19, 32, 0.8);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.v2-metric-item {
    display: flex;
    flex-direction: column;
}

.v2-metric-val {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
}

.v2-metric-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.v2-metric-sep {
    display: none;
    width: 1px;
    height: 28px;
    background-color: var(--border-dim);
}

@media (min-width: 640px) {
    .v2-metric-sep { display: block; }
}

.v2-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

/* ==================== SECTIONS ==================== */
.v2-section {
    padding: 3rem 0;
    position: relative;
    z-index: 2;
}

.v2-section-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
    .v2-section-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.v2-pretitle {
    font-size: 0.75rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.v2-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.v2-section-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    max-width: 650px;
}

.v2-admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.2s;
}

.v2-admin-chip:hover {
    border-color: var(--cyan);
    color: var(--text-primary);
}

/* ==================== WORKSPACE (PROJECTS) ==================== */
.v2-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 960px) {
    .v2-workspace {
        grid-template-columns: 380px 1fr;
        align-items: start;
    }
}

/* Левая колонка: список карточек */
.v2-project-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 820px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.v2-project-list::-webkit-scrollbar {
    width: 5px;
}
.v2-project-list::-webkit-scrollbar-thumb {
    background-color: var(--border-dim);
    border-radius: 4px;
}

.v2-project-card {
    padding: 1rem 1.15rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.v2-project-card:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(2px);
}

.v2-project-card-active {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(8, 47, 73, 0.35)) !important;
    border-color: var(--cyan) !important;
    border-left-width: 4px !important;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.12);
}

.v2-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.v2-tag-cat {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--cyan);
    background-color: rgba(56, 189, 248, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.v2-tag-count {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.v2-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.v2-card-tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-card-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.25rem;
}

.v2-tech-chip {
    font-size: 0.68rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    background-color: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.6);
    color: var(--text-secondary);
}

.v2-tech-more {
    font-size: 0.68rem;
    color: var(--text-muted);
    padding: 0.15rem 0.3rem;
}

/* Правая колонка: инспектор кейса */
.v2-case-inspector {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    position: sticky;
    top: 85px;
}

/* Экран скриншотов */
.v2-screen-stage {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.v2-screen-wrapper {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background-color: #03060b;
    border: 1px solid var(--border-dim);
    cursor: zoom-in;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.v2-screen-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.v2-screen-wrapper:hover img {
    transform: scale(1.02);
}

.v2-screen-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(3, 6, 11, 0.75), transparent 40%);
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.75rem;
}

.v2-screen-wrapper:hover .v2-screen-overlay {
    opacity: 1;
}

.v2-zoom-badge {
    background-color: rgba(13, 19, 32, 0.9);
    border: 1px solid var(--border-cyan);
    color: var(--cyan);
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* Миниатюры */
.v2-screen-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.v2-screen-thumbs::-webkit-scrollbar {
    height: 4px;
}
.v2-screen-thumbs::-webkit-scrollbar-thumb {
    background-color: var(--border-dim);
    border-radius: 4px;
}

.v2-thumb-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.6rem;
    border-radius: 6px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-dim);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.v2-thumb-btn img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

.v2-thumb-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.v2-thumb-btn:hover {
    border-color: var(--border-hover);
}

.v2-thumb-active {
    border-color: var(--cyan) !important;
    background-color: rgba(56, 189, 248, 0.1) !important;
}

.v2-thumb-active .v2-thumb-label {
    color: var(--cyan) !important;
    font-weight: 700;
}

/* Детали кейса */
.v2-case-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.v2-case-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 1rem;
}

.v2-case-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-top: 0.35rem;
}

.v2-case-tagline {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.v2-admin-edit {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border-dim);
    text-decoration: none;
    transition: all 0.2s;
}

.v2-admin-edit:hover {
    color: var(--cyan);
    border-color: var(--cyan);
}

/* 3 структурированных блока */
.v2-case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.v2-case-block {
    background-color: rgba(10, 15, 26, 0.7);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    padding: 0.85rem 1rem;
}

.v2-block-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.v2-block-body {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.v2-block-body p {
    margin-bottom: 0.4rem;
}
.v2-block-body p:last-child {
    margin-bottom: 0;
}

.v2-case-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-dim);
}

.v2-footer-label {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.v2-case-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* ==================== TECH MATRIX ==================== */
.v2-skill-search-box {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.v2-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.v2-search-input {
    width: 100%;
    padding: 0.55rem 0.85rem 0.55rem 2.25rem;
    border-radius: 8px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.2s;
}

.v2-search-input:focus {
    border-color: var(--cyan);
}

.v2-stack-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .v2-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.v2-stack-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: border-color 0.2s;
}

.v2-stack-card:hover {
    border-color: var(--border-hover);
}

.v2-stack-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-dim);
    padding-bottom: 0.75rem;
}

.v2-stack-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.v2-stack-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
}

.v2-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.v2-stack-pill {
    font-size: 0.74rem;
    padding: 0.3rem 0.65rem;
    border-radius: 6px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-dim);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    cursor: default;
}

.v2-stack-pill:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.v2-stack-pill-highlight {
    background-color: rgba(14, 165, 233, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    color: #e0f2fe;
    font-weight: 600;
}

.v2-pill-matched {
    border-color: var(--emerald) !important;
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #ffffff !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.v2-pill-dimmed {
    opacity: 0.25;
}

/* ==================== EXPERIENCE & CONTACT ==================== */
.v2-exp-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 960px) {
    .v2-exp-contact-grid {
        grid-template-columns: 1fr 420px;
    }
}

.v2-exp-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 1.75rem;
}

.v2-timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border-cyan);
}

.v2-timeline-dot {
    position: absolute;
    left: -7px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
}

.v2-timeline-time {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.v2-timeline-role {
    font-size: 1.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
}

.v2-timeline-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.v2-timeline-text p {
    margin-bottom: 0.75rem;
}

.v2-timeline-checklist {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-dim);
}

.v2-check-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.84rem;
    color: var(--text-primary);
}

.v2-check-item i {
    margin-top: 0.2rem;
}

/* Контактная карточка */
.v2-contact-card {
    background-color: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.v2-contact-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
}

.v2-contact-sub {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

.v2-direct-channels {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.v2-channel-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    background-color: var(--bg-card);
    border: 1px solid var(--border-dim);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.v2-channel-row:hover {
    background-color: var(--bg-card-hover);
    border-color: var(--border-cyan);
}

.v2-channel-tg:hover {
    border-color: #0284c7;
}

.v2-channel-icon {
    font-size: 1.25rem;
    color: var(--cyan);
}

.v2-channel-info {
    flex-grow: 1;
}

.v2-channel-label {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.v2-channel-val {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-primary);
}

.v2-channel-arrow {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.v2-admin-note {
    padding: 0.85rem 1rem;
    background-color: rgba(7, 11, 18, 0.7);
    border: 1px dashed var(--border-dim);
    border-radius: 8px;
    font-size: 0.72rem;
}

/* ==================== FOOTER ==================== */
.v2-footer {
    border-top: 1px solid var(--border-dim);
    padding: 2rem 0;
    margin-top: auto;
    background-color: rgba(7, 11, 18, 0.9);
    position: relative;
    z-index: 2;
}

.v2-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (min-width: 640px) {
    .v2-footer-inner {
        flex-direction: row;
    }
}

.v2-footer-sep {
    margin: 0 0.5rem;
    color: var(--border-dim);
}

.v2-footer-link {
    color: var(--cyan);
    text-decoration: none;
}
.v2-footer-link:hover {
    text-decoration: underline;
}

/* ==================== LIGHTBOX & MODAL ==================== */
.v2-lightbox, .v2-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.v2-lightbox.active, .v2-modal.active {
    display: flex !important;
}

.v2-lightbox-backdrop, .v2-modal-backdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(3, 6, 11, 0.88);
    backdrop-filter: blur(8px);
}

.v2-lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 92vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.v2-lightbox-close, .v2-modal-close {
    position: absolute;
    top: -45px;
    right: 0;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.v2-lightbox-close:hover, .v2-modal-close:hover {
    color: var(--rose);
}

.v2-lightbox-img-wrap {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-dim);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.v2-lightbox-img-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    display: block;
}

.v2-lightbox-caption {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    background-color: rgba(13, 19, 32, 0.9);
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    border: 1px solid var(--border-dim);
}

/* Модальное окно */
.v2-modal-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.v2-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.v2-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
}

.v2-modal-close {
    position: static;
    font-size: 1.2rem;
    color: var(--text-muted);
}

.v2-modal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.v2-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.v2-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.v2-input {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background-color: #080c14;
    border: 1px solid var(--border-dim);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.v2-input:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 2px var(--cyan-glow);
}

textarea.v2-input {
    resize: vertical;
    min-height: 80px;
}

.v2-form-alert {
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}
.v2-alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--emerald);
    color: #a7f3d0;
}
.v2-alert-error {
    background-color: rgba(244, 63, 94, 0.15);
    border: 1px solid var(--rose);
    color: #fecdd3;
}
