/* IBUPROFEN VPN — тема кабинета */
:root {
  --ib-grad: linear-gradient(120deg, #ff2d55 0%, #c42a72 48%, #2f6bff 100%);
  --ib-grad-soft: linear-gradient(160deg, rgba(255, 45, 85, .12) 0%, rgba(19, 21, 31, .78) 42%, rgba(47, 107, 255, .12) 100%);
  --bento-radius: 22px;
  --bento-radius-lg: 26px;
}
html.dark body { background: #07080d; }
h1, h2, h3 { letter-spacing: -.02em; }

/* Главные кнопки — градиент таблетки */
a[style*="linear-gradient(135deg"], button[style*="linear-gradient(135deg"] {
  background: var(--ib-grad) !important;
  box-shadow: 0 10px 28px -10px rgba(255, 45, 85, .65), 0 6px 24px -12px rgba(47, 107, 255, .7) !important;
  border-radius: 16px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  position: relative; overflow: hidden;
}
a[style*="linear-gradient(135deg"]::before, button[style*="linear-gradient(135deg"]::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); animation: ib-shine 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes ib-shine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.bg-accent-500:not(nav *), .bg-accent-600:not(nav *) { background-image: var(--ib-grad) !important; color: #fff !important; }
.btn-primary { background: var(--ib-grad) !important; border: 0 !important; color: #fff !important; box-shadow: 0 8px 22px -10px rgba(255,45,85,.6), 0 6px 18px -12px rgba(47,107,255,.7) !important; }
.btn-primary:disabled { opacity: .45 !important; box-shadow: none !important; }

/* Карточки — стекло с цветным отливом */
.rounded-3xl[style*="border: 1px solid"] {
  background: var(--ib-grad-soft) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
/* Таблетка-водяной знак на главной карточке */
.rounded-3xl[style*="padding: 28px"]::after {
  content: ''; position: absolute; right: -30px; top: 6px; width: 132px; height: 132px;
  background: url(/api/cabinet/branding/logo) center / contain no-repeat;
  mix-blend-mode: screen; opacity: .14; transform: rotate(-12deg); pointer-events: none;
}
.rounded-3xl[style*="padding: 28px"] > *:not(.absolute) { position: relative; z-index: 1; }
.rounded-3xl[style*="padding: 28px"] > .pointer-events-none { z-index: 0; }

/* Небольшие плитки (баланс, рефералы и т.п.) */
[class*="rounded-2xl"][class*="bg-dark-900"], [class*="rounded-2xl"][class*="bg-dark-850"], [class*="rounded-2xl"][class*="bg-dark-800/"] {
  background: rgba(19, 21, 31, .62) !important;
  border: 1px solid rgba(255, 255, 255, .06) !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}

/* Нижнее меню — парящая капсула */
nav.fixed.lg\:hidden {
  background: rgba(10, 11, 18, .74) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4) !important; backdrop-filter: blur(20px) saturate(1.4) !important;
  border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 28px !important;
  box-shadow: 0 20px 44px -14px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05) !important;
}
nav.fixed.lg\:hidden .bg-accent-500\/15 {
  background: var(--ib-grad) !important; border-radius: 20px !important;
  box-shadow: 0 8px 22px -8px rgba(255, 45, 85, .7), 0 6px 18px -10px rgba(47, 107, 255, .8);
}
nav.fixed.lg\:hidden a.text-accent-400, nav.fixed.lg\:hidden a.text-accent-400 * { color: #fff !important; }

/* Мелочи */
::selection { background: rgba(255, 45, 85, .35); }
* { -webkit-tap-highlight-color: transparent; }

/* Покупка: устройства кнопками и «Оплатить» */
[data-ib-dev] > select, [data-ib-dev] > div[id$="-hint"], [data-ib-dev] > div.mt-3:not(.ib-devgrid) { display: none !important; }
.ib-devgrid { display: flex; flex-direction: column; gap: 8px; }
.ib-devnote { font-size: 13px; line-height: 1.45; color: #c9cdda; border-left: 3px solid #ff2d55; background: rgba(255,45,85,.08); border-radius: 10px; padding: 10px 12px; margin-bottom: 4px; }
.ib-devbtn { width: 100%; text-align: center; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 15px; color: #e8eaf2; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); transition: transform .12s, background .2s, border-color .2s; }
.ib-devbtn:active { transform: scale(.98); }
.ib-devbtn.ib-on { background: linear-gradient(120deg, rgba(255,45,85,.22), rgba(47,107,255,.22)); border-color: rgba(255,45,85,.7); color: #fff; }
.ib-devbtn:disabled { opacity: .5; }
button[data-ib-pay] { font-size: 0 !important; }
button[data-ib-pay]::after { content: 'Оплатить'; font-size: 16px; }
button[data-ib-pay] > span { font-size: 14px; }

/* Без баланса */
[data-ib-hide] { display: none !important; }
a[href="/balance"], a[href$="/balance"] { display: none !important; }
.ib-periods { display: block; font-weight: 600; color: #ff6b8b; font-size: 15px; }

/* «Позвать друга» */
[data-ib-refroot]:not([data-ib-refshow]) { display: none !important; }
.ib-ref { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.ib-ref-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 26px 18px 18px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #ff2d55 0%, #c42a72 45%, #2f6bff 100%); box-shadow: 0 22px 50px -24px rgba(255,45,85,.7), 0 18px 40px -22px rgba(47,107,255,.8); }
.ib-ref-hero::after { content: ''; position: absolute; right: -40px; top: -30px; width: 170px; height: 170px; background: url(/api/cabinet/branding/logo) center/contain no-repeat; opacity: .12; transform: rotate(-14deg); pointer-events: none; }
.ib-ref-cap { font-size: 15px; opacity: .85; }
.ib-ref-sum { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 18px; }
.ib-ref-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: relative; z-index: 1; }
.ib-ref-glass { padding: 14px 8px; border-radius: 16px; font-weight: 700; font-size: 15px; color: #fff; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ib-ref-glass span { margin-left: 4px; opacity: .9; }
.ib-ref-glass:active, .ib-ref-share:active, .ib-ref-copy:active { transform: scale(.97); }
.ib-ref-card { border-radius: 22px; padding: 16px; background: rgba(19,21,31,.72); border: 1px solid rgba(255,255,255,.07); }
.ib-ref-h { font-size: 19px; font-weight: 800; color: #f2f3f8; margin-bottom: 12px; }
.ib-ref-h2 { margin: 6px 2px -2px; }
.ib-ref-link { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07); }
.ib-ref-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: #aab0c2; }
.ib-ref-copy { width: 40px; height: 40px; flex: none; border-radius: 12px; font-size: 18px; color: #fff; background: rgba(255,255,255,.08); }
.ib-ref-copy.ib-ok { background: #22c55e; }
.ib-ref-copy.ib-ok::before { content: '✓'; } .ib-ref-copy.ib-ok { font-size: 0; } .ib-ref-copy.ib-ok::before { font-size: 18px; }
.ib-ref-share { width: 100%; margin-top: 10px; padding: 15px; border-radius: 16px; font-weight: 700; font-size: 16px; color: #fff; background: linear-gradient(120deg, #ff2d55, #c42a72 48%, #2f6bff); box-shadow: 0 10px 26px -12px rgba(255,45,85,.7); }
.ib-ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ib-ref-stat { display: flex; flex-direction: column; gap: 4px; padding: 16px 14px; border-radius: 20px; background: rgba(19,21,31,.72); border: 1px solid rgba(255,255,255,.07); }
.ib-ref-stat i { font-style: normal; font-size: 22px; font-weight: 800; color: #ff6b8b; margin-bottom: 8px; }
.ib-ref-stat b { font-size: 22px; font-weight: 800; color: #fff; }
.ib-ref-stat small { font-size: 12.5px; color: #9aa0b4; }
.ib-ref-hot { background: linear-gradient(150deg, rgba(255,45,85,.28), rgba(47,107,255,.28)); border-color: rgba(255,45,85,.35); }
.ib-ref-step { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: #d6d9e4; font-size: 14px; line-height: 1.35; }
.ib-ref-step em { font-style: normal; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #ff2d55, #2f6bff); }
.ib-ref-more { background: none !important; border: 0; align-self: center; padding: 8px 14px; font-size: 13px; color: #9aa0b4; text-decoration: underline; text-underline-offset: 3px; }
