/* ─────────────────────────────────────────
   serveurs-iptv.css — Page Serveurs IPTV
   ───────────────────────────────────────── */

/* ── App accent color ── */
.accent-app {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.app-hero {
  background:
    linear-gradient(160deg, rgba(59,130,246,.1) 0%, rgba(6,182,212,.08) 100%),
    var(--bg);
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 7rem 2rem 3rem;
  background:
    linear-gradient(160deg, rgba(0,212,170,.1) 0%, rgba(124,58,237,.08) 100%),
    var(--bg);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.breadcrumb {
  font-size: .8rem;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--teal); }
.breadcrumb a:hover { text-decoration: underline; }

.page-hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.page-hero-desc {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}
.page-hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  position: relative;
  z-index: 10;
}
.page-hero-stats > span {
  background: rgba(255, 255, 255, 0.02) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: 50px;
  padding: .55rem 1.35rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  transition: all .35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.page-hero-stats > span svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--teal);
  filter: drop-shadow(0 0 5px rgba(0, 212, 170, 0.4));
  transition: all 0.35s ease;
}
.page-hero-stats > span strong {
  color: #fff;
  font-weight: 800;
  margin: 0 2px;
  transition: color 0.35s ease;
}
.page-hero-stats > span:hover {
  transform: translateY(-3px);
  color: #fff;
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--teal) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(0, 212, 170, 0.25);
}
.page-hero-stats > span:hover svg {
  transform: scale(1.15) rotate(-10deg);
  filter: drop-shadow(0 0 8px rgba(0, 212, 170, 0.6));
}
.page-hero-stats > span:hover strong {
  color: var(--teal);
}

/* Page specific accents for Satellite badges */
.sat-hero .page-hero-stats > span svg {
  color: #a78bfa;
  filter: drop-shadow(0 0 5px rgba(167, 139, 250, 0.4));
}
.sat-hero .page-hero-stats > span:hover {
  border-color: #a78bfa !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(167, 139, 250, 0.25);
}
.sat-hero .page-hero-stats > span:hover svg {
  filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.6));
}
.sat-hero .page-hero-stats > span:hover strong {
  color: #a78bfa;
}

/* Page specific accents for Applications badges */
.app-hero .page-hero-stats > span svg {
  color: #06b6d4;
  filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.4));
}
.app-hero .page-hero-stats > span:hover {
  border-color: #06b6d4 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 0 15px rgba(6, 182, 212, 0.25);
}
.app-hero .page-hero-stats > span:hover svg {
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}
.app-hero .page-hero-stats > span:hover strong {
  color: #06b6d4;
}

/* ── CART BTN ── */
.cart-btn {
  position: relative;
  background: rgba(0,212,170,.12);
  border: 1px solid rgba(0,212,170,.3);
  border-radius: 50px;
  color: var(--teal);
  font-size: .9rem;
  font-weight: 700;
  padding: .5rem 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: all .3s;
}
.cart-btn:hover {
  background: rgba(0,212,170,.22);
  transform: translateY(-1px);
}
.cart-count {
  background: var(--teal);
  color: #090e1a;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .72rem;
  font-weight: 800;
}

/* ── SHOP LAYOUT ── */
.shop-main { padding: 2.5rem 0 5rem; }
.shop-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
  transition: grid-template-columns 0.3s ease, gap 0.3s ease;
}
.shop-container.filters-collapsed {
  grid-template-columns: 1fr;
  gap: 0;
}
.shop-container.filters-collapsed .sidebar {
  display: none !important;
}

/* ── SIDEBAR ── */
.sidebar {
  position: sticky;
  top: 90px;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.8) 0%, rgba(13, 20, 39, 0.8) 100%) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.35) !important;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-header-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.sidebar-header-icon {
  font-size: 1rem;
  color: var(--teal);
}
.sat-hero ~ .shop-main .sidebar-header-icon { color: #a78bfa; }
.app-hero ~ .shop-main .sidebar-header-icon { color: #06b6d4; }

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.sidebar-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-title {
  font-size: .72rem;
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.search-box {
  position: relative;
}
.search-box input {
  width: 100%;
  background: rgba(9, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: .65rem 2.2rem .65rem .9rem;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: .88rem;
  outline: none;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
}
.search-box input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.15);
  background: rgba(9, 14, 26, 0.8);
}
.sat-hero ~ .shop-main .search-box input:focus { border-color: #a78bfa; box-shadow: 0 0 15px rgba(167, 139, 250, 0.15); }
.app-hero ~ .shop-main .search-box input:focus { border-color: #06b6d4; box-shadow: 0 0 15px rgba(6, 182, 212, 0.15); }

.search-icon {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .85rem;
  pointer-events: none;
  opacity: 0.6;
}

.price-filter { display: flex; flex-direction: column; gap: .75rem; }
.price-inputs {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.price-inputs input {
  flex: 1;
  background: rgba(9, 14, 26, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: .55rem .6rem;
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  outline: none;
  transition: all .3s;
  text-align: center;
}
.price-inputs input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.10);
  background: rgba(9, 14, 26, 0.8);
}
.sat-hero ~ .shop-main .price-inputs input:focus { border-color: #a78bfa; box-shadow: 0 0 10px rgba(167, 139, 250, 0.10); }
.app-hero ~ .shop-main .price-inputs input:focus { border-color: #06b6d4; box-shadow: 0 0 10px rgba(6, 182, 212, 0.10); }

.price-inputs span { color: var(--text-3); font-weight: 700; font-size: .8rem; }

.filter-apply {
  padding: .5rem 1rem !important;
  font-size: .75rem !important;
  width: 100%;
  justify-content: center;
  background: rgba(0, 212, 170, 0.08) !important;
  border: 1px solid rgba(0, 212, 170, 0.25) !important;
  color: var(--teal) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 8px !important;
  transition: all 0.3s !important;
}
.filter-apply:hover {
  background: var(--teal) !important;
  color: #090e1a !important;
  box-shadow: 0 0 15px rgba(0, 212, 170, 0.3) !important;
}

.sat-hero ~ .shop-main .filter-apply {
  background: rgba(124, 58, 237, 0.08) !important;
  border-color: rgba(124, 58, 237, 0.25) !important;
  color: #a78bfa !important;
}
.sat-hero ~ .shop-main .filter-apply:hover {
  background: #7c3aed !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(124, 58, 237, 0.3) !important;
}

.app-hero ~ .shop-main .filter-apply {
  background: rgba(6, 182, 212, 0.08) !important;
  border-color: rgba(6, 182, 212, 0.25) !important;
  color: #06b6d4 !important;
}
.app-hero ~ .shop-main .filter-apply:hover {
  background: #06b6d4 !important;
  color: #090e1a !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3) !important;
}

.reset-btn {
  width: 100%;
  justify-content: center;
  background: transparent !important;
  border: 1px dashed rgba(255, 255, 255, 0.15) !important;
  color: var(--text-2) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  padding: 0.55rem !important;
  transition: all 0.3s !important;
}
.reset-btn:hover {
  border-color: var(--red) !important;
  color: #fff !important;
  background: rgba(239, 68, 68, 0.1) !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.1) !important;
}

/* ── TOOLBAR ── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.results-count { font-size: .88rem; color: var(--text-2); font-weight: 500; }
.results-count strong { color: var(--teal); }
.toolbar-right { display: flex; align-items: center; gap: .75rem; }

.sort-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  padding: .5rem .75rem;
  outline: none;
  cursor: pointer;
  transition: border-color .3s;
}
.sort-select:focus { border-color: var(--teal); }
.sort-select option { background: var(--surface); }

.view-toggle { display: flex; gap: .3rem; }
.view-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1rem;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.view-btn:hover, .view-btn.active {
  border-color: var(--teal);
  color: var(--teal);
  background: rgba(0,212,170,.08);
}

/* ── PRODUCTS GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.products-grid.list-view {
  grid-template-columns: 1fr;
}

/* ── PRODUCT CARD ── */
.shop-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  position: relative;
}
.shop-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,212,170,.35);
  box-shadow: 0 12px 32px rgba(0,0,0,.35), 0 0 20px rgba(0,212,170,.1);
}

.shop-card .card-img-wrap {
  width: 100%;
  position: relative;
  padding-bottom: 100%; /* Perfect square always */
  overflow: hidden;
  background-color: transparent;
  flex-shrink: 0;
}
.shop-card:hover .card-img-wrap { }
.shop-card .card-img {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform .45s ease;
}
.shop-card:hover .card-img { transform: scale(1.04); }

.shop-card .card-body {
  padding: .85rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .5rem;
}
.shop-card .card-title {
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.shop-card .card-desc {
  font-size: .78rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.shop-card .card-tags {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
}
.card-tag {
  background: rgba(0,212,170,.1);
  border: 1px solid rgba(0,212,170,.2);
  color: var(--teal);
  font-size: .68rem;
  font-weight: 600;
  padding: .15rem .5rem;
  border-radius: 50px;
}
.card-tag.m3u {
  background: rgba(124,58,237,.1);
  border-color: rgba(124,58,237,.25);
  color: #a78bfa;
}
.card-tag.dur {
  background: rgba(245,158,11,.1);
  border-color: rgba(245,158,11,.25);
  color: var(--yellow);
}

.shop-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .85rem .85rem;
  gap: .5rem;
}
.shop-card .price-amount {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--teal);
}
.shop-card .price-period {
  font-size: .7rem;
  color: var(--text-3);
}
.shop-card .card-buy-btn {
  background: var(--yellow);
  color: #1a1a1a;
  border: none;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  padding: .4rem .9rem;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(251,191,36,.2);
}
.shop-card .card-buy-btn:hover {
  background: #fbbf24;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 20px rgba(251,191,36,.5), 0 0 40px rgba(251,191,36,.15);
}

/* LIST VIEW ── */
.products-grid.list-view .shop-card {
  flex-direction: row;
  align-items: center;
  height: 110px;
}
.products-grid.list-view .shop-card .card-img-wrap {
  width: 110px;
  height: 110px;
  flex-shrink: 0;
  padding-bottom: 0 !important; /* override — fixed height for list */
  border-radius: 0;
}

/* Prevent app logos from being cropped on both homepage and applications shop */
.app-hero ~ .shop-main .shop-card .card-img,
#applications .shop-card .card-img {
  object-fit: contain;
}
.products-grid.list-view .shop-card .card-body {
  flex-direction: row;
  align-items: center;
  flex: 1;
  padding: 1rem;
  gap: 1rem;
}
.products-grid.list-view .shop-card .card-title {
  flex: 1;
  font-size: 1rem;
}
.products-grid.list-view .shop-card .card-tags { flex-wrap: nowrap; }
.products-grid.list-view .shop-card .card-footer {
  padding: 0 1rem 0 0;
  flex-shrink: 0;
  gap: 1rem;
}

/* ── NO RESULTS ── */
.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-3);
}
.no-results span { font-size: 3rem; display: block; margin-bottom: 1rem; }
.no-results p { font-size: 1rem; margin-bottom: 1.5rem; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 500;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn .2s ease;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  max-width: 780px;
  width: 100%;
  position: relative;
  overflow: hidden;
  animation: scaleIn .25s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-iptv {
  max-width: 1000px;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  background: rgba(255,255,255,.08);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.modal-close:hover { background: rgba(239,68,68,.2); border-color: rgba(239,68,68,.4); color: #ef4444; }

.modal-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  height: 75vh;
  overflow: hidden;
}
.modal-img-wrap {
  position: relative;
  padding-bottom: 0;
  min-height: 340px;
  border-radius: var(--radius) 0 0 var(--radius);
  overflow: hidden;
  background-color: #090e1a;
}
.modal-img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: center;
}
.modal-info {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-badge {
  display: inline-flex;
  background: rgba(0,212,170,.12);
  border: 1px solid rgba(0,212,170,.3);
  color: var(--teal);
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .8rem;
  border-radius: 50px;
  width: fit-content;
}
.modal-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.modal-price-row { display: flex; align-items: baseline; gap: .4rem; }
.modal-price { font-size: 2rem; font-weight: 900; color: var(--teal); }
.modal-period { font-size: .85rem; color: var(--text-3); }
.modal-desc {
  font-size: .85rem;
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
}
.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.modal-features li {
  font-size: .88rem;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: .6rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.modal-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.modal-buy { gap: .4rem; }

/* ── CART DRAWER ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 400;
  backdrop-filter: blur(4px);
}
.cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 95vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 401;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.1rem; font-weight: 700; }
.cart-close {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 1.2rem;
  cursor: pointer;
  padding: .25rem;
  transition: color .2s;
}
.cart-close:hover { color: var(--red); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 100%;
  color: var(--text-3);
  font-size: .9rem;
}
.cart-empty span { font-size: 3rem; }

.cart-item {
  display: flex;
  gap: .75rem;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem;
}
.cart-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: .82rem; font-weight: 700; margin-bottom: .2rem; }
.cart-item-price { font-size: .8rem; color: var(--teal); font-weight: 700; }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  font-size: .9rem;
  padding: .25rem;
  transition: color .2s;
}
.cart-item-remove:hover { color: var(--red); }

.cart-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  color: var(--text-2);
}
.cart-total strong { color: var(--teal); font-size: 1.2rem; }
.cart-checkout { width: 100%; justify-content: center; }

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px) scale(0.9);
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 212, 170, 0.35);
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  padding: .9rem 2rem;
  border-radius: 50px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 212, 170, 0.15);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toast.show {
  transform: translateX(-50%) translateY(0) scale(1);
}

.sat-hero ~ #toast,
.sat-hero ~ * #toast {
  border-color: rgba(124, 58, 237, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(124, 58, 237, 0.15);
}
.app-hero ~ #toast,
.app-hero ~ * #toast {
  border-color: rgba(6, 182, 212, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(6, 182, 212, 0.15);
}

/* ── ANIMATIONS ── */
@keyframes fadeIn  { from { opacity:0 } to { opacity:1 } }
@keyframes scaleIn { from { opacity:0; transform:scale(.92) } to { opacity:1; transform:scale(1) } }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .shop-container {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 1rem !important;
  }
  .sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    z-index: 405;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 0;
    border-radius: 0 16px 16px 0 !important;
    border-left: none !important;
    overflow-y: auto;
    display: flex !important;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-close-btn {
    display: block !important;
  }
  .sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(9, 14, 26, 0.6);
    backdrop-filter: blur(4px);
    z-index: 404;
    display: none;
  }
  .sidebar-overlay.show {
    display: block;
  }
  .page-hero { padding: 8rem 1.5rem 3rem; }
  .page-hero-title { font-size: 2.2rem; }
}
@media (max-width: 768px) {
  .shop-container { padding: 0 0.5rem !important; }
  .modal-inner {
    grid-template-columns: 1fr !important;
    height: auto !important;
    overflow: visible !important;
  }
  .modal-img-wrap { min-height: 220px; }
  .modal-img { min-height: 220px; }
  .modal-info { padding: 1.25rem; }
  .modal-title { font-size: 1.25rem; }
  .page-hero { padding: 7rem 1.25rem 2.5rem; }
  .page-hero-title { font-size: 1.8rem; }
  .page-hero-desc { font-size: .92rem; }
  .page-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
    margin: 1.5rem auto 0;
  }
  .page-hero-stats > span {
    font-size: .8rem !important;
    padding: .45rem .85rem !important;
    justify-content: center !important;
    width: auto !important;
  }
  .breadcrumb { font-size: .78rem; }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  .toolbar-left, .toolbar-right {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .sidebar { padding: 1.25rem; }
  .sidebar-section { margin-bottom: 1.25rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .products-grid.list-view .shop-card { flex-direction: column; height: auto; }
  .products-grid.list-view .shop-card .card-img-wrap { width: 100%; height: 160px; }
  .products-grid.list-view .shop-card .card-body { flex-direction: column; }
  .cart-drawer { width: 340px; }
}
@media (max-width: 480px) {
  .page-hero { padding: 6.5rem 1rem 2rem; }
  .page-hero-title { font-size: 1.6rem; }
  .page-hero-desc { font-size: .85rem; }
  .page-hero-stats {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.4rem;
  }
  .page-hero-stats > span {
    font-size: .75rem !important;
    padding: .35rem .65rem !important;
  }
  .breadcrumb { font-size: .72rem; }
  .shop-main { padding: 0.5rem 0.15rem 3rem !important; }
  .shop-container { padding: 0 !important; }
  .sidebar { padding: 1rem; }
  .sidebar-title { font-size: .85rem; }
  .search-box input { font-size: .82rem; padding: .6rem .85rem .6rem 2.2rem; }
  .check-label { font-size: .8rem; }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.45rem !important; }
  .shop-card .card-img-wrap { height: 140px; }
  .shop-card .card-body { padding: .6rem; gap: .35rem; }
  .shop-card .card-title { font-size: .82rem; }
  .shop-card .card-desc { font-size: .7rem; }
  .shop-card .card-footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 .45rem .55rem !important;
    gap: 0.2rem !important;
    width: 100% !important;
  }
  #apps-grid .shop-card .card-footer,
  .app-hero ~ .shop-main .shop-card .card-footer {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.35rem !important;
  }
  .shop-card .card-footer > div {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1;
  }
  .shop-card .price-amount { font-size: 0.98rem !important; }
  .shop-card .price-period { font-size: 0.65rem !important; }
  .shop-card .card-buy-btn {
    width: auto !important;
    font-size: .65rem !important;
    padding: .3rem .6rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
  .card-tag { font-size: .6rem; padding: .1rem .4rem; }
  .results-count { font-size: .78rem; }
  .sort-select { font-size: .78rem; padding: .4rem .6rem; }
  /* Cart mobile */
  .cart-drawer { width: 100vw; max-width: 100vw; border-radius: 0; }
  .cart-items { padding: .75rem 1rem; }
  .cart-item { padding: .6rem; }
  .cart-item img { width: 44px; height: 44px; }
  .cart-item-name { font-size: .75rem; }
  .cart-footer { padding: 1rem; }
  /* Modal mobile (Bottom Sheet) */
  .modal,
  .modal-iptv {
    max-width: 100%;
    border-radius: 20px 20px 0 0 !important;
    max-height: 85vh;
    overflow-y: auto !important;
    animation: slideUpMobile .3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal-info { padding: 1.25rem 1rem; }
  .modal-title { font-size: 1.15rem; }
  .modal-price { font-size: 1.5rem; }
  .modal-desc { font-size: .82rem; }
  .modal-features li { font-size: .8rem; }
  .modal-actions { flex-direction: column; gap: 0.5rem; }
  .modal-actions .btn, .modal-actions .btn-glow { width: 100%; justify-content: center; }
  .modal-close { top: 0.75rem; right: 0.75rem; width: 32px; height: 32px; font-size: 1rem; }
}
@media (max-width: 360px) {
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.35rem !important; }
  .shop-main { padding: 0.5rem 0.05rem 3rem !important; }
  .shop-card .card-img-wrap { height: 110px; }
  .shop-card .card-title { font-size: .75rem; }
  .shop-card .price-amount { font-size: .95rem; }
  .page-hero-title { font-size: 1.4rem; }
  .page-hero-stats {
    grid-template-columns: 1fr !important;
  }
  .page-hero-stats > span {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.5rem !important;
  }
}
@keyframes slideUpMobile {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==========================================================================
   PREMIUM LUXURY DESIGN UPGRADES
   ========================================================================== */

/* ── Ambient Hero Glows ── */
.page-hero {
  position: relative;
  overflow: hidden;
}
.hero-glow-1, .hero-glow-2 {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
  animation: float-glow 8s infinite alternate ease-in-out;
}
.hero-glow-1 {
  width: 320px;
  height: 320px;
  top: -60px;
  left: 10%;
  background: var(--teal);
}
.hero-glow-2 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: 15%;
  background: var(--purple);
  animation-delay: -4s;
}

/* Page specific accents for glows */
.sat-hero .hero-glow-1 { background: #7c3aed; }
.sat-hero .hero-glow-2 { background: #3b82f6; }

.app-hero .hero-glow-1 { background: #06b6d4; }
.app-hero .hero-glow-2 { background: #3b82f6; }

@keyframes float-glow {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(30px) scale(1.1); }
}

/* ── Glassmorphism upgrades for cards and sidebars ── */
.shop-card, .sidebar {
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.75) 0%, rgba(26, 34, 54, 0.75) 100%) !important;
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.35) !important;
}

/* Hover effects */
.shop-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 170, 0.45) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 212, 170, 0.15) !important;
}

/* Page specific accents */
.sat-hero ~ .shop-main .shop-card:hover {
  border-color: rgba(124, 58, 237, 0.5) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(124, 58, 237, 0.18) !important;
}

.app-hero ~ .shop-main .shop-card:hover {
  border-color: rgba(6, 182, 212, 0.5) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 25px rgba(6, 182, 212, 0.18) !important;
}

/* ── Custom Styled Checkboxes ── */
.check-label {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .88rem;
  color: var(--text-2);
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}
.check-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  background: rgba(9, 14, 26, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}
.check-label input[type="checkbox"]::before {
  content: "✓";
  font-size: 0.75rem;
  font-weight: 900;
  color: #090e1a;
  transform: scale(0);
  transition: transform 0.2s ease-in-out;
}
.check-label input[type="checkbox"]:checked {
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.4);
}
.check-label input[type="checkbox"]:checked::before {
  transform: scale(1);
}
.check-label:hover input[type="checkbox"] {
  border-color: var(--teal);
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.2);
}

/* Satellite subpage theme checkbox override */
.sat-hero ~ .shop-main .check-label input[type="checkbox"]:checked {
  background: #a78bfa;
  border-color: #a78bfa;
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.4);
}
.sat-hero ~ .shop-main .check-label:hover input[type="checkbox"] {
  border-color: #a78bfa;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.2);
}

/* ── Metallic Shimmer Effect on Premium Buttons ── */
.card-buy-btn, .btn-primary, .btn-glow {
  position: relative;
  overflow: hidden;
}
.card-buy-btn::after, .btn-primary::after, .btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  pointer-events: none;
  animation: button-shimmer 6s infinite ease-in-out;
}
@keyframes button-shimmer {
  0% { left: -60%; }
  15% { left: 140%; }
  100% { left: 140%; }
}

/* ── Rotating Border conic-gradient for Featured Cards ── */
.shop-card.sat-featured {
  position: relative;
  overflow: hidden !important;
  border: 1px solid transparent !important;
}
.shop-card.sat-featured::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    var(--purple) 25%,
    transparent 50%,
    var(--teal) 75%,
    transparent 100%
  );
  animation: border-rotate 6s linear infinite;
  z-index: 0;
  pointer-events: none;
  opacity: 0.8;
}
.app-hero ~ .shop-main .shop-card.sat-featured::before {
  background: conic-gradient(
    from 0deg,
    transparent 0%,
    #06b6d4 25%,
    transparent 50%,
    #3b82f6 75%,
    transparent 100%
  );
}
.shop-card.sat-featured::after {
  content: '';
  position: absolute;
  inset: 1px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95) 0%, rgba(26, 34, 54, 0.95) 100%) !important;
  border-radius: calc(var(--radius) - 1px);
  z-index: 1;
  pointer-events: none;
}
.shop-card.sat-featured > * {
  position: relative;
  z-index: 2;
}
@keyframes border-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ── Animated Accent Text Gradients ── */
.accent, .accent-sat, .accent-app {
  background-size: 200% auto !important;
  animation: text-shine 4s linear infinite;
}
@keyframes text-shine {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ── Staggered Ultra-Smooth Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Premium Price Input Wrappers ── */
.price-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.price-input-wrapper input {
  padding-right: 1.65rem !important; /* space for the currency symbol */
  text-align: center;
}
.currency-symbol {
  position: absolute;
  right: 0.65rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-3);
  pointer-events: none;
  transition: color 0.3s ease;
}
.price-input-wrapper input:focus + .currency-symbol {
  color: var(--teal);
}
.sat-hero ~ .shop-main .price-input-wrapper input:focus + .currency-symbol {
  color: #a78bfa;
}
.app-hero ~ .shop-main .price-input-wrapper input:focus + .currency-symbol {
  color: #06b6d4;
}
.price-divider {
  color: var(--text-3);
  font-weight: 700;
  font-size: .8rem;
  margin: 0 0.2rem;
}

/* ── Toggle Filters Button ── */
.toggle-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem !important;
  padding: 0.5rem 1.10rem !important;
  border-radius: 50px !important;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: var(--text-2) !important;
  transition: all 0.3s ease !important;
}
.toggle-filters-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--teal) !important;
  color: #fff !important;
  box-shadow: 0 0 12px rgba(0, 212, 170, 0.25) !important;
}
.sat-hero ~ .shop-main .toggle-filters-btn:hover {
  border-color: #a78bfa !important;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.25) !important;
}
.app-hero ~ .shop-main .toggle-filters-btn:hover {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.25) !important;
}

/* ── Sidebar Close Button inside Header ── */
.sidebar-close-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-3);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}
.sidebar-close-btn:hover {
  color: var(--red);
}

/* ── Mobile Application Cards Price Block Override ── */
@media (max-width: 480px) {
  .price-block {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.2rem !important;
    padding: 0.3rem 0.4rem !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    width: 100% !important;
  }
  .price-block > span {
    display: inline-flex !important;
    justify-content: flex-start !important;
    align-items: baseline !important;
    gap: 0.1rem;
  }
  .price-block .price-amount {
    font-size: 0.95rem !important;
  }
  .price-block .price-period {
    font-size: 0.6rem !important;
  }
  .price-block .card-buy-btn {
    width: auto !important;
    text-align: center;
    justify-content: center;
    font-size: 0.65rem !important;
    padding: 0.3rem 0.55rem !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
  }
}

/* ── Dynamic Logo & Brand Themes ── */
.theme-iptv {
  --page-accent: var(--teal);
}
.theme-sat {
  --page-accent: #7c3aed; /* Purple */
}
.theme-app {
  --page-accent: #eab308; /* Gold/yellow */
}
.theme-home {
  --page-accent: var(--teal);
}

/* Align and size logo images neatly */
.logo-img {
  height: 38px !important;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
  display: block;
  margin-top: -14px !important;
}
.ft-logo-img {
  height: 46px !important;
  width: auto;
  object-fit: contain;
  transition: filter 0.3s ease;
  display: block;
}

@media (max-width: 768px) {
  .logo-img {
    height: 30px !important;
    margin-top: -11px !important;
  }
}

/* Color logo text 'Store' to match the website's official teal color */
.logo-accent,
.ft-accent {
  color: var(--teal) !important;
}


