/**
 * CabinetVue / CloudVue — шаблон Bitrix на Vue
 * Белая (светлая) и чёрная (тёмная) тема
 */

body {
    display: block;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    font-family: 'Rubik', 'Golos', system-ui, -apple-system, sans-serif;
}

/* --- Body: белая / чёрная тема --- */
body[data-theme="light"] {
    background: #fff;
}

body[data-theme="dark"],
body:not([data-theme]) {
    background: #000;
}

/* --- Переменные: белая тема (светлая) --- */
body[data-theme="light"] .layout {
    --cv-bg: #f5f6f8;
    --cv-surface: #ffffff;
    --cv-border: #e8eaed;
    --cv-text: #1a1a1a;
    --cv-text-muted: #5f6368;
    --cv-sidebar-bg: #ffffff;
    --cv-sidebar-border: #e8eaed;
    --cv-block-bg: rgba(0, 0, 0, 0.05);
    --cv-accent: #2fc6f6;
    --cv-accent-hover: #1eb8e8;
    --cv-support-bg: #f0f7ff;
    --cv-support-text: #1a73e8;
    --cv-link: #1a73e8;
    --cv-link-hover: #1557b0;
    --cv-card-bg: #ffffff;
    --cv-card-border: #e8eaed;
}

/* --- Переменные: чёрная тема (тёмная), по умолчанию --- */
body[data-theme="dark"] .layout,
body:not([data-theme]) .layout {
    --cv-bg: transparent;
    --cv-surface: #1a1a1a;
    --cv-border: #2d2d2d;
    --cv-text: #e4e4e7;
    --cv-text-muted: #a1a1aa;
    --cv-sidebar-bg: transparent;
    --cv-sidebar-border: #ffffff05;
    --cv-block-bg: rgba(255, 255, 255, 0.04);
    --cv-accent: #2fc6f6;
    --cv-accent-hover: #5dd4ff;
    --cv-support-bg: #1e2a3a;
    --cv-support-text: #7eb8f0;
    --cv-link: #7eb8f0;
    --cv-link-hover: #9ecaff;
    --cv-card-bg: #1a1a1a;
    --cv-card-border: #2d2d2d;
}
body::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -120px;
    left: 50%;
    width: 1980px;
    height: 600px;
    border-radius: 50%;
    background: #00ceff1a;
    filter: blur(120px);
    transform: translateX(-50%);
}

/* --- Базовый layout: слева left_block, справа content (шапка + main) --- */
.layout {
    display: flex;
    min-height: 100vh;
    background: var(--cv-bg);
    color: var(--cv-text);
}

/* --- Правая часть: шапка сверху + основной контент --- */
.content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    min-height: 0;
}

.content__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--cv-sidebar-bg);
    border-bottom: 1px solid var(--cv-sidebar-border);
    flex-shrink: 0;
}

.content__brand {
    display: flex;
    align-items: center;
    gap: 30px;
}

.content__icon {
    width: 42px;
    height: 42px;
    display: block;
}

.content__title {
    color: var(--cv-text);
    font-size: 13px;
    width: 150px;
}

.content__order-btn {
    display: block;
    padding: 12px 24px;
    background: #00000069;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.content__order-btn:hover {
    background: var(--cv-accent-hover);
    color: #fff;
    opacity: 0.95;
}

/* --- Левая колонка (left_block) — обёртка схлопывается, контент из left_block.php --- */
.left_block-wrap {
    width: 270px;
    min-width: 270px;
    flex-shrink: 0;
    overflow: hidden;
    border-right: 1px solid var(--cv-sidebar-border);
    transition: width 0.25s ease, min-width 0.25s ease;
}

.layout--sidebar-collapsed .left_block-wrap {
    width: 0;
    min-width: 0;
}

.left_block {
    width: 270px;
    min-width: 270px;
    height: 100vh;
    background: var(--cv-sidebar-bg);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

/* --- Содержимое левого блока (sidebar внутри left_block) --- */
.sidebar__brand {
    padding: 35px 0;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.sidebar__icon {
    width: 42px;
    height: 42px;
    display: block;
}

.sidebar__title {
    color: white;
    font-size: 13px;
    width: 150px;
}

.sidebar__order-btn {
    display: block;
    width: 205px;
    margin: 0 1rem 1rem;
    padding: 15px;
    background: #00000069;
    color: #fff;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.sidebar__order-btn:hover {
    background: var(--cv-accent-hover);
    color: #fff;
    opacity: 0.95;
}

.layout--sidebar-collapsed .left_block {
    transform: translateX(-100%);
}

/* --- Кнопка сворачивания меню (круглая, по центру) --- */
.sidebar-toggle {
    flex-shrink: 0;
    align-self: center;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--cv-border);
    border-radius: 50%;
    background: var(--cv-surface);
    color: var(--cv-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    left: -17px;
    position: relative;
}

.sidebar-toggle:hover {
    background: var(--cv-accent);
    color: var(--cv-text);
    border-color: var(--cv-accent);
}

/* Стрелка влево (меню открыто — нажать чтобы свернуть) */
.sidebar-toggle__icon {
    width: 18px;
    height: 18px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(133deg);
    transition: transform 0.25s ease;
}

/* Стрелка вправо (меню свёрнуто — нажать чтобы развернуть) */
.layout--sidebar-collapsed .sidebar-toggle__icon {
    transform: rotate(315deg);
}

.sidebar__nav {
    flex: 1;
    min-height: 0;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.2s ease;
}

.sidebar__nav:hover {
    scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

/* Скоролл только при наведении (WebKit) */
.sidebar__nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar__nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar__nav::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.sidebar__nav:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
}

.sidebar__nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.35);
}

.sidebar__menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar__menu li {
    margin: 0;
}

.sidebar__nav .sidebar__menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    padding: 4px 40px;
    color: var(--cv-text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.sidebar__nav .sidebar__menu a:hover,
.sidebar__nav .sidebar__menu a.active {
    color: var(--cv-text);
    background: var(--cv-bg);
}

.sidebar__nav-divider {
    height: 1px;
    background: var(--cv-border);
    margin: 1rem 1.5rem;
}

/* Блок «Облачные решения» в стиле референса (иконка + текст, сворачиваемый) */
.sidebar__block {
    margin-bottom: 0.5rem;
}

.sidebar__block--cloud {
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    padding: 0.25rem 0;
    background: var(--cv-block-bg);
    border-radius: 10px;
}

.sidebar__block-title {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    margin: 0;
    border: none;
    background: none;
    color: var(--cv-text);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    text-align: left;
    transition: color 0.15s, background 0.15s;
}

.sidebar__block-title:hover {
    color: var(--cv-text);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 18px;
}

.sidebar__block-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: currentColor;
    opacity: 0.85;
}

.sidebar__block-icon--cloud {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 10h-1.26A8 8 0 1 0 9 20h9a5 5 0 0 0 0-10z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar__block-text {
    flex: 1;
}

#sidebar-cloud-block .sidebar__menu a {
    padding: 4px 30px !important;
}

#sidebar-cloud-toggle {
    padding: 4px 30px !important;
    font-weight: 600 !important;
}

#sidebar-cloud-toggle:hover {
    background: transparent !important;
}

.sidebar__block-chevron {
    flex-shrink: 0;
    width: 5px;
    height: 5px;
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    transform: rotate(-135deg);
    transition: transform 0.2s ease;
}

.sidebar__block--collapsed .sidebar__block-chevron {
    transform: rotate(45deg);
}

.sidebar__block--collapsed .sidebar__menu {
    display: none;
}

.sidebar__menu--block {
    margin: 0;
    padding: 0.25rem 0 0.5rem;
    list-style: none;
}

.sidebar__menu--block li {
    margin: 0;
}

.sidebar__menu--block a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem 0.5rem 0.75rem;
    color: var(--cv-text-muted);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.sidebar__menu--block a:hover,
.sidebar__menu--block a.active {
    color: var(--cv-text);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar__item-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: currentColor;
    opacity: 0.8;
}

.sidebar__item-icon--domains {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar__item-icon--ssl {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar__item-icon--hosting {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='8' rx='2' ry='2'/%3E%3Crect x='2' y='14' width='20' height='8' rx='2' ry='2'/%3E%3Cline x1='6' y1='6' x2='6.01' y2='6'/%3E%3Cline x1='6' y1='18' x2='6.01' y2='18'/%3E%3Cline x1='10' y1='6' x2='10.01' y2='6'/%3E%3Cline x1='10' y1='18' x2='10.01' y2='18'/%3E%3Cline x1='14' y1='6' x2='14.01' y2='6'/%3E%3Cline x1='14' y1='18' x2='14.01' y2='18'/%3E%3Cline x1='18' y1='6' x2='18.01' y2='6'/%3E%3Cline x1='18' y1='18' x2='18.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='8' rx='2' ry='2'/%3E%3Crect x='2' y='14' width='20' height='8' rx='2' ry='2'/%3E%3Cline x1='6' y1='6' x2='6.01' y2='6'/%3E%3Cline x1='6' y1='18' x2='6.01' y2='18'/%3E%3Cline x1='10' y1='6' x2='10.01' y2='6'/%3E%3Cline x1='10' y1='18' x2='10.01' y2='18'/%3E%3Cline x1='14' y1='6' x2='14.01' y2='6'/%3E%3Cline x1='14' y1='18' x2='14.01' y2='18'/%3E%3Cline x1='18' y1='6' x2='18.01' y2='6'/%3E%3Cline x1='18' y1='18' x2='18.01' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar__item-icon--vms {
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' ry='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cline x1='9' y1='1' x2='9' y2='4'/%3E%3Cline x1='15' y1='1' x2='15' y2='4'/%3E%3Cline x1='9' y1='20' x2='9' y2='23'/%3E%3Cline x1='15' y1='20' x2='15' y2='23'/%3E%3Cline x1='20' y1='9' x2='23' y2='9'/%3E%3Cline x1='20' y1='15' x2='23' y2='15'/%3E%3Cline x1='1' y1='9' x2='4' y2='9'/%3E%3Cline x1='1' y1='15' x2='4' y2='15'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' ry='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cline x1='9' y1='1' x2='9' y2='4'/%3E%3Cline x1='15' y1='1' x2='15' y2='4'/%3E%3Cline x1='9' y1='20' x2='9' y2='23'/%3E%3Cline x1='15' y1='20' x2='15' y2='23'/%3E%3Cline x1='20' y1='9' x2='23' y2='9'/%3E%3Cline x1='20' y1='15' x2='23' y2='15'/%3E%3Cline x1='1' y1='9' x2='4' y2='9'/%3E%3Cline x1='1' y1='15' x2='4' y2='15'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sidebar__footer {
    padding: 20px;
}

.sidebar__footer p {
    background: linear-gradient(180deg, #ffffff, #6b778d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: rgba(0, 0, 0, 0);
    padding: 0;
    margin: 0;
    font-size: 13px;
    display: block;
    line-height: normal;
}

.sidebar__footer span {
    color: #6e788a !important;
    margin: 0;
    font-size: 12px;
    padding: 5px 0;
    line-height: normal;
}

.sidebar__support {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 20px;
    border: 1px solid #00ceff1a;
    color: var(--cv-support-text);
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.15s;
}

.sidebar__support:hover {
    opacity: 0.9;
}

.sidebar__support-icon {
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* --- Основной контент --- */
.main {
    flex: 1;
    min-width: 0;
    padding: 1.5rem 2rem;
    background: var(--cv-bg);
}

/* Пустое меню: заглушка пунктов для демо */
.sidebar__nav:empty::before {
    content: 'Меню';
    display: block;
    padding: 0.625rem 1.5rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cv-text-muted);
}

/* --- Контент: общие стили для белой и чёрной темы --- */
.main h1,
.main h2,
.main h3 {
    color: var(--cv-text);
    margin-top: 0;
    margin-bottom: 0.5em;
}

.main a {
    color: var(--cv-link);
    text-decoration: none;
}

.main a:hover {
    color: var(--cv-link-hover);
    text-decoration: underline;
}

.main .cv-card {
    background: var(--cv-card-bg);
    border: 1px solid var(--cv-card-border);
    border-radius: 8px;
    padding: 1.25rem;
    color: var(--cv-text);
}

.main .cv-text-muted {
    color: var(--cv-text-muted);
}

/* --- Блоки в вашем стиле (как sidebar__block--cloud) --- */
.cv-block {
    background: var(--cv-block-bg);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: var(--cv-text);
}

.cv-block--bordered {
    border: 1px solid var(--cv-sidebar-border);
}

/* --- Дашборд: аналитика по разделам --- */
.dashboard__title {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cv-text);
}

.dashboard__desc {
    margin: 0 0 1.5rem 0;
    font-size: 0.9375rem;
    color: var(--cv-text-muted);
}

.dashboard__section {
    margin-bottom: 2rem;
}

.dashboard__section-title {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cv-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dashboard__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.dashboard__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--cv-block-bg);
    border: 1px solid var(--cv-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--cv-text);
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.dashboard__card:hover {
    border-color: var(--cv-accent);
    background: var(--cv-card-bg);
    transform: translateY(-2px);
}

.dashboard__card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.dashboard__card-icon svg {
    width: 22px;
    height: 22px;
}

.dashboard__card-icon--domains {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.dashboard__card-icon--ssl {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.dashboard__card-icon--hosting {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.dashboard__card-icon--licenses {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.dashboard__card-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cv-text);
}

.dashboard__card-value--ai { color: #8b5cf6; }
.dashboard__card-value--bitrix,
.dashboard__card-value--bitrix_site { color: #22c55e; }
.dashboard__card-value--1c { color: #3b82f6; }

.dashboard__card-label {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin-top: 0.25rem;
}

.dashboard__card--main {
    grid-column: span 1;
}

.dashboard__card--sub .dashboard__card-value {
    font-size: 1.35rem;
}

.dashboard__section--links .dashboard__section-title {
    margin-bottom: 0.5rem;
}

.dashboard__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard__links li {
    margin: 0 0 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--cv-border);
    font-size: 0.9375rem;
}

.dashboard__links li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.dashboard__links a {
    color: var(--cv-link);
    text-decoration: none;
}

.dashboard__links a:hover {
    text-decoration: underline;
}

/* --- Дата-центр: Домены (ваш дизайн — cv-переменные) --- */
.dc-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.dc-actions--hosting {
    grid-template-columns: repeat(2, 1fr);
}

.dc-action {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--cv-block-bg);
    border-radius: 10px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--cv-text);
    transition: border-color 0.2s, background 0.2s;
}

.dc-action:hover {
    border-color: var(--cv-accent);
    background: var(--cv-bg);
}

.dc-action__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cv-block-bg);
    color: var(--cv-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-action__icon svg {
    width: 24px;
    height: 24px;
}

.dc-action__title {
    font-weight: 600;
    font-size: 1rem;
    margin: 0 0 0.25rem 0;
}

.dc-action__desc {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin: 0;
}

.dc-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: var(--cv-block-bg);
    border-radius: 10px;
}

.dc-toolbar__filter {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--cv-text);
    font-size: 0.875rem;
    cursor: pointer;
}

.dc-toolbar__filter::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--cv-text-muted);
}

.dc-toolbar__search {
    flex: 1;
    min-width: 200px;
    padding: 0.5rem 1rem;
    background: var(--cv-bg);
    border: 1px solid var(--cv-border);
    border-radius: 10px;
    color: var(--cv-text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.dc-toolbar__search:focus {
    outline: none;
    border-color: var(--cv-accent);
}

.dc-toolbar__search::placeholder {
    color: var(--cv-text-muted);
}

.dc-table-block {
    border-radius: 10px;
    overflow: hidden;
    background: var(--cv-block-bg);
}

.dc-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--cv-block-bg);
}

.dc-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cv-text-muted);
    border-bottom: 1px solid var(--cv-border);
}

.dc-table td {
    padding: 0;
    border-bottom: 1px solid var(--cv-border);
    vertical-align: middle;
}

.dc-table tbody tr {
    background: var(--cv-block-bg);
    transition: background 0.15s;
}

.dc-table tbody tr:hover {
    background: var(--cv-bg);
}

/* Заголовки таблицы доменов: чекбокс + подпись + сортировка */
.dc-table__th-check,
.dc-row__check {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.dc-table__th-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dc-table__th--service .dc-table__th-inner,
.dc-table__th--date .dc-table__th-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dc-table__th-check {
    margin-right: 0.25rem;
}

.dc-table__check {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--cv-accent);
}

.dc-table__th-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cv-text-muted);
}

.dc-table__sort {
    display: inline-flex;
    color: var(--cv-text-muted);
    opacity: 0.7;
}

.dc-table__sort svg {
    width: 12px;
    height: 12px;
}

/* Колонка «Услуга»: чекбокс + иконка глобуса + домен */
.dc-table__td--service {
    padding: 0.75rem 1rem;
}

.dc-table__td--service {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dc-row__icon--globe {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-row__icon--globe svg {
    width: 18px;
    height: 18px;
}

.dc-row__icon--shield {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-row__icon--shield svg {
    width: 18px;
    height: 18px;
}

.dc-row__icon--hosting {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-row__icon--hosting svg {
    width: 18px;
    height: 18px;
}

.dc-row__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--cv-text-muted);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.dc-row__action-icon:hover {
    background: var(--cv-block-bg);
    color: var(--cv-text);
}

.dc-row__domain {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--cv-text);
}

.dc-row__domain--link {
    color: var(--cv-text);
    text-decoration: none;
}

.dc-row__domain--link:hover {
    color: var(--cv-link);
    text-decoration: underline;
}

/* Колонка «Действует до»: замочек + дата */
.dc-table__td--date {
    padding: 0.75rem 1rem;
}

.dc-row__date-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.dc-row__padlock {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-row__padlock svg {
    width: 100%;
    height: 100%;
}

.dc-row__padlock--gold {
    color: #eab308;
}

.dc-row__padlock--grey {
    color: var(--cv-text-muted);
    opacity: 0.7;
}

.dc-row__date {
    font-size: 0.875rem;
    color: var(--cv-text);
}

.dc-row__date--soon {
    color: #ea580c;
}

.dc-row__date--expired {
    color: #c0392b;
}

/* Автопродление: галочка */
.dc-table__td--autorenew {
    padding: 0.75rem 1rem;
}

.dc-row__autorenew {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dc-row__toggle-off {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
    text-decoration: none;
}

.dc-row__toggle-off:hover {
    color: var(--cv-link);
    text-decoration: underline;
}

.dc-row__check-icon {
    width: 18px;
    height: 18px;
    color: var(--cv-text-muted);
}

/* Подробности (NS) */
.dc-table__td--details {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--cv-text-muted);
}

.dc-row__details {
    color: var(--cv-text-muted);
}

/* Действия: три точки + выпадающее меню */
.dc-table__td--actions {
    padding: 0.5rem 1rem;
    text-align: right;
}

.dc-row__actions-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.dc-row__dropdown {
    position: relative;
    display: inline-flex;
    justify-content: flex-end;
}

.dc-row__menu {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--cv-text-muted);
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.25rem;
    line-height: 1;
}

.dc-row__menu:hover {
    background: var(--cv-block-bg);
    color: var(--cv-text);
}

.dc-row__dropdown-menu {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--cv-card-bg);
    border: 1px solid var(--cv-border);
    border-radius: 8px;
    padding: 0.25rem 0;
    min-width: 140px;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dc-row__dropdown-menu a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--cv-text);
    text-decoration: none;
}

.dc-row__dropdown-menu a:hover {
    background: var(--cv-block-bg);
    color: var(--cv-link);
}

.dc-row__dropdown-item--danger {
    color: #c0392b !important;
}

.dc-row__dropdown-item--danger:hover {
    color: #e74c3c !important;
}

/* Совместимость со старыми строками (если остались) */
.dc-row__name {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.dc-row__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--cv-block-bg);
    color: var(--cv-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-row__icon svg {
    width: 20px;
    height: 20px;
}

.dc-row__status {
    font-size: 0.8125rem;
    color: var(--cv-text-muted);
    margin-top: 0.15rem;
}

.dc-row__cell {
    padding: 1rem;
    font-size: 0.875rem;
    color: var(--cv-text-muted);
}

.dc-row__ssl a {
    color: var(--cv-link);
    text-decoration: none;
}

.dc-row__ssl a:hover {
    color: var(--cv-link-hover);
    text-decoration: underline;
}

.dc-row__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    justify-content: flex-end;
}

.dc-row__btn {
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    background: transparent;
    border: 1px solid var(--cv-border);
    border-radius: 8px;
    color: var(--cv-text);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.dc-row__btn:hover {
    border-color: var(--cv-accent);
    background: var(--cv-block-bg);
    color: var(--cv-accent);
}

.dc-row__menu {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    color: var(--cv-text-muted);
    cursor: pointer;
    border-radius: 6px;
}

.dc-row__menu:hover {
    background: var(--cv-block-bg);
    color: var(--cv-text);
}

.dc-row__dropdown {
    position: relative;
}

.dc-form-toggle {
    margin-bottom: 1.5rem;
}

.dc-form-toggle__form {
    padding: 1.25rem;
    background: var(--cv-block-bg);
    border-radius: 10px;
    margin-top: 0.5rem;
}

.dc-form-toggle__form .dc-btn--primary {
    background: var(--cv-accent);
    border-color: var(--cv-accent);
    color: var(--cv-text);
}

.dc-form-toggle__form .dc-btn--primary:hover {
    background: var(--cv-accent-hover);
    border-color: var(--cv-accent-hover);
}

.dc-empty {
    padding: 2rem;
    text-align: center;
    color: var(--cv-text-muted);
    background: var(--cv-block-bg);
    border-radius: 10px;
}

/* --- Страница управления доменом (detail) --- */
.dc-page--detail {
    max-width: 900px;
}

.dc-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.dc-detail-header__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: var(--cv-text-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.dc-detail-header__back:hover {
    background: var(--cv-block-bg);
    color: var(--cv-text);
}

.dc-detail-header__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dc-detail-header__icon svg {
    width: 24px;
    height: 24px;
}

.dc-detail-header__main {
    flex: 1;
    min-width: 0;
}

.dc-detail-header__title {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0 0 0.15rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--cv-text);
}

.dc-detail-header__link-icon {
    color: var(--cv-text-muted);
    opacity: 0.8;
}

.dc-detail-header__link-icon svg {
    display: block;
}

.dc-detail-header__status {
    margin: 0;
    font-size: 0.875rem;
    color: var(--cv-text-muted);
}

.dc-detail-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.dc-detail-header__action {
    font-size: 0.875rem;
    color: var(--cv-link);
    text-decoration: none;
}

.dc-detail-header__action:hover {
    color: var(--cv-link-hover);
    text-decoration: underline;
}

/* Вкладки */
.dc-detail-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--cv-border);
}

.dc-detail-tabs__item {
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cv-text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s, border-color 0.2s;
}

.dc-detail-tabs__item:hover {
    color: var(--cv-text);
}

.dc-detail-tabs__item--active {
    color: #22c55e;
    border-bottom-color: #22c55e;
}

/* Карточки блоков */
.dc-detail-sections {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dc-detail-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--cv-surface);
    border: 1px solid var(--cv-border);
    border-radius: 12px;
    flex-wrap: wrap;
}

.dc-detail-card__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cv-text-muted);
}

.dc-detail-card__icon svg {
    width: 20px;
    height: 20px;
}

.dc-detail-card__icon--renew {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.dc-detail-card__icon--autorenew {
    background: var(--cv-block-bg);
}

.dc-detail-card__icon--dns {
    background: var(--cv-block-bg);
}

.dc-detail-card__icon--yandex {
    background: #fc3f1d;
    color: #fff;
}

.dc-detail-card__icon--lock {
    background: var(--cv-block-bg);
}

.dc-detail-card__icon--cert {
    background: var(--cv-block-bg);
}

.dc-detail-card__ya {
    font-size: 1.125rem;
    font-weight: 700;
}

.dc-detail-card__body {
    flex: 1;
    min-width: 0;
}

.dc-detail-card__title {
    margin: 0 0 0.35rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--cv-text);
}

.dc-detail-card__text {
    margin: 0 0 0.25rem 0;
    font-size: 0.875rem;
    color: var(--cv-text);
    line-height: 1.4;
}

.dc-detail-card__text:last-child {
    margin-bottom: 0;
}

.dc-detail-card__text--muted {
    color: var(--cv-text-muted);
    font-size: 0.8125rem;
}

.dc-detail-card__action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dc-detail-card__action--row {
    align-items: center;
}

.dc-detail-card__btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--cv-text);
    background: var(--cv-block-bg);
    border: 1px solid var(--cv-border);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.dc-detail-card__btn:hover {
    border-color: var(--cv-accent);
    background: var(--cv-bg);
    color: var(--cv-accent);
}

.dc-detail-card__btn--link {
    background: transparent;
    border-color: transparent;
}

.dc-detail-card__btn--link:hover {
    background: transparent;
}

.dc-detail-card__gear {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: var(--cv-text-muted);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.dc-detail-card__gear:hover {
    background: var(--cv-block-bg);
    color: var(--cv-text);
}

/* Переключатель автопродления */
.dc-detail-card__toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
    cursor: pointer;
}

.dc-detail-card__toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.dc-detail-card__toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--cv-border);
    border-radius: 24px;
    transition: background 0.2s;
}

.dc-detail-card__toggle-slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    top: 2px;
    background: var(--cv-surface);
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dc-detail-card__toggle-input:checked + .dc-detail-card__toggle-slider {
    background: #22c55e;
}

.dc-detail-card__toggle-input:checked + .dc-detail-card__toggle-slider::before {
    transform: translateX(20px);
}

.dc-detail-placeholder {
    padding: 2rem;
    text-align: center;
    color: var(--cv-text-muted);
    background: var(--cv-block-bg);
    border-radius: 12px;
}

/* --- Лицензии (Мои лицензии) --- */
.lic-page__title {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cv-text);
}

.lic-toolbar {
    flex-wrap: wrap;
}

.lic-toolbar__label {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
    margin-right: 0.5rem;
}

.lic-toolbar__filter {
    display: inline-flex;
    align-items: center;
}

.lic-toolbar__select {
    max-width: 240px;
}

.lic-toolbar__count {
    font-size: 0.875rem;
    color: var(--cv-text-muted);
}

.lic-row__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lic-row__icon svg {
    width: 18px;
    height: 18px;
}

.lic-row__icon--ai {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.lic-row__icon--bitrix,
.lic-row__icon--bitrix_site {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.lic-row__icon--1c {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.lic-row__type-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.lic-row__type-badge--ai {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.lic-row__type-badge--bitrix,
.lic-row__type-badge--bitrix_site {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
}

.lic-row__type-badge--1c {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.dc-table--licenses .dc-table__td--service .dc-row__domain {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}
