/* ============================================================
   IPTV Shop - дизайн по slimtv.club (ienet тема):
   Outfit, червено #df2339, тъмнолилаво #251444, светещи вълни,
   заоблени секции-острови, blob форми, плаващи икони.
   Тъмна тема: [data-theme="dark"] на <html>, превключвател в topbar,
   запазва се в localStorage (виж includes/layout.php). Hero/plans-island/
   footer са ВИНАГИ тъмнолилави по дизайн (не зависят от темата).
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg2: #ffffff;
  --bg3: #f7f5f1;
  --soft: #f7f5f1;
  --border: #eae7e0;
  --text: #565060;
  --heading: #251444;
  --muted: #737177;
  --accent: #df2339;
  --accent-h: #c11d30;
  /* имената на цветовете от темата на Cosmos - общият код (админ, клиентска зона) ползва и тях */
  --acc: var(--accent);
  --acc-h: var(--accent-h);
  --ink: var(--heading);
  --line: var(--border);
  --mut: var(--muted);
  --bg-alt: var(--bg3);
  --card-shadow: 0 4px 16px rgba(37, 20, 68, .06);
  --dark: #251444;
  --dark2: #1b0e33;
  --btn-primary-bg: var(--accent);
  --btn-primary-bg-h: var(--accent-h);
  --green: #16a34a;
  --red: #df2339;
  --yellow: #b45309;
  --shadow: 0 10px 30px rgba(37, 20, 68, .08);
  --dot-color: rgba(37, 20, 68, .09);
  --hover-tint: rgba(37, 20, 68, .025);
}
[data-theme="dark"] {
  --bg: #0f1420;
  --bg2: #1a2233;
  --bg3: #222c44;
  --soft: #161d2e;
  --border: #2a3550;
  --text: #c3cbdb;
  --heading: #ffffff;
  --muted: #8b96ad;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --dot-color: rgba(255, 255, 255, .05);
  --hover-tint: rgba(255, 255, 255, .03);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3, h4 { color: var(--heading); font-weight: 800; line-height: 1.22; }
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 18px; }
main.container { flex: 1; padding-top: 30px; padding-bottom: 56px; }
main.container.full { max-width: none; padding: 0; }
a { color: var(--accent); text-decoration: none; }

/* ---------- Червена контактна лента (само начална) ---------- */
.tstrip { padding: 12px 18px 0; }
.tstrip-in {
  max-width: 1360px; margin: 0 auto; background: var(--accent); color: #fff;
  border-radius: 40px; padding: 9px 26px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-size: 13.5px; font-weight: 500; flex-wrap: wrap;
}
.tstrip-in a { color: #fff; }
.tstrip .socs { display: flex; gap: 8px; }
.tstrip .socs a {
  width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center; font-size: 13px;
}
.tstrip .socs a:hover { background: rgba(255,255,255,.32); }

/* ---------- Лента "разглеждане като клиент" ---------- */
.impersonate-bar {
  background: #251444; color: #fff; padding: 10px 18px; font-size: 14px;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
  border-bottom: 2px solid var(--accent); position: relative; z-index: 80;
}
.impersonate-bar b { color: #ff9aa8; }
.impersonate-bar a {
  background: var(--accent); color: #fff; font-weight: 700; padding: 6px 16px;
  border-radius: 40px; white-space: nowrap;
}
.impersonate-bar a:hover { background: var(--accent-h); }

/* ---------- Topbar ---------- */
.topbar { background: var(--bg2); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 14px rgba(37,20,68,.05); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--heading); }
.logo-svg { height: 36px; width: auto; display: block; }
.logo-img { height: 36px; width: auto; display: block; }
/* стрийминг апп стил: "HIT" едро + "TELEVISION" ситно с разредка отдолу */
.logo-text { display: flex; flex-direction: column; line-height: 1; color: var(--heading); }
.logo-hit { font-size: 22px; font-weight: 800; letter-spacing: .5px; }
.logo-sub { font-size: 8.5px; font-weight: 500; letter-spacing: 3.5px; opacity: .65; margin-top: 3px; }
body.home .logo-text { color: #fff; }
.topbar nav { display: flex; gap: 26px; align-items: center; }
.topbar nav a { color: var(--heading); font-size: 15px; font-weight: 600; }
.topbar nav a:hover { color: var(--accent); }
/* текущата страница - ясно откроена */
.topbar nav a.active { color: var(--accent); }
body.home .topbar nav a.active { color: #fff; }

/* Админ: навигацията на ЕДИН ред (по-тесни отстъпи, без пренасяне; при тесен екран -
   хоризонтален скрол вместо втори ред). „Настройки"/„Изход" са само икони. Активната с плочка. */
body.admin .topbar nav { gap: 15px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
body.admin .topbar nav::-webkit-scrollbar { height: 0; }
body.admin .topbar nav a { font-size: 14px; white-space: nowrap; }
body.admin .topbar nav a.nav-ico { font-size: 17px; line-height: 1; }
body.admin .topbar nav a.active {
    color: #fff; background: var(--accent); padding: 6px 12px; border-radius: 8px;
}
body.admin .topbar nav a.nav-ico.active { padding: 5px 9px; }
body.admin .topbar nav a.active:hover { color: #fff; }
/* начална страница: лилав хедър, слят с hero */
body.home .tstrip { background: transparent; position: relative; z-index: 5; }
body.home .topbar { background: transparent; border: none; box-shadow: none; position: relative; }
body.home .logo, body.home .topbar nav a { color: #fff; }
body.home .topbar nav a:hover { color: #ff97a4; }
body.home .top-wrap {
  background: radial-gradient(1000px 500px at 88% -20%, rgba(223,35,57,.4), transparent 60%),
              linear-gradient(135deg, #31195c 0%, #251444 55%, #1b0e33 100%);
  position: relative; overflow: hidden;
}

/* ---------- Индикатор "влязъл като" ---------- */
.who-badge {
  display: inline-flex; align-items: center; gap: 6px; background: var(--soft);
  border: 1px solid var(--border); border-radius: 40px; padding: 6px 14px 6px 12px;
  font-size: 13.5px !important; font-weight: 600 !important; color: var(--heading) !important;
  white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis;
}
.who-badge:hover { background: var(--border); }
body.home .who-badge { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff !important; }

/* ---------- Превключвател на темата ---------- */
.theme-toggle {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--heading); font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s, transform .1s;
}
.theme-toggle:hover { background: var(--soft); transform: translateY(-1px); }
.theme-toggle .icon-dark { display: none; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark { display: inline; }
/* началната страница: хедърът е прозрачен над тъмен hero - по-светла рамка за контраст */
body.home .theme-toggle { border-color: rgba(255,255,255,.4); color: #fff; }
body.home .theme-toggle:hover { background: rgba(255,255,255,.12); }

/* ---------- Бутони ---------- */
.btn {
  display: inline-block; background: var(--btn-primary-bg); color: #fff !important;
  border: none; border-radius: 8px; padding: 13px 30px; font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--btn-primary-bg-h); transform: translateY(-1px); }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 40px; }
.btn-green { background: var(--green); } .btn-green:hover { background: #128a3f; }
.btn-red { background: #c0504f; } .btn-red:hover { background: #a8433f; }
.btn-ghost { background: var(--soft); color: var(--heading) !important; }
.btn-ghost:hover { background: var(--border); }
.btn-white { background: #fff; color: var(--accent) !important; border-radius: 8px; }
.btn-white:hover { background: #ffeef0; }
/* Админ панелът е зает многократно с бутони на страница - смекчаваме основния наситен
   червен CTA цвят (запазен само за публичния сайт) с по-спокойно тъмнолилаво */
body.admin { --btn-primary-bg: var(--dark); --btn-primary-bg-h: var(--dark2); }
.btn-outline {
  background: transparent; border: 2px solid rgba(255,255,255,.5); color: #fff !important;
  border-radius: 8px; padding: 11px 28px; font-weight: 700; display: inline-block;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Карти (общи) ---------- */
.card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.card h2 { font-size: 20px; margin-bottom: 16px; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid > * { min-width: 0; }            /* дълъг текст/таблица в клетка да не разширява решетката */
fieldset { min-width: 0; }             /* иначе fieldset е min-content и прелива на телефон */
.dash-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stat-link { display: block; text-decoration: none; color: inherit; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.stat-link:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,20,68,.12); text-decoration: none; }

/* ---------- Секции ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; font-size: 13px; margin-bottom: 12px;
}
.kicker::before { content: ""; width: 26px; height: 13px; border-radius: 10px; background: var(--accent); box-shadow: inset -14px 0 0 rgba(255,255,255,.85); }
.section { padding: 78px 0; }
.section-title { text-align: center; max-width: 660px; margin: 0 auto 48px; }
.section-title h2 { font-size: 36px; }
.section-title p { color: var(--muted); margin-top: 10px; }

/* ---------- HERO ---------- */
.hero-full { color: #fff; padding: 64px 0 150px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: center; }
.hero-full .kicker { color: #ff9aa8; }
.hero-full h1 { color: #fff; font-size: 56px; font-weight: 800; letter-spacing: -1.2px; margin-bottom: 18px; }
.hero-full h1 em { color: var(--accent); font-style: normal; }
.hero-full p.lead { color: #cfc7e2; font-size: 19px; max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 44px; position: relative; z-index: 3; }
.hero-chips span {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(4px);
  color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 9px 18px; border-radius: 30px;
}
.hero-chips span::before { content: "✔"; color: var(--accent); margin-right: 8px; }
/* дясната композиция: снимка в blob + цена + плаващи икони */
.hero-art { position: relative; height: 420px; display: none; }
@media (min-width: 900px) { .hero-art { display: block; } }
.hero-photo {
  position: absolute; inset: 6% 4% 6% 10%;
  border-radius: 52% 48% 44% 56% / 46% 52% 48% 54%;
  overflow: hidden; border: 6px solid rgba(255,255,255,.1);
  box-shadow: 0 34px 80px rgba(0,0,0,.5); animation: blobfloat 9s ease-in-out infinite;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-ring {
  position: absolute; inset: 0 -4% -6% 2%; border: 2px dashed rgba(223,35,57,.65);
  border-radius: 48% 52% 56% 44% / 54% 46% 52% 48%; pointer-events: none;
  animation: spinring 40s linear infinite;
}
@keyframes spinring { to { transform: rotate(360deg); } }
.blob-price {
  position: absolute; top: 8%; right: 12%; width: 190px; height: 175px; background: var(--accent);
  border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; transform: rotate(-6deg);
  box-shadow: 0 24px 60px rgba(223,35,57,.45); animation: blobfloat 7s ease-in-out infinite;
}
.blob-price .from { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .85; }
.blob-price .val { font-size: 30px; font-weight: 800; }
.blob-price .per { font-size: 13px; opacity: .9; }
.blob-tv {
  position: absolute; bottom: 4%; left: 6%; width: 210px; height: 200px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px);
  border-radius: 55% 45% 42% 58% / 46% 56% 44% 54%;
  display: flex; align-items: center; justify-content: center; font-size: 78px;
  animation: blobfloat 8s ease-in-out infinite reverse;
}
.f-ico {
  position: absolute; width: 58px; height: 58px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 26px;
  box-shadow: 0 14px 32px rgba(0,0,0,.35); animation: blobfloat 6s ease-in-out infinite;
}
.f-ico.i1 { top: 2%; left: 18%; animation-delay: -1s; }
.f-ico.i2 { top: 44%; right: 0; animation-delay: -2.5s; }
.f-ico.i3 { bottom: 12%; right: 30%; animation-delay: -4s; }
.f-ico.i4 { top: 30%; left: 0; animation-delay: -3s; }
@keyframes blobfloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
/* светещи вълни в долната част на hero */
.hero-glow {
  position: absolute; left: -8%; right: -8%; bottom: -22%; height: 62%; pointer-events: none;
  background:
    radial-gradient(38% 55% at 12% 62%, rgba(255,122,60,.5), transparent 70%),
    radial-gradient(34% 50% at 34% 74%, rgba(223,35,57,.55), transparent 70%),
    radial-gradient(42% 60% at 58% 60%, rgba(168,60,255,.5), transparent 72%),
    radial-gradient(30% 48% at 82% 72%, rgba(64,120,255,.45), transparent 70%),
    radial-gradient(26% 40% at 96% 55%, rgba(255,60,140,.4), transparent 70%);
  filter: blur(34px); transform: rotate(-3deg);
}
/* извита бяла долна граница + кръгче със стрелка */
.hero-curve { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; z-index: 2; }
.hero-curve svg { width: 100%; height: 90px; display: block; }
.hero-curve svg path { fill: var(--bg); }
.scroll-dot {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 22px; z-index: 3;
  width: 74px; height: 74px; border-radius: 50%; background: var(--bg2); border: 1px solid #f0cdd2;
  display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 26px;
  box-shadow: 0 -6px 24px rgba(37,20,68,.1);
}

/* ---------- Характеристики ---------- */
.dots-bg {
  background-image: radial-gradient(var(--dot-color) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}
.feature {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 30px 24px;
  box-shadow: var(--shadow); text-align: center; transition: transform .15s, box-shadow .15s;
  position: relative; overflow: hidden;
}
.feature::after {
  content: ""; position: absolute; right: -34px; top: -34px; width: 90px; height: 90px;
  border-radius: 50%; background: rgba(223,35,57,.07);
}
.feature:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(37,20,68,.13); }
.feature .ico {
  width: 66px; height: 66px; border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  background: linear-gradient(145deg, var(--accent), #ff5c72); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 18px;
  box-shadow: 0 10px 24px rgba(223,35,57,.3);
}
.feature h3 { font-size: 18.5px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* ---------- Секция "За нас" (blob колаж + списък) ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-art { position: relative; min-height: 430px; }
.about-main {
  position: absolute; inset: 4% 12% 10% 4%;
  border-radius: 54% 46% 42% 58% / 48% 54% 46% 52%;
  overflow: hidden; box-shadow: 0 30px 70px rgba(37,20,68,.25);
}
.about-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-side {
  position: absolute; right: 0; bottom: 2%; width: 42%; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; border: 8px solid #fff;
  box-shadow: 0 22px 54px rgba(37,20,68,.3); animation: blobfloat 8s ease-in-out infinite;
}
.about-side img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-star {
  position: absolute; left: -2%; top: 30%; width: 128px; height: 128px; z-index: 2;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 13px;
  letter-spacing: 1px; text-transform: uppercase; text-align: center; line-height: 1.3;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: blobfloat 7s ease-in-out infinite reverse;
}
.about-ring {
  position: absolute; right: 4%; top: 0; width: 46%; aspect-ratio: 1;
  border: 2px dashed rgba(223,35,57,.5); border-radius: 50%; pointer-events: none;
}
.about-list { list-style: none; margin: 22px 0 28px; }
.about-list li { padding: 8px 0; font-size: 16.5px; color: var(--heading); font-weight: 600; }
.about-list li::before { content: "✔"; color: var(--accent); font-weight: 800; margin-right: 12px; }
.call-box { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.call-circle {
  width: 58px; height: 58px; border-radius: 50%; background: var(--bg2); color: var(--accent);
  border: 1px solid #f0cdd2; display: flex; align-items: center; justify-content: center;
  font-size: 24px; box-shadow: 0 12px 28px rgba(223,35,57,.18); animation: ringpulse 2.4s ease-out infinite;
}
@keyframes ringpulse {
  0% { box-shadow: 0 0 0 0 rgba(223,35,57,.35); }
  70% { box-shadow: 0 0 0 16px rgba(223,35,57,0); }
  100% { box-shadow: 0 0 0 0 rgba(223,35,57,0); }
}
.call-box .lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.call-box .ph { font-size: 19px; font-weight: 800; color: var(--heading); }

/* ---------- Развлечения (фото карти) ---------- */
.ent-card {
  position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 4 / 3; display: block;
}
.ent-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.ent-card:hover img { transform: scale(1.06); }
.ent-card .ent-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 44px 20px 16px;
  background: linear-gradient(transparent, rgba(27,14,51,.92)); color: #fff;
}
.ent-card .ent-cap h3 { color: #fff; font-size: 20px; }
.ent-card .ent-cap p { color: #cfc7e2; font-size: 13.5px; }
.ent-card .tag {
  position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 20px;
}

/* ---------- Отзиви ---------- */
.quote-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 28px 26px;
  box-shadow: var(--shadow); position: relative;
}
.quote-card::before {
  content: "\201C"; position: absolute; top: 6px; right: 20px; font-size: 84px; line-height: 1;
  color: rgba(223,35,57,.15); font-family: Georgia, serif;
}
.quote-card p { color: var(--text); font-size: 15px; margin-bottom: 18px; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.quote-who .av {
  width: 46px; height: 46px; border-radius: 50%; color: #fff; font-weight: 800;
  background: linear-gradient(145deg, var(--accent), #ff5c72);
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.quote-who .nm { font-weight: 800; color: var(--heading); font-size: 15px; }
.quote-who .rl { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: 1px; }
.stars { color: #f5a623; font-size: 14px; letter-spacing: 2px; margin-bottom: 10px; }

/* ---------- Появяване при скрол ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Бутон "нагоре" (долу вляво - WhatsApp е долу вдясно) ---------- */
.backtop {
  position: fixed; left: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 20px; border: none; cursor: pointer;
  box-shadow: 0 12px 28px rgba(223,35,57,.4); display: none; align-items: center; justify-content: center;
  z-index: 60;
}
.backtop.show { display: flex; }
.backtop:hover { background: var(--accent-h); }

/* ---------- Плаващ WhatsApp бутон за поддръжка (долу вдясно - "нагоре" е долу вляво) ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37,211,102,.45); z-index: 60; transition: transform .15s, background .15s;
}
.wa-float:hover { background: #1fb857; transform: scale(1.08); }
/* телефонът като WhatsApp линк - наследява цвета на мястото си (бял в лентата, тъмен в call-box) */
.wa-link { color: inherit !important; text-decoration: none; }
.wa-link:hover { text-decoration: underline; }

/* ---------- Червена CTA лента ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--accent), #a3122a); color: #fff;
  border-radius: 20px; padding: 40px 44px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden;
}
.cta-strip::before {
  content: ""; position: absolute; right: 8%; top: -40%; width: 300px; height: 300px;
  border-radius: 50%; border: 40px solid rgba(255,255,255,.08);
}
.cta-strip h2 { color: #fff; font-size: 27px; position: relative; }
.cta-strip p { color: #ffd9de; margin-top: 6px; position: relative; }
.cta-strip .btn { background: #fff; color: var(--accent) !important; position: relative; }
.cta-strip .btn:hover { background: #ffeef0; }

/* ---------- ПАКЕТИ: лилав остров със светещи вълни ---------- */
.plans-island {
  background: linear-gradient(160deg, #2f175a 0%, #251444 50%, #1c0f36 100%);
  border-radius: 30px; padding: 74px 44px 80px; position: relative; overflow: hidden;
  margin: 0 12px;
}
.plans-island .glow {
  position: absolute; inset: 30% -10% -20% -10%; pointer-events: none;
  background:
    radial-gradient(36% 52% at 10% 70%, rgba(255,122,60,.4), transparent 70%),
    radial-gradient(40% 58% at 42% 78%, rgba(168,60,255,.42), transparent 72%),
    radial-gradient(34% 50% at 72% 66%, rgba(223,35,57,.4), transparent 70%),
    radial-gradient(28% 44% at 94% 76%, rgba(64,120,255,.36), transparent 70%);
  filter: blur(36px); transform: rotate(-3deg);
}
.plans-island .section-title h2 { color: #fff; }
.plans-island .section-title p { color: #b9aed6; }
.plans-island .grid { position: relative; z-index: 2; }
.plan-card {
  background: rgba(20, 8, 44, .55); border: 1.5px solid rgba(223,35,57,.75);
  border-radius: 20px; padding: 28px 26px; color: #e8e2f6; position: relative;
  display: flex; flex-direction: column; backdrop-filter: blur(3px);
  transition: transform .15s, box-shadow .15s;
}
.plan-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(0,0,0,.4); }
.plan-card .ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #fff; color: var(--accent); font-size: 12px; font-weight: 800;
  padding: 5px 18px; border-radius: 20px; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
}
.plan-price-pill {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 800;
  border-radius: 40px; padding: 9px 22px; font-size: 20px; margin-bottom: 16px;
  box-shadow: 0 10px 26px rgba(223,35,57,.4);
}
.plan-price-pill small { font-weight: 500; font-size: 13px; opacity: .9; }
.plan-card h3 { color: #fff; font-size: 23px; margin-bottom: 4px; }
.plan-card .pkg-desc { color: #b9aed6; font-size: 14.5px; margin-bottom: 16px; }
.plan-card ul { list-style: none; margin: 0 0 18px; text-align: left; display: grid; grid-template-columns: 1fr; gap: 2px; }
.plan-card ul li { padding: 5px 0; font-size: 14.5px; color: #e8e2f6; }
.plan-card ul li::before { content: "✔"; color: var(--accent); margin-right: 10px; font-weight: 800; }
.plan-card .choose-lbl { color: #b9aed6; font-size: 13px; text-align: left; margin-bottom: 8px; }
.plan-card .price-list { margin-top: auto; }
.plan-card .price-row {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
}
.plan-card .price-row span, .plan-card .price-row b { color: #fff; }
.plan-card a.price-row:hover { border-color: var(--accent); background: rgba(223,35,57,.22); }

/* Ценоразпис (общ компонент) */
.price-list { display: flex; flex-direction: column; gap: 9px; }
.price-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 16px; font-size: 15px; text-decoration: none;
  background: var(--soft); border: 1px solid var(--border); border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.price-row span { color: var(--heading); font-weight: 500; }
.price-row b { color: var(--heading); font-size: 17px; white-space: nowrap; }
.price-row b::after { content: "›"; color: var(--accent); font-size: 19px; font-weight: 800; margin-left: 10px; }
a.price-row:hover { border-color: var(--accent); background: rgba(223,35,57,.06); }

/* Пакети в акаунта (страница поръчка) - светли карти */
.pkg {
  text-align: center; display: flex; flex-direction: column; position: relative;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 18px; padding: 28px 24px;
  box-shadow: var(--shadow);
}
.pkg h3 { font-size: 22px; margin-bottom: 6px; }
.pkg .pkg-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.pkg ul { list-style: none; margin: 0 0 14px; text-align: left; }
.pkg ul li { padding: 5px 0; font-size: 14.5px; }
.pkg ul li::before { content: "✔"; color: var(--green); margin-right: 9px; font-size: 13px; }

/* ---------- Статистики ---------- */
.stats-wrap { padding: 66px 0; }
.stat { text-align: center; padding: 10px; }
.stat .num { font-size: 44px; font-weight: 800; color: var(--heading); }
.stat .num i { color: var(--accent); font-style: normal; }
.stat .lbl { color: var(--muted); font-size: 13.5px; margin-top: 2px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }

/* ---------- Цветни плочки в админ таблото ---------- */
.stat-ico { font-size: 24px; margin-bottom: 4px; }
.stat-yellow { background: rgba(180,83,9,.08); border: 1px solid rgba(180,83,9,.25); }
.stat-yellow .num { color: var(--yellow); }
.stat-green { background: rgba(22,163,74,.08); border: 1px solid rgba(22,163,74,.25); }
.stat-green .num { color: var(--green); }
.stat-blue { background: rgba(37,99,235,.08); border: 1px solid rgba(37,99,235,.25); }
.stat-blue .num { color: #2563eb; }
.stat-purple { background: rgba(37,20,68,.1); border: 1px solid rgba(37,20,68,.3); }
.stat-purple .num { color: var(--dark); }
[data-theme="dark"] .stat-purple .num { color: #a78bfa; }

/* ---------- Стъпки ---------- */
.step { text-align: center; padding: 26px 20px; position: relative; }
.step .n {
  width: 60px; height: 60px; border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
  background: linear-gradient(145deg, var(--accent), #ff5c72); color: #fff;
  font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px; box-shadow: 0 12px 26px rgba(223,35,57,.35);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Форми ---------- */
.form-narrow { max-width: 440px; margin: 40px auto; }
label { display: block; font-size: 13.5px; color: var(--heading); font-weight: 600; margin: 15px 0 6px; }
input, select, textarea {
  width: 100%; background: var(--bg2); border: 1px solid var(--border); color: var(--heading);
  border-radius: 8px; padding: 11px 13px; font-size: 15px; font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(223,35,57,.12);
}
form .btn { margin-top: 20px; }

/* ---------- Таблици ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
tr:hover td { background: var(--hover-tint); }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: rgba(223,35,57,.05); }
.table-wrap { overflow-x: auto; }
.price-line { display: flex; justify-content: space-between; gap: 14px; max-width: 220px; padding: 2px 0; }

/* ---------- Баджове ---------- */
.badge { display: inline-block; padding: 3px 11px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.badge-pending  { background: rgba(180,83,9,.12);  color: var(--yellow); }
.badge-approved, .badge-active { background: rgba(22,163,74,.12); color: var(--green); }
.badge-rejected, .badge-expired, .badge-cancelled { background: rgba(223,35,57,.1); color: var(--accent); }

/* ---------- Съобщения ---------- */
.alert { padding: 13px 16px; border-radius: 10px; margin-bottom: 18px; font-size: 14.5px; }
.alert-success { background: rgba(22,163,74,.09); border: 1px solid rgba(22,163,74,.3); color: #15803d; }
.alert-error   { background: rgba(223,35,57,.07); border: 1px solid rgba(223,35,57,.3); color: #b91c1c; }
.alert-info    { background: rgba(37,20,68,.05);  border: 1px solid rgba(37,20,68,.2);  color: var(--heading); }

/* ---------- Разни ---------- */
.muted { color: var(--muted); }
.mono { font-family: Consolas, monospace; background: var(--soft); padding: 2px 8px; border-radius: 6px; color: var(--heading); }
.copy-btn {
  background: none; border: none; cursor: pointer; font-size: 12.5px; padding: 0 4px 0 0;
  vertical-align: middle; opacity: .6; transition: opacity .15s;
}
.copy-btn:hover { opacity: 1; }
.copy-btn.copied { opacity: 1; color: var(--green); }
/* Име/имейл в таблици с клиенти - открояват се едно от друго вместо да се сливат */
.cell-name { color: var(--heading); font-weight: 700; font-size: 14.5px; }
.cell-email { font-size: 12.5px; display: inline-block; margin-top: 1px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* inline екшън форми (в таблици/редове): бутоните БЕЗ вертикалния отстъп на
   обикновените форми (form .btn по-горе) - иначе се разминават с реда си */
.actions .btn, form.actions .btn { margin-top: 0; }
.actions-nowrap { flex-wrap: nowrap; }
.actions-nowrap form { flex-shrink: 0; }
/* таблици, при които всеки ред трябва да остане на ЕДИН ред - текстът не пренася,
   таблицата расте по-широка от контейнера и .table-wrap показва хоризонтален скрол вместо да пренася */
.nowrap-table { width: max-content; min-width: 100%; }
.nowrap-table td, .nowrap-table th { white-space: nowrap; }
.nowrap-table .cell-name, .nowrap-table .cell-email { white-space: nowrap; }
/* компактни списъци (Фактури): нисък ред, дребен шрифт, дребни бутони */
.compact-table td, .compact-table th { padding: 5px 8px; font-size: 13px; line-height: 1.3; }
.compact-table .badge { font-size: 11px; padding: 2px 8px; }
.compact-table .btn-sm { padding: 4px 9px; font-size: 12px; }
.compact-table select, .compact-table input[type=number] { padding: 3px 6px !important; font-size: 12px !important; height: 26px; }
.compact-table .actions { margin: 0; }
.compact-table td.act { white-space: normal; min-width: 420px; }
pre.pay-box {
  background: var(--soft); border: 1px dashed #d5cfc2; border-radius: 10px; padding: 18px;
  white-space: pre-wrap; font-family: inherit; font-size: 15px; color: var(--heading);
}
h1.page-title { font-size: 27px; margin-bottom: 22px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark2); color: #b9aed6; padding: 0; margin-top: auto; position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; left: -6%; right: -6%; top: -30%; height: 60%; pointer-events: none;
  background:
    radial-gradient(30% 60% at 20% 50%, rgba(223,35,57,.16), transparent 70%),
    radial-gradient(30% 60% at 80% 50%, rgba(168,60,255,.14), transparent 70%);
  filter: blur(30px);
}
.footer-main { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 34px; padding: 54px 0 40px; position: relative; }
.footer h4 { color: #fff; font-size: 17px; margin-bottom: 14px; }
.footer a { color: #b9aed6; display: block; padding: 4px 0; }
.footer a:hover { color: #fff; }
.footer .flogo { font-size: 24px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: 8px; }
.footer .flogo::before { content: "📡"; font-size: 20px; }
.footer .flogo b { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 18px 0; font-size: 13.5px; position: relative; }

/* бутонът „меню" за телефон - скрит на широк екран */
.nav-toggle { display: none; background: var(--soft); color: var(--heading); border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; font-size: 20px; line-height: 1; cursor: pointer; margin-left: auto; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-full h1 { font-size: 38px; }
  .section { padding: 52px 0; }
  .plans-island { padding: 56px 22px 62px; margin: 0 8px; }
  .tstrip-in { justify-content: center; }

  /* навигация: хамбургер + падащ панел под хедъра */
  .topbar-in { position: relative; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .topbar nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--bg2); border-bottom: 1px solid var(--border); box-shadow: 0 14px 30px rgba(37,20,68,.12); padding: 12px 18px 16px; z-index: 60;
    max-height: calc(100vh - 70px); overflow-y: auto; }
  .topbar nav.open { display: flex; }
  .topbar nav a { font-size: 16px; padding: 11px 8px; border-radius: 8px; }
  .topbar nav a:hover { background: var(--soft); }
  .topbar nav .btn { text-align: center; margin-top: 6px; }
  .topbar nav .who-badge { max-width: none; }
  .topbar nav .theme-toggle { align-self: flex-start; margin-top: 6px; }
  /* на началната хедърът е прозрачен върху тъмния hero - панелът е тъмен, линковете бели */
  body.home .nav-toggle { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
  body.home .topbar nav { background: #2b1a4d; border-bottom-color: rgba(255,255,255,.14); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
  body.home .topbar nav a:hover { background: rgba(255,255,255,.08); }
}

/* телефон */
@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .topbar-in { height: 60px; }
  .hero-full { padding: 40px 0 90px; }
  .hero-full h1 { font-size: 30px; letter-spacing: -.5px; }
  .hero-full p.lead { font-size: 16px; }
  .section { padding: 40px 0; }
  .section-title { margin-bottom: 28px; }
  .plans-island { padding: 36px 12px 40px; margin: 0; border-radius: 16px; }
  .grid { gap: 14px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .about-grid { gap: 24px; }
  .card { padding: 16px; border-radius: 14px; }
  .card h2 { font-size: 18px; }
  .page-title { font-size: 24px; }
  h1 { font-size: 26px; }
  .form-narrow { margin: 16px auto; }
  .stat .num { font-size: 32px; }
  .btn { padding: 12px 20px; }
  .actions { gap: 8px; }
  /* таблиците: хоризонтален скрол в картата, без да чупят страницата */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
  table { font-size: 13.5px; }
  th, td { padding: 8px 8px; }
  .footer-main { gap: 22px; padding: 36px 0 24px; }
  main.container.full { padding: 0 8px; }
  input, select, textarea { font-size: 16px; }   /* iOS не мащабира при фокус при >=16px */
  input:not([type=checkbox]):not([type=radio]), select, textarea { max-width: 100%; }
  td, th, p, li, .mono, .muted, code { overflow-wrap: anywhere; }   /* дълги URL-и / ключове се чупят, не преливат */
  .table-wrap td, .table-wrap th { overflow-wrap: normal; }
  .dash-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dash-stats .stat { padding: 14px 6px; }
  .dash-stats .stat .num { font-size: 26px; }
  .dash-stats .stat .lbl { font-size: 12px; }
}

/* ============================================================
   АДМИН - светла тема, СЪЩАТА палитра като основния сайт
   (Outfit, червено #df2339, тъмнолилаво #251444) - само по-компактни
   размери за плътни таблици с данни, без тъмен фон.
   ============================================================ */
body.admin { font-size: 15px; }
body.admin h1, body.admin h2, body.admin h3 { font-weight: 700; }
body.admin .logo::before { content: none; }
body.admin input:focus, body.admin select:focus, body.admin textarea:focus { box-shadow: 0 0 0 3px rgba(223,35,57,.1); }
body.admin label { color: var(--muted); font-weight: 500; }
body.admin .card { border-radius: 12px; }
body.admin .btn { border-radius: 8px; font-weight: 600; padding: 10px 22px; }
body.admin .btn-sm { padding: 7px 14px; border-radius: 6px; }
body.admin .footer { background: transparent; border-top: 1px solid var(--border); padding: 18px 0; color: var(--muted); font-size: 13px; overflow: visible; }
body.admin .footer::before { content: none; }
body.admin .stat .num { font-size: 30px; }
body.admin .stat .lbl { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* превключвател на езика (показва се само ако езиците са включени от Админ → Настройки) */
.lang-switch { display: inline-flex; gap: 2px; margin-left: 4px; }
.lang-switch a { font-size: 12px; font-weight: 700; padding: 3px 6px; border-radius: 6px; opacity: .65; }
.lang-switch a.on { background: var(--accent); color: #fff !important; opacity: 1; }
