/* ========================================
   ПЕРЕМЕННЫЕ ТЕМ (светлая по умолчанию)
   ======================================== */
:root {
    --bg-primary: #f5f7fb;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    --bg-chip: #f1f5f9;
    --bg-filter: #f1f5f9;
    --bg-pagination: #f1f5f9;
    --bg-hero: #eef2f9;
    --bg-meta: #f8fafc;
    --bg-vendor: #f8fafc;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-chip: #334155;
    --border-color: #e2e8f0;
    --border-light: #e2e8f0;
    --accent-blue: #2563eb;
    --accent-red: #dc2626;
    --accent-red-dark: #b91c1c;
    --accent-red-light: #fee2e2;
    --accent-orange: #ea580c;
    --tab-inactive: #94a3b8;
    --tab-active: #dc2626;
    --breadcrumb-text: #64748b;
    --gradient-start: #1e293b;
    --gradient-end: #475569;
    --hero-bg-start: #f1f5f9;
    --hero-bg-end: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.05);
    --identifier-bg: #eef2ff;
    --identifier-text: #4338ca;
    --severity-bg: #f1f5f9;
    --severity-text: #475569;
    --date-bg: #f8fafc;
    --detail-bg: #eef2ff;
    --detail-text: #2563eb;
    --query-highlight: #4338ca;
    --empty-text: #475569;
    --back-link-bg: #f1f5f9;
    --back-link-text: #334155;
    --section-title: #dc2626;
    --description-text: #475569;
    --meta-label: #64748b;
    --meta-value: #1e293b;
    --cvss-version: #ea580c;
    --cvss-score: #dc2626;
    --cvss-vector: #64748b;
    --vendor-name: #dc2626;
    --vendor-detail: #475569;
    --link-bg: #f1f5f9;
    --link-text: #475569;
    --back-bg: #f1f5f9;
    --back-text: #334155;
}

/* ========================================
   ТЁМНАЯ ТЕМА
   ======================================== */
body.dark {
    --bg-primary: #0a0d17;
    --bg-secondary: #0b0e16;
    --bg-card: #11151f;
    --bg-input: #11141f;
    --bg-chip: #1e2436;
    --bg-filter: #1e2436;
    --bg-pagination: #1a1f2e;
    --bg-hero: #111827;
    --bg-meta: #0e121c;
    --bg-vendor: #0e121c;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-chip: #cbd5e6;
    --border-color: rgba(255,255,255,0.06);
    --border-light: rgba(255,255,255,0.05);
    --accent-blue: #3b82f6;
    --accent-red: #ef4444;
    --accent-red-dark: #dc2626;
    --accent-red-light: #7f1d1d;
    --accent-orange: #f97316;
    --tab-inactive: #6c7a91;
    --tab-active: #ff5c5c;
    --breadcrumb-text: #7e8a98;
    --gradient-start: #e2e8f0;
    --gradient-end: #ffffff;
    --hero-bg-start: #111827;
    --hero-bg-end: #0f172a;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3);
    --identifier-bg: #1f2a3e;
    --identifier-text: #ffb4a2;
    --severity-bg: #2d2f3e;
    --severity-text: #b9c3d4;
    --date-bg: #0e121c;
    --detail-bg: #252e42;
    --detail-text: #d9e2ff;
    --query-highlight: #ffb4a2;
    --empty-text: #cbd5e1;
    --back-link-bg: #1e293b;
    --back-link-text: #cbd5e1;
    --section-title: #ff8a7a;
    --description-text: #b9c3d4;
    --meta-label: #7e8a98;
    --meta-value: #e2e8f0;
    --cvss-version: #ff8a7a;
    --cvss-score: #ffb4a2;
    --cvss-vector: #94a3b8;
    --vendor-name: #ffb4a2;
    --vendor-detail: #a0abc0;
    --link-bg: #1e293b;
    --link-text: #94a3b8;
    --back-bg: #1e293b;
    --back-text: #cbd5e1;
}

/* ========================================
   БАЗОВЫЕ СТИЛИ
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--bg-primary);
    font-family: system-ui, -apple-system, 'Inter', 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, sans-serif;
    padding: 0;
    margin: 0;
    min-height: 100vh;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.app-container {
    max-width: 100%;
    width: 100%;
    background-color: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ========================================
   ХЕДЕР
   ======================================== */
.nav-header {
    padding: 20px 20px 4px;
    background: var(--bg-secondary);
    border-bottom: 0.5px solid var(--border-color);
}
.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 10px;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--breadcrumb-text);
    flex-wrap: wrap;
}
.breadcrumb a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb span {
    color: var(--text-muted);
}
.title-section {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.3px;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.bot-badge {
    background: var(--bg-chip);
    padding: 6px 14px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-chip);
    text-decoration: none;
    transition: transform 0.1s ease;
}
.bot-badge:active {
    transform: scale(0.96);
}
.theme-toggle {
    background: var(--bg-chip);
    border: none;
    border-radius: 40px;
    padding: 6px 12px;
    font-size: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.1s ease;
    color: var(--text-chip);
}
.theme-toggle:active {
    transform: scale(0.96);
}

/* ========================================
   ГЛАВНАЯ СТРАНИЦА (HERO БЛОК)
   ======================================== */
.hero-block {
    background: linear-gradient(135deg, var(--hero-bg-start), var(--hero-bg-end));
    margin: 16px;
    padding: 20px;
    border-radius: 28px;
    border: 0.5px solid var(--border-color);
}
.hero-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.hero-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 16px;
}
.hero-list {
    list-style: none;
    margin-top: 12px;
}
.hero-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-list li::before {
    content: "✓";
    color: #10b981;
    font-weight: 600;
}

/* ========================================
   СЕТКА КАРТОЧЕК (ГЛАВНАЯ)
   ======================================== */
.sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 8px 16px 20px;
}
.section-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 16px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 0.5px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow-sm);
}
.section-card:active {
    transform: scale(0.97);
    background: var(--bg-hero);
}
.card-icon {
    font-size: 32px;
    margin-bottom: 12px;
}
.card-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.card-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* ========================================
   ПОЛНОШИРИННЫЕ КАРТОЧКИ (ГЛАВНАЯ)
   ======================================== */
.fullwidth-card {
    background: var(--bg-card);
    margin: 0 16px 12px;
    border-radius: 24px;
    padding: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0.5px solid var(--border-color);
    transition: 0.2s;
    box-shadow: var(--shadow-sm);
}
.fullwidth-card:active {
    transform: scale(0.98);
    background: var(--bg-hero);
}
.full-icon {
    font-size: 36px;
}
.full-content {
    flex: 1;
}
.full-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.full-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.arrow {
    color: var(--accent-blue);
    font-size: 20px;
}

/* ========================================
   КНОПКА ПОДДЕРЖКИ
   ======================================== */
.support-button {
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    margin: 8px 16px 20px;
    padding: 14px 20px;
    border-radius: 44px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow-md);
}
.support-button:active {
    transform: scale(0.98);
}
.support-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.support-icon {
    font-size: 24px;
}
.support-text {
    font-weight: 600;
    color: white;
    font-size: 16px;
}
.support-sub {
    font-size: 12px;
    color: #ffcdcd;
}
.support-arrow {
    color: white;
    font-size: 20px;
    opacity: 0.9;
}

/* ========================================
   ФИЛЬТРЫ (чипсы)
   ======================================== */
.filters-scroll {
    overflow-x: auto;
    white-space: nowrap;
    padding: 12px 20px 8px;
    display: flex;
    gap: 12px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.filters-scroll::-webkit-scrollbar {
    height: 3px;
}
.filter-chip {
    background: var(--bg-filter);
    color: var(--text-chip);
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    border: 0.5px solid var(--border-light);
    cursor: pointer;
}
.filter-chip.active {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}
.filter-chip:active {
    transform: scale(0.96);
}

/* ========================================
   ЛИМИТ (выводить по)
   ======================================== */
.limit-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 8px 20px 4px;
    gap: 8px;
}
.limit-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.limit-buttons {
    display: flex;
    gap: 8px;
    background: var(--bg-input);
    padding: 4px;
    border-radius: 40px;
}
.limit-btn {
    background: transparent;
    border: none;
    padding: 6px 16px;
    border-radius: 32px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: 0.1s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.limit-btn.active {
    background: var(--accent-red);
    color: white;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}
.limit-btn:active {
    transform: scale(0.96);
}

/* ========================================
   ПОИСК
   ======================================== */
.search-container {
    padding: 12px 20px 16px;
}
.search-form {
    display: flex;
    gap: 10px;
    background: var(--bg-input);
    border-radius: 44px;
    padding: 4px 4px 4px 18px;
    border: 0.5px solid var(--border-light);
}
.search-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 12px 0;
    font-size: 16px;
    color: var(--text-primary);
    outline: none;
}
.search-form input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}
.search-form button {
    background: var(--accent-red);
    border: none;
    padding: 0 20px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.search-form button:active {
    opacity: 0.8;
    transform: scale(0.96);
}

/* ========================================
   КАРТОЧКИ (УЯЗВИМОСТИ, ЗАКОНЫ)
   ======================================== */
.main-content {
    flex: 1;
}
.vuln-list {
    padding: 8px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.vuln-card {
    background: var(--bg-card);
    border-radius: 28px;
    padding: 18px;
    border: 0.5px solid var(--border-light);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.vuln-card:active {
    transform: scale(0.99);
    background: var(--bg-input);
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.identifier {
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    background: var(--identifier-bg);
    display: inline-block;
    padding: 5px 12px;
    border-radius: 30px;
    color: var(--identifier-text);
    letter-spacing: 0.3px;
}
.severity-tag {
    font-size: 11px;
    font-weight: 600;
    background: var(--severity-bg);
    padding: 4px 10px;
    border-radius: 30px;
    color: var(--severity-text);
}
.vuln-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 8px 0 10px 0;
    line-height: 1.3;
}
.vuln-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    flex-wrap: wrap;
    gap: 8px;
}
.date-badge {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--date-bg);
    padding: 4px 12px;
    border-radius: 40px;
}
.detail-link {
    background: var(--detail-bg);
    padding: 8px 16px;
    border-radius: 40px;
    text-decoration: none;
    color: var(--detail-text);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}
.detail-link:active {
    opacity: 0.8;
}

/* ========================================
   СТРАНИЦА ДЕТАЛЕЙ 
   ======================================== */
.vuln-detail-card {
    background: var(--bg-card);
    border-radius: 28px;
    margin: 16px;
    padding: 20px;
    border: 0.5px solid var(--border-light);
    box-shadow: var(--shadow-md);
}
.identifier-badge {
    display: inline-block;
    background: var(--identifier-bg);
    padding: 6px 14px;
    border-radius: 30px;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--identifier-text);
    margin-bottom: 12px;
}
.info-section {
    margin-bottom: 24px;
    border-bottom: 0.5px solid var(--border-light);
    padding-bottom: 20px;
}
.info-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--section-title);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title span {
    font-size: 18px;
}
.description-text {
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 8px;
    color: var(--description-text);
}
.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.meta-item {
    background: var(--bg-meta);
    padding: 12px;
    border-radius: 18px;
    border: 0.5px solid var(--border-light);
}
.meta-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--meta-label);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.meta-value {
    font-size: 13px;
    color: var(--meta-value);
    font-weight: 500;
    word-break: break-word;
}
.cvss-scroll {
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    gap: 12px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
}
.cvss-scroll::-webkit-scrollbar {
    height: 3px;
}
.cvss-card {
    background: var(--bg-meta);
    border-radius: 20px;
    padding: 14px 18px;
    min-width: 260px;
    flex-shrink: 0;
    border: 0.5px solid var(--border-light);
}
.cvss-version {
    font-size: 11px;
    font-weight: 600;
    color: var(--cvss-version);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.cvss-score {
    font-size: 14px;
    font-weight: 700;
    color: var(--cvss-score);
    margin-bottom: 8px;
}
.cvss-vector {
    font-size: 11px;
    font-family: monospace;
    color: var(--cvss-vector);
    word-break: break-all;
    white-space: normal;
    line-height: 1.4;
}
.vendor-card {
    background: var(--bg-vendor);
    border-radius: 20px;
    padding: 14px;
    border: 0.5px solid var(--border-light);
}
.vendor-name {
    font-weight: 700;
    color: var(--vendor-name);
    margin-bottom: 8px;
    font-size: 15px;
}
.vendor-detail {
    font-size: 13px;
    color: var(--vendor-detail);
    margin-top: 6px;
}
.vendor-detail strong {
    color: var(--text-secondary);
}
.links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.link-item {
    background: var(--link-bg);
    padding: 10px 16px;
    border-radius: 40px;
    text-decoration: none;
    color: var(--link-text);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    word-break: break-all;
    border: 0.5px solid var(--border-light);
}
.link-item:active {
    transform: scale(0.97);
}
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--back-bg);
    padding: 12px 20px;
    border-radius: 44px;
    text-decoration: none;
    color: var(--back-text);
    font-size: 14px;
    font-weight: 500;
    margin: 8px 16px 20px;
    transition: 0.2s;
    border: 0.5px solid var(--border-light);
}
.back-button:active {
    transform: scale(0.97);
}

/* ========================================
   ПАГИНАЦИЯ
   ======================================== */
.pagination-wrapper {
    padding: 10px 20px 28px;
    display: flex;
    justify-content: center;
    gap: 12px;
    align-items: center;
}
.pagination-btn {
    background: var(--bg-pagination);
    padding: 10px 20px;
    border-radius: 44px;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    transition: 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0.5px solid var(--border-light);
}
.pagination-btn:active {
    transform: scale(0.96);
}
.pagination-btn.disabled {
    background: var(--bg-input);
    color: var(--text-muted);
    pointer-events: none;
    opacity: 0.6;
}
.page-indicator {
    background: var(--accent-red);
    padding: 8px 22px;
    border-radius: 44px;
    color: white;
    font-weight: 700;
    font-size: 15px;
}

/* ========================================
   НИЖНИЙ ТАБ-БАР
   ======================================== */
.bottom-tab-bar {
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    border-top: 0.5px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 20px 18px;
    position: sticky;
    bottom: 0;
    width: 100%;
    z-index: 100;
    margin-top: 8px;
}
.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--tab-inactive);
    font-size: 11px;
    font-weight: 500;
    transition: 0.1s;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.tab-item.active {
    color: var(--tab-active);
}
.tab-icon {
    font-size: 22px;
}
.tab-item:active {
    transform: scale(0.95);
}

/* ========================================
   ДОПОЛНИТЕЛЬНЫЕ ЭЛЕМЕНТЫ
   ======================================== */
.query-highlight {
    font-size: 18px;
    color: var(--query-highlight);
    font-weight: 500;
    margin-top: 4px;
}
.results-count {
    padding: 4px 20px 8px;
    font-size: 13px;
    color: var(--text-muted);
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.6;
}
.empty-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--empty-text);
}
.empty-hint {
    font-size: 14px;
}
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--back-link-bg);
    padding: 10px 18px;
    border-radius: 40px;
    text-decoration: none;
    color: var(--back-link-text);
    font-size: 14px;
    font-weight: 500;
    margin: 0 20px 20px;
    transition: 0.2s;
    border: 0.5px solid var(--border-light);
}
.back-link:active {
    transform: scale(0.96);
}

/* ========================================
   АДАПТИВНЫЕ МЕЛОЧИ
   ======================================== */
@media (max-width: 400px) {
    .sections-grid {
        gap: 10px;
    }
    .card-title {
        font-size: 14px;
    }
    .hero-title {
        font-size: 18px;
    }
    .meta-grid {
        grid-template-columns: 1fr;
    }
}




/* ========================================
   СТИЛИ ДЛЯ СТРАНИЦ ИНСТРУМЕНТОВ
   ======================================== */

/* Блок инструмента (генератор паролей, хэширование и т.д.) */
.tool-section {
    margin-bottom: 24px;
    border-bottom: 0.5px solid var(--border-light);
    padding-bottom: 20px;
}

.tool-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Форма инструмента */
.tool-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.form-group {
    background: var(--bg-meta);
    border-radius: 18px;
    padding: 14px;
    border: 0.5px solid var(--border-light);
}

.form-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--meta-label);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    display: block;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 0.5px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--accent-red);
}

.form-input-number {
    width: 100%;
    background: var(--bg-input);
    border: 0.5px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

/* Чекбоксы в группе */
.checkbox-group {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-secondary);
}

.checkbox-label input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent-red);
}

/* Результат выполнения */
.result-card {
    background: var(--bg-meta);
    border-radius: 20px;
    padding: 16px;
    border: 0.5px solid var(--border-light);
    margin-top: 16px;
}

.result-text {
    font-family: monospace;
    font-size: 16px;
    word-break: break-all;
    text-align: center;
    color: var(--text-primary);
    line-height: 1.5;
}

.result-text-large {
    font-family: monospace;
    font-size: 20px;
    font-weight: 600;
    word-break: break-all;
    text-align: center;
    color: var(--accent-red);
    background: var(--bg-input);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
}

/* Кнопка копирования внутри результата */
.copy-result-btn {
    background: var(--bg-chip);
    border: none;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-chip);
    transition: all 0.2s;
    margin-top: 12px;
    width: fit-content;
}

.copy-result-btn:active {
    transform: scale(0.95);
    background: var(--accent-red);
    color: white;
}

/* Кнопка действия (генерация, вычисление и т.д.) */
.action-button {
    background: var(--detail-bg);
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    color: var(--detail-text);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
    margin-top: 8px;
}

.action-button:active {
    opacity: 0.8;
    transform: scale(0.96);
}

/* Адаптив для форм */
@media (max-width: 400px) {
    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .result-text-large {
        font-size: 16px;
        padding: 12px;
    }
}


/* Текстовое поле */
.form-textarea {
    width: 100%;
    background: var(--bg-input);
    border: 0.5px solid var(--border-light);
    border-radius: 12px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    outline: none;
}

.form-textarea:focus {
    border-color: var(--accent-red);
}

/* Выпадающий список */
.form-select {
    width: 100%;
    background: var(--bg-input);
    border: 0.5px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--accent-red);
}

/* Информационная заметка */
.info-note {
    margin-top: 12px;
    padding: 10px;
    background: var(--bg-meta);
    border-radius: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.info-note code {
    font-size: 11px;
    word-break: break-all;
    background: var(--bg-input);
    padding: 2px 6px;
    border-radius: 6px;
}

/* Разделитель между инструментами */
.tool-divider {
    margin: 32px 0 24px;
    position: relative;
    text-align: center;
}

.tool-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
    z-index: 1;
}

.tool-divider span {
    position: relative;
    z-index: 2;
    background: var(--bg-card);
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-red);
    letter-spacing: 1px;
}

/* Разные фоны для разных инструментов */
.tool-section-crypto {
    background: linear-gradient(135deg, rgba(59,130,246,0.03) 0%, rgba(59,130,246,0) 100%);
    border-radius: 28px;
    padding: 8px;
    margin-bottom: 16px;
}

.tool-section-csp {
    background: linear-gradient(135deg, rgba(16,185,129,0.03) 0%, rgba(16,185,129,0) 100%);
    border-radius: 28px;
    padding: 8px;
    margin-top: 16px;
}

/* Заголовки инструментов с цветовой индикацией */
.tool-header-crypto {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
}

.tool-header-csp {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #10b981;
}

.tool-header-icon {
    font-size: 28px;
}

.tool-header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.tool-header-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Кнопка очистки */
.action-button-clear {
    background: var(--bg-meta);
    border: 1px solid var(--border-light);
    padding: 10px 20px;
    border-radius: 40px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.action-button-clear:active {
    transform: scale(0.96);
}

body.dark .action-button-clear {
    background: var(--bg-chip);
    color: var(--text-chip);
}

/* ========================================
   СТИЛИ ДЛЯ WHOIS
   ======================================== */

/* Секция для сетевых инструментов */
.tool-section-network {
    background: linear-gradient(135deg, rgba(59,130,246,0.03) 0%, rgba(59,130,246,0) 100%);
    border-radius: 28px;
    padding: 8px;
    margin-bottom: 16px;
}

.tool-header-network {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #3b82f6;
}

/* Поле ввода как в поиске */
.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 0.5px solid var(--border-light);
    border-radius: 44px;
    padding: 12px 18px;
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus {
    border-color: var(--accent-red);
}

/* Вывод WHOIS */
.whois-output {
    background: var(--bg-input);
    border-radius: 16px;
    padding: 16px;
    font-family: monospace;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 400px;
    overflow-y: auto;
    margin: 0;
}

body.dark .whois-output {
    background: #0a0d17;
}

@media (max-width: 500px) {
    .header-row {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .breadcrumb {
        width: 100%;
        margin-bottom: 8px;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-end;
    }
}