/* ==========================================================================
   iiMed — фирменная тема (iimed-theme.css)
   Подключается ПОСЛЕ основного CSS темы (style.css, color.css, landing/*)
   и только переопределяет оформление, не затрагивая функционал.
   ========================================================================== */

/* ---------- 1. Дизайн-токены ---------- */
:root {
    --iimed-navy: #0A2540;
    --iimed-navy-soft: #123252;
    --iimed-teal: #14B8A6;
    --iimed-teal-dark: #0E9F8F;
    --iimed-green: #10B981;
    --iimed-blue: #3B82F6;
    --iimed-bg: #EAF6FB;
    --iimed-card: #FFFFFF;
    --iimed-text: #0A2540;
    --iimed-muted: #5B7A94;
    --iimed-border: #D9E9F4;
    --iimed-grad: linear-gradient(135deg, #10B981, #3B82F6);
    --iimed-radius: 14px;
    --iimed-radius-lg: 16px;
    --iimed-shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
    --iimed-shadow-hover: 0 16px 40px rgba(10, 37, 64, 0.14);
    --iimed-glow: 0 0 45px rgba(20, 184, 166, 0.35);
}

/* ---------- 2. База ---------- */
body {
    background: var(--iimed-bg);
    color: var(--iimed-text);
}

h1, h2, h3, h4, h5, h6 { color: var(--iimed-text); }

/* Мотив нейросети: тонкие линии с узлами (SVG-паттерн) */
.iimed-neural-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke='%233B82F6' stroke-opacity='0.14'%3E%3Cpath d='M30 50L110 100L60 190L150 240L240 170L190 80Z'/%3E%3Cpath d='M110 100L190 80M150 240L240 280M30 50L70 10M240 170L290 190'/%3E%3C/g%3E%3Cg fill='%2314B8A6' fill-opacity='0.28'%3E%3Ccircle cx='30' cy='50' r='4'/%3E%3Ccircle cx='110' cy='100' r='5'/%3E%3Ccircle cx='60' cy='190' r='4'/%3E%3Ccircle cx='150' cy='240' r='5'/%3E%3Ccircle cx='240' cy='170' r='4'/%3E%3Ccircle cx='190' cy='80' r='5'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ---------- 3. Кнопки-пилюли ---------- */
.iimed-btn,
.ud-main-btn.iimed-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    border: 2px solid transparent;
    transition: all .25s ease;
    text-decoration: none;
}

.iimed-btn-primary {
    background: var(--iimed-teal);
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(20, 184, 166, .35);
}
.iimed-btn-primary:hover {
    background: var(--iimed-teal-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(20, 184, 166, .45);
}

.iimed-btn-outline {
    background: transparent;
    color: var(--iimed-green) !important;
    border-color: var(--iimed-green);
}
.iimed-btn-outline:hover {
    background: var(--iimed-green);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Кнопка «Войти» в шапке лендинга */
.ud-header .navbar-btn a.iimed-btn-login,
a.iimed-btn-login {
    background: var(--iimed-teal) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: 10px 28px !important;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(20, 184, 166, .4);
}
.ud-header .navbar-btn a.iimed-btn-login:hover,
a.iimed-btn-login:hover {
    background: var(--iimed-teal-dark) !important;
    color: #fff !important;
    transform: translateY(-1px);
}
a.iimed-btn-login i { color: #fff !important; }

/* ---------- 4. Шапка лендинга ---------- */
header.ud-header,
.ud-header.sticky {
    background: var(--iimed-navy) !important;
    box-shadow: 0 4px 20px rgba(10, 37, 64, .25);
}

.ud-header .navbar-brand img,
img.iimed-logo {
    height: 46px;
    width: auto;
}

.ud-header .navbar-nav .nav-item a {
    color: #EAF6FB !important;
    font-weight: 600;
    transition: color .2s ease;
}
.ud-header .navbar-nav .nav-item a:hover,
.ud-header .navbar-nav .nav-item a.active {
    color: var(--iimed-teal) !important;
}

.ud-header .navbar-collapse {
    background: var(--iimed-navy);
}

/* Переключатель языка в тёмной шапке */
.ud-header .language-switcher .btn,
#header-container .language-switcher .btn {
    background: transparent;
    color: #EAF6FB;
    border-color: rgba(255, 255, 255, .25);
}

/* ---------- 5. Hero-блок лендинга ---------- */
.ud-hero.iimed-hero,
section.ud-hero.iimed-hero {
    background: var(--iimed-bg);
    position: relative;
    overflow: hidden;
    padding: 130px 0 40px;
}

.iimed-hero .ud-hero-content {
    text-align: left;
    padding-top: 20px;
}

.iimed-hero-title,
.ud-hero-content .iimed-hero-title {
    color: var(--iimed-navy) !important;
    font-weight: 800;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.15;
    margin-bottom: 18px;
}

.iimed-hero-desc {
    color: var(--iimed-muted) !important;
    font-size: clamp(16px, 2vw, 21px);
    margin-bottom: 30px;
}

.iimed-hero .ud-hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Блок статистики */
.iimed-stats {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
    margin-top: 48px;
}
.iimed-stat strong {
    display: block;
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 800;
    color: var(--iimed-navy);
    line-height: 1.1;
}
.iimed-stat span {
    display: block;
    margin-top: 4px;
    color: var(--iimed-muted);
    text-transform: uppercase;
    letter-spacing: .8px;
    font-size: 13px;
    font-weight: 600;
}

/* Мозг с крестом справа + свечение */
.iimed-hero-art {
    text-align: center;
    position: relative;
}
.iimed-hero-art img {
    max-width: 100%;
    width: 480px;
    filter: drop-shadow(0 0 35px rgba(20, 184, 166, .45)) drop-shadow(0 0 80px rgba(59, 130, 246, .25));
    animation: iimed-float 6s ease-in-out infinite;
}
@keyframes iimed-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

/* Три карточки преимуществ */
.iimed-feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 56px 0 24px;
}
.iimed-feature-card {
    background: var(--iimed-card);
    border-radius: var(--iimed-radius);
    box-shadow: var(--iimed-shadow);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    color: var(--iimed-navy);
    font-size: 17px;
    transition: transform .25s ease, box-shadow .25s ease;
}
.iimed-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--iimed-shadow-hover);
}
.iimed-feature-card i {
    font-size: 24px;
    color: var(--iimed-teal);
    background: rgba(20, 184, 166, .12);
    border-radius: 12px;
    padding: 12px;
    line-height: 1;
}
.iimed-feature-card:nth-child(2) i {
    color: var(--iimed-green);
    background: rgba(16, 185, 129, .12);
}
.iimed-feature-card:nth-child(3) i {
    color: var(--iimed-blue);
    background: rgba(59, 130, 246, .12);
}

/* ---------- 6. Секции лендинга в фирменном стиле ---------- */
.ud-features, .ud-about, .ud-pricing, .ud-faq, .ud-testimonials, .ud-blog, .ud-partners {
    background: var(--iimed-bg);
}
.ud-section-title h2, .ud-section-title span { color: var(--iimed-navy); }
.ud-single-feature, .ud-single-faq, .ud-single-price {
    background: var(--iimed-card);
    border-radius: var(--iimed-radius-lg);
    box-shadow: var(--iimed-shadow);
}

/* ---------- 7. Футер ---------- */
#footer {
    background: var(--iimed-navy) !important;
    color: #B9CFE0;
}
#footer .footer-links h3, #footer h3 { color: #fff; }
#footer .footer-links ul li a { color: #B9CFE0; }
#footer .footer-links ul li a:hover { color: var(--iimed-teal); }
#footer .footer-bottom-section {
    background: rgba(0, 0, 0, .18);
}
#footer .footer-copyright-text { color: #8FA9BE; }

/* Попап входа — скруглённая карточка */
.dialog-with-tabs, .sign-in-form { border-radius: var(--iimed-radius-lg); overflow: hidden; }
#login-button.button {
    background: var(--iimed-teal) !important;
    color: #fff !important;
    border-radius: 999px !important;
}

/* ==========================================================================
   8. ЛИЧНЫЙ КАБИНЕТ
   ========================================================================== */

/* --- Шапка кабинета: тёмно-синяя, логотип iiMed --- */
#header-container,
#header-container #header,
#header-container.dashboard-header {
    background: var(--iimed-navy) !important;
    border-bottom: none;
}
#header-container #logo img {
    height: 44px;
    width: auto;
}
#header-container .header-notifications-trigger a { color: #EAF6FB; }
#header-container .user-status-message { background: var(--iimed-teal); color: #fff; }

.iimed-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 10px;
}
.iimed-username {
    color: #EAF6FB;
    font-weight: 600;
    white-space: nowrap;
}
a.iimed-btn-logout {
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    padding: 8px 20px;
    font-weight: 600;
    transition: all .2s ease;
    display: inline-block;
}
a.iimed-btn-logout:hover {
    background: var(--iimed-teal);
    border-color: var(--iimed-teal);
    color: #fff !important;
}

/* --- Сайдбар: светлый, активный пункт — бирюзовый с левой полосой --- */
.dashboard-sidebar,
.dashboard-sidebar .dashboard-sidebar-inner {
    background: #FFFFFF;
}
.dashboard-nav ul:before {
    color: var(--iimed-muted) !important;
}
.dashboard-nav ul li a {
    color: var(--iimed-text) !important;
    border-left: 3px solid transparent;
    transition: all .2s ease;
    font-weight: 500;
}
.dashboard-nav ul li a i {
    color: var(--iimed-muted);
    transition: color .2s ease;
}
.dashboard-nav ul li:hover a,
.dashboard-nav ul li:hover a i {
    color: var(--iimed-teal) !important;
    background: rgba(20, 184, 166, .06);
}
.dashboard-nav ul li.active a,
.dashboard-nav ul li.active a i {
    color: var(--iimed-teal) !important;
    background: rgba(20, 184, 166, .10) !important;
    border-left: 3px solid var(--iimed-teal);
    font-weight: 700;
}
.dashboard-responsive-nav-trigger {
    background: var(--iimed-navy);
    color: #fff;
    border-radius: 10px;
}

/* --- Контент: светло-голубой фон, белые карточки --- */
.dashboard-content-container,
.dashboard-content-inner {
    background: var(--iimed-bg) !important;
}
.dashboard-headline {
    background: var(--iimed-card);
    border-radius: var(--iimed-radius);
    box-shadow: var(--iimed-shadow);
    padding: 20px 26px;
    border: none;
}
.dashboard-headline h3 { color: var(--iimed-navy); font-weight: 800; }
#breadcrumbs ul li, #breadcrumbs ul li a { color: var(--iimed-muted); }

.fun-fact {
    background: var(--iimed-card) !important;
    border-radius: var(--iimed-radius) !important;
    box-shadow: var(--iimed-shadow) !important;
    border: none;
}
.fun-fact-text span { color: var(--iimed-muted); }
.fun-fact-text h4 { color: var(--iimed-navy); font-weight: 800; }

.dashboard-box,
.headline-box,
.notification {
    border-radius: var(--iimed-radius) !important;
    box-shadow: var(--iimed-shadow);
    border: none;
}

.word-used-wrapper {
    background: rgba(20, 184, 166, .12) !important;
    color: var(--iimed-teal-dark) !important;
    border-radius: 50vh;
}

/* --- AI-чат --- */
.messages-container {
    background: var(--iimed-card);
    border-radius: var(--iimed-radius-lg) !important;
    box-shadow: var(--iimed-shadow) !important;
    border: none !important;
    overflow: hidden;
}
.messages-inbox {
    background: #F7FBFE;
    border-right: 1px solid var(--iimed-border) !important;
}
.messages-headline {
    background: #fff;
    border-bottom: 1px solid var(--iimed-border) !important;
}
#conversations-wrapper li a.conversation {
    border-radius: 12px;
    margin: 4px 8px;
    transition: background .2s ease;
}
#conversations-wrapper li a.conversation:hover,
#conversations-wrapper li a.conversation.active {
    background: rgba(20, 184, 166, .10);
}
#conversations-wrapper li a.conversation.active {
    border-left: 3px solid var(--iimed-teal);
}
.message-by-headline h5 { color: var(--iimed-navy); }

#new-conversation.button,
.messages-inbox-bottom .button {
    background: var(--iimed-green) !important;
    color: #fff !important;
    border-radius: 999px !important;
    border: none;
}
#new-conversation.button:hover { background: #0CA678 !important; }

.message-content { background: #fff; }
.message-reply textarea,
.message-reply input[type="text"],
#conversation-search {
    border-radius: 12px !important;
    border: 1px solid var(--iimed-border) !important;
    background: #F7FBFE;
}
#chat-send-button.button {
    background: var(--iimed-teal) !important;
    color: #fff !important;
    border-radius: 999px !important;
    border: none;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(20, 184, 166, .35);
}
#chat-send-button.button:hover { background: var(--iimed-teal-dark) !important; }
#chat-prompts, #chat-microphone { color: var(--iimed-teal); }
.message-bubble { border-radius: 14px !important; }

/* --- Формы и кнопки кабинета в стиле пилюль/карточек --- */
.dashboard-content-container .button {
    border-radius: 999px;
}
.input-text.with-border,
input.with-border,
textarea.with-border,
select.with-border,
.input-with-icon-left input,
.input-with-icon input {
    border-radius: 12px !important;
    border: 1px solid var(--iimed-border) !important;
}
.input-with-icon-left i { color: var(--iimed-teal); }
.small-footer .footer-copyright { color: var(--iimed-muted); }

/* ==========================================================================
   9. Адаптивность
   ========================================================================== */
@media (max-width: 992px) {
    .iimed-feature-cards { grid-template-columns: 1fr; }
    .iimed-hero-art { margin-top: 36px; }
    .iimed-hero-art img { width: 320px; }
    .iimed-hero .ud-hero-content { text-align: center; }
    .iimed-hero .ud-hero-buttons { justify-content: center; }
    .iimed-stats { gap: 28px; justify-content: center; }
    .ud-header .navbar-collapse {
        background: var(--iimed-navy);
        padding: 16px;
        border-radius: 0 0 14px 14px;
    }
}

@media (max-width: 576px) {
    .iimed-hero-art img { width: 240px; }
    .iimed-stats { gap: 20px; }
    .iimed-stat strong { font-size: 28px; }
    .iimed-btn, .ud-main-btn.iimed-btn { padding: 10px 22px; font-size: 15px; }
    .iimed-header-user { margin-left: 0; }
}




/* ---------- 11. Биллинг /billing (M12, human-friendly) ---------- */
.ii-billing-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 22px; }
.ii-billing-tabs a {
    padding: 8px 18px; border-radius: 999px; background: var(--iimed-card);
    border: 1px solid var(--iimed-border); color: var(--iimed-muted);
    font-weight: 600; font-size: 14px; text-decoration: none; transition: all .2s ease;
}
.ii-billing-tabs a:hover { border-color: var(--iimed-teal); color: var(--iimed-teal-dark); }
.ii-billing-tabs a.active { background: var(--iimed-teal); border-color: var(--iimed-teal); color: #fff; }

.ii-billing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ii-billing-grid .dashboard-box { margin-top: 0; display: flex; flex-direction: column; }
.ii-billing-grid .dashboard-box .content { flex: 1; }

.ii-plan-title { font-size: 26px; font-weight: 800; color: var(--iimed-text); line-height: 1.2; }
.ii-plan-sub { color: var(--iimed-muted); font-size: 14px; margin: 6px 0 12px; }
.ii-plan-num { font-size: 36px; font-weight: 800; color: var(--iimed-text); line-height: 1; }
.ii-card-label { color: var(--iimed-muted); font-size: 14px; font-weight: 600; }
.ii-card-actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }

.ii-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ii-badge-green { background: #e6f4ea; color: #1d7a46; }
.ii-badge-yellow { background: #fdf3d7; color: #8a6100; }
.ii-badge-red { background: #fdecea; color: #b00020; }
.ii-badge-neutral { background: #e8f1fb; color: var(--iimed-navy); }

/* Значок «i» — подсказка (hover на десктопе, click на тач) */
.ii-info {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%; background: var(--iimed-border);
    color: var(--iimed-muted); font-size: 11px; font-weight: 700; font-style: normal;
    font-family: Georgia, 'Times New Roman', serif; line-height: 1; cursor: help;
    vertical-align: middle; margin-left: 5px; transition: all .2s ease;
}
.ii-info:hover, .ii-info.ii-info-active { background: var(--iimed-teal); color: #fff; }

/* Кольцо кредитов */
.ii-donut-wrap { display: flex; align-items: center; gap: 20px; }
.ii-donut-box { position: relative; width: 110px; height: 110px; flex: 0 0 auto; }
.ii-donut-center {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; pointer-events: none;
}
.ii-donut-center strong { font-size: 24px; font-weight: 800; color: var(--iimed-text); line-height: 1; }
.ii-donut-center span { font-size: 11px; color: var(--iimed-muted); margin-top: 2px; }

/* Bar-диаграмма использования */
.ii-usage-chart-box { position: relative; height: 190px; }

/* Прогресс-бары в таблице */
.ii-progress-cell { display: flex; align-items: center; gap: 10px; }
.ii-progress { height: 8px; border-radius: 999px; background: #edf2f7; overflow: hidden; flex: 1; min-width: 90px; max-width: 220px; }
.ii-progress > span { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.ii-progress-num { font-size: 13px; font-weight: 700; color: var(--iimed-text); white-space: nowrap; }

/* Таблица «Что входит в тариф» */
.ii-bill-table { width: 100%; border-collapse: collapse; }
.ii-bill-table th {
    font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
    color: var(--iimed-muted); padding: 14px 20px; border-bottom: 1px solid var(--iimed-border); text-align: left;
}
.ii-bill-table td { padding: 14px 20px; border-bottom: 1px solid #f1f6fb; vertical-align: middle; }
.ii-bill-table tbody tr:last-child td { border-bottom: none; }
.ii-bill-table tbody tr:hover { background: #f8fcfe; }
.ii-feature-name { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--iimed-text); }
.ii-feature-icon {
    width: 36px; height: 36px; border-radius: 10px; display: inline-flex;
    align-items: center; justify-content: center; background: var(--iimed-bg);
    color: var(--iimed-teal-dark); font-size: 16px; flex: 0 0 auto;
}
.ii-bonus-pill {
    display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px;
    background: #fdf3d7; color: #8a6100; font-size: 11px; font-weight: 700; cursor: help;
}


/* История операций по кредитам */
.ii-tx-table { width: 100%; border-collapse: collapse; }
.ii-tx-table th {
    font-size: 12px; text-transform: uppercase; letter-spacing: .6px;
    color: var(--iimed-muted); padding: 12px 20px; border-bottom: 1px solid var(--iimed-border); text-align: left;
}
.ii-tx-table td { padding: 12px 20px; border-bottom: 1px solid #f1f6fb; vertical-align: middle; font-size: 14px; }
.ii-tx-table tbody tr:last-child td { border-bottom: none; }
.ii-tx-table tbody tr:hover { background: #f8fcfe; }
.ii-amount-pos { color: #1d7a46; font-weight: 700; }
.ii-amount-neg { color: #b00020; font-weight: 700; }

/* Сводка: ряд мини-карточек (платежи, кредиты) */
.ii-summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.ii-summary-card {
    background: var(--iimed-card); border: 1px solid var(--iimed-border); border-radius: 14px;
    padding: 18px 20px; display: flex; align-items: center; gap: 14px;
}
.ii-summary-icon {
    width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center;
    justify-content: center; font-size: 20px; flex: 0 0 auto; background: var(--iimed-bg); color: var(--iimed-teal-dark);
}
.ii-summary-card .ii-card-label { display: block; margin-bottom: 4px; }
.ii-summary-card .ii-plan-num { font-size: 24px; }
.ii-summary-card .ii-plan-num small { font-size: 13px; font-weight: 600; color: var(--iimed-muted); }

/* Статусные бейджи (подписки, платежи) */
.ii-badge-teal { background: #e0f2f1; color: #00695c; }
.ii-badge-gray { background: #eceff1; color: #546e7a; }

/* Карточки тарифов (pricing) */
.ii-plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.ii-plan-card {
    background: var(--iimed-card); border: 1px solid var(--iimed-border); border-radius: 16px;
    padding: 26px 24px; display: flex; flex-direction: column; position: relative; transition: all .25s ease;
}
.ii-plan-card:hover { border-color: var(--iimed-teal); box-shadow: 0 8px 24px rgba(20, 66, 90, .08); transform: translateY(-2px); }
.ii-plan-card--current { border-color: var(--iimed-teal); box-shadow: 0 0 0 1px var(--iimed-teal); }
.ii-plan-card-flag {
    position: absolute; top: -12px; left: 20px; padding: 4px 14px; border-radius: 999px;
    background: var(--iimed-teal); color: #fff; font-size: 12px; font-weight: 700;
}
.ii-plan-card-flag.gray { background: #78909c; }
.ii-plan-card h4 { font-size: 19px; font-weight: 800; color: var(--iimed-text); margin: 0 0 6px; }
.ii-plan-card-desc { color: var(--iimed-muted); font-size: 13px; min-height: 36px; margin: 0 0 14px; }
.ii-plan-price { font-size: 30px; font-weight: 800; color: var(--iimed-text); line-height: 1; margin-bottom: 4px; }
.ii-plan-price small { font-size: 14px; font-weight: 600; color: var(--iimed-muted); }
.ii-plan-price-note { font-size: 12px; color: var(--iimed-muted); margin-bottom: 16px; min-height: 16px; }
.ii-plan-features { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.ii-plan-features li {
    display: flex; align-items: flex-start; gap: 9px; padding: 6px 0;
    font-size: 13.5px; color: var(--iimed-text); border-bottom: 1px dashed #eef3f8;
}
.ii-plan-features li:last-child { border-bottom: none; }
.ii-plan-features li i { color: var(--iimed-teal); font-size: 15px; margin-top: 1px; }
.ii-plan-features li.muted { color: var(--iimed-muted); }
.ii-plan-features li.muted i { color: #b0bec5; }
.ii-plan-card .button { width: 100%; text-align: center; }

/* Карточка подписки */
.ii-sub-card { margin-bottom: 20px; }
.ii-sub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ii-sub-title { font-size: 20px; font-weight: 800; color: var(--iimed-text); }
.ii-sub-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0; }
.ii-sub-meta-item { background: var(--iimed-bg); border-radius: 12px; padding: 12px 16px; }
.ii-sub-meta-item .ii-card-label { display: block; margin-bottom: 4px; font-size: 12px; }
.ii-sub-meta-item strong { font-size: 15px; color: var(--iimed-text); }
.ii-sub-period-bar { margin: 6px 0 2px; }
.ii-sub-period-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--iimed-muted); margin-top: 6px; }
.ii-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ii-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px;
    background: var(--iimed-bg); border: 1px solid var(--iimed-border); font-size: 13px;
    font-weight: 600; color: var(--iimed-text);
}
.ii-chip i { color: var(--iimed-teal-dark); font-size: 14px; }
.ii-chip .chip-limit { color: var(--iimed-muted); font-weight: 600; }

/* Пустое состояние */
.ii-empty-state { text-align: center; padding: 48px 24px; }
.ii-empty-state i { font-size: 44px; color: #b0bec5; display: inline-block; margin-bottom: 14px; }
.ii-empty-state h4 { font-size: 18px; font-weight: 700; color: var(--iimed-text); margin: 0 0 6px; }
.ii-empty-state p { color: var(--iimed-muted); font-size: 14px; margin: 0 0 18px; }

/* Адаптив: карточки в столбец, таблицы — в карточки-строки */
@media (max-width: 991px) {
    .ii-billing-grid { grid-template-columns: 1fr; }
    .ii-plan-cards { grid-template-columns: 1fr; max-width: 460px; }
    .ii-summary-cards { grid-template-columns: repeat(2, 1fr); }
    .ii-sub-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .ii-bill-table thead, .ii-tx-table thead { display: none; }
    .ii-bill-table, .ii-bill-table tbody, .ii-bill-table tr, .ii-bill-table td,
    .ii-tx-table, .ii-tx-table tbody, .ii-tx-table tr, .ii-tx-table td { display: block; width: 100%; }
    .ii-bill-table tr, .ii-tx-table tr {
        border: 1px solid var(--iimed-border); border-radius: 12px;
        margin: 12px 0; padding: 6px 0; background: var(--iimed-card);
    }
    .ii-bill-table td, .ii-tx-table td { border: none; padding: 8px 16px; }
    .ii-bill-table td[data-label]:before, .ii-tx-table td[data-label]:before {
        content: attr(data-label); display: block; font-size: 11px;
        text-transform: uppercase; letter-spacing: .5px; color: var(--iimed-muted); margin-bottom: 3px;
    }
    .ii-progress { max-width: none; }
    .ii-usage-chart-box { height: 220px; }
    .ii-summary-cards { grid-template-columns: 1fr; }
    .ii-sub-meta { grid-template-columns: 1fr; }
}

