/* ==========================================================================
   tvnetpaketi.rs – SBB packages section (.tnp)
   Place in: Appearance > Customize > Additional CSS (or child theme style.css)
   Everything is scoped to .tnp so it cannot affect the rest of the site,
   and selectors use two classes so Nexux / Elementor styles do not override them.
   ========================================================================== */

.tnp {
  --tnp-bg: #04041c;
  --tnp-surface: #0b0a2e;
  --tnp-surface-2: #12103f;
  --tnp-line: rgba(150, 135, 255, 0.18);
  --tnp-accent: #6c5cff;
  --tnp-accent-hover: #5a49f5;
  --tnp-accent-soft: #a89eff;
  --tnp-text: #f2f0ff;
  --tnp-muted: #9b97c6;
  --tnp-ok: #8be3b5;

  position: relative;
  box-sizing: border-box;
  padding: clamp(56px, 8vw, 96px) 20px;
  background:
    radial-gradient(60% 45% at 50% 0%, rgba(108, 92, 255, 0.28), transparent 70%),
    var(--tnp-bg);
  color: var(--tnp-text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}
.tnp *, .tnp *::before, .tnp *::after { box-sizing: border-box; }

/* Reset typography the Nexux theme / Elementor apply to headings, links and text
   (negative letter-spacing glued words together, e.g. "TVBasicvanmreže"). */
.tnp .tnp-wrap :is(h2, h3, h4, p, li, a, span, strong, summary, button) {
  font-family: inherit;
  letter-spacing: normal;
  word-spacing: normal;
  text-transform: none;
  text-shadow: none;
}
.tnp .tnp-wrap { max-width: 1040px; margin: 0 auto; }

/* ---------- Header ---------- */
.tnp .tnp-head { text-align: center; margin-bottom: 36px; }
.tnp .tnp-partner {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0 0 14px; color: var(--tnp-accent-soft); font-size: 1rem;
}
.tnp .tnp-partner::before, .tnp .tnp-partner::after {
  content: ""; width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tnp-accent));
}
.tnp .tnp-partner::after { transform: scaleX(-1); }
.tnp .tnp-title {
  margin: 0 0 12px; color: var(--tnp-text);
  font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.15;
  font-weight: 600; letter-spacing: -0.01em;
}
.tnp .tnp-desc { margin: 0 auto; max-width: 56ch; color: var(--tnp-muted); line-height: 1.6; }

/* ---------- Tabs (homepage only) ---------- */
.tnp .tnp-tabs {
  display: flex; justify-content: center; margin: 0 auto 36px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
}
.tnp .tnp-tabs::-webkit-scrollbar { display: none; }
.tnp .tnp-tablist {
  display: inline-flex; gap: 4px; padding: 6px;
  border: 1px solid var(--tnp-line); border-radius: 999px;
  background: rgba(11, 10, 46, 0.7);
}
.tnp .tnp-tab {
  flex: 0 0 auto; margin: 0; border: 1px solid transparent; border-radius: 999px;
  padding: 10px 22px; background: transparent; color: var(--tnp-text);
  font-family: inherit; font-size: 0.95rem; font-weight: 500; line-height: 1; cursor: pointer;
  white-space: nowrap; box-shadow: none;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tnp .tnp-tab:hover { background: rgba(108, 92, 255, 0.12); color: var(--tnp-text); }
.tnp .tnp-tab[aria-selected="true"] {
  border-color: var(--tnp-accent); color: var(--tnp-accent-soft);
  background: rgba(108, 92, 255, 0.14);
}
.tnp .tnp-tab:focus-visible, .tnp .tnp-cta:focus-visible,
.tnp .tnp-link:focus-visible, .tnp .tnp-vk summary:focus-visible {
  outline: 2px solid var(--tnp-accent-soft); outline-offset: 3px;
}

/* Without JavaScript all groups are visible and the tab bar is hidden.
   JS adds .tnp-js and then only the active group is shown. */
.tnp:not(.tnp-js) .tnp-tabs { display: none; }
.tnp:not(.tnp-js) .tnp-panel + .tnp-panel { margin-top: 56px; }
.tnp.tnp-js .tnp-panel:not(.is-active) { display: none; }

/* ---------- Cards ---------- */
.tnp .tnp-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px; align-items: start;
}
.tnp .tnp-card {
  position: relative; display: flex; flex-direction: column;
  padding: 28px; border: 1px solid var(--tnp-line); border-radius: 20px;
  background: linear-gradient(180deg, var(--tnp-surface-2), var(--tnp-surface));
}
.tnp .tnp-card.is-featured { border-color: rgba(108, 92, 255, 0.6); }
.tnp .tnp-flag {
  position: absolute; top: -12px; right: 24px; margin: 0;
  padding: 4px 12px; border-radius: 999px; background: var(--tnp-accent);
  color: #fff; font-size: 0.8rem; font-weight: 500; line-height: 1.4;
}
.tnp .tnp-name { margin: 0 0 4px; color: var(--tnp-text); font-size: 1.35rem; line-height: 1.3; font-weight: 600; }
.tnp .tnp-lead { margin: 0 0 22px; color: var(--tnp-muted); font-size: 0.95rem; line-height: 1.5; }

/* Price block */
.tnp .tnp-price {
  padding: 18px 20px; margin-bottom: 20px; border-radius: 14px;
  background: rgba(4, 4, 28, 0.55); border: 1px solid var(--tnp-line);
}
.tnp .tnp-price-now { display: flex; align-items: baseline; gap: 8px; margin: 0; flex-wrap: wrap; }
.tnp .tnp-wrap .tnp-amount {
  color: var(--tnp-text); font-size: clamp(2.2rem, 5vw, 2.8rem);
  font-weight: 700; line-height: 1; letter-spacing: -0.02em;
}
.tnp .tnp-unit { color: var(--tnp-muted); font-size: 0.95rem; }
.tnp .tnp-promo {
  display: inline-block; margin: 12px 0 0; padding: 4px 10px; border-radius: 8px;
  background: rgba(139, 227, 181, 0.12); color: var(--tnp-ok);
  font-size: 0.85rem; font-weight: 500; line-height: 1.4;
}
.tnp .tnp-price-note { margin: 10px 0 0; color: var(--tnp-muted); font-size: 0.85rem; line-height: 1.5; }
.tnp .tnp-price-note strong { color: var(--tnp-text); font-weight: 500; }

.tnp .tnp-actions { display: grid; gap: 10px; margin-bottom: 24px; }
.tnp .tnp-cta {
  display: block; margin: 0; padding: 14px 18px; border-radius: 12px;
  background: var(--tnp-accent); color: #fff; text-align: center; text-decoration: none;
  font-size: 1rem; font-weight: 600; line-height: 1.3; transition: background-color .2s;
}
.tnp .tnp-cta:hover, .tnp .tnp-cta:focus { background: var(--tnp-accent-hover); color: #fff; }

/* Secondary button under "Naruči": special offer by phone */
.tnp .tnp-wrap .tnp-cta-call {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 16px; border: 1px solid rgba(108, 92, 255, 0.55); border-radius: 12px;
  background: rgba(108, 92, 255, 0.08); color: var(--tnp-text); text-decoration: none;
  font-size: 1rem; line-height: 1.25; transition: background-color .2s, border-color .2s;
}
.tnp .tnp-wrap .tnp-cta-call:hover, .tnp .tnp-wrap .tnp-cta-call:focus {
  background: rgba(108, 92, 255, 0.18); border-color: var(--tnp-accent); color: var(--tnp-text);
}
.tnp .tnp-cta-call:focus-visible { outline: 2px solid var(--tnp-accent-soft); outline-offset: 3px; }
.tnp .tnp-cta-call-icon { flex: 0 0 auto; width: 20px; height: 20px; color: var(--tnp-accent-soft); }
.tnp .tnp-cta-call-text { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.tnp .tnp-wrap .tnp-cta-call-label { font-size: 0.95rem; font-weight: 600; }
.tnp .tnp-wrap .tnp-cta-call-number { font-size: 0.85rem; color: var(--tnp-muted); }

/* Feature groups */
.tnp .tnp-group + .tnp-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--tnp-line); }
.tnp .tnp-group-title { margin: 0 0 10px; font-size: 0.9rem; line-height: 1.4; font-weight: 600; color: var(--tnp-accent-soft); }
.tnp .tnp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tnp .tnp-list li {
  position: relative; margin: 0; padding: 0 0 0 26px;
  color: var(--tnp-text); font-size: 0.95rem; line-height: 1.5;
}
.tnp .tnp-list li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 16px; height: 16px;
  border-radius: 50%; background: rgba(108, 92, 255, 0.2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23a89eff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.tnp .tnp-wrap .tnp-list a {
  color: var(--tnp-accent-soft); text-decoration: underline;
  font-size: inherit; font-weight: inherit; line-height: inherit;
}

/* Streaming logos (VOYO / HBO Max) */
.tnp .tnp-logos {
  display: block; height: 36px; width: auto; max-width: 100%;
  margin: 12px 0 0 26px; object-fit: contain;
}

/* Video klub (collapsed by default) */
.tnp .tnp-vk { margin-top: 10px; }
.tnp .tnp-vk summary {
  cursor: pointer; color: var(--tnp-accent-soft); font-size: 0.9rem;
  list-style: none; border-radius: 6px;
}
.tnp .tnp-vk summary::-webkit-details-marker { display: none; }
.tnp .tnp-vk summary::after { content: " +"; }
.tnp .tnp-vk[open] summary::after { content: " −"; }
.tnp .tnp-vk p { margin: 10px 0 0; color: var(--tnp-muted); font-size: 0.85rem; line-height: 1.6; }

/* Below the cards */
.tnp .tnp-foot { margin-top: 28px; text-align: center; }
.tnp .tnp-link {
  display: inline-block; padding: 10px 18px; border: 1px solid var(--tnp-line);
  border-radius: 999px; color: var(--tnp-text); text-decoration: none; font-size: 0.95rem;
  transition: border-color .2s;
}
.tnp .tnp-link:hover, .tnp .tnp-link:focus { border-color: var(--tnp-accent); color: var(--tnp-text); }
.tnp .tnp-terms {
  max-width: 860px; margin: 22px auto 0; color: var(--tnp-muted);
  font-size: 0.8rem; line-height: 1.65; text-align: left;
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .tnp .tnp-grid { grid-template-columns: 1fr; }
  .tnp .tnp-tabs { justify-content: flex-start; }
  .tnp .tnp-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .tnp * { transition: none !important; }
}

/* ---------- Call button: "Specijalne akcije na poziv" ---------- */
.tnp .tnp-call {
  margin: 44px auto 0; padding: 28px 24px; max-width: 640px;
  border: 1px solid rgba(108, 92, 255, 0.45); border-radius: 20px;
  background: linear-gradient(180deg, rgba(108, 92, 255, 0.16), rgba(108, 92, 255, 0.04));
  text-align: center;
}
.tnp .tnp-call-label {
  margin: 0 0 14px; color: var(--tnp-text);
  font-size: clamp(1.1rem, 2.6vw, 1.35rem); font-weight: 600; line-height: 1.3;
}
.tnp .tnp-call-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 18px 36px; border-radius: 999px;
  background: var(--tnp-accent); color: #fff; text-decoration: none;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem); font-weight: 700; line-height: 1;
  letter-spacing: 0.02em; white-space: nowrap;
  box-shadow: 0 10px 30px rgba(108, 92, 255, 0.35);
  transition: background-color .2s, transform .2s;
}
.tnp .tnp-call-btn:hover, .tnp .tnp-call-btn:focus { background: var(--tnp-accent-hover); color: #fff; transform: translateY(-1px); }
.tnp .tnp-call-btn:focus-visible { outline: 2px solid var(--tnp-accent-soft); outline-offset: 4px; }
.tnp .tnp-call-icon { flex: 0 0 auto; width: 24px; height: 24px; }
@media (max-width: 760px) {
  .tnp .tnp-call-btn { display: flex; width: 100%; padding: 18px 20px; }
}

/* ---------- Primary action switch (admin: "Glavno dugme na kartici") ----------
   Same markup, styles swapped: the call button becomes the filled one and moves first. */
.tnp .tnp-wrap .tnp-actions--call .tnp-cta-call {
  order: -1; padding: 14px 18px; border-color: var(--tnp-accent);
  background: var(--tnp-accent); color: #fff;
}
.tnp .tnp-wrap .tnp-actions--call .tnp-cta-call:hover,
.tnp .tnp-wrap .tnp-actions--call .tnp-cta-call:focus { background: var(--tnp-accent-hover); color: #fff; }
.tnp .tnp-wrap .tnp-actions--call .tnp-cta-call-icon { color: #fff; }
.tnp .tnp-wrap .tnp-actions--call .tnp-cta-call-number { color: rgba(255, 255, 255, 0.82); }
.tnp .tnp-wrap .tnp-actions--call .tnp-cta {
  padding: 11px 16px; border: 1px solid rgba(108, 92, 255, 0.55);
  background: rgba(108, 92, 255, 0.08); color: var(--tnp-text); font-weight: 500;
}
.tnp .tnp-wrap .tnp-actions--call .tnp-cta:hover,
.tnp .tnp-wrap .tnp-actions--call .tnp-cta:focus { background: rgba(108, 92, 255, 0.18); color: var(--tnp-text); }

@media (max-width: 760px) {
  .tnp .tnp-wrap .tnp-actions--call-mobile .tnp-cta-call {
    order: -1; padding: 14px 18px; border-color: var(--tnp-accent);
    background: var(--tnp-accent); color: #fff;
  }
  .tnp .tnp-wrap .tnp-actions--call-mobile .tnp-cta-call:hover,
  .tnp .tnp-wrap .tnp-actions--call-mobile .tnp-cta-call:focus { background: var(--tnp-accent-hover); color: #fff; }
  .tnp .tnp-wrap .tnp-actions--call-mobile .tnp-cta-call-icon { color: #fff; }
  .tnp .tnp-wrap .tnp-actions--call-mobile .tnp-cta-call-number { color: rgba(255, 255, 255, 0.82); }
  .tnp .tnp-wrap .tnp-actions--call-mobile .tnp-cta {
    padding: 11px 16px; border: 1px solid rgba(108, 92, 255, 0.55);
    background: rgba(108, 92, 255, 0.08); color: var(--tnp-text); font-weight: 500;
  }
}

/* ---------- Popups (channel list, supported devices) ---------- */
html.tnp-modal-open { overflow: hidden; }
.tnp .tnp-modal {
  width: min(720px, calc(100vw - 32px)); max-height: min(86vh, 900px);
  margin: auto; padding: 0; border: 1px solid var(--tnp-line); border-radius: 20px;
  background: linear-gradient(180deg, var(--tnp-surface-2), var(--tnp-surface));
  color: var(--tnp-text); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.tnp .tnp-modal::backdrop { background: rgba(2, 2, 16, 0.72); backdrop-filter: blur(3px); }
.tnp .tnp-modal[open] { display: flex; }
.tnp .tnp-modal-box { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; }
.tnp .tnp-modal-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 14px; border-bottom: 1px solid var(--tnp-line);
}
.tnp .tnp-wrap .tnp-modal-title { margin: 0; font-size: 1.25rem; line-height: 1.3; font-weight: 600; color: var(--tnp-text); }
.tnp .tnp-modal-sub { margin: 4px 0 0; color: var(--tnp-muted); font-size: 0.85rem; }
.tnp .tnp-wrap .tnp-modal-close {
  flex: 0 0 auto; width: 40px; height: 40px; margin: -4px -6px 0 0; padding: 0;
  border: 1px solid var(--tnp-line); border-radius: 50%; background: transparent;
  color: var(--tnp-text); font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.tnp .tnp-wrap .tnp-modal-close:hover { border-color: var(--tnp-accent); background: rgba(108, 92, 255, 0.15); }
.tnp .tnp-modal-close:focus-visible { outline: 2px solid var(--tnp-accent-soft); outline-offset: 2px; }

.tnp .tnp-modal-search { padding: 14px 24px; border-bottom: 1px solid var(--tnp-line); }
.tnp .tnp-wrap .tnp-ch-search {
  width: 100%; padding: 12px 14px; border: 1px solid var(--tnp-line); border-radius: 10px;
  background: rgba(4, 4, 28, 0.6); color: var(--tnp-text); font: inherit; font-size: 0.95rem;
}
.tnp .tnp-ch-search::placeholder { color: var(--tnp-muted); }
.tnp .tnp-ch-search:focus { outline: 2px solid var(--tnp-accent); outline-offset: 0; border-color: transparent; }

.tnp .tnp-modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 8px 24px 20px; overscroll-behavior: contain; }
.tnp .tnp-ch-group { padding-top: 16px; }
.tnp .tnp-wrap .tnp-ch-group[hidden], .tnp .tnp-wrap .tnp-ch-item[hidden], .tnp .tnp-wrap .tnp-ch-empty[hidden] { display: none; }
.tnp .tnp-wrap .tnp-ch-group-title {
  margin: 0 0 10px; color: var(--tnp-accent-soft); font-size: 0.85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.tnp .tnp-ch-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px;
}
.tnp .tnp-wrap .tnp-ch-item { display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 4px 0; font-size: 0.92rem; line-height: 1.35; }
.tnp .tnp-wrap .tnp-ch-pos { flex: 0 0 34px; color: var(--tnp-muted); font-size: 0.8rem; text-align: right; font-variant-numeric: tabular-nums; }
.tnp .tnp-wrap .tnp-ch-badge {
  margin-left: auto; padding: 1px 7px; border-radius: 6px; background: rgba(108, 92, 255, 0.2);
  color: var(--tnp-accent-soft); font-size: 0.7rem; font-weight: 600;
}
.tnp .tnp-ch-empty { margin: 24px 0; color: var(--tnp-muted); text-align: center; }
.tnp .tnp-modal-note { margin: 12px 0 0; color: var(--tnp-muted); font-size: 0.85rem; line-height: 1.55; }

.tnp .tnp-table-wrap { overflow-x: auto; }
.tnp .tnp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tnp .tnp-table th, .tnp .tnp-table td { padding: 8px 10px; border-bottom: 1px solid var(--tnp-line); text-align: left; color: var(--tnp-text); background: none; }
.tnp .tnp-table th { color: var(--tnp-muted); font-weight: 500; font-size: 0.8rem; }

.tnp .tnp-modal-foot {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 16px 24px; border-top: 1px solid var(--tnp-line); background: rgba(4, 4, 28, 0.4);
}
.tnp .tnp-modal-foot .tnp-modal-order[hidden] { display: none; }
.tnp .tnp-modal-foot .tnp-modal-order[hidden] + .tnp-cta-call { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .tnp .tnp-modal { width: 100vw; max-width: 100vw; height: 100%; max-height: 100%; border-radius: 0; border: 0; }
  .tnp .tnp-modal-head { padding: calc(16px + env(safe-area-inset-top, 0px)) 16px 12px; }
  .tnp .tnp-modal-search, .tnp .tnp-modal-body { padding-left: 16px; padding-right: 16px; }
  .tnp .tnp-modal-foot { grid-template-columns: 1fr; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
  .tnp .tnp-ch-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
}
.tnp .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tnp .tnp-modal-foot .tnp-cta { display: flex; align-items: center; justify-content: center; }
