/* === DNS page styles === */
.dns-hero { background: linear-gradient(135deg, #0d1025 0%, #1a1d3a 50%, #0d1025 100%); border: 1px solid rgba(43,46,84,0.4); border-radius: 12px; padding: 32px; margin-bottom: 28px; position: relative; overflow: hidden; }
.dns-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 300px; height: 300px; background: radial-gradient(circle, rgba(28,191,255,0.05) 0%, transparent 70%); border-radius: 50%; }
.dns-server-card { background: var(--ip-bg-color); border: 1px solid rgba(43,46,84,0.35); border-radius: 10px; overflow: hidden; margin-bottom: 16px; transition: border-color 0.2s; }
.dns-server-card:hover { border-color: rgba(28,191,255,0.2); }
.dns-server-header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid rgba(43,46,84,0.2); }
.dns-server-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 18px; flex-shrink: 0; }
.dns-server-name { font-family: 'Moderustic', sans-serif; font-weight: 700; font-size: 15px; color: #fff; }
.dns-server-desc { font-size: 12px; color: var(--text-color-a); margin-top: 2px; line-height: 1.4; }
.dns-server-body { padding: 16px 20px; }
.dns-ip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dns-ip-block { background: rgba(18,19,32,0.5); border: 1px solid rgba(43,46,84,0.25); border-radius: 8px; padding: 10px 14px; }
.dns-ip-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-color); font-weight: 600; margin-bottom: 6px; }
.dns-ip-value { font-family: 'Courier New', monospace; font-size: 13px; line-height: 1.8; }
.dns-ip-value a { color: var(--bg-color-newlink); text-transform: none; text-decoration: none; display: block; cursor: pointer; transition: color 0.15s; }
.dns-ip-value a:hover { color: #fff; }
.dns-server-link { padding: 0 20px 16px; }
.dns-server-link a { font-size: 12px; color: var(--text-color-a); text-transform: none; text-decoration: none; transition: color 0.15s; }
.dns-server-link a:hover { color: var(--bg-color-newlink); }
.dns-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-top: 20px; }
.dns-feature { display: flex; align-items: start; gap: 10px; padding: 12px; background: rgba(18,19,32,0.4); border: 1px solid rgba(43,46,84,0.2); border-radius: 8px; }
.dns-feature-icon { color: var(--bg-color-newlink); font-size: 16px; margin-top: 1px; flex-shrink: 0; }
.dns-feature-text { font-size: 12px; color: var(--bg-color-w); line-height: 1.5; }
.dns-feature-text strong { color: #fff !important; font-size: 13px; display: block; margin-bottom: 2px; }

/* === Plesk page styles === */
.plesk-hero { background: linear-gradient(135deg, #0d1025, #1a1d3a, #0d1025); border: 1px solid rgba(43,46,84,0.4); border-radius: 12px; padding: 32px; margin-bottom: 28px; position: relative; overflow: hidden; }
.plesk-card { background: var(--ip-bg-color); border: 1px solid rgba(43,46,84,0.35); border-radius: 10px; padding: 20px; transition: border-color 0.2s; }
.plesk-card:hover { border-color: rgba(28,191,255,0.15); }
.plesk-key-display { background: rgba(12,13,22,0.5); border: 2px solid var(--scrollbar-color); border-radius: 8px; padding: 16px 20px; text-align: center; cursor: pointer; transition: border-color 0.2s; }
.plesk-key-display:hover { border-color: var(--bg-color-newlink); }
.plesk-timeline { position: relative; padding-left: 24px; }
.plesk-timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: rgba(43,46,84,0.4); }
.plesk-timeline-item { position: relative; margin-bottom: 20px; }
.plesk-timeline-item::before { content: ''; position: absolute; left: -20px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-color-newlink); border: 2px solid var(--ip-bg-color); }
.plesk-progress-bar { height: 6px; background: rgba(43,46,84,0.3); border-radius: 3px; overflow: hidden; }
.plesk-progress-bar-fill { height: 100%; border-radius: 3px; transition: width 0.5s; }

/* === Tempmail styles === */
.tempmail-container { max-width: 600px; margin: 0 auto; }
.tempmail-address { background: rgba(12,13,22,0.5); border: 2px solid var(--scrollbar-color); border-radius: 8px; padding: 16px; text-align: center; margin-bottom: 20px; }
.tempmail-inbox { background: var(--ip-bg-color); border: 1px solid rgba(43,46,84,0.35); border-radius: 10px; overflow: hidden; }
.tempmail-inbox-header { padding: 12px 16px; border-bottom: 1px solid rgba(43,46,84,0.2); display: flex; justify-content: space-between; align-items: center; }
.tempmail-message { padding: 12px 16px; border-bottom: 1px solid rgba(43,46,84,0.15); transition: background 0.15s; cursor: pointer; }
.tempmail-message:hover { background: rgba(28,191,255,0.03); }

/* === Handbook styles === */
.handbook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.handbook-card { background: var(--ip-bg-color); border: 1px solid rgba(43,46,84,0.35); border-radius: 10px; padding: 20px; transition: border-color 0.2s, transform 0.2s; }
.handbook-card:hover { border-color: rgba(28,191,255,0.15); transform: translateY(-2px); }


.suggest-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--bg-color-w);
    transition: background 0.12s;
    border-bottom: 1px solid rgba(43, 46, 84, 0.15);
    cursor: pointer;
}
.suggest-item:hover,
.suggest-item.suggest-active {
    background: rgba(28, 191, 255, 0.06);
}
.suggest-item:last-child {
    border-bottom: none;
}
.suggest-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(28, 191, 255, 0.06);
    font-size: 14px;
    flex-shrink: 0;
}
.suggest-text {
    flex: 1;
    min-width: 0;
}
.suggest-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.suggest-desc {
    font-size: 11px;
    color: var(--text-color);
    margin-top: 1px;
}
.suggest-type {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    flex-shrink: 0;
}
/* === INDEX SPECIFIC === */
.diag-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(28,191,255,0.25); background: rgba(28,191,255,0.06);
    color: var(--bg-color-newlink); cursor: pointer; transition: all 0.25s;
    position: relative; margin-left: 10px; font-size: 14px; text-decoration: none;
}
.diag-icon-btn:hover { background: var(--bg-color-newlink); color: #0a1628; border-color: var(--bg-color-newlink); box-shadow: 0 4px 16px rgba(28,191,255,0.25); transform: scale(1.08); }
.diag-icon-btn:active { transform: scale(0.95); }
.diag-icon-btn .pulse-ring { position: absolute; inset: -3px; border: 1px solid rgba(28,191,255,0.3); border-radius: 50%; animation: pulseRing 2.5s infinite; }
@keyframes pulseRing { 0%{transform:scale(1);opacity:1}100%{transform:scale(1.5);opacity:0} }

.oc-tabs { display: flex; gap: 0; border-bottom: 1px solid rgba(43,46,84,0.3); background: rgba(18,19,32,0.3); overflow-x: auto; }
.oc-tab { padding: 11px 13px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; cursor: pointer; color: var(--text-color); transition: all 0.15s; border-bottom: 2px solid transparent; white-space: nowrap; font-family: 'Moderustic', sans-serif; }
.oc-tab:hover { color: var(--bg-color-w); }
.oc-tab.active { color: var(--bg-color-newlink); border-bottom-color: var(--bg-color-newlink); }
.oc-panel { display: none; padding: 16px 18px; }
.oc-panel.active { display: block; animation: ocIn 0.2s ease; }
@keyframes ocIn { from{opacity:0}to{opacity:1} }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.info-cell { background: rgba(18,19,32,0.5); border: 1px solid rgba(43,46,84,0.3); border-radius: 8px; padding: 10px 12px; transition: border-color 0.2s; }
.info-cell:hover { border-color: rgba(28,191,255,0.12); }
.info-cell-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-color); margin-bottom: 3px; font-weight: 600; }
.info-cell-value { font-size: 13px; color: #fff; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.info-cell-value a { color: var(--bg-color-newlink); text-transform: none; cursor: pointer; text-decoration: none; }
.info-cell-value a:hover { color: #fff; }
.info-cell-full { grid-column: 1 / -1; }
.info-cell-accent { border-color: rgba(28,191,255,0.12); background: linear-gradient(135deg, rgba(28,191,255,0.04), transparent); }

.oc-section-label { font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--text-color); font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.oc-section-label::after { content: ''; flex: 1; height: 1px; background: rgba(43,46,84,0.25); }

/* DNS */
.dns-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dns-card { background: rgba(18,19,32,0.5); border: 1px solid rgba(43,46,84,0.3); border-radius: 8px; padding: 10px; text-align: center; transition: border-color 0.2s; }
.dns-card:hover { border-color: rgba(28,191,255,0.15); }
.dns-card-logo { height: 20px; margin-bottom: 6px; opacity: 0.85; }
.dns-card-name { font-size: 11px; font-weight: 700; color: var(--bg-color-w); margin-bottom: 4px; }
.dns-card-ips { font-size: 11px; line-height: 1.7; }
.dns-card-ips a { color: var(--bg-color-newlink); font-family: 'Courier New', monospace; text-transform: none; text-decoration: none; display: block; }
.dns-card-ips a:hover { color: #fff; }
.dns-card-ping { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(43,46,84,0.2); font-size: 12px; font-weight: 700; font-family: 'Moderustic', sans-serif; min-height: 22px; }
.dns-all-btn { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 6px; border: 1px dashed rgba(43,46,84,0.4); color: var(--text-color-a); font-size: 11px; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.dns-all-btn:hover { border-color: rgba(28,191,255,0.3); color: var(--bg-color-newlink); background: rgba(28,191,255,0.03); }

/* Network - wider */
.net-toggle { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid rgba(43,46,84,0.4); margin-bottom: 10px; }
.net-toggle-btn { flex: 1; padding: 9px; text-align: center; cursor: pointer; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-color); background: rgba(18,19,32,0.4); transition: all 0.2s; border: none; font-family: 'Moderustic', sans-serif; }
.net-toggle-btn:first-child { border-right: 1px solid rgba(43,46,84,0.4); }
.net-toggle-btn.active { background: rgba(28,191,255,0.1); color: var(--bg-color-newlink); }
.net-toggle-btn:hover { color: var(--bg-color-newlink); }
.net-console { background: rgba(12,13,22,0.5); border: 1px solid rgba(43,46,84,0.3); border-radius: 8px; overflow: hidden; }
.net-console-header { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; background: rgba(18,19,32,0.5); border-bottom: 1px solid rgba(43,46,84,0.2); }
.net-console-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-color); font-weight: 600; }
.net-console-copy { font-size: 10px; color: var(--bg-color-newlink); cursor: pointer; text-decoration: none; text-transform: uppercase; font-weight: 700; }
.net-console-copy:hover { color: #fff; }
.net-console-body { padding: 10px 12px; max-height: 300px; overflow-y: auto; }
.net-console-body pre { margin: 0; font-size: 12px; line-height: 1.6; white-space: pre-wrap; word-break: break-all; }
.net-ip-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 12px; }
.net-ip-item { padding: 4px 0; font-size: 12px; font-family: 'Courier New', monospace; break-inside: avoid; display: flex; align-items: center; justify-content: space-between; }
.net-ip-item a { color: var(--bg-color-newlink); text-transform: none; text-decoration: none; }
.net-ip-item a:hover { color: #fff; }
.net-ip-item .net-ip-copy { font-size: 10px; color: var(--text-color); cursor: pointer; }
.net-ip-item .net-ip-copy:hover { color: var(--bg-color-newlink); }

/* Diag - console style, no button glow */
.diag-visual { background: rgba(12,13,22,0.5); border: 1px solid rgba(43,46,84,0.3); border-radius: 10px; padding: 16px; margin-bottom: 14px; text-align: center; }
.diag-route { display: flex; align-items: center; justify-content: center; gap: 0; margin: 14px 0; }
.diag-node { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.diag-node-icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; border: 2px solid rgba(43,46,84,0.4); transition: all 0.3s; }
.diag-node-icon.active { border-color: var(--bg-color-newlink); box-shadow: 0 0 12px rgba(28,191,255,0.2); }
.diag-node-icon.success { border-color: #28a745; color: #28a745; }
.diag-node-label { font-size: 9px; color: var(--text-color); text-transform: uppercase; max-width: 60px; text-align: center; line-height: 1.2; }
.diag-line { width: 30px; height: 2px; background: rgba(43,46,84,0.4); position: relative; margin: 0 2px 16px; }
.diag-line.success { background: #28a745; }
.diag-line-ms { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); font-size: 9px; color: var(--bg-color-newlink); white-space: nowrap; font-weight: 700; }
.diag-start-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 22px; border-radius: 8px; background: var(--bg-color-newlink); color: #0a1628; border: none; font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.2s, opacity 0.2s; font-family: 'Moderustic', sans-serif; letter-spacing: 0.5px; text-transform: uppercase; }
.diag-start-btn:hover { background: #15a8e0; }
.diag-start-btn:disabled { opacity: 0.5; cursor: not-allowed; }
/* Console log - real terminal style */
.diag-log { background: #0c0d16; border: 1px solid rgba(43,46,84,0.3); border-radius: 8px; padding: 12px 14px; margin-top: 10px; font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.8; max-height: 220px; overflow-y: auto; display: none; color: #6b7280; }
.diag-log.show { display: block; }
.diag-log::before { content: attr(data-prompt); display: block; color: #28a745; margin-bottom: 6px; font-weight: 700; }


/* === Skeleton loaders === */
@keyframes skeletonPulse { 0%{opacity:.6} 50%{opacity:.3} 100%{opacity:.6} }
.skeleton { animation: skeletonPulse 1.5s ease-in-out infinite; background: rgba(43,46,84,0.3); border-radius: 4px; }
.skeleton-text { height: 14px; margin-bottom: 8px; width: 80%; }
.skeleton-text.short { width: 40%; }
.skeleton-ip { height: 48px; width: 260px; margin: 12px auto; }
.skeleton-badge { height: 24px; width: 60px; display: inline-block; border-radius: 4px; }
.skeleton-block { height: 120px; border-radius: 8px; }
.skeleton-card { height: 80px; border-radius: 8px; margin-bottom: 10px; }

/* === Search result cards === */
.search-result-card {
    background: var(--ip-bg-color);
    border: 1px solid rgba(43,46,84,0.35);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color 0.15s, transform 0.15s;
    text-decoration: none;
    color: inherit;
}
.search-result-card:hover {
    border-color: rgba(28,191,255,0.2);
    transform: translateY(-1px);
}
.search-result-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.search-result-body {
    flex: 1;
    min-width: 0;
}
.search-result-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
    font-family: 'Moderustic', sans-serif;
}
.search-result-meta {
    font-size: 12px;
    color: var(--text-color-a);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.search-result-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.search-result-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

/* === IP info hero card === */
.ip-hero-card {
    background: var(--ip-bg-color);
    border: 2px solid var(--scrollbar-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}
.ip-hero-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}
.ip-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(28,191,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--bg-color-newlink);
    flex-shrink: 0;
}
.ip-hero-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    font-family: 'Courier New', monospace;
    margin: 0;
}
.ip-hero-subtitle {
    font-size: 13px;
    color: var(--text-color-a);
    margin-top: 2px;
}
.ip-hero-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

/* === RPSL console === */
.rpsl-console {
    background: #0c0d16;
    border: 1px solid rgba(43,46,84,0.3);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.rpsl-console-header {
    padding: 8px 14px;
    background: rgba(18,19,32,0.5);
    border-bottom: 1px solid rgba(43,46,84,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.rpsl-console-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-color);
    font-weight: 600;
}
.rpsl-console-body {
    padding: 12px 14px;
}
.rpsl-console-body pre {
    margin: 0;
    font-size: 12px;
    line-height: 1.7;
    color: var(--bg-color-w);
}



/* === Search suggestions — dropdown below input === */
.search-input-wrapper {
    position: relative !important;
}
#searchSuggestions {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: rgba(14, 15, 28, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(43, 46, 84, 0.6);
    border-radius: 12px;
    z-index: 9999;
    max-height: 360px;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(28, 191, 255, 0.05);
    padding: 6px 0;
}




/* === Hero card glow — blue+pink on dark (matching site style) === */
.ip-hero-card {
    position: relative;
    overflow: hidden;
    border-color: rgba(60, 80, 180, 0.15) !important;
}
.ip-hero-card::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -10%;
    width: 550px;
    height: 550px;
    background: radial-gradient(ellipse, rgba(60, 100, 255, 0.08) 0%, rgba(160, 60, 200, 0.04) 45%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroGlow 10s ease-in-out infinite alternate;
}
.ip-hero-card::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(200, 60, 150, 0.06) 0%, rgba(60, 80, 220, 0.02) 50%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: heroGlow 8s ease-in-out 3s infinite alternate-reverse;
}
@keyframes heroGlow {
    0% { opacity: 0.7; transform: scale(1) translateY(0); }
    100% { opacity: 1; transform: scale(1.1) translateY(-10px); }
}
.ip-hero-icon {
    box-shadow: 0 0 24px rgba(80, 100, 255, 0.15), 0 0 48px rgba(160, 60, 200, 0.06);
}

/* === RPSL console glow === */
.rpsl-console {
    border-color: rgba(60, 80, 180, 0.12) !important;
}

/* === Handbook accordion === */
.hb-card {
    background: var(--ip-bg-color);
    border: 1px solid rgba(43,46,84,0.35);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color 0.15s;
}
.hb-card:has(.show) { border-color: rgba(28,191,255,0.15); }
.hb-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    cursor: pointer;
    transition: background 0.12s;
}
.hb-card-header:hover { background: rgba(28,191,255,0.02); }
.hb-card-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.hb-card-title { font-size: 14px; font-weight: 700; color: #fff; }
.hb-card-desc { font-size: 11px; color: var(--text-color-a); margin-top: 1px; }
.hb-chevron {
    margin-left: auto;
    color: var(--text-color);
    font-size: 11px;
    transition: transform 0.2s;
}
.hb-card-header[aria-expanded="true"] .hb-chevron,
.hb-card-header:not(.collapsed) .hb-chevron { transform: rotate(180deg); }
.hb-card-body {
    padding: 0 18px 18px;
}
.hb-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    border-radius: 6px;
    background: rgba(43,46,84,0.2);
    border: 1px solid rgba(43,46,84,0.3);
    color: var(--bg-color-w);
}

/* ================================================================
   MOBILE RESPONSIVE FIXES
   ================================================================ */

/* Info grid — single column on mobile */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr !important;
    }
    .info-cell-value {
        font-size: 12px;
        word-break: break-all;
    }
    
    /* IP hero — stack vertically */
    .ip-hero-header {
        flex-wrap: wrap;
        gap: 12px !important;
    }
    .ip-hero-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .ip-hero-title {
        font-size: 18px !important;
    }
    .ip-hero-icon {
        width: 44px !important;
        height: 44px !important;
        font-size: 18px !important;
    }
    
    /* Tables — horizontal scroll with indicator */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .table td, .table th {
        white-space: nowrap;
        font-size: 12px !important;
    }
    
    /* RPSL console */
    .rpsl-console-body pre {
        font-size: 11px !important;
        overflow-x: auto;
    }
    
    /* Networks title + button */
    .pageTitle_kx {
        font-size: 14px !important;
    }
    
    /* Search results cards */
    .search-result-card {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }
    .search-result-badge {
        display: none;
    }
    
    /* Diag button — hide on mobile (already has d-none d-md-inline-flex) */
    
    /* Features grid */
    .tm-feature,
    .handbook-grid > *,
    .handbook-card {
        min-width: 0 !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

@media (max-width: 576px) {
    .info-grid {
        gap: 6px !important;
    }
    .info-cell {
        padding: 8px 10px !important;
    }
    .info-cell-label {
        font-size: 8px !important;
    }
    .info-cell-value {
        font-size: 11px !important;
    }
    .ip-hero-card {
        padding: 16px !important;
    }
    .ip-hero-title {
        font-size: 16px !important;
        word-break: break-all;
    }
}

/* ================================================================
   MEGA MENU — ipmenmenu redesign
   ================================================================ */

/* Override old dropdown positioning */
.ipmenmenu-options {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    right: 0 !important;
    left: auto !important;
    width: 340px !important;
    max-width: calc(100vw - 40px) !important;
    background: rgba(14, 15, 28, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(43, 46, 84, 0.5) !important;
    border-radius: 12px !important;
    padding: 8px !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(28, 191, 255, 0.04) !important;
    z-index: 9999 !important;
}

/* Arrow — positioned at top right */
.ipmenmenu-options::before {
    content: "" !important;
    position: absolute !important;
    top: -7px !important;
    right: 16px !important;
    left: auto !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-bottom: 8px solid rgba(43, 46, 84, 0.5) !important;
    z-index: 11 !important;
    pointer-events: none !important;
}

/* Menu items — mega menu style */
.ipmenmenu-option {
    padding: 12px 14px !important;
    border-radius: 8px !important;
    margin-bottom: 2px !important;
    transition: background 0.15s !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}
.ipmenmenu-option:hover {
    background: rgba(28, 191, 255, 0.06) !important;
}
.ipmenmenu-option:last-child {
    margin-bottom: 0 !important;
}

/* Title inside menu item */
.ipmenmenu-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
}
.ipmenmenu-title i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(28, 191, 255, 0.06);
    color: var(--bg-color-newlink);
    font-size: 13px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Description inside menu item */
.ipmenmenu-description {
    font-size: 11px !important;
    color: var(--text-color-a) !important;
    margin-top: 3px !important;
    padding-left: 38px !important;
    line-height: 1.4 !important;
}

/* Language dropdown — same mega style */
.language-options {
    position: absolute !important;
    top: calc(100% + 14px) !important;
    right: 0 !important;
    left: auto !important;
    min-width: 180px !important;
    background: rgba(14, 15, 28, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border: 1px solid rgba(43, 46, 84, 0.5) !important;
    border-radius: 10px !important;
    padding: 6px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
    z-index: 9999 !important;
}
.language-options::before {
    content: "" !important;
    position: absolute !important;
    top: -7px !important;
    right: 16px !important;
    left: auto !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 8px solid transparent !important;
    border-right: 8px solid transparent !important;
    border-bottom: 8px solid rgba(43, 46, 84, 0.5) !important;
    z-index: 11 !important;
    pointer-events: none !important;
}
.language-option {
    padding: 10px 12px !important;
    border-radius: 6px !important;
    transition: background 0.15s !important;
}
.language-option:hover {
    background: rgba(28, 191, 255, 0.06) !important;
}

/* Mobile: mega menu full width */
@media (max-width: 768px) {
    .ipmenmenu-options {
        position: fixed !important;
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        padding: 16px !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
    }
    .ipmenmenu-options::before {
        display: none !important;
    }
    
    .language-options {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        border-radius: 16px 16px 0 0 !important;
        padding: 12px !important;
    }
    .language-options::before {
        display: none !important;
    }
}

/* ================================================================
   OFFCANVAS MOBILE FIX
   ================================================================ */
@media (max-width: 480px) {
    .offcanvas.offcanvas-end {
        width: 100vw !important;
        max-width: 100vw !important;
    }
    .offcanvas-header {
        padding: 10px 14px !important;
    }
    .offcanvas-header h5 {
        font-size: 13px !important;
    }
    .oc-tabs {
        gap: 0 !important;
    }
    .oc-tab {
        padding: 10px 10px !important;
        font-size: 9px !important;
        letter-spacing: 0.3px !important;
    }
    .info-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
}

/* ipmenmenu trigger — wider professional look */
.ipmenmenu-select {
    padding-right: 20px !important;
}
.ipmenmenu-select .selected-option {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
}

/* Mega menu section headers */
.ipmenmenu-options > div:not(.ipmenmenu-option) {
    pointer-events: none;
}

/* === IT-Профсоюз Promo Block === */
.itpro-promo {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: center;
    margin-bottom: -28px;
    pointer-events: none;
}
.itpro-inner {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    padding: 0 24px;
    pointer-events: auto;
    cursor: pointer;
    transform: translateY(28px);
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
}
.itpro-inner:hover {
    transform: translateY(-8px);
}

/* Logo */
.itpro-logo-wrap {
    position: relative;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
}
.itpro-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(28,191,255,0.25);
    box-shadow: 0 0 20px rgba(28,191,255,0.15), 0 0 40px rgba(28,191,255,0.05);
    transition: box-shadow 0.4s, border-color 0.4s, transform 0.4s;
}
.itpro-inner:hover .itpro-logo {
    border-color: rgba(28,191,255,0.6);
    box-shadow: 0 0 30px rgba(28,191,255,0.3), 0 0 60px rgba(28,191,255,0.1);
    transform: scale(1.08);
}

/* Pulse rings (like diagnostic button) */
.itpro-pulse {
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(28,191,255,0.2);
    border-radius: 50%;
    animation: itproPulse 3s infinite;
    pointer-events: none;
}
.itpro-pulse-2 {
    animation-delay: 1.5s;
}
@keyframes itproPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}
.itpro-inner:hover .itpro-pulse { animation-duration: 1.5s; }

/* Text block */
.itpro-text {
    padding-bottom: 6px;
    overflow: hidden;
    max-height: 26px;
    transition: max-height 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), padding 0.3s;
}
.itpro-inner:hover .itpro-text {
    max-height: 120px;
}
.itpro-name {
    font-family: 'Moderustic', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    transition: color 0.3s;
}
.itpro-inner:hover .itpro-name {
    color: var(--bg-color-newlink);
}
.itpro-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s 0.1s, transform 0.35s 0.1s;
}
.itpro-inner:hover .itpro-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.itpro-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.35s 0.18s, transform 0.35s 0.18s;
}
.itpro-inner:hover .itpro-buttons {
    opacity: 1;
    transform: translateY(0);
}
.itpro-btn {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}
.itpro-btn-site {
    background: rgba(28,191,255,0.1);
    border: 1px solid rgba(28,191,255,0.3);
    color: var(--bg-color-newlink);
}
.itpro-btn-site:hover {
    background: rgba(28,191,255,0.2);
    border-color: var(--bg-color-newlink);
    color: #fff;
    box-shadow: 0 2px 12px rgba(28,191,255,0.2);
}
.itpro-btn-tg {
    background: rgba(0,136,204,0.15);
    border: 1px solid rgba(0,136,204,0.35);
    color: #29b6f6;
}
.itpro-btn-tg:hover {
    background: #0088cc;
    border-color: #0088cc;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0,136,204,0.3);
}

/* Mobile */
@media (max-width: 480px) {
    .itpro-logo-wrap, .itpro-logo { width: 44px; height: 44px; }
    .itpro-name { font-size: 11px; }
    .itpro-desc { font-size: 10px; }
    .itpro-btn { font-size: 9px; padding: 3px 10px; }
}

/* ─── IT-Профсоюз: tab widget on footer ─── */
footer.footer{overflow:visible}
footer.footer > .container:first-child{position:relative;height:0;overflow:visible}
.itp-chip{position:absolute;bottom:0;width:140px;right:24px;display:flex;flex-direction:column;justify-content:flex-end;background:linear-gradient(180deg,rgba(28,32,56,0.98),rgb(24,26,45));border:0.8px solid rgba(43,46,84,0.35);border-bottom:none;border-radius:10px 10px 0 0;cursor:pointer;overflow:hidden;transition:width 0.4s cubic-bezier(0.22,1,0.36,1),box-shadow 0.4s,border-color 0.4s;box-shadow:0 -2px 12px rgba(0,0,0,0.1)}
.itp-chip.open{width:280px;border-color:rgba(28,191,255,0.12);box-shadow:0 -6px 30px rgba(0,0,0,0.25),0 0 40px rgba(28,191,255,0.03);overflow:visible}
.itp-chip::before{content:'';position:absolute;top:0;left:12px;right:12px;height:1px;background:linear-gradient(90deg,transparent,rgba(28,191,255,0.08),transparent);transition:all 0.4s}
.itp-chip.open::before{background:linear-gradient(90deg,transparent,rgba(28,191,255,0.2),transparent);box-shadow:0 0 8px rgba(28,191,255,0.08)}
.itp-head{display:flex;align-items:center;gap:10px;padding:4px 8px 4px 4px;white-space:nowrap;min-width:0;transition:padding 0.3s,gap 0.3s}
.itp-chip.open .itp-head{padding:14px 20px 8px 12px;gap:12px}
.itp-av{position:relative;width:30px;height:30px;flex-shrink:0;transition:all 0.4s cubic-bezier(0.22,1,0.36,1)}
.itp-chip.open .itp-av{width:48px;height:48px}
.itp-av img{width:100%;height:100%;border-radius:50%;object-fit:cover;position:relative;z-index:2;filter:drop-shadow(0 0 4px rgba(120,220,80,0.08));transition:filter 0.4s}
.itp-chip.open .itp-av img{filter:drop-shadow(0 0 12px rgba(120,220,80,0.2)) drop-shadow(0 0 24px rgba(28,191,255,0.1))}
.itp-av::before{content:'';position:absolute;inset:-6px;border-radius:50%;background:radial-gradient(circle,rgba(120,220,80,0.06),transparent 70%);z-index:1;transition:all 0.4s}
.itp-chip.open .itp-av::before{inset:-14px;background:radial-gradient(circle,rgba(120,220,80,0.12),transparent 70%)}
.itp-av::after{content:'';position:absolute;inset:-3px;border:1.5px solid rgba(120,220,80,0.08);border-radius:50%;z-index:2;animation:ipP 3s ease-out infinite}
@keyframes ipP{0%{transform:scale(1);opacity:0.4}100%{transform:scale(2);opacity:0}}
.itp-lbl{font-family:'Moderustic',sans-serif;font-size:9.5px;font-weight:800;color:rgba(255,255,255,0.3);letter-spacing:0.8px;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:all 0.35s}
.itp-chip.open .itp-lbl{font-size:14px;color:#fff;letter-spacing:0.2px;text-shadow:0 0 16px rgba(28,191,255,0.08)}
.itp-body{max-height:0;opacity:0;overflow:hidden;padding:0 12px;transition:max-height 0.4s cubic-bezier(0.22,1,0.36,1),opacity 0.3s ease 0.06s,padding 0.3s}
.itp-chip.open .itp-body{max-height:120px;opacity:1;padding:0 12px 14px 12px}
.itp-sub{font-size:11.5px;color:rgba(255,255,255,0.28);margin-bottom:10px;white-space:normal;word-wrap:break-word;line-height:1.4}
.itp-acts{display:flex;gap:8px;flex-wrap:wrap}
.itp-acts a{display:inline-flex!important;align-items:center!important;gap:5px;padding:5px 14px;border-radius:7px;font-size:11.5px;font-weight:600!important;text-decoration:none!important;text-transform:none!important;white-space:nowrap;transition:all 0.25s;position:relative;overflow:hidden}
.itp-ln{color:rgba(255,255,255,0.45)!important;background:rgba(255,255,255,0.03);border:1px solid rgba(255,255,255,0.06)}
.itp-ln:hover{color:#fff!important;background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.12)}
.itp-tg{color:#fff!important;border:none;background:linear-gradient(135deg,#229ED9,#1A8BC2);box-shadow:0 2px 8px rgba(34,158,217,0.15)}
.itp-tg:hover{background:linear-gradient(135deg,#2DB5F0,#229ED9);box-shadow:0 3px 14px rgba(34,158,217,0.3);transform:translateY(-1px)}
.itp-tg::after{content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,0.1),transparent);transition:left 0.5s}
.itp-tg:hover::after{left:100%}
@media(max-width:768px){.itp-chip{right:16px;width:130px}.itp-chip.open{width:260px}}
@media(max-width:480px){.itp-chip{right:10px;width:120px}.itp-chip.open{width:calc(100vw - 30px)}}
/* Reset ALL footer inherited styles inside widget */
.itp-chip,.itp-chip *{text-align:left;text-decoration:none;font-style:normal;color:inherit}
.itp-chip a,.itp-chip a:hover,.itp-chip a:visited{text-decoration:none!important;text-underline-offset:0!important;font-weight:600!important}
.itp-chip i.fa{color:inherit!important;font-size:inherit}

/* ─── TAS-IX Badge Constructor ─── */
.badge-section{display:flex;gap:20px;margin:20px 0;align-items:flex-start}
.badge-step-num{width:36px;height:36px;min-width:36px;border-radius:50%;background:linear-gradient(135deg,rgba(28,191,255,0.15),rgba(28,191,255,0.05));border:1.5px solid rgba(28,191,255,0.2);color:rgba(28,191,255,0.8);font-family:'Moderustic',sans-serif;font-size:14px;font-weight:800;display:flex;align-items:center;justify-content:center;margin-top:2px}
.badge-step-content{flex:1;min-width:0}
.badge-step-title{font-family:'Moderustic',sans-serif;font-size:16px;font-weight:700;color:var(--bg-color-w);margin-bottom:4px}
.badge-step-desc{font-size:13px;color:var(--text-color);margin-bottom:16px}

.badge-input-row{display:flex;gap:10px;align-items:stretch}
.badge-input-wrap{position:relative;flex:1}
.badge-input-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--text-color);font-size:14px}
.badge-input{width:100%;padding:10px 14px 10px 38px;background:rgba(12,13,22,0.4);border:1.5px solid rgba(43,46,84,0.4);border-radius:8px;color:var(--bg-color-w);font-size:14px;font-family:'Courier New',monospace;outline:none;transition:border-color 0.2s}
.badge-input:focus{border-color:rgba(28,191,255,0.4)}
.badge-input::placeholder{color:var(--text-color);opacity:0.5}
.badge-btn-check{padding:10px 24px;background:linear-gradient(135deg,#229ED9,#1A8BC2);color:#fff;border:none;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;transition:all 0.2s;font-family:inherit}
.badge-btn-check:hover{background:linear-gradient(135deg,#2DB5F0,#229ED9);box-shadow:0 4px 16px rgba(34,158,217,0.3)}

.badge-alert{display:flex;align-items:flex-start;gap:10px;padding:14px 18px;border-radius:10px;font-size:13px;line-height:1.5}
.badge-alert-ok{background:rgba(40,167,69,0.08);border:1px solid rgba(40,167,69,0.2);color:#b8e6c8}
.badge-alert-ok i{color:#28a745;font-size:18px;margin-top:1px}
.badge-alert-warn{background:rgba(255,193,7,0.06);border:1px solid rgba(255,193,7,0.15);color:#f0e0b8}
.badge-alert-warn i{color:#ffc107;font-size:18px;margin-top:1px}
.badge-alert-error{background:rgba(220,53,69,0.08);border:1px solid rgba(220,53,69,0.2);color:#f0b8b8}
.badge-alert-error i{color:#dc3545;font-size:18px;margin-top:1px}

/* Theme grid */
.badge-themes{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:20px}
.badge-theme-item{cursor:pointer;text-align:center;transition:transform 0.2s}
.badge-theme-item:hover{transform:translateY(-2px)}
.badge-theme-preview{padding:10px 12px;border:2px solid transparent;border-radius:8px;display:flex;align-items:center;justify-content:center;transition:all 0.2s}
.badge-theme-preview span{font-size:11px;font-weight:800;letter-spacing:0.5px}
.badge-theme-item.active .badge-theme-preview{border-color:rgba(28,191,255,0.5);box-shadow:0 0 16px rgba(28,191,255,0.12)}
.badge-theme-name{font-size:10px;color:var(--text-color);margin-top:4px;font-weight:600}

/* Options */
.badge-options{display:flex;gap:24px;flex-wrap:wrap}
.badge-toggle{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px;color:var(--bg-color-w)}
.badge-toggle input{accent-color:#1cbfff;width:16px;height:16px}

/* Preview */
.badge-preview-area{margin-bottom:20px}
.badge-preview-label{font-size:11px;color:var(--text-color);text-transform:uppercase;font-weight:700;letter-spacing:0.5px;margin-bottom:10px}
.badge-preview-box{padding:28px;background:repeating-conic-gradient(rgba(255,255,255,0.03) 0% 25%,transparent 0% 50%) 0 0 / 20px 20px;border:1.5px solid rgba(43,46,84,0.3);border-radius:10px;display:flex;align-items:center;justify-content:center}

/* Code block */
.badge-code-area{margin-bottom:16px}
.badge-code-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.badge-code-header span{font-size:11px;color:var(--text-color);text-transform:uppercase;font-weight:700;letter-spacing:0.5px}
.badge-copy-btn{font-size:11px;color:var(--bg-color-newlink);text-decoration:none;font-weight:700;text-transform:uppercase;cursor:pointer;transition:color 0.2s}
.badge-copy-btn:hover{color:#fff}
.badge-code{background:rgba(12,13,22,0.5);border:1.5px solid rgba(43,46,84,0.3);border-radius:8px;padding:16px;font-size:12px;color:#b8d4f0;font-family:'Courier New',monospace;overflow-x:auto;white-space:pre-wrap;word-break:break-all;margin:0;line-height:1.6}

.badge-note{font-size:12px;color:var(--text-color);background:rgba(28,191,255,0.04);border:1px solid rgba(28,191,255,0.08);border-radius:8px;padding:12px 16px;line-height:1.5}
.badge-note i{color:rgba(28,191,255,0.5)}

/* Features */
.badge-features{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin:32px 0 40px}
.badge-feature{padding:20px;background:linear-gradient(180deg,rgba(28,32,56,0.98),rgb(24,26,45));border:0.8px solid rgba(43,46,84,0.35);border-radius:10px;text-align:center}
.badge-feature-icon{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;font-size:18px}
.badge-feature-title{font-family:'Moderustic',sans-serif;font-size:13px;font-weight:700;color:var(--bg-color-w);margin-bottom:4px}
.badge-feature-desc{font-size:11px;color:var(--text-color);line-height:1.4}

@media(max-width:768px){
    .badge-section{flex-direction:column;gap:12px}
    .badge-themes{grid-template-columns:repeat(3,1fr)}
    .badge-input-row{flex-direction:column}
    .badge-options{flex-direction:column;gap:12px}
}
@media(max-width:480px){
    .badge-themes{grid-template-columns:repeat(2,1fr)}
}

/* Badge size selector */
.badge-option-label{font-size:11px;color:var(--text-color);text-transform:uppercase;font-weight:700;letter-spacing:0.5px;margin-bottom:10px}
.badge-sizes{display:flex;gap:14px;margin-bottom:6px;flex-wrap:wrap}
.badge-size-item{cursor:pointer;text-align:center;transition:transform 0.2s;padding:10px 14px;border:1.5px solid rgba(43,46,84,0.3);border-radius:8px;background:rgba(12,13,22,0.3);min-width:100px}
.badge-size-item:hover{transform:translateY(-2px);border-color:rgba(43,46,84,0.5)}
.badge-size-item.active{border-color:rgba(28,191,255,0.4);background:rgba(28,191,255,0.04);box-shadow:0 0 16px rgba(28,191,255,0.08)}
.badge-size-box{margin:0 auto 8px;border:1px dashed rgba(28,191,255,0.2);border-radius:3px;background:rgba(28,191,255,0.03)}
.badge-size-name{font-family:'Moderustic',sans-serif;font-size:13px;font-weight:700;color:var(--bg-color-w)}
.badge-size-hint{font-size:10px;color:var(--text-color);margin-top:2px}

/* ─── Mobile Navigation Offcanvas ─── */
.mob-nav-section{padding:8px 0;border-bottom:1px solid rgba(43,46,84,0.15)}
.mob-nav-section:last-child{border-bottom:none}
.mob-nav-label{padding:10px 20px 4px;font-size:9px;text-transform:uppercase;letter-spacing:1.5px;color:var(--text-color);font-weight:600}
.mob-nav-link{display:flex;align-items:center;gap:10px;padding:10px 20px;color:rgba(255,255,255,0.7);font-size:14px;font-weight:500;text-decoration:none;transition:all 0.15s}
.mob-nav-link:hover,.mob-nav-link:active{color:#fff;background:rgba(28,191,255,0.06)}
.mob-nav-link i{width:18px;text-align:center;color:rgba(28,191,255,0.5);font-size:14px}
.mob-nav-active{color:#fff!important;background:rgba(28,191,255,0.08)}
.mob-nav-active i{color:rgba(28,191,255,0.9)}

/* Fix IP details offcanvas scrolling on mobile */
.offcanvas-body{overflow-y:auto;-webkit-overflow-scrolling:touch}
#detailsabouttheip .offcanvas-body,.oc-panel{overflow-y:auto;max-height:calc(100vh - 100px)}



/* Fix diag button on mobile — hide pulse effect, make static */
@media(max-width:991.98px){
    .diag-icon-btn .pulse-ring{display:none!important}
    .diag-icon-btn{position:static!important;top:auto!important;right:auto!important;width:auto;height:auto;margin:8px auto 0;display:none!important;align-items:center;gap:6px;padding:6px 14px;border-radius:8px;background:rgba(28,191,255,0.08);border:1px solid rgba(28,191,255,0.15);font-size:12px;color:rgba(28,191,255,0.8);text-decoration:none}
    .diag-icon-btn:hover{background:rgba(28,191,255,0.15);color:#fff}
    .diag-icon-btn::after{content:'Диагностика';font-family:'Moderustic',sans-serif;font-weight:600;font-size:11px}
}

/* ─── Diag button responsive ─── */
/* Desktop: absolute positioned above-right of IP */
.diag-icon-btn-resp{display:inline-flex!important;position:absolute;top:-50px;right:-60px}
/* Tablet: smaller offset */
@media(max-width:991.98px){
    .diag-icon-btn-resp{top:-45px;right:-50px}
}
/* Mobile: no absolute, no pulse, inline under IP */
@media(max-width:575.98px){
    .diag-icon-btn-resp{position:static!important;top:auto!important;right:auto!important;margin-top:6px;width:auto;height:auto;padding:5px 14px;font-size:12px;gap:6px}
    .diag-icon-btn-resp .pulse-ring{display:none!important}
    .diag-icon-btn-resp::after{content:'Диагностика';font-size:11px;font-weight:600;margin-left:4px}
}

/* ─── TAS-IX Map ─── */
.map-stats{display:flex;gap:0;margin:16px 0;border:1px solid rgba(43,46,84,0.3);border-radius:10px;overflow:hidden;background:linear-gradient(180deg,rgba(28,32,56,0.6),rgba(24,26,45,0.4))}
.map-stat{flex:1;text-align:center;padding:14px 10px;border-right:1px solid rgba(43,46,84,0.2)}
.map-stat:last-child{border-right:none}
.map-stat-value{display:block;font-family:'Moderustic',sans-serif;font-size:22px;font-weight:800;color:#1cbfff}
.map-stat-label{font-size:10px;color:var(--text-color);text-transform:uppercase;letter-spacing:0.5px;font-weight:600}

.map-container{position:relative;background:linear-gradient(180deg,rgba(8,10,20,0.95),rgba(12,14,28,0.9));border:1px solid rgba(43,46,84,0.25);border-radius:12px;overflow:hidden;margin-bottom:24px}
.map-container svg{display:block;width:100%;cursor:grab}
.map-container svg:active{cursor:grabbing}

.map-loading{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:5}
.map-spinner{width:32px;height:32px;border:3px solid rgba(28,191,255,0.1);border-top-color:rgba(28,191,255,0.6);border-radius:50%;animation:mapSpin 0.8s linear infinite}
@keyframes mapSpin{to{transform:rotate(360deg)}}

.map-tooltip{display:none;position:absolute;padding:10px 14px;background:rgba(14,16,30,0.95);border:1px solid rgba(43,46,84,0.4);border-radius:8px;font-size:12px;color:#fff;pointer-events:none;z-index:10;line-height:1.6;backdrop-filter:blur(8px);max-width:220px}

.map-controls{position:absolute;top:12px;right:12px;display:flex;flex-direction:column;gap:4px;z-index:5}
.map-ctrl-btn{width:32px;height:32px;border:1px solid rgba(43,46,84,0.4);border-radius:6px;background:rgba(14,16,30,0.8);color:rgba(255,255,255,0.5);font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:all 0.2s;backdrop-filter:blur(4px)}
.map-ctrl-btn:hover{color:#fff;border-color:rgba(28,191,255,0.3);background:rgba(28,191,255,0.08)}

.map-legend{position:absolute;bottom:12px;left:12px;display:flex;gap:14px;padding:8px 14px;background:rgba(14,16,30,0.8);border:1px solid rgba(43,46,84,0.3);border-radius:8px;font-size:11px;color:rgba(255,255,255,0.5);z-index:5;backdrop-filter:blur(4px)}
.map-legend-item{display:flex;align-items:center;gap:5px}
.map-legend-dot{width:8px;height:8px;border-radius:50%;display:inline-block}

/* Provider list below map */
.map-prov-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin-bottom:40px}
.map-prov-card{padding:12px 14px;background:linear-gradient(180deg,rgba(28,32,56,0.5),rgba(24,26,45,0.3));border:1px solid rgba(43,46,84,0.2);border-radius:8px;transition:border-color 0.2s}
.map-prov-card:hover{border-color:rgba(28,191,255,0.2)}
.map-prov-name{font-family:'Moderustic',sans-serif;font-size:13px;font-weight:700;color:var(--bg-color-w);margin-bottom:4px}
.map-prov-meta{display:flex;flex-direction:column;gap:2px}
.map-prov-count{font-size:11px;color:#1cbfff;font-weight:600}
.map-prov-link{font-size:10px;color:var(--text-color);text-decoration:none;text-transform:none!important}
.map-prov-link:hover{color:var(--bg-color-newlink)}

@media(max-width:768px){
    .map-stats{flex-wrap:wrap}
    .map-stat{flex:1 1 50%;border-bottom:1px solid rgba(43,46,84,0.2)}
    .map-prov-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}
}

/* ─── TAS-IX v2 — Participant Cards ─── */
.tx-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:20px}
.tx-stat{background:rgba(18,19,32,0.5);border:1px solid rgba(43,46,84,0.3);border-radius:10px;padding:14px 10px;text-align:center}
.tx-stat-val{font-family:'Moderustic',sans-serif;font-size:26px;font-weight:800;color:var(--bg-color-newlink)}
.tx-stat-lbl{font-size:10px;color:var(--text-color);text-transform:uppercase;letter-spacing:0.5px;margin-top:2px;font-weight:600}

.tx-filters{display:flex;gap:8px;margin-bottom:16px;flex-wrap:wrap;align-items:center}
.tx-filter-btn{padding:6px 14px;border-radius:6px;border:1px solid rgba(43,46,84,0.3);background:transparent;color:rgba(255,255,255,0.6);font-size:11px;font-weight:700;cursor:pointer;text-transform:uppercase;letter-spacing:0.5px;transition:all 0.15s;font-family:'Moderustic',sans-serif}
.tx-filter-btn:hover{border-color:rgba(28,191,255,0.3);color:rgba(255,255,255,0.8)}
.tx-filter-btn.active{border-color:var(--bg-color-newlink);background:rgba(28,191,255,0.06);color:var(--bg-color-newlink)}
.tx-filter-btn[data-color="green"].active{border-color:#28a745;background:rgba(40,167,69,0.06);color:#28a745}
.tx-filter-btn[data-color="orange"].active{border-color:#ff9f43;background:rgba(255,159,67,0.06);color:#ff9f43}
.tx-filter-btn[data-color="gray"].active{border-color:#6c757d;background:rgba(108,117,125,0.06);color:#6c757d}
.tx-search{padding:6px 12px;border-radius:6px;border:1px solid rgba(43,46,84,0.3);background:rgba(12,13,22,0.5);color:#fff;font-size:12px;outline:none;width:220px;margin-left:auto;transition:border-color 0.2s}
.tx-search:focus{border-color:rgba(28,191,255,0.3)}

.tx-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:10px;margin-bottom:20px}
.tx-card{background:rgba(18,19,32,0.5);border:1px solid rgba(43,46,84,0.3);border-radius:10px;padding:14px;transition:all 0.2s;position:relative}
.tx-card:hover{border-color:rgba(28,191,255,0.2)}
.tx-card.selected{border-color:rgba(28,191,255,0.25);background:rgba(28,191,255,0.04)}
.tx-card.muted{opacity:0.5}
.tx-card-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:8px;gap:8px}
.tx-card-name{font-family:'Moderustic',sans-serif;font-weight:700;font-size:14px;color:#fff;line-height:1.3}
.tx-card-sub{font-size:11px;color:var(--text-color);margin-top:1px}
.tx-card-meta{display:flex;gap:12px;font-size:12px;color:var(--text-color);margin-bottom:6px}
.tx-card-detail{font-size:11px;color:var(--text-color);margin-bottom:3px;display:flex;align-items:center;gap:4px}
.tx-card-detail a{color:var(--bg-color-newlink);text-decoration:none;text-transform:none}
.tx-card-detail a:hover{color:#fff}
.tx-card-check{display:flex;align-items:center;gap:6px;margin-top:10px;padding-top:8px;border-top:1px solid rgba(43,46,84,0.2);cursor:pointer}
.tx-card-check input{width:14px;height:14px;accent-color:var(--bg-color-newlink);cursor:pointer}
.tx-card-check span{font-size:10px;color:var(--text-color)}

/* Type badges */
.tx-badge{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:4px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:0.3px;white-space:nowrap;flex-shrink:0}
.tx-badge-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}
.tx-badge-direct{background:rgba(40,167,69,0.08);border:1px solid rgba(40,167,69,0.25);color:#28a745}
.tx-badge-direct .tx-badge-dot{background:#28a745}
.tx-badge-transit{background:rgba(255,159,67,0.08);border:1px solid rgba(255,159,67,0.25);color:#ff9f43}
.tx-badge-transit .tx-badge-dot{background:#ff9f43}
.tx-badge-receive{background:rgba(108,117,125,0.08);border:1px solid rgba(108,117,125,0.25);color:#6c757d}
.tx-badge-receive .tx-badge-dot{background:#6c757d}

/* Download bar */
.tx-dl-bar{padding:14px 18px;background:rgba(18,19,32,0.5);border:1px solid rgba(43,46,84,0.3);border-radius:10px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.tx-dl-count{font-size:12px;color:rgba(255,255,255,0.6)}
.tx-dl-count strong{color:var(--bg-color-newlink)}

/* Transit client count under direct peer */
.tx-transit-hint{font-size:10px;color:var(--bg-color-newlink);margin-left:8px}

@media(max-width:768px){
    .tx-stats{grid-template-columns:repeat(2,1fr)}
    .tx-grid{grid-template-columns:1fr}
    .tx-search{width:100%;margin-left:0;margin-top:4px}
    .tx-filters{gap:4px}
}

/* ─── IP Search — unified hero card ─── */
.ip-unified{background:linear-gradient(180deg,rgba(28,32,56,0.98),rgb(24,26,45));border:2px solid var(--scrollbar-color);border-radius:12px;overflow:hidden;margin-bottom:24px}
.ip-unified.tasix{border-color:rgba(40,167,69,0.2)}
.ip-unified-head{padding:20px 24px;display:flex;align-items:flex-start;gap:16px;flex-wrap:wrap}
.ip-unified-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.ip-unified-icon.tasix{background:rgba(40,167,69,0.08);border:1px solid rgba(40,167,69,0.2);color:#28a745}
.ip-unified-icon.default{background:rgba(28,191,255,0.06);border:1px solid rgba(28,191,255,0.12);color:var(--bg-color-newlink)}
.ip-unified-ip{font-family:'Courier New',monospace;font-size:20px;font-weight:700;color:#fff;letter-spacing:0.3px}
.ip-unified-sub{font-size:13px;color:rgba(255,255,255,0.5);margin-top:3px}
.ip-unified-actions{display:flex;gap:6px;flex-shrink:0}

/* Route chain */
.tx-route{padding:4px 24px 20px;border-top:1px solid rgba(43,46,84,0.2);border-bottom:1px solid rgba(43,46,84,0.2);background:rgba(12,14,28,0.4)}
.tx-route-chain{display:flex;align-items:center;justify-content:center;gap:0;padding:20px 0 14px}
.tx-route-node{text-align:center;flex-shrink:0;min-width:80px}
.tx-route-circle{width:44px;height:44px;border-radius:50%;border:2px solid;display:flex;align-items:center;justify-content:center;margin:0 auto;font-size:15px}
.tx-route-circle.org{border-color:rgba(28,191,255,0.3);background:rgba(28,191,255,0.06);color:var(--bg-color-newlink)}
.tx-route-circle.transit{border-color:rgba(255,159,67,0.3);background:rgba(255,159,67,0.06);color:#ff9f43}
.tx-route-circle.exchange{width:50px;height:50px;border-color:rgba(40,167,69,0.35);background:rgba(40,167,69,0.08);color:#28a745;font-size:16px}
.tx-route-name{font-size:11px;font-weight:700;margin-top:6px}
.tx-route-asn{font-family:'Courier New',monospace;font-size:10px;color:rgba(255,255,255,0.35)}
.tx-route-hop{font-family:'Courier New',monospace;font-size:10px;color:rgba(255,255,255,0.25)}
.tx-route-arrow{flex:1;max-width:90px;position:relative;display:flex;align-items:center;margin:0 4px 14px}
.tx-route-arrow-line{width:100%;height:1.5px}
.tx-route-arrow-tip{position:absolute;right:-2px;top:50%;transform:translateY(-50%);font-size:8px}
.tx-route-arrow-label{position:absolute;top:-13px;width:100%;text-align:center;font-size:9px;color:rgba(255,255,255,0.25);letter-spacing:0.5px}

/* Detail cells in route section */
.tx-detail-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:6px;margin-top:4px}
.tx-detail-cell{background:rgba(18,19,32,0.6);border:1px solid rgba(43,46,84,0.25);border-radius:6px;padding:8px 10px}
.tx-detail-cell.full{grid-column:1/-1}
.tx-detail-cell.transit-accent{border-color:rgba(255,159,67,0.15)}
.tx-detail-lbl{font-size:9px;text-transform:uppercase;letter-spacing:0.7px;color:rgba(255,255,255,0.3);font-weight:600;margin-bottom:2px}
.tx-detail-val{font-size:12px;color:rgba(255,255,255,0.7)}
.tx-detail-val.mono{font-family:'Courier New',monospace}
.tx-detail-val.accent{color:var(--bg-color-newlink);font-size:13px;font-weight:700}
.tx-detail-val.transit{color:#ff9f43;font-weight:700;font-size:13px}

/* Network data section */
.ip-netdata{padding:16px 24px 20px}
.ip-netdata-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px}
.ip-netdata-cell{background:rgba(18,19,32,0.5);border:1px solid rgba(43,46,84,0.2);border-radius:8px;padding:9px 12px}
.ip-netdata-lbl{font-size:9px;text-transform:uppercase;letter-spacing:0.7px;color:rgba(255,255,255,0.3);font-weight:600;margin-bottom:2px}
.ip-netdata-val{font-size:13px;color:rgba(255,255,255,0.8)}

/* Networks table */
.ip-net-table{background:var(--ip-bg-color);border:2px solid var(--scrollbar-color);border-radius:10px;overflow:hidden;margin-bottom:16px}
.ip-net-table td.tasix-col{width:80px;min-width:80px;white-space:nowrap;text-align:center}
.ip-net-row-tasix{border-left:3px solid #28a745;border-radius:0}

/* ─── Offcanvas route chain (compact) ─── */
.oc-route{display:flex;align-items:center;justify-content:center;gap:0;padding:12px 0 8px}
.oc-route-node{text-align:center;flex-shrink:0;min-width:64px}
.oc-route-circle{width:36px;height:36px;border-radius:50%;border:1.5px solid;display:flex;align-items:center;justify-content:center;margin:0 auto;font-size:13px}
.oc-route-name{font-size:10px;font-weight:700;margin-top:4px;max-width:80px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.oc-route-detail{font-family:'Courier New',monospace;font-size:9px;color:rgba(255,255,255,0.3)}
.oc-route-arrow{flex:1;max-width:50px;height:1px;margin:0 2px 12px;position:relative}
.oc-route-arrow-label{position:absolute;top:-11px;width:100%;text-align:center;font-size:8px;color:rgba(255,255,255,0.2)}

@media(max-width:768px){
    .ip-unified-head{padding:16px}
    .tx-route{padding:4px 16px 16px}
    .ip-netdata{padding:14px 16px}
    .tx-route-node{min-width:60px}
    .tx-route-circle{width:36px;height:36px;font-size:13px}
    .tx-route-circle.exchange{width:40px;height:40px}
    .tx-route-name{font-size:10px}
}

/* ─── TAS-IX sticky download bar ─── */
.tx-sticky-bar{position:sticky;bottom:0;z-index:100;background:rgba(18,19,32,0.95);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid rgba(43,46,84,0.3);padding:12px 24px;margin-top:20px;margin-bottom:24px}
.tx-sticky-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.tx-sticky-count{font-size:12px;color:var(--text-color);display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.tx-sticky-count strong{color:#fff;font-size:14px;min-width:16px;text-align:center}
.tx-sticky-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.tx-sticky-btn{padding:4px 10px;font-size:10px;text-transform:none;letter-spacing:0;border-radius:4px}
.tx-format-toggle{cursor:pointer;font-size:11px;color:var(--bg-color-newlink);display:inline-flex;align-items:center;gap:4px;padding:5px 10px;border:1px solid rgba(28,191,255,0.12);border-radius:5px;background:rgba(28,191,255,0.03);transition:background 0.2s;white-space:nowrap}
.tx-format-toggle:hover{background:rgba(28,191,255,0.06)}
.tx-format-toggle .fa-chevron-up{font-size:8px;transition:transform 0.2s}
.tx-format-toggle.open .fa-chevron-up{transform:rotate(180deg)}
.tx-format-panel{display:none;background:rgba(12,14,28,0.98);border:1px solid rgba(43,46,84,0.25);border-radius:8px;padding:12px 14px;margin-top:10px}
.tx-format-panel.show{display:block}
.tx-format-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:2px 12px}
.tx-format-item{display:flex;align-items:center;gap:6px;padding:4px 0;font-size:12px;color:var(--text-color);cursor:pointer;transition:color 0.15s}
.tx-format-item:hover{color:#fff}
.tx-format-item input[type="radio"]{margin:0;width:13px;height:13px}
.tx-format-label{font-size:11px;font-weight:700;color:rgba(255,255,255,0.3);margin-bottom:6px;display:flex;align-items:center;gap:6px}
.tx-sync-date{font-size:11px;color:var(--text-color);margin-top:8px;padding:0 2px}

@media(max-width:768px){
    .tx-sticky-bar{padding:8px 12px;margin-bottom:16px}
    .tx-sticky-inner{gap:6px}
    .tx-sticky-count{font-size:11px;gap:4px;flex-wrap:nowrap}
    .tx-sticky-count strong{font-size:13px}
    .tx-sticky-btn{padding:3px 8px;font-size:9px}
    .tx-sticky-actions{gap:4px}
    .tx-format-toggle{font-size:10px;padding:4px 8px}
    .tx-format-panel{padding:10px 12px}
    .tx-format-grid{grid-template-columns:1fr}
    .tx-format-item{font-size:11px;padding:3px 0}

    /* Cards grid mobile */
    .tx-grid{gap:8px;padding-bottom:60px}
    .tx-card{padding:12px}

    /* Stats + filters mobile */
    .tx-stats{gap:6px}
    .tx-stat{padding:10px 8px}
    .tx-stat-val{font-size:18px}
    .tx-stat-lbl{font-size:10px}
    .tx-filters{gap:4px;flex-wrap:wrap}
    .tx-filter-btn{padding:5px 10px;font-size:11px}
    .tx-search{width:100%;margin-left:0;margin-top:4px}
}

/* ─── DNS Profile tabs ─── */
.dns-profile-tabs{display:flex;gap:2px;padding:0 20px 8px;flex-wrap:wrap}
.dns-profile-tab{padding:4px 10px;font-size:11px;border:1px solid rgba(43,46,84,0.2);border-radius:5px;background:transparent;color:var(--text-color);cursor:pointer;transition:all 0.15s}
.dns-profile-tab:hover{background:rgba(28,191,255,0.04);color:#fff}
.dns-profile-tab.active{background:rgba(28,191,255,0.08);border-color:rgba(28,191,255,0.2);color:var(--bg-color-newlink);font-weight:600}
.dns-profile-content{display:none;padding:0 20px 12px}
.dns-profile-content.active{display:block}
/* Guides */
.dns-guide-card{background:rgba(18,19,32,0.6);border:1px solid rgba(43,46,84,0.2);border-radius:10px;padding:16px 18px}
.dns-guide-title{font-size:14px;font-weight:700;color:#fff;margin-bottom:10px}
.dns-guide-steps{padding-left:18px;margin:0;font-size:12px;color:var(--text-color);line-height:1.8}
.dns-guide-steps li{margin-bottom:4px}
.dns-guide-steps code{font-size:11px;color:var(--bg-color-newlink);background:rgba(28,191,255,0.06);padding:1px 4px;border-radius:3px}
.dns-guide-steps strong{color:rgba(255,255,255,0.8)}
