@font-face {
  font-family: "Google Sans Flex";
  src: url("/GoogleSansFlex-VariableFont_GRAD,ROND,opsz,slnt,wdth,wght.ttf") format("truetype");
  font-weight: 100 1000;
  font-stretch: 25% 151%;
  font-style: normal;
  font-display: swap;
}

button { margin: 5px; padding: 10px; }

/* Reverting to original sophisticated color scheme and design */
:root {
  --primary: #2e3a46;
  --primary-dark: #1f2933;
  --secondary: #6b7280;
  --success: #17803d;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #2563eb;
  --light: #f5f6f8;
  --dark: #111827;
  --gray-50: #f8fafc;
  --gray-100: #eef2f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --accent: #0ea5e9;
  --glass: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 8px 20px rgba(17, 24, 39, 0.06);
  /* Ширина основной колонки ЛК на больших экранах (~1536px; было ~1280px у max-w-7xl) */
  --holk-content-max: 96rem;
  --holk-gutter-x: 1rem;
}

@media (min-width: 640px) {
  :root {
    --holk-gutter-x: 1.5rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --holk-gutter-x: 2rem;
  }
}

/* Общая колонка: шапка, скелетон, сетка карточек — по центру с одинаковыми боковыми полями */
.holk-content-shell,
.creative-grid,
.holk-overlap-cards-skeleton {
  width: 100%;
  max-width: var(--holk-content-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--holk-gutter-x);
  padding-right: var(--holk-gutter-x);
  box-sizing: border-box;
}

/*
 * Ноутбуки ~13–15" (MacBook 14" и т.п., 1024–1699px): контент не прижимаем к левому краю,
 * оставляем минимум ~3rem поля с каждой стороны — как визуально на широком мониторе.
 */
@media (min-width: 1024px) and (max-width: 1699px) {
  .holk-content-shell,
  .creative-grid,
  .holk-overlap-cards-skeleton {
    max-width: min(var(--holk-content-max), calc(100% - 6rem));
  }
}

* {
  box-sizing: border-box;
}

body {
  background: var(--light);
  font-family: "Google Sans Flex", "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--dark);
  min-height: 100vh;
  overflow-x: hidden;
}

.boot-loader {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(245, 246, 248, 0.94), rgba(226, 232, 240, 0.94));
  backdrop-filter: blur(2px);
}

.boot-loader__card {
  min-width: 240px;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.boot-loader__spinner {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 3px solid #d8e0ea;
  border-top-color: #2e3a46;
  animation: holkBootSpin 0.9s linear infinite;
}

.boot-loader__text {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-align: center;
}

@keyframes holkBootSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.lk-spin {
  animation: holkBootSpin 0.9s linear infinite;
  display: inline-block;
}

#tarrif-metka {
    padding: 8px 12px;
    border-radius: 6px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    font-size: 14px;
}

.sbp_qr {
	text-align: center;
}

.user-header {
    background: #f0f3f7;
    border-radius: 16px;
    padding: 18px 24px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
    position: relative;
    max-width: 1750px;
    margin: 5px 15px 5px;
    /* margin-top: 30px; */
    border: 1px solid rgba(148, 163, 184, 0.35);
}


@media (min-width: 768px) {
    .user-header {
        margin: 5px auto 15px;
    }
}

/* Дышащие орбы в шапке ЛК (аналогично логину) */
.breathe-orb {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 1;
    animation: breathe 4.2s ease-in-out infinite;
    will-change: transform, opacity;
}

.breathe-orb--header-left {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
    bottom: 22%;
    left: 4.5%;
    animation-delay: 0s;
}

.breathe-orb--header-accent {
    width: 13px;
    height: 13px;
    background: rgba(255, 255, 255, 0.18);
    top: 18%;
    left: 9%;
    animation-duration: 5.1s;
    animation-delay: -2.3s;
}

@keyframes breathe {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.38);
        opacity: 0.95;
    }
}

/* Декоративные размытые круги в шапке — теперь дышат и слегка плывут */
.header-blur-circle {
    position: absolute;
    border-radius: 9999px;
    pointer-events: none;
    z-index: 0;
    animation: headerBlurBreathe 22s ease-in-out infinite, headerFloat 38s ease-in-out infinite;
    will-change: transform, opacity;
}

.header-blur-circle--top {
    width: 380px;
    height: 380px;
    background: rgba(255,255,255,0.045);
    top: -18%;
    right: -12%;
    filter: blur(60px);
}

.header-blur-circle--bottom {
    width: 260px;
    height: 260px;
    background: rgba(200,210,230,0.06);
    bottom: -12%;
    left: -8%;
    filter: blur(48px);
    animation-delay: -12s;
}

@keyframes headerBlurBreathe {
    0%, 100% { transform: scale(1); opacity: 0.65; }
    50% { transform: scale(1.12); opacity: 0.95; }
}

@keyframes headerFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(8px, -14px); }
}

/* Дополнительный дышащий орб справа в шапке */
.breathe-orb--header-right {
    width: 17px;
    height: 17px;
    background: rgba(255, 255, 255, 0.14);
    top: 28%;
    right: 14%;
    animation-duration: 4.8s;
    animation-delay: -3.1s;
}

/* Медленно крутящаяся шестерёнка */
.header-gear-decor {
    position: absolute;
    top: 6%;
    right: 2%;
    font-size: 160px;
    color: rgba(255,255,255,0.07);
    pointer-events: none;
    z-index: 0;
    animation: gearSpin 42s linear infinite;
}

.header-gear-decor i {
    display: block;
}

.header-gear-decor-mobile {
    top: 10%;
    right: -28px;
    font-size: 150px;
    color: rgba(255,255,255,0.08);
}

@keyframes gearSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Воздушный шарик в шапке ЛК — очень лёгкий и редкий */
.header-balloon {
    position: absolute;
    left: 48%;
    bottom: -20px;
    width: 18px;
    height: 22px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.07;
    animation: header-balloon-rise 38s linear infinite;
}

.header-balloon::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 18px;
    height: 22px;
    background: #c8e6ff;
    border-radius: 35% 35% 50% 50% / 35% 35% 65% 65%;
    transform: translateX(-50%);
    box-shadow: inset -3px -3px 5px rgba(255,255,255,0.3);
}

.header-balloon::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%;
    width: 1px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    transform: translateX(-50%);
}

@keyframes header-balloon-rise {
    0% {
        transform: translateY(0) translateX(0);
    }
    100% {
        transform: translateY(-420px) translateX(18px);
    }
}



/* Лёгкое дыхание аватара пользователя в шапке */
.header-user-avatar {
  animation: avatarBreathe 6s ease-in-out infinite;
}

.header-user-avatar i {
  transition: transform 0.2s ease;
}

@keyframes avatarBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Волны в шапке */
.header-wave-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    animation: waveSvgBreathe 13s ease-in-out infinite;
    will-change: opacity;
}

@keyframes waveSvgBreathe {
    0%, 100% { opacity: 0.18; }
    50% { opacity: 0.36; }
}

/* Flow-анимации: translateX в % от bbox через fill-box */
/* % = period / path_width: W1=24/168=14.286%, W2=32/192=16.667%, W3=20/160=12.5% */
/* Пути расширены правее 100 на один период: при max сдвиге правый конец ≥100 */
.hws-f1, .hws-f2, .hws-f3 { transform-box: fill-box; transform-origin: left center; }
.hws-f1 { animation: hwsFlow1 10s linear infinite; }
.hws-f2 { animation: hwsFlow2 15s linear infinite; animation-delay: -3s; }
.hws-f3 { animation: hwsFlow3 8s linear infinite; animation-delay: -2s; }
@keyframes hwsFlow1 { from { transform: translateX(0%); } to { transform: translateX(-14.286%); } }
@keyframes hwsFlow2 { from { transform: translateX(0%); } to { transform: translateX(-16.667%); } }
@keyframes hwsFlow3 { from { transform: translateX(0%); } to { transform: translateX(-12.5%); } }

/* Пульсация через opacity: scaleY убран — он растеризует SVG и даёт ступеньки.
   opacity всегда идёт через GPU-композитинг без повторной растеризации. */
.hws-r1 { animation: hwsRot1 20s ease-in-out infinite; }
.hws-r2 { animation: hwsRot2 27s ease-in-out infinite -9s; }
.hws-r3 { animation: hwsRot3 16s ease-in-out infinite -5s; }
@keyframes hwsRot1 { 0%, 100% { opacity: 1; }    50% { opacity: 0.2; } }
@keyframes hwsRot2 { 0%, 100% { opacity: 1; }    50% { opacity: 0.25; } }
@keyframes hwsRot3 { 0%, 100% { opacity: 0.75; } 50% { opacity: 0.15; } }

/* Точки-сигналы: div-слой (круглые, не овальные) */
.header-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.hp {
    position: absolute;
    left: 0;
    border-radius: 50%;
    background: white;
    will-change: transform, opacity;
    animation: hpMove linear infinite;
}

@keyframes hpMove {
    0%   { transform: translateX(0);    opacity: 0; }
    5%   { opacity: var(--hp-op, 0.5); }
    90%  { opacity: var(--hp-op, 0.5); }
    100% { transform: translateX(110vw); opacity: 0; }
}

/* Кластер у волны 1 (top ~40-45%) */
.hp-1  { --hp-op: 0.72; top: 41%; width: 3px; height: 3px; animation-duration: 6.5s;  animation-delay: 0s; }
.hp-2  { --hp-op: 0.45; top: 44%; width: 2px; height: 2px; animation-duration: 11.5s; animation-delay: -2s; }
.hp-3  { --hp-op: 0.60; top: 38%; width: 2px; height: 2px; animation-duration: 8.5s;  animation-delay: -5.5s; }
.hp-4  { --hp-op: 0.35; top: 43%; width: 2px; height: 2px; animation-duration: 17s;   animation-delay: -10s; }

/* Кластер у волны 2 (top ~50-56%) */
.hp-5  { --hp-op: 0.65; top: 51%; width: 3px; height: 3px; animation-duration: 8s;    animation-delay: -1.5s; }
.hp-6  { --hp-op: 0.40; top: 55%; width: 2px; height: 2px; animation-duration: 13.5s; animation-delay: -7s; }
.hp-7  { --hp-op: 0.55; top: 49%; width: 2px; height: 2px; animation-duration: 10.5s; animation-delay: -12s; }

/* Кластер у волны 3 (top ~60-66%) */
.hp-8  { --hp-op: 0.50; top: 62%; width: 2px; height: 2px; animation-duration: 11s;   animation-delay: -4s; }
.hp-9  { --hp-op: 0.42; top: 65%; width: 3px; height: 3px; animation-duration: 7s;    animation-delay: -8s; }
.hp-10 { --hp-op: 0.32; top: 60%; width: 2px; height: 2px; animation-duration: 15s;   animation-delay: -13.5s; }

@media (prefers-reduced-motion: reduce) {
    .breathe-orb,
    .header-gear-decor,
    .header-balloon,
    .header-user-avatar,
    .header-blur-circle,
    .header-wave-svg,
    .hws-f1, .hws-f2, .hws-f3,
    .hws-r1, .hws-r2, .hws-r3,
    .hp {
        animation: none !important;
    }
    .header-wave-svg { opacity: 0.22; }
    .hp { display: none; }
}

.header-fio {
  font-size: 1.15rem;
  font-weight: 600;
  /* color: #f9fafb; */
}

.header-ls {
  font-size: 1.3rem;
  color: #cbd5f5;
}

/* Reverting to original enhanced user avatar with gradient */
.user-avatar {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #929599, #343839);
  border-radius: 50%;
  display: flex; 
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

/* Reverting to original enhanced user menu buttons */
.user-menu-btn {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px 18px;
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-header .user-menu-btn {
  font-size: 13px;
  padding: 8px 14px;
}

.user-header .user-menu-btn i {
  font-size: 0.9rem;
}

.user-menu-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

/* Modified grid to be exactly 4 columns while keeping original responsive behavior */
/* Важно: не использовать margin: 0 auto — сбрасывает margin-top и ломает -mt-* у Tailwind */
.creative-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 16px;
    padding-bottom: 32px;
}
/* Карточки «прилипают» к шапке: отрицательный margin (перекрытие с синим фоном).
   Скелетон использует .holk-overlap-cards-skeleton — те же отступы, без .creative-grid */
/* Карточки должны быть выше градиента шапки при overlap (margin-top отрицательный) */
.creative-grid.holk-overlap-cards,
.holk-overlap-cards-skeleton {
    position: relative;
    z-index: 20;
}
/* Мобилка: карточки не заезжают на шапку */
@media (max-width: 767px) {
  .creative-grid.holk-overlap-cards,
  .holk-overlap-cards-skeleton {
    margin-top: 1rem;
  }
}
@media (min-width: 768px) {
  .creative-grid.holk-overlap-cards,
  .holk-overlap-cards-skeleton {
    margin-top: -4rem;
  }
}
@media (min-width: 1024px) {
  .creative-grid.holk-overlap-cards,
  .holk-overlap-cards-skeleton {
    margin-top: -4rem;
  }
}
@media (min-width: 1280px) {
  .creative-grid.holk-overlap-cards,
  .holk-overlap-cards-skeleton {
    margin-top: -6rem;
  }
}
@media (min-width: 768px) {
  .creative-grid.holk-overlap-cards > section {
    position: relative;
    box-shadow:
      0 20px 50px -12px rgba(15, 23, 42, 0.18),
      0 8px 20px -8px rgba(20, 32, 44, 0.12);
  }
}
@media (max-width: 1200px) {
  .creative-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .creative-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .creative-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px;
  }
}

/* Reverting to original enhanced card design with shadows and borders */
.creative-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.creative-card-tariff {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: all 0.3s ease;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: baseline;
}

.creative-card:hover {
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
  border-color: var(--gray-300);
  transform: translateY(-2px);
}

/* Анимации для главной сетки карточек */
.creative-grid > section,
.creative-grid > div {
  animation: cardEnter 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.creative-grid > section:nth-child(2) { animation-delay: 80ms; }
.creative-grid > section:nth-child(3) { animation-delay: 160ms; }

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Более живое поведение карточек тарифа */
.tariff-plan-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.tariff-plan-card:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.09);
}

.tariff-rocket {
  animation: rocketFloat 3.8s ease-in-out infinite;
}

@keyframes rocketFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.creative-card.large {
  grid-column: span 1;
  min-height: 300px;
}

.creative-card .card-body {
  flex: 1;
  padding: 20px;
}

.card-body-tariff {
  flex: 1;
  padding: 20px;
  align-items: baseline;
}

a:hover {
    text-decoration: none
}

/* Reverting to original enhanced card headers with gradients */
.card-header-creative {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
  font-weight: 700;
  font-size: 18px;
  color: var(--dark);
  text-align: left;
}

.card-header-creative.secondary {
  background: linear-gradient(135deg, var(--blue-50) 0%, var(--blue-100) 100%);
}

.card-header-creative.accent {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

.card-header-creative.success {
  background: linear-gradient(135deg, var(--success), #047857);
}

/* ============================
   Billing card (new design)
   Scoped to holk-billing-*
   ============================ */
.holk-billing-card {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  min-height: unset;
}

/* .holk-billing-section СТАРОЕ v1 {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
} */

.holk-billing-section {
    padding: 20px 30px 10px;
    border-bottom: 1px solid var(--gray-200);
}

.holk-billing-section:last-child {
  border-bottom: none;
}

.holk-billing-section-balance {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 20px 1px 1px;
}

.holk-billing-label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0;
}

.holk-billing-balance {
  /* margin: 4px 0 0; */
  line-height: 1.2;
  color: #49af3f;
  font-weight: 700;
  display: inline-flex;
  align-items: baseline;     /* важно — валюта будет ниже базовой линии суммы */
  gap: 6px;                   /* расстояние между суммой и руб. */
}

.balance-amount {
  font-size: 50px;            /* большая сумма */
  font-weight: 700;
}

.balance-currency {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.95;
    color: #585b5f;             /* чуть светлее, если хочется */
  /* или color: #4ab042; — чуть другой оттенок */
}

.holk-billing-next-payment {
  text-align: right;
}

.holk-billing-next-payment-date {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin: 2px 0 0;
}

.holk-billing-tariff-name {
  font-size: 20px;
  color: #1a1a2e;
  margin: 8px 0 16px;
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  font-weight: 500;
}

.holk-billing-pricing-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.holk-billing-pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.holk-billing-pricing-row > span {
  font-size: 16px;
  color: #1a1a2e;
}

.holk-billing-discount > span {
  color: #eca623;
  font-weight: 500;
}

.holk-billing-pricing-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 4px 0;
}

.holk-billing-total > span {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
}

.holk-billing-services-list {
  margin-top: 16px;
}

.holk-billing-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}

.holk-billing-service-item:last-child {
  border-bottom: none;
}

.holk-billing-service-name {
  font-size: 16px;
  color: #1a1a2e;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.holk-billing-service-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.holk-billing-service-price {
  font-size: 16px;
  color: var(--gray-500);
  white-space: nowrap;
}

.holk-billing-service-remove {
  font-size: 14px;
  color: var(--danger);
  text-decoration: none;
  white-space: nowrap;
}

.holk-billing-service-remove:hover {
  text-decoration: underline;
  color: #b91c1c;
}

.holk-billing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  height: 48px;
  border-radius: 9999px;
  border: 1px solid var(--gray-200);
  background: transparent;
  color: #1a1a2e;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  margin-top: 20px;
}

.holk-billing-btn:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

.holk-billing-section-footer {
  display: flex;
  justify-content: flex-end;
}

.holk-billing-btn-footer {
  margin-top: 0;
}

.holk-billing-btn-arrow {
  margin-left: 8px;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .holk-billing-section {
    padding: 16px 18px;
  }

@media (max-width: 480px) {
    .holk-billing-section-balance {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
    text-align: center;
    padding: 20px 1px 1px;
    }
}

  .holk-billing-balance-value {
    font-size: 26px;
  }

  .holk-billing-next-payment {
    text-align: left;
  }

  .holk-billing-total > span {
    font-size: 18px;
  }
}

.card-header-creative.warning {
  background: linear-gradient(135deg, var(--warning), #b45309);
}

.card-header-creative.danger {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
}

/* Reverting to original enhanced button design with new colors */
.btn-creative {
  background: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  margin: 4px 0;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}

.btn-creative:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.12);
}

.btn-creative.secondary {
  background: #2e3a46;
  box-shadow: 0 2px 4px rgba(100, 116, 139, 0.2);
}
.btn-creative.secondary:hover {
  background: var(--gray-600);
  box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
}

.btn-creative.accent {
  background: var(--accent);
  box-shadow: 0 2px 4px rgba(14, 165, 233, 0.2);
}

.btn-creative.accent:hover {
  background: #0284c7;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-creative.success {
  background: var(--success);
}

.btn-creative.success:hover {
  background: #047857;
}

.btn-creative.warning {
  background: var(--warning);
}

.btn-creative.warning:hover {
  background: #b45309;
}

.btn-creative.danger {
  background: var(--danger);
}

.btn-creative.danger:hover {
  background: #b91c1c;
}

/* Reverting to original enhanced payment buttons */
.payment-btn {
  /* background: #1e293b; */
  border: 1px solid #e3d8d8;
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.15s ease;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.25);
  display: flex;
  align-items: center;
  /* color: #e5e7eb; */
}

.payment-btn strong {
  font-size: 14px;
  line-height: 1.1;
}

.payment-btn small {
  font-size: 12px;
  line-height: 1.2;
}

.payment-btn .text-left {
  text-align: left;
}

@media (max-width: 600px) {
  .creative-card .card-body {
    padding: 22px;
  }

  .payment-btn {
    width: 100%;
    padding: 16px 18px;
  }
}

.payment-btn:hover {
  border-color: var(--gray-300);
  box-shadow: 0 3px 10px rgba(17, 24, 39, 0.08);
}

.payment-btn:focus,
.payment-btn:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* Services tiles (with covers) */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.service-tile {
    --svc-h1: 210;
    --svc-h2: 250;
    
    position: relative;
    display: flex;                    /* оставляем flex */
    flex-direction: row;              /* или column — зависит от того, как у тебя расположены элементы */
    align-items: center;              /* вертикальное центрирование */
    justify-content: center;          /* горизонтальное центрирование */
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    background: var(--gray-50);
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    text-align: center;               /* на всякий случай, если внутри есть текст напрямую */
}

.service-tile:hover {
  background: #fff;
  border-color: var(--gray-300);
}

.service-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.service-cover {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(
    135deg,
    hsl(var(--svc-h1) 75% 52%),
    hsl(var(--svc-h2) 70% 42%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.service-cover-letter {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.service-meta {
  min-width: 0;
  text-align: center;
}

.service-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.service-sub {
  font-size: 11.5px;
  color: var(--gray-600);
  margin-top: 2px;
}

.service-sub.inactive {
  color: var(--gray-500);
}

.service-remove {
  color: var(--danger);
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  border: none;
  background: transparent;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.service-remove:hover {
  opacity: 0.85;
}

/* Traditional remove button */
.remove-btn {
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 3px;
  width: 20px;
  height: 20px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.add-service-btn {
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  margin-top: 10px;
  cursor: pointer;
}

.add-service-btn:hover {
  background: var(--primary-dark);
}

/* Add Service Modal — grid of selectable service cards */
.add-service-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}
.add-service-card {
  aspect-ratio: 1;
  min-height: 100px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--gray-50);
}
.add-service-card:hover {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.06);
}
.add-service-card.selected {
  border-color: var(--primary);
  background: rgba(46, 58, 70, 0.08);
  box-shadow: 0 0 0 2px rgba(46, 58, 70, 0.2);
}
.add-service-card-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.3;
  flex: 1;
  display: flex;
  align-items: center;
}
.add-service-card-cost {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 4px;
}
.btn-remove-service {
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 400;
  color: #ef4444;
  background: transparent;
  border: 1px solid #fca5a5;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-remove-service:hover {
  color: white;
  background: var(--danger);
  border-color: var(--danger);
}
.btn-remove-service--locked {
  color: #9ca3af;
  border-color: #d1d5db;
  cursor: not-allowed;
  font-size: 11px;
}
.btn-remove-service--locked:hover {
  color: #9ca3af;
  background: transparent;
}

.sbp-preset-btn {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}
.sbp-preset-btn:hover {
  background: #d1fae5;
  border-color: #6ee7b7;
}
.sbp-preset-btn:active {
  transform: scale(0.97);
}

.low-balance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  animation: lowBalancePulse 2s ease-in-out infinite;
}
.low-balance-badge-mobile {
  color: #fecaca;
  background: rgba(220, 38, 38, 0.4);
  border-color: rgba(248, 113, 113, 0.6);
}
.low-balance-badge-mobile .low-balance-btn {
  color: #fecaca;
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(254, 202, 202, 0.5);
}
.low-balance-badge-mobile .low-balance-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #dc2626;
}
.low-balance-btn {
  margin-left: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #dc2626;
  background: white;
  border: 1px solid #fecaca;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.low-balance-btn:hover {
  background: #dc2626;
  color: white;
}
@keyframes lowBalancePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.tariff-current,
.tariff-next,
.tariff-discount,
.tariff-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
}

.tariff-label {
  color: var(--secondary);
  font-weight: normal;
}

.tariff-name,
.tariff-next-name {
  font-weight: 600;
  color: var(--dark);
}

.discount-amount {
  font-weight: 600;
  color: var(--success);
  font-size: 13px;
}

.total-amount {
  font-weight: 700;
  font-size: 20px;
}

.tariff-change-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 999px;
  margin-top: 16px;
  font-weight: 600;
}

.account-section {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dee2e6;
}

.section-title {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Управление аккаунтом – плиточная сетка */
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 768px) {
  .account-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 360px) {
  .account-grid {
    grid-template-columns: 1fr;
  }
}

.account-tile {
    position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 8px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  text-align: center;
}

.account-tile:hover {
  border-color: var(--accent);
  background: #f0f9ff;
  box-shadow: 0 2px 8px rgb(119, 121, 120);
  transform: translateY(-1px);
}

.account-tile.full {
  grid-column: 1 / -1;
}

.method-card.full {
  grid-column: 1 / -1;
}

.method-card.full #status,
.method-card.full .d-flex {
  margin-top: 12px;
}

/* Карточка «Уведомления» */
.push-tile {
  cursor: default;
  justify-content: flex-start;
  padding: 18px 16px;
  min-height: 0;
  gap: 6px;
}
.push-tile__icon {
  width: 36px;
  height: 36px;
}
.push-tile__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;
}

.account-tile.danger {
  border-color: rgba(220, 38, 38, 0.25);
  background: #fef2f2;
}

.account-tile.danger:hover {
  border-color: var(--danger);
  background: #fee2e2;
}

.account-tile:disabled,
.account-tile[disabled] {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.account-tile-icon {
  width: 28px;
  height: 28px;
  color: #3b4a5a;
  flex-shrink: 0;
}

.account-tile-icon.danger {
  color: var(--danger);
}

.account-tile-name {
  font-size: 14px;
  font-weight: 600;
}

.account-tile-desc {
  font-size: 12px;
  color: var(--gray-500);
}

.account-tile-desc.danger {
  color: var(--danger);
}

.account-contact-block {
  margin-top: 14px;
  padding: 10px 12px;
  background: #f9fafb;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
}

.account-contact-block a {
  color: var(--primary);
  font-weight: 500;
}

.contact-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.contact-phone-link:hover {
  text-decoration: underline;
}

/* Header FIO/LS slightly larger */
.header-fio {
  font-size: 1.30rem;
  font-weight: 650;
}

.header-ls {
  font-size: 1.5rem;
}

/* Make all form edges rounder (like header buttons) */
.form-control,
select.form-control,
textarea.form-control,
input.form-control,
.custom-select {
  border-radius: 10px !important;
}

.section-description {
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 8px;
}

.service-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    justify-content: center;
}

/* Traditional status badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: normal;
  text-transform: uppercase;
  border: 1px solid;
}

.status-badge.active {
    background: #d4edda;
    color: var(--success);
    border-color: #c3e6cb;
    width: 65%;
    height: 36px;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    margin-top: 6px;
}


.status-badge.blocked {
  background: #f8d7da;
  color: var(--danger);
  border-color: #f5c6cb;
  width: 65%;
    height: 36px;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    margin-top: 6px;
}

.table-creative {
  font-size: 13px;
  width: 100%;
}

.table-creative td {
    padding: 16px 12px;
    border-bottom: 1px solid #dee2e6;
}

.table-creative td:first-child {
  font-weight: 500;
  color: var(--dark);
}

.icon-24 {
  font-size: 16px !important;
}

.overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.95);
        display: flex;
        align-items: flex-start;
        justify-content: center;
        z-index: 9999;
        overflow-y: auto;
    }
    .skeleton { background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%); background-size: 200% 100%; animation: skeleton-shimmer 1.5s ease-in-out infinite; border-radius: 8px; }
    .skeleton-header { background: linear-gradient(90deg, rgba(255,255,255,0.15) 25%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.15) 75%); background-size: 200% 100%; }
    @keyframes skeleton-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }


    /* Иконки банков */
.fa-university:before {
    content: "\f19c";
    padding: 10px;
}

.fa-mobile-alt:before {
    content: "\f3cd";
    padding: 10px;
}

.fa-qrcode:before {
    content: "\f029";
    padding: 10px;
}

.fa-credit-card:before {
    content: "\f09d";
    padding: 10px;
}


/* Базовые стили для обеих кнопок */
.user-menu-btn {
    border-radius: 10px;
    padding: 10px 18px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Кнопка блокировки (красноватый оттенок) */
.user-menu-btn-blocked {
    border: 1px solid #ff9999;
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 47px;
    color: #9f2424;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}

.user-menu-btn-blocked:hover {
    background: #ffe6e6;
    border-color: #e9b3b3;
}

/* Кнопка разблокировки (зеленоватый оттенок) */
.user-menu-btn-unblocked {
    border: 1px solid #d8f8c6;
    background: #50e63f00;
    border-radius: 8px;
    padding: 12px 47px;
    color: #38a14b;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    margin: 16px 0;
    box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}

.user-menu-btn-unblocked:hover {
    background: #c6f6d5; /* Более насыщенный зеленый при наведении */
    border-color: #b8f7d2;
}



/* === ДИЗАЙН ПОДПИСКИ НА УВЕДОМЛЕНИЯ === */
#subscribeBtn, #unsubscribeBtn {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 10px 18px;
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: inline-block;
  margin: 5px;
}

#subscribeBtn:hover, #unsubscribeBtn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.25);
}

#status {
  font-weight: 500;
  margin: 10px 0;
  color: var(--gray-500);
}
.push-status--subscribed { color: var(--success); }
.push-status--unsubscribed { color: var(--warning); }

/* === Toast-уведомления (плашки) === */
.lk-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
  z-index: 10050;
  max-width: min(420px, calc(100vw - 24px));
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 16px 16px 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow:
    0 4px 6px -1px rgba(15, 23, 42, 0.07),
    0 12px 36px -8px rgba(15, 23, 42, 0.18);
  cursor: default;
  animation: lkToastIn 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #1e293b;
}

.lk-toast--success {
  border-left: 4px solid #22c55e;
}

.lk-toast--error {
  border-left: 4px solid #ef4444;
}

.lk-toast--info {
  border-left: 4px solid #3b82f6;
}

.lk-toast--wide {
  max-width: min(440px, calc(100vw - 24px));
}

.lk-toast__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.lk-toast--success .lk-toast__icon {
  background: #ecfdf5;
  color: #059669;
}

.lk-toast--error .lk-toast__icon {
  background: #fef2f2;
  color: #dc2626;
}

.lk-toast--info .lk-toast__icon {
  background: #eff6ff;
  color: #2563eb;
}

.lk-toast__main {
  flex: 1;
  min-width: 0;
}

.lk-toast__content {
  flex: 1;
  min-width: 0;
  color: #334155;
}

.lk-toast__content .lk-toast__title {
  margin: 0 0 8px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
}

.lk-toast__content .lk-toast__lead {
  margin: 0;
  font-weight: 500;
  color: #1e293b;
}

.lk-toast__content .lk-toast__muted {
  margin: 8px 0 0 0;
  font-size: 0.875rem;
  color: #64748b;
}

.lk-toast__content .lk-toast__title + .lk-toast__muted {
  margin-top: 6px;
}

.lk-toast__content .lk-toast__list {
  margin: 8px 0 0 0;
  padding-left: 1.15rem;
  color: #475569;
  font-size: 0.9rem;
}

.lk-toast__content .lk-toast__list li {
  margin-bottom: 4px;
}

.lk-toast__content .lk-toast__list li:last-child {
  margin-bottom: 0;
}

.lk-toast__heading {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.lk-toast__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.lk-toast__close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
  margin: -4px -4px 0 0;
}

.lk-toast__close:hover {
  background: #f1f5f9;
  color: #475569;
}

@media (max-width: 576px) {
  .lk-toast {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
  }
}

/* Встроенные подсказки в модалках (вместо .alert) */
.lk-inline-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.45;
  margin: 0;
}

.lk-inline-tip__icon {
  flex-shrink: 0;
  margin-top: 2px;
  color: #64748b;
}

.lk-inline-tip--success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #14532d;
}

.lk-inline-tip--success .lk-inline-tip__icon {
  color: #16a34a;
}

.lk-ios-step-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.875rem;
}

.lk-ios-step-hint i {
  font-size: 1.125rem;
  color: #3b82f6;
}

.vpn-warning-banner {
  position: fixed;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  z-index: 9998;
  width: min(960px, calc(100% - 24px));
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid #f97316;
  color: #9a3412;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.vpn-warning-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.vpn-warning-banner-text {
  flex: 1;
  line-height: 1.45;
}

.vpn-warning-dismiss {
  flex-shrink: 0;
  border: 1px solid #fdba74;
  background: #fff;
  color: #9a3412;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
}

.vpn-warning-dismiss:hover {
  background: #ffedd5;
}

/* Кнопка VPN у аватара (только иконка) */
.holk-vpn-warn-btn {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(251, 191, 36, 0.65);
  background: rgba(254, 243, 199, 0.95);
  color: #b45309;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.12);
}
.holk-vpn-warn-btn:hover {
  background: #fffbeb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.2);
  color: #92400e;
}
.holk-vpn-warn-btn:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}
.holk-vpn-warn-btn i {
  font-size: 0.85rem;
}

/* Плашка: услуги заблокированы (строго под шапкой, не перекрывает модалки) */
.holk-service-block-banner-wrap {
  width: 100%;
  max-width: var(--holk-content-max);
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  padding-left: var(--holk-gutter-x);
  padding-right: var(--holk-gutter-x);
  position: relative;
  z-index: 1;
  isolation: isolate;
  box-sizing: border-box;
}
@media (min-width: 1024px) and (max-width: 1699px) {
  .holk-service-block-banner-wrap:not(.holk-service-block-banner-wrap--in-header) {
    max-width: min(var(--holk-content-max), calc(100% - 6rem));
  }
}
@media (min-width: 768px) {
  .holk-service-block-banner-wrap {
    margin-top: 0.25rem;
    margin-bottom: 1.5rem;
  }
}
/* Внутри шапки: без двойных боковых отступов, на всю ширину контейнера */
.holk-service-block-banner-wrap--in-header {
  margin-top: 0;
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.holk-service-block-banner--on-dark {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  border-color: rgba(226, 232, 240, 0.55);
}
.holk-service-block-banner {
  display: grid;
  gap: 0.75rem 1rem;
  align-items: start;
  /* мобильная сетка: иконка + текст, кнопка на всю ширину */
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon body"
    "cta cta";
  padding: 0.875rem 0.875rem 1rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.98) 0%, rgba(241, 245, 249, 0.95) 50%, rgba(254, 242, 242, 0.35) 100%);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  .holk-service-block-banner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "icon body cta";
    gap: 1rem 1.25rem;
    align-items: center;
    padding: 1rem 1.15rem 1rem 1.15rem;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  }
}
/* Без кнопки разблокировки (только блок провайдера) */
.holk-service-block-banner--no-cta {
  grid-template-areas: "icon body";
  grid-template-columns: auto 1fr;
}
@media (min-width: 768px) {
  .holk-service-block-banner--no-cta {
    grid-template-columns: auto 1fr;
    grid-template-areas: "icon body";
  }
}
.holk-service-block-banner::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  border-radius: 1rem 0 0 1rem;
  background: linear-gradient(180deg, #f43f5e, #be123c);
}
.holk-service-block-banner--self::before {
  background: linear-gradient(180deg, #f59e0b, #d97706);
}
.holk-service-block-banner--prov::before {
  background: linear-gradient(180deg, #64748b, #475569);
}
.holk-service-block-banner__icon {
  grid-area: icon;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #be123c;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
@media (min-width: 768px) {
  .holk-service-block-banner__icon {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.35rem;
    border-radius: 0.85rem;
  }
}
.holk-service-block-banner--self .holk-service-block-banner__icon {
  color: #c2410c;
}
.holk-service-block-banner--prov .holk-service-block-banner__icon {
  color: #475569;
}
.holk-service-block-banner__body {
  grid-area: body;
  min-width: 0;
  text-align: left;
}
.holk-service-block-banner__title {
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem 0;
}
.holk-service-block-banner__title-date {
  display: block;
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.88em;
  line-height: 1.35;
  color: #334155;
  letter-spacing: 0;
}
@media (min-width: 768px) {
  .holk-service-block-banner__title {
    font-size: 0.98rem;
    margin-bottom: 0.35rem;
  }
}
.holk-service-block-banner__text {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #475569;
  margin: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.holk-service-block-banner__body .holk-service-block-banner__text + .holk-service-block-banner__text {
  margin-top: 0.5rem;
}
@media (min-width: 768px) {
  .holk-service-block-banner__text {
    font-size: 0.9rem;
    line-height: 1.55;
  }
}
.holk-service-block-banner__meta {
  font-size: 0.75rem;
  line-height: 1.45;
  color: #64748b;
  margin: 0.45rem 0 0 0;
  overflow-wrap: break-word;
}
@media (min-width: 768px) {
  .holk-service-block-banner__meta {
    font-size: 0.8125rem;
  }
}
.holk-service-block-banner__cta {
  grid-area: cta;
  justify-self: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.8125rem;
  border: none;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
@media (min-width: 768px) {
  .holk-service-block-banner__cta {
    justify-self: end;
    width: auto;
    min-width: 12rem;
    padding: 0.65rem 1.15rem;
    font-size: 0.9rem;
    border-radius: 0.85rem;
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
  }
}
.holk-service-block-banner__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(16, 185, 129, 0.42);
}
.holk-service-block-banner__cta:focus {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}
.holk-service-block-banner__cta--credit {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}
@media (min-width: 768px) {
  .holk-service-block-banner__cta--credit {
    box-shadow: 0 8px 22px rgba(245, 158, 11, 0.4);
  }
}
.holk-service-block-banner__cta--credit:hover {
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.48);
}
.holk-service-block-banner__cta--credit:focus {
  outline-color: #fbbf24;
}

/* Устаревшее: lkUiLocked=false — сетка не блокируется. Класс оставлен на случай точечного включения. */
.holk-lk-locked * {
  pointer-events: none !important;
}
.holk-lk-locked .holk-lk-interactive-exempt,
.holk-lk-locked .holk-lk-interactive-exempt * {
  pointer-events: auto !important;
}
.holk-lk-locked {
  opacity: 0.88;
  filter: saturate(0.92);
  transition: opacity 0.2s ease;
}
.holk-lk-locked .holk-lk-interactive-exempt {
  opacity: 1 !important;
  filter: none !important;
}
.holk-lk-locked-header {
  pointer-events: none !important;
  opacity: 0.55;
  filter: grayscale(0.15);
}

/* Оплата (шапка + карточка «Способы оплаты»), плашка, отсрочка, разблокировка — кликабельны при блокировке */
.holk-lk-payment-actions,
.holk-lk-payment-actions *,
.holk-lk-block-action,
.holk-lk-block-action * {
  pointer-events: auto !important;
  opacity: 1 !important;
  filter: none !important;
}

.credit-tile--unavail {
  opacity: 0.5 !important;
  cursor: default !important;
  pointer-events: none !important;
}

.block-reason-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.block-reason-tile {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  color: #374151;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  text-align: left;
  line-height: 1.3;
}

.block-reason-tile:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.block-reason-tile.is-selected {
  border-color: #0d9488;
  background: #f0fdfa;
  color: #0d9488;
  font-weight: 600;
}

.holk-unblock-modal {
  border: none !important;
  border-radius: 1rem !important;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.22) !important;
}
.holk-unblock-modal__head {
  background: linear-gradient(135deg, #0f766e 0%, #059669 45%, #047857 100%);
  color: #fff;
  border: none !important;
  padding: 1.1rem 1.25rem;
}
.holk-unblock-modal__head .close {
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.95;
  text-shadow: none;
}
.holk-unblock-modal__head-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.holk-unblock-modal__badge {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.holk-unblock-modal__title {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.1rem;
}
.holk-unblock-modal__body {
  padding-top: 1.25rem;
  background: #f8fafc;
}
.holk-unblock-modal__footer {
  background: #f8fafc;
}
.holk-unblock-modal__submit {
  min-width: 11rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

/* Заголовок секции внутри модалки разблокировки */
.holk-unblock-section__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 8px;
}

/* Плитки дня расчётного периода */
.holk-unblock-dp-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.holk-unblock-dp-tile {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  padding: 0;
}
.holk-unblock-dp-tile:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}
.holk-unblock-dp-tile.is-selected {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.13);
}
.holk-unblock-dp-tile__num {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}
.holk-unblock-dp-tile.is-selected .holk-unblock-dp-tile__num {
  color: #0d9488;
}
.holk-unblock-dp-tile__sub {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  font-weight: 600;
}
.holk-unblock-dp-tile.is-selected .holk-unblock-dp-tile__sub {
  color: #5eead4;
}

/* Плитки тарифов */
.holk-unblock-tariff-tiles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.holk-unblock-tariff-tile {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1.5px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  text-align: left;
}
.holk-unblock-tariff-tile:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.holk-unblock-tariff-tile.is-selected {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.13);
}
.holk-unblock-tariff-tile__name {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  line-height: 1.3;
}
.holk-unblock-tariff-tile.is-selected .holk-unblock-tariff-tile__name {
  color: #0d9488;
  font-weight: 600;
}
.holk-unblock-tariff-tile__check {
  font-size: 16px;
  color: #0d9488;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.holk-unblock-tariff-tile.is-selected .holk-unblock-tariff-tile__check {
  opacity: 1;
}

@keyframes lkToastIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pop {
  from { opacity: 0; transform: translate(-50%, 6px) scale(0.6); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* === ГЛОБАЛЬНАЯ ПОЛОСКА ЗАГРУЗКИ === */
.global-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #10b981, #34d399, #10b981);
  background-size: 200% 100%;
  animation: loadingBarIndeterminate 1.2s ease-in-out infinite;
  z-index: 10000;
}

@keyframes loadingBarIndeterminate {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.card-loading-placeholder {
  font-size: 14px;
  color: #94a3b8;
  padding: 12px 0;
}

/* Мобильные тосты */
@media (max-width: 576px) {
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .toast {
    min-width: 0;
    width: 100%;
  }
}

/* === КОЛОКОЛЬЧИК В ШАПКЕ === */
.notification-bell {
  cursor: pointer;
  color: var(--accent);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  position: relative;
}

.notification-bell:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

#notification-badge {
    background: linear-gradient(135deg, #f97316, #ea6c0a);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0 9px;
    border-radius: 8px;
    height: 24px;
    min-width: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4);
}

#notification-badge-mobile {
  position: absolute;
  top: -6px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #f97316, #ea6c0a);
  color: white;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border-radius: 6px;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* === Унифицированный стиль модальных окон === */
.modal-content {
  border-radius: 16px;
  border: none;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal.show .modal-content {
  animation: modalPopIn 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.965) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: white;
  padding: 18px 24px;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header .modal-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-header .close,
.modal-header [data-dismiss="modal"],
.modal-header .btn-close,
.modal-header [data-bs-dismiss="modal"] {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.75rem;
  line-height: 1;
  padding: 0;
  margin: 0;
  cursor: pointer;
  opacity: 1;
  flex-shrink: 0;
}

.modal-header .close:hover,
.modal-header [data-dismiss="modal"]:hover,
.modal-header .btn-close:hover {
  color: white;
}

.modal-body {
  padding: 24px;
  background: #fff;
}

.modal-footer {
  padding: 20px 24px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .modal-footer {
    flex-direction: column;
  }
  .modal-footer .btn-primary,
  .modal-footer .btn-secondary,
  .modal-footer .btn-light,
  .modal-footer .btn-cancel,
  .modal-footer .btn-danger {
    width: 100%;
  }
}

.modal-dialog-scrollable .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

/* Отсрочка платежа: без modal-dialog-scrollable; на всякий случай не режем body — на телефоне видны все варианты периодов */
#addCreditModal .modal-body {
  max-height: none;
  overflow-y: visible;
}

/* Унифицированные кнопки в футере модалок */
.modal-footer .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
}

.modal-footer .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark), #132739);
  transform: translateY(-1px);
}

.modal-footer .btn-secondary,
.modal-footer .btn-light,
.modal-footer .btn-cancel {
  background: #fff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
}

.modal-footer .btn-secondary:hover,
.modal-footer .btn-light:hover,
.modal-footer .btn-cancel:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.modal-footer .btn-danger {
  background: var(--danger);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
}

.modal-footer .btn-danger:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
}

#notificationsModal .modal-body {
  padding: 24px 28px 28px;
}

#notifications-list .notification-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#notifications-list .notification-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

#notifications-list .notification-card.read {
  background: #f8fafc;
  opacity: 0.9;
  border-color: #e2e8f0;
}

#notifications-list .notification-card .msg {
  margin: 0 0 10px 0;
  font-size: 15px;
  line-height: 1.5;
  color: #1e293b;
}

#notifications-list .notification-card .time {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}

#notifications-list .notification-card .badge-new {
  display: inline-block;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  margin-left: 8px;
}

#notifications-list .notification-card .btn {
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.2s ease;
}

#notifications-list .notification-card .btn-read {
  background: #ffffff;
  border: 1px solid #22c55e;
  color: #22c55e;
}

#notifications-list .notification-card .btn-read:hover:not(:disabled) {
  background: #22c55e;
  color: white;
}

#notifications-list .notification-card .btn-read:disabled {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8;
  cursor: default;
}

#notifications-list .notification-empty {
  text-align: center;
  padding: 48px 24px;
  color: #64748b;
  font-size: 15px;
}

.notification-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.notification-item:hover {
  box-shadow: 0 4px 14px rgba(8, 145, 178, 0.15);
  transform: translateY(-1px);
}

.notification-item.read {
  opacity: 0.75;
  background: var(--gray-50);
}

.notification-item .msg {
  margin: 0 0 6px 0;
  font-size: 14px;
  color: var(--dark);
}

.notification-item .time {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 8px;
}

.notification-item .badge-new {
  background: var(--info);
  color: white;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 6px;
}

.notification-item .btn {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 8px;
  margin-right: 6px;
  transition: all 0.3s ease;
}

.btn-read {
  background: white;
  border: 1px solid var(--success);
  color: var(--success);
}

.btn-read:hover {
  background: var(--success);
  color: white;
}

.btn-delete {
  background: white;
  border: 1px solid var(--danger);
  color: var(--danger);
}

.btn-delete:hover {
  background: var(--danger);
  color: white;
}

#clear-all-btn {
  background: var(--warning);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 8px 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

#clear-all-btn:hover {
  background: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

/* Анимация раскрытия списка соцсетей */
.social-expand-enter-active,
.social-expand-leave-active {
  transition: all 0.25s ease-out;
}

.social-expand-enter-from,
.social-expand-leave-to {
  opacity: 0;
  transform: scaleY(0.2) translateY(-10px);
  max-height: 0;
}

.social-expand-enter-to,
.social-expand-leave-from {
  opacity: 1;
  transform: scaleY(1) translateY(0);
  max-height: 300px; /* максимальная высота списка, подбери под количество соцсетей */
}
/* Стили для кнопок соцсетей — точная копия того, как работает на продакшене */
.btn-social {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 9999px;
    /* border: 1px solid rgb(255, 255, 255); белая обводка */
    background-color: #a1a1a149;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 130%;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(119, 118, 118, 0.1);
    /* margin-right: -5px; */
}

.btn-social:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Логотип VK (синий оригинальный) */
.btn-vk {
    background-image: url('/logo_site/vk_logo_v7.png');
    overflow: hidden;
    background-size: 80%;
}

.btn-max {
    background-image: url('/logo_site/max_logo_v7.png');
    overflow: hidden;
    background-size: 80%;
}

.btn-giganet{
    background-image: url('/logo_site/giga_logo_v7.png');
    background-size: 80%;
}

/* Логотип Telegram (синий оригинальный) */
.btn-tg {
    background-image: url('/logo_site/tg_logo_v7.png');
    background-size: 80%;
}
    /* ===== Контейнер ===== */
    .payment-widget {
      width: 100%;
      max-width: 420px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .payment-title {
      font-size: 18px;
      font-weight: 600;
      color: #1a1a1a;
    }

    /* ===== СБП баннер (обновлённый под фото) ===== */
.sbp-banner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 30px 24px;
    background: linear-gradient(135deg, #304254, #14202c); 
    border-radius: 16px;
    color: #fff;
    cursor: pointer;
    border: none;
    text-align: left;
    width: 100%;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(41, 42, 46, 0.39);
    overflow: hidden;
}

.sbp-banner:hover {
    box-shadow: 0 8px 25px rgba(26, 26, 29, 0.45);
    transform: translateY(-2px);
}

.sbp-banner:active {
    transform: translateY(0);
}

/* Бейдж "рекомендуем" */
.sbp-recommend {
    position: absolute;
    top: 14px;
    right: 20px;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 3px 11px 2px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* Иконка */
.sbp-icon-box {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    padding: 4px;
}

.sbp-icon-box img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

/* Текстовая часть */
.sbp-text {
    flex: 1;
    min-width: 0;
}

.sbp-name {
    font-size: 23px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2px;
}

.sbp-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.sbp-sub {
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.78);
    margin-top: 4px;
    font-weight: 500;
}

.sbp-sub .percent {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

/* Стрелка */
.sbp-arrow {
    width: 26px;
    height: 26px;
    min-width: 26px;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 8px;
}

    /* ===== Сетка способов ===== */
    .methods-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }

    .method-card {
  position: relative;
  display: flex;                      /* ← обязательно верни flex */
  flex-direction: column;             /* вертикальное расположение по умолчанию */
  align-items: center;                /* центрирует всё по горизонтали */
  justify-content: center;            /* центрирует по вертикали */
  gap: 8px;                           /* расстояние между иконкой, названием и описанием */
  padding: 16px 12px;                 /* симметричные отступы */
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  text-align: center;
  min-height: 140px;                  /* фиксированная минимальная высота — карточки одинаковые */
  overflow: hidden;                   /* предотвращает вылезание содержимого */
}

/* Иконка */
.method-card .account-tile-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;                     /* иконка не сжимается */
}

/* Название */
.method-card .account-tile-name {
  font-size: 0.875rem;                /* 14px */
  font-weight: 600;
  color: #111827;
  text-align: center;
}

/* Описание */
.method-card .account-tile-desc {
  font-size: 0.75rem;                 /* 12px */
  color: #6b7280;
  text-align: center;
}

 

    .method-card:hover {
      border-color: #a1a1aa;
      box-shadow: 0 10px 20px -4px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
      transform: translateY(-2px);
    }

    .method-card {
      transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                  box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                  border-color 0.2s ease;
    }

    /* Иконки в карточках услуг/платежей слегка крутятся при наведении */
    .method-card:hover .account-tile-icon,
    .method-card:hover .method-icon-box {
      transform: rotate(8deg) scale(1.05);
      transition: transform 0.3s ease;
    }

    .method-icon-box {
      width: 44px;
      height: 44px;
      border-radius: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .method-icon-box.blue {
      background: #eff6ff;
    }

    .method-icon-box.teal {
      background: #f0fdfa;
    }

    .method-icon-box.amber {
      background: #fffbeb;
    }

    .method-icon {
      width: 22px;
      height: 22px;
    }

    .method-name {
      font-size: 14px;
      font-weight: 600;
      color: #1a1a1a;
    }

    .method-desc {
      font-size: 12px;
      color: #737373;
    }

    /* ===== Адаптив ===== */
    @media (max-width: 380px) {
    
  .methods-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .method-card {
    flex-direction: row;              /* горизонтально, как ты хотел */
    align-items: center;              /* центрирует по вертикали */
    justify-content: flex-start;      /* иконка слева, текст справа */
    text-align: left;                 /* текст выравнивается слева от иконки */
    padding: 12px 16px;
    gap: 12px;
    min-height: auto;                 /* высота по содержимому */
  }

  /* На маленьких экранах центрируем иконку и текст внутри карточки */
  .method-card .account-tile-icon {
    width: 36px;
    height: 36px;
  }

  .method-card .account-tile-name,
  .method-card .account-tile-desc {
    text-align: left;
  }

  .push-tile {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
  }
  .push-tile .account-tile-name,
  .push-tile .account-tile-desc {
    text-align: center;
  }
  .push-tile__actions {
    justify-content: center;
  }
  .btn-creative {
    font-size: 0.8rem;
    padding: 9px 14px;
  }

  .sbp-banner {
    gap: 14px;
    padding: 20px;
  }

  .sbp-icon-box {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
  }

  .sbp-name {
    font-size: 20px;
  }

  .sbp-desc {
    font-size: 14px;
  }
}

/* ====================== ЕДИНЫЙ ДИЗАЙН МОДАЛОК УПРАВЛЕНИЯ АККАУНТОМ (как тарифный план) ====================== */

.account-modal {
    max-width: 520px;
    margin: 1.5rem auto;
}

.account-modal .modal-body {
    padding: 28px 32px 32px;
}

@media (max-width: 576px) {
    .account-modal {
        margin: 0.75rem;
    }
    .account-modal .modal-body {
        padding: 24px 20px;
    }
}

/* ====================== CHANGE DATA MODAL ====================== */

.change-data-modal .modal-body {
    padding: 16px 22px;
    overflow: visible;
}

.change-data-modal .modal-footer {
    padding: 12px 20px;
    gap: 10px;
}

/* Форма */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.form-grid .form-group {
    margin-bottom: 0;
}

.form-grid .full-width {
    grid-column: 1 / -1;
}

.form-grid .centered-half {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
    margin: 0 auto;
}

.form-label {
    display: block;
    font-size: 11.5px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 3px;
    letter-spacing: 0;
}

.form-label-hint {
    font-size: 11px;
    font-weight: 400;
    color: #94a3b8;
    margin-left: 5px;
}
.form-label-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 400;
    color: #64748b;
    margin-left: 8px;
    cursor: pointer;
    vertical-align: middle;
}
.form-label-checkbox input[type="checkbox"] {
    width: 12px;
    height: 12px;
    accent-color: var(--accent);
    cursor: pointer;
    margin: 0;
}
.form-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 3px;
}
.form-label-checkbox--lg {
    display: flex;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 500;
    color: #475569;
    margin-left: 0;
    margin-bottom: 4px;
    width: 100%;
}
.form-label-checkbox--lg input[type="checkbox"] {
    width: 15px;
    height: 15px;
}

.form-control {
    border-radius: 9px;
    border: 1.5px solid #e2e8f0;
    padding: 2px 7px;
    font-size: 11px;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    height: auto;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
    outline: none;
}

/* Ошибки */
.invalid {
    display: block;
    color: var(--danger);
    font-size: 11px;
    margin-top: 2px;
}

.passport-issued-by {
    background: #f8fafc !important;
    color: #64748b !important;
    cursor: default;
}

/* Кнопки в футере */
.btn-cancel {
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 14px;
}

.btn-save {
    padding: 9px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    background: var(--primary);
    border: none;
}

.btn-save:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ====================== АДАПТИВ ====================== */

@media (max-width: 768px) {
    .change-data-modal .modal-body {
        padding: 14px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .change-data-modal .modal-footer {
        flex-direction: column;
        gap: 8px;
    }

    .btn-cancel, .btn-save {
        width: 100%;
        padding: 11px;
    }
}

@media (max-width: 480px) {
    .change-data-modal .modal-body {
        padding: 12px 14px;
    }
}



/* ====================== CHANGE PASSWORD MODAL ====================== */

/* Форма */
.password-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    height: 46px;
}

.form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
    outline: none;
}

/* Показ/скрытие пароля */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.125rem;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
}

.password-toggle:hover,
.password-toggle:focus {
    color: var(--accent);
}

/* Ошибки */
.invalid-feedback {
    display: block;
    color: var(--danger);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
}

.btn-save:disabled {
    opacity: 0.65;
}

/* Адаптив */
@media (max-width: 576px) {
    .change-password-modal {
        margin: 0.75rem;
    }
    
    .change-password-modal .modal-body {
        padding: 24px 20px;
    }
    
    .change-password-modal .modal-footer {
        padding: 18px 20px;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-cancel,
    .btn-save {
        width: 100%;
        padding: 0.75rem;
    }
}


/* ============================================= */
/*               PHONES MODAL + CUSTOM SELECT    */
/* ============================================= */

.phones-modal {
    max-width: 520px;
    margin: 1.5rem auto;
}

.phones-modal .modal-body {
    min-height: 180px;
}

.phones-modal-busy {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
}

.phones-modal-busy-icon {
    font-size: 2rem;
    color: var(--accent);
}

.phones-modal-busy-text {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Кастомный селект */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.custom-select:hover {
    border-color: var(--accent);
}

.custom-select.is-open {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.selected-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    min-height: 48px;
    font-size: 15px;
    margin-top: -11px;
}

/* Унифицированные плейсхолдеры */
.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

.placeholder {
  color: #94a3b8;
}

.chevron {
    font-size: 14px;
    color: #64748b;
    transition: transform 0.25s ease;
}

.custom-select.is-open .chevron {
    transform: rotate(180deg);
}

.options-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 6px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px 0;
    animation: optionsListSlide 0.3s ease;
}

@keyframes optionsListSlide {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.option-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 15px;
}

.option-item:hover {
    background: #f1f5f9;
    color: var(--accent);
}

.option-item.selected {
    background: #ecfdf5;
    color: #065f46;
    font-weight: 500;
}

.no-options {
    padding: 16px;
    color: #94a3b8;
    text-align: center;
    font-style: italic;
}

/* Остальные стили модалки (если ещё не добавлены) */
/* Плашки тарифного плана — корректное переполнение на малых экранах (375px и т.д.) */
.tariff-plan-cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.tariff-plan-card {
    min-width: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tariff-plan-card:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.07);
}
.tariff-plan-card span {
    max-width: 100%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.phone-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
}

.phone-item.main {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

.phone-number {
    font-size: 1.1rem;
    font-weight: 500;
}

.main-badge {
    background: #10b981;
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 999px;
}

.btn-remove {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.1rem;
    padding: 6px;
    cursor: pointer;
}

.btn-remove:hover {
    color: #dc2626;
}

.confirm-remove, .confirm-code {
    text-align: center;
    padding: 20px 0;
}

.phone-highlight {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--dark);
    margin: 12px 0;
}

/* Адаптив */
@media (max-width: 576px) {
    .phones-modal {
        margin: 0.75rem;
    }
    .phones-modal .modal-body {
        padding: 24px 20px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    .btn {
        width: 100%;
    }
}

/* ====================== SMS NOTIFICATIONS MODAL ====================== */

.sms-modal .modal-body {
    text-align: center;
}

.sms-modal-busy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 168px;
    padding: 28px 16px 32px;
    gap: 4px;
}

.sms-modal-busy .sms-modal-busy-icon {
    font-size: 2.25rem;
    color: var(--accent, #0ea5e9);
    line-height: 1;
}

.sms-modal-busy .sms-modal-busy-text {
    font-size: 0.9375rem;
    color: var(--gray-600, #4b5563);
    margin: 12px 0 0;
    font-weight: 500;
}

.services-mutation-busy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 20px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px dashed #cbd5e1;
}
.services-mutation-busy-icon {
    font-size: 1.75rem;
    color: var(--accent, #0ea5e9);
}
.services-mutation-busy-text {
    font-size: 0.9rem;
    color: #64748b;
    margin: 10px 0 0;
    font-weight: 500;
}

.account-modal-busy-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: inherit;
    gap: 8px;
}
.account-modal-busy-overlay .account-modal-busy-icon {
    font-size: 2rem;
    color: var(--accent, #0ea5e9);
}
.account-modal-busy-overlay .account-modal-busy-text {
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
    padding: 0 16px;
    text-align: center;
}
.change-password-modal .modal-content,
.tariff-modal {
    position: relative;
}

/* ====================== BLOCK / UNBLOCK MODAL ====================== */

.block-modal .modal-body.block-modal-body {
    overflow: visible;
}

.block-modal .form-control,
.block-modal .form-control-sm {
    border-radius: 12px;
    border: 1.5px solid #cbd5e1;
    padding: 13px 16px;
    font-size: 1rem;
    min-height: 48px;
    transition: all 0.2s ease;
}

.block-modal .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
    outline: none;
}

.block-modal textarea.form-control {
    min-height: 100px;
}

.block-modal .form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

@media (max-width: 576px) {
    .block-modal {
        margin: 0.75rem;
    }
    .block-modal .modal-body {
        padding: 24px 20px;
    }
}

/* Переключатель СМС (улучшенный) */
.sms-toggle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 320px;
    margin: 0 auto;
}

.sms-description {
    text-align: center;
}

.sms-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.sms-description .text-muted {
    font-size: 0.875rem;
}

/* Красивый переключатель */
.modern-switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 34px;
}

.modern-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switcher {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 34px;
    transition: .4s;
}

.switcher:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input:checked + .switcher {
    background-color: var(--success); /* #17803d */
}

input:checked + .switcher:before {
    transform: translateX(10px);
}

/* Кнопки в стиле остальных модалок */
.btn-cancel {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
}

.btn-save {
    padding: 12px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--primary);
    border: none;
    min-width: 130px;
}

.btn-save:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-save:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Адаптив */
@media (max-width: 576px) {
    .sms-modal {
        margin: 0.75rem;
    }
    
    .sms-modal .modal-body {
        padding: 28px 20px;
    }
    
    .sms-modal .modal-footer {
        padding: 18px 24px;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-cancel, .btn-save {
        width: 100%;
        padding: 14px;
    }
    
    .sms-toggle-wrapper {
        gap: 24px;
    }
}

/* ============================================= */
/*            УНИВЕРСАЛЬНЫЙ СТИЛЬ СПИСКОВ        */
/* ============================================= */

.modern-list-container {
    margin: 20px 0;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.list-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.list-item:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.item-main {
    flex: 1;
}

.item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.item-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

.item-actions {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-edit {
    color: #2563eb;
}

.btn-edit:hover {
    background: #eff6ff;
}

.btn-delete {
    color: #ef4444;
}

.btn-delete:hover {
    background: #fee2e2;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-style: italic;
    font-size: 0.95rem;
}

/* Адаптив */
@media (max-width: 576px) {
    .list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 16px;
    }
    
    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

/* Анимация блика (линия слева направо) */
.animate-blink-line {
  animation: blink-line 5s infinite ease-in-out;
}

@keyframes blink-line {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Дополнительное дыхание на плашке скидки */
.bg-lime-400.text-lime-900 {
  animation: discountBreathe 5.5s ease-in-out infinite;
}

@keyframes discountBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}


/* === pass-recovery modal === */
.recovery-modal-dialog { max-width: 440px; }
.recovery-modal-content { border-radius: 16px; overflow: hidden; }
.recovery-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.recovery-modal-heading-block { flex: 1; min-width: 0; }
.recovery-modal-subtitle { font-size: 0.8125rem; font-weight: 400; line-height: 1.45; margin: 0.35rem 0 0; color: rgba(255,255,255,0.88); }
.recovery-captcha-border { border-top: 1px solid #e2e8f0; margin-top: 0.5rem; padding-top: 1rem !important; }
.captcha-group { transition: opacity .32s ease, transform .32s ease, max-height .32s ease, margin .32s ease; transform-origin: top center; max-height: 460px; opacity: 1; position: relative; }
.captcha-group.captcha-success-anim { animation: captchaSuccessPulse .5s ease; }
.captcha-group.captcha-success-anim::before { content: "✓ Капча пройдена"; position: absolute; top: 6px; right: 0; z-index: 5; font-size: 12px; font-weight: 700; color: #16a34a; background: rgba(236,253,245,.96); border: 1px solid rgba(22,163,74,.35); border-radius: 999px; padding: 4px 8px; box-shadow: 0 4px 10px rgba(22,163,74,.12); }
.captcha-group.captcha-closed { opacity: 0; transform: translateY(-8px) scale(.98); max-height: 0; margin: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; overflow: hidden; pointer-events: none; border-top: none !important; }
@keyframes captchaSuccessPulse { 0% { transform: scale(1); } 40% { transform: scale(1.015); } 100% { transform: scale(1); } }
.captcha-puzzle-wrap { width: 100%; max-width: 320px; margin: 8px 0 0; overflow: hidden; }
.captcha-puzzle-wrap .slider-captcha-stage, .captcha-puzzle-wrap .slider-captcha-bar { max-width: 100% !important; box-sizing: border-box; }
.captcha-puzzle-wrap .slider-captcha-stage canvas, .captcha-puzzle-wrap .slider-captcha-stage img { image-rendering: auto; -webkit-backface-visibility: hidden; backface-visibility: hidden; transform: translateZ(0); }
.captcha-puzzle-wrap .slider-captcha-stage img[style*="cursor: grab"], .captcha-puzzle-wrap .slider-captcha-stage img[style*="cursor:grab"] { width: 52px !important; height: auto !important; max-height: 44px; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.28)) drop-shadow(0 0 0.6px rgba(255,255,255,0.45)); }
.recovery-modal-content .invalid { color: #ef4444; font-size: 13px; margin-top: 6px; }

/* === change-tariff modal === */
.tariff-modal { border-radius: 20px; border: none; box-shadow: 0 15px 40px rgba(0,0,0,0.18); overflow: hidden; max-width: 480px; margin: 1rem auto; position: relative; }
.tariff-modal-busy-overlay { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(255,255,255,0.93); border-radius: 0 0 20px 20px; gap: 8px; }
.tariff-modal-busy-icon { font-size: 2rem; color: #0ea5e9; }
.tariff-modal-busy-text { font-size: 0.95rem; color: #64748b; font-weight: 500; margin: 0; padding: 0 16px; text-align: center; }
.tariff-modal .modal-header { padding: 16px 20px 14px; background: linear-gradient(135deg,#f8fafc,#f1f5f9); border-bottom: 1px solid #e2e8f0; align-items: flex-start; }
.tariff-modal .modal-title { font-size: 1.1rem; font-weight: 700; color: var(--dark); line-height: 1.2; }
.tariff-modal-current { font-size: 0.8rem; color: #64748b; margin: 3px 0 0; }
.tariff-modal-current strong { color: #1e293b; }
.tariff-modal-next { font-size: 0.82rem; color: #92400e; background: #fef3c7; border-radius: 8px; padding: 6px 10px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.tariff-modal-next i { flex-shrink: 0; }
.tariff-modal .modal-body { position: relative; padding: 16px 20px; background: #ffffff; }
.tariff-modal .modal-header .close { color: #475569; }
.tariff-modal .modal-header .close:hover { color: #0f172a; }
.tariff-modal .modal-footer { padding: 14px 20px; background: #f8fafc; border-top: 1px solid #e2e8f0; gap: 8px; flex-wrap: nowrap; }
/* Список тарифов */
.tariff-list { display: flex; flex-direction: column; gap: 6px; }
.tariff-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid #e2e8f0; cursor: pointer; transition: border-color 0.15s, background 0.15s; background: #fff; user-select: none; }
.tariff-row:hover { border-color: #7dd3fc; background: #f0f9ff; }
.tariff-row.is-selected { border-color: #0ea5e9; background: #e0f2fe; }
.tariff-row__radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #cbd5e1; flex-shrink: 0; display: flex; align-items: center; justify-content: center; transition: border-color 0.15s, background 0.15s; }
.tariff-row.is-selected .tariff-row__radio { border-color: #0ea5e9; background: #0ea5e9; }
.tariff-row__dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: 0; transition: opacity 0.15s; }
.tariff-row.is-selected .tariff-row__dot { opacity: 1; }
.tariff-row__name { flex: 1; font-size: 0.88rem; color: #1e293b; font-weight: 500; line-height: 1.3; }
.tariff-row.is-selected .tariff-row__name { color: #0369a1; }
.tariff-row__cost { font-size: 0.82rem; font-weight: 600; color: #64748b; white-space: nowrap; }
.tariff-row.is-selected .tariff-row__cost { color: #0369a1; }
.tariff-list__empty { text-align: center; color: #94a3b8; padding: 16px; font-style: italic; font-size: 0.9rem; }
.tariff-modal-hint { font-size: 0.77rem; color: #94a3b8; margin: 10px 0 0; display: flex; align-items: flex-start; gap: 5px; line-height: 1.35; }
.tariff-modal-hint i { color: #93c5fd; flex-shrink: 0; margin-top: 1px; }
/* Экран подтверждения */
.tariff-modal .confirm-warning { text-align: center; padding: 12px 0; }
.tariff-modal .confirm-warning h6 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
/* Кнопки */
.tariff-modal .btn-cancel { padding: 9px 20px; border-radius: 10px; font-weight: 500; font-size: 0.88rem; }
.tariff-modal .btn-save, .tariff-modal .btn-change-now { padding: 9px 18px; border-radius: 10px; font-weight: 600; font-size: 0.88rem; }
.tariff-modal .btn-change-now { background: var(--danger); border: none; }
.tariff-modal .btn-change-now:hover:not(:disabled) { background: #dc2626; }
@media (max-width: 576px) {
  .tariff-modal { margin: 0.75rem; }
  .tariff-modal .modal-body { padding: 24px 20px; }
  #changeTariffModal .modal-footer { flex-direction: column; gap: 10px; }
  #changeTariffModal .btn-cancel, #changeTariffModal .btn-save, #changeTariffModal .btn-change-now { width: 100%; }
}


/* === Push-уведомления: колокольчик светится зелёным при активной подписке === */
.js-push-bell-btn.push-subscribed {
    background-color: rgba(34, 197, 94, 0.22) !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25), 0 0 10px rgba(34, 197, 94, 0.2);
}
.js-push-bell-btn.push-subscribed:hover {
    background-color: rgba(34, 197, 94, 0.32) !important;
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35), 0 0 14px rgba(34, 197, 94, 0.25);
}
.js-push-bell-btn.push-subscribed i {
    color: #4ade80;
}
/* Когда есть непрочитанные — оранжевый, перебивает зелёный подписки */
.js-push-bell-btn i.bell-ringing {
    color: #f97316 !important;
}

/* === Поле телефона с префиксом +7 === */
.phone-prefix-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-prefix-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.phone-prefix {
    padding: 0 8px 0 11px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    user-select: none;
    line-height: 1;
}
.phone-with-prefix {
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding-left: 2px !important;
    flex: 1;
}
.phone-with-prefix:focus { outline: none; }
.phone-prefix-invalid,
.phone-prefix-invalid:focus-within {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.15) !important;
}

/* === DaData autocomplete === */
.dadata-wrapper { position: relative; }
.dadata-spinner {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
    pointer-events: none;
}
.dadata-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.13);
    overflow: hidden;
}
.issued-by-suggestions {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.issued-by-option {
    text-align: left;
    padding: 6px 10px;
    font-size: 12px;
    line-height: 1.35;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s;
    width: 100%;
}
.issued-by-option:hover { background: #f0f9ff; border-color: #7dd3fc; color: #0369a1; }
.issued-by-option.is-active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 500; }
.pika-single { z-index: 99999 !important; }
.pika-single .pika-label {
    display: inline-block;
    position: relative;
    border: 1.5px solid #cbd5e1;
    border-radius: 6px;
    background: #f1f5f9;
    padding: 3px 22px 3px 8px;
    font-size: 13px;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    margin: 0 2px;
}
.pika-single .pika-label::after {
    content: '▾';
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #64748b;
    pointer-events: none;
    line-height: 1;
}
.pika-single .pika-label:hover {
    border-color: #94a3b8;
    background: #e2e8f0;
}
.pika-single .pika-select {
    position: absolute;
    z-index: 1;
    left: 0; top: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    margin: 0;
}
.dadata-item {
    padding: 9px 14px;
    font-size: 13px;
    color: #1e293b;
    cursor: pointer;
    line-height: 1.4;
    transition: background 0.1s;
    border-bottom: 1px solid #f1f5f9;
}
.dadata-item:last-child { border-bottom: none; }
.dadata-item:hover,
.dadata-item.is-active { background: #f0f9ff; color: #0369a1; }

/* Модалка без scrollable — чтобы дропдаун не обрезался */
.change-data-modal .modal-body { overflow: visible; }

/* Авто-растягивающийся textarea в dadata-autocomplete */
.dadata-textarea {
    resize: none;
    overflow: hidden;
    min-height: 34px;
    line-height: 1.5;
    transition: height 0.1s ease;
}
.dadata-textarea.is-invalid {
    background-image: none;
}

/* Анимация звонящего колокольчика */
@keyframes bell-ring {
    0%   { transform: rotate(0deg);    transform-origin: top center; }
    10%  { transform: rotate(18deg);   transform-origin: top center; }
    25%  { transform: rotate(-15deg);  transform-origin: top center; }
    40%  { transform: rotate(12deg);   transform-origin: top center; }
    55%  { transform: rotate(-10deg);  transform-origin: top center; }
    70%  { transform: rotate(6deg);    transform-origin: top center; }
    85%  { transform: rotate(-3deg);   transform-origin: top center; }
    100% { transform: rotate(0deg);    transform-origin: top center; }
}
.bell-ringing {
    display: inline-block;
    animation: bell-ring 1.2s ease-in-out infinite;
    animation-delay: 0.3s;
}
