/* ============================================================
   Premium UI overlay — dark/black/orange premium theme helpers
   Platform logos + service-type chips + New Order dropdowns
   Safe overlay: additive classes only.
   ============================================================ */

/* ---------- platform badge (brand colors, circular, gold ring) ---------- */
.pu-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
  line-height: 1;
  border: 1.6px solid rgba(212, 162, 74, 0.62);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.35),
    inset 0 -3px 5px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(212, 162, 74, 0.12),
    0 3px 9px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.pu-badge::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,.12) 32%, rgba(255,255,255,0) 55%);
  pointer-events: none;
}
.pu-badge i,
.pu-badge svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(0,0,0,.35)); }
.pu-badge svg { width: 58%; height: 58%; display: block; }

.pu-badge--xs { width: 18px; height: 18px; font-size: 9px; }
.pu-badge--sm { width: 26px; height: 26px; font-size: 12px; }
.pu-badge--md { width: 34px; height: 34px; font-size: 15px; }
.pu-badge--lg { width: 46px; height: 46px; font-size: 19px; border-width: 2px; }

.pu-badge--premium {
  animation: pu-float 3.2s ease-in-out infinite, pu-glow-pulse 2.4s ease-in-out infinite;
}
.pu-badge--premium::before {
  background:
    linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.8) 48%, rgba(255,255,255,0) 62%),
    linear-gradient(160deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,.1) 32%, rgba(255,255,255,0) 55%);
  background-size: 240% 240%, 100% 100%;
  background-position: -70% -70%, 0 0;
  animation: pu-shine 3.8s ease-in-out infinite;
}
.pu-badge--premium::after {
  content: "✦";
  position: absolute;
  top: -3px;
  inset-inline-end: -3px;
  color: #fff6da;
  text-shadow: 0 0 4px rgba(255, 205, 110, .95), 0 0 9px rgba(255, 170, 50, .7);
  animation: pu-twinkle 2.1s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}
.pu-badge--xs.pu-badge--premium::after { font-size: 6px; top: -2px; }
.pu-badge--sm.pu-badge--premium::after { font-size: 7px; top: -2px; }
.pu-badge--md.pu-badge--premium::after { font-size: 9px; top: -3px; }
.pu-badge--lg.pu-badge--premium::after { font-size: 12px; top: -4px; }

@keyframes pu-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}
@keyframes pu-glow-pulse {
  0%, 100% {
    box-shadow:
      inset 0 1px 1px rgba(255,255,255,.35),
      inset 0 -3px 5px rgba(0,0,0,.35),
      0 0 8px 1px rgba(255, 154, 66, .35);
  }
  50% {
    box-shadow:
      inset 0 1px 1px rgba(255,255,255,.45),
      inset 0 -3px 5px rgba(0,0,0,.35),
      0 0 16px 4px rgba(255, 154, 66, .65);
  }
}
@keyframes pu-shine {
  0%   { background-position: -70% -70%, 0 0; }
  55%  { background-position: 170% 170%, 0 0; }
  100% { background-position: 170% 170%, 0 0; }
}
@keyframes pu-twinkle {
  0%, 100% { opacity: .35; transform: scale(.75) rotate(0deg); }
  50%      { opacity: 1;   transform: scale(1.15) rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pu-badge--premium,
  .pu-badge--premium::before,
  .pu-badge--premium::after { animation: none; }
}

.pu-badge--instagram  { background: radial-gradient(circle at 30% 110%, #ffdb73 0%, #fdb833 12%, #f37324 32%, #bc3081 62%, #7134af 78%, #4a4fbd 100%); }
.pu-badge--telegram   { background: radial-gradient(circle at 35% 30%, #5fc0ec 0%, #2aabee 55%, #1e96d6 100%); }
.pu-badge--youtube    { background: linear-gradient(135deg, #ff3d3d 0%, #ff0000 100%); }
.pu-badge--tiktok     { background: #010101; }
.pu-badge--tiktok i   { background: linear-gradient(120deg,#25f4ee 0%,#ffffff 45%,#fe2c55 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pu-badge--facebook   { background: linear-gradient(135deg, #4b95f2 0%, #1877f2 100%); }
.pu-badge--twitter    { background: #000000; }
.pu-badge--spotify    { background: linear-gradient(135deg, #2fe27a 0%, #1db954 100%); }
.pu-badge--discord    { background: linear-gradient(135deg, #7d8cff 0%, #5865f2 100%); }
.pu-badge--threads    { background: #111; }
.pu-badge--twitch     { background: linear-gradient(135deg, #a970ff 0%, #9146ff 100%); }
.pu-badge--linkedin   { background: linear-gradient(135deg, #2b9beb 0%, #0a66c2 100%); }
.pu-badge--snapchat   { background: #fffc00; color: #111; }
.pu-badge--whatsapp   { background: linear-gradient(135deg, #3ee075 0%, #25d366 100%); }
.pu-badge--soundcloud { background: linear-gradient(135deg, #ff8a3d 0%, #ff5500 100%); }
.pu-badge--google     { background: #fff; color: #4285f4; }
.pu-badge--pubg       { background: linear-gradient(135deg, #ffb84d 0%, #f2a900 100%); color: #201200; }
.pu-badge--kwai       { background: linear-gradient(135deg, #ffcd42 0%, #ff7a00 100%); color: #201200; }
.pu-badge--likee      { background: linear-gradient(135deg, #ffde59 0%, #fe2c55 100%); }
.pu-badge--pinterest  { background: linear-gradient(135deg, #ff5c72 0%, #e60023 100%); }
.pu-badge--reddit     { background: linear-gradient(135deg, #ff6b52 0%, #ff4500 100%); }
.pu-badge--other      { background: linear-gradient(135deg, rgba(255,154,66,.35), rgba(194,65,12,.35)); color: #ffd8b0; }

/* ---------- service-type chip ---------- */
.pu-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 154, 66, 0.3);
  background: rgba(255, 122, 26, 0.12);
  color: #ffb27a;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(255, 122, 26, 0.12);
}
.pu-chip i { font-size: 10px; }
.pu-chip--premium  { color: #ffd76a; border-color: rgba(255, 215, 106, 0.4); background: rgba(255, 190, 40, 0.14); box-shadow: 0 0 12px rgba(255, 190, 40, 0.22); }
.pu-chip--member   { color: #ffb27a; }
.pu-chip--follower { color: #ff9a52; }
.pu-chip--like     { color: #ff8f6b; }
.pu-chip--view     { color: #ffc98a; }
.pu-chip--comment  { color: #ffab6b; }
.pu-chip--message  { color: #ffb27a; }
.pu-chip--reaction { color: #ff9a6b; }
.pu-chip--boost    { color: #ff7a45; }
.pu-chip--star     { color: #ffd76a; }
.pu-chip--refill   { color: #4ade80; background: rgba(74,222,128,.12); border-color: rgba(74,222,128,.3); box-shadow: 0 0 10px rgba(74,222,128,.12); }
.pu-chip--fast     { color: #60a5fa; background: rgba(96,165,250,.12); border-color: rgba(96,165,250,.3); box-shadow: 0 0 10px rgba(96,165,250,.12); }
.pu-chip--support  { color: #ffd76a; background: rgba(251,191,36,.12); border-color: rgba(251,191,36,.3); }
.pu-chip--exclusive{ color: #f87171; background: rgba(248,113,113,.12); border-color: rgba(248,113,113,.3); }
.pu-chip--new {
  color: #ff9a42;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  font-size: 11px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.pu-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }

.pu-glow { position: relative; }
.pu-glow::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,154,66,.55), rgba(194,65,12,0));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ---------- New Order page — reference layout ---------- */
.plat-card {
  background: rgba(10, 8, 6, .78);
  border: 1px solid rgba(212, 162, 74, .38);
  border-radius: 18px;
  padding: 14px 12px 10px;
  margin-bottom: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,200,120,.08);
}
.plat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  justify-content: flex-start;
  overflow: visible;
  padding: 0 !important;
}
.plat-btn .plat-ico,
.plat-card .pu-badge--lg {
  width: 46px;
  height: 46px;
}
.plat-btn.active .plat-ico {
  border-color: #f0b24a;
  box-shadow: 0 0 0 3px rgba(255, 122, 26,.28), 0 6px 18px rgba(255, 122, 26,.25);
}

.xo-card {
  background: linear-gradient(180deg, rgba(28,16,8,.96), rgba(12,8,6,.96)) !important;
  border: 1px solid rgba(212, 162, 74, .28) !important;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.xo-card-head {
  margin: -16px -14px 16px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, rgba(232, 89, 12, .35), rgba(232, 89, 12, 0));
  border-bottom: 1px solid rgba(255, 154, 66, .18);
}
.xo-new-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff9a3d, #e8590c);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 8px 16px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(232, 89, 12, .35);
}

.cat-trigger, .svc-trigger {
  background: rgba(0,0,0,.55) !important;
  border: 1px solid rgba(212, 162, 74, .42) !important;
  border-radius: 14px !important;
  min-height: 52px;
}
.cat-picker, .svc-picker, .search-results {
  background: #14110e !important;
  border: 1px solid rgba(212, 162, 74, .4) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 40px rgba(0,0,0,.55) !important;
}
.cat-item {
  padding: 11px 12px !important;
  gap: 10px !important;
}
.cat-item .c-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cat-item .c-new {
  margin-inline-start: auto;
  color: #ff8a2a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
  flex-shrink: 0;
}
.cat-item.active {
  background: linear-gradient(90deg, #e8590c, #ff7a1a) !important;
  border-right: 0 !important;
}
.cat-item.active .c-name,
.cat-item.active .c-new,
.cat-item.active .c-check { color: #fff !important; }
.cat-item.active .pu-chip { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.12); }

.svc-item.selected {
  background: linear-gradient(90deg, rgba(232, 89, 12, .28), rgba(232, 89, 12, .08)) !important;
  border-right: 3px solid #ff7a1a;
}

.xo-submit {
  background: linear-gradient(135deg, #ff9a3d, #e24d00) !important;
  box-shadow: 0 8px 24px rgba(232, 89, 12, .45) !important;
}

/* admin polish */
.admin-body .adm-sidebar {
  background: linear-gradient(180deg, #140e09 0%, #0b0705 100%) !important;
  border-left-color: rgba(212,162,74,.18) !important;
}
.admin-body .adm-brand-icon {
  background: linear-gradient(135deg, #ff7a1a, #f59e0b) !important;
}

/* ===== v7: Global mobile bottom navigation =====
   The footer is included on every page, while panel-ux.css is not.
   Keep the mobile nav styled globally so it never falls back to plain inline links. */
.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(82px + env(safe-area-inset-bottom)) !important;
  }

  .bottom-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    justify-items: stretch;
    gap: 0;
    position: fixed !important;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 68px;
    z-index: 10050;
    padding: 6px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(8, 8, 14, .97);
    border-top: 1px solid rgba(255, 138, 42, .18);
    box-shadow: 0 -10px 35px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255,255,255,.025);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    direction: rtl;
  }

  .bottom-nav > a,
  .bottom-nav > .bn-spacer {
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  .bottom-nav > a {
    height: 54px;
    padding: 5px 2px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    text-decoration: none;
    color: #8990a8;
    font-size: 10px !important;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
  }

  .bottom-nav > a > i {
    display: block;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    line-height: 22px;
    font-size: 18px !important;
    text-align: center;
    color: #7f879f;
  }

  .bottom-nav > a > span {
    display: block;
    width: 100%;
    max-width: 72px !important;
    min-height: 12px;
    margin: 0 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }

  .bottom-nav > .bn-spacer {
    display: block !important;
    height: 54px !important;
    pointer-events: none;
  }

  .bottom-nav > .bn-center {
    align-self: start;
    justify-self: center;
    width: 58px !important;
    height: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    padding: 0 !important;
    margin-top: -17px !important;
    border-radius: 50% !important;
    border: 3px solid #09090f !important;
    background: linear-gradient(145deg, #ff9a3d 0%, #ff7418 52%, #e65008 100%) !important;
    color: #fff !important;
    box-shadow: 0 9px 25px rgba(255, 107, 20, .42), inset 0 1px 0 rgba(255,255,255,.35) !important;
    overflow: visible !important;
  }

  .bottom-nav > .bn-center > i {
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    font-size: 22px !important;
    color: #fff !important;
  }

  .bottom-nav > .bn-center > span {
    display: none !important;
  }

  .bottom-nav > a:hover,
  .bottom-nav > a:focus,
  .bottom-nav > a.active {
    color: #ffad69;
  }
  .bottom-nav > a:hover > i,
  .bottom-nav > a:focus > i,
  .bottom-nav > a.active > i {
    color: #ff913c;
  }

  /* Keep the footer content clear of the fixed nav. */
  .footer {
    margin-bottom: 0 !important;
  }
  .footer-bottom {
    padding-bottom: 22px !important;
  }

  /* AI button must sit above the navigation, not on top of labels. */
  .ai-fab {
    bottom: calc(86px + env(safe-area-inset-bottom)) !important;
  }
}
