:root{
  --p-bg: #07070c;
  --p-bg-2: #0b0b12;

  --p-surface: rgba(255,255,255,.06);
  --p-surface-2: rgba(255,255,255,.09);
  --p-surface-3: rgba(255,255,255,.12);

  --p-border: rgba(255,255,255,.14);
  --p-border-2: rgba(255,255,255,.20);

  --p-text: rgba(255,255,255,.92);
  --p-text-muted: rgba(255,255,255,.68);
  --p-text-faint: rgba(255,255,255,.50);

  --p-rose: #ff4d8d;
  --p-rose-2: #ff2f78;

  --p-gold: #f5c86a;
  --p-gold-2: #d6a84a;

  --p-radius: 16px;
  --p-radius-lg: 22px;

  --p-shadow: 0 18px 60px rgba(0,0,0,.55);
  --p-shadow-sm: 0 10px 28px rgba(0,0,0,.40);

  --p-glow-rose: 0 0 0 1px rgba(255,77,141,.22), 0 12px 50px rgba(255,77,141,.12);
  --p-glow-gold: 0 0 0 1px rgba(245,200,106,.18), 0 12px 50px rgba(245,200,106,.10);

  --p-focus: 0 0 0 .18rem rgba(255,77,141,.22);
}

html{
  min-height: 100%;
  background: var(--p-bg);
}
html::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 18% -10%, rgba(255,77,141,.30), transparent 60%),
    radial-gradient(900px 600px at 88% 0%, rgba(245,200,106,.20), transparent 55%),
    radial-gradient(900px 800px at 40% 110%, rgba(255,77,141,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.03), transparent 35%),
    var(--p-bg);
  background-repeat: no-repeat;
}
body{
  min-height: 100%;
  background: transparent !important;
  color: var(--p-text) !important;
  letter-spacing: .2px;
}

body, p, span, label, small, strong, em, b,
h1,h2,h3,h4,h5,h6{
  color: var(--p-text) !important;
}
.text-muted,
.text-secondary,
.text-body{
  color: var(--p-text-muted) !important;
}
.text-dark{
  color: var(--p-text) !important;
}

a{ color: var(--p-rose); }
a:hover{ color: var(--p-gold); }

main > div.section:nth-child(odd),
main > div.section:nth-child(even){
  background: transparent !important;
}

section, header, footer,
.jumbotron, .content, .wrapper, .container-fluid{
  background: transparent !important;
}

.navbar,
.bg-white,
.card,
.modal-content,
.dropdown-menu,
.popover,
.list-group,
.list-group-item,
.table,
.wrapper-msg-inbox,
.nav-wrapper,
.nav-scroller,
.nav-scroller-2,
.sidebar-overlay .navbar .navbar-collapse{
  background: rgba(15,15,22,.76) !important;
  border: 1px solid var(--p-border) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--p-shadow-sm) !important;
  border-radius: var(--p-radius) !important;
}

.card,
.modal-content,
.dropdown-menu{
  overflow: hidden;
  position: relative;
}
.card::before,
.modal-content::before,
.dropdown-menu::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 30%);
  opacity: .35;
}

.bg-light,
.bg-secondary,
.bg-dark-2,
.bg-dark-3,
.bg-white{
  background-color: rgba(15,15,22,.76) !important;
  color: var(--p-text) !important;
}

hr, .border, .border-top, .border-bottom{
  border-color: rgba(255,255,255,.12) !important;
}

i, svg, .fa, .fas, .far, .fal, .fab, .ri{
  color: rgba(255,255,255,.82);
}
a i, a svg{
  color: inherit;
}
.icon-notifications,
.ico-social,
.link-footer{
  color: rgba(255,255,255,.70) !important;
}
.icon-navbar{
  color: rgba(255,255,255,.85) !important;
}

.btn{
  border-radius: 999px !important;
  transition: filter .15s ease, box-shadow .15s ease, opacity .15s ease;
}

/* Stop legacy lift effect */
.btn:hover:not(.e-none){
  transform: none !important;
  filter: brightness(1.05) saturate(1.03);
}

.btn-primary,
.btn-primary:focus,
.btn-primary:active{
  background: linear-gradient(135deg, var(--p-rose), var(--p-gold)) !important;
  border: none !important;
  color: #140a12 !important;
  font-weight: 800 !important;
  box-shadow: 0 14px 40px rgba(255,77,141,.14), 0 12px 45px rgba(245,200,106,.10) !important;
}
.btn-primary:hover{
  filter: brightness(1.06) saturate(1.05);
}

/* Outline primary */
.btn-outline-primary{
  border: 1px solid rgba(255,77,141,.55) !important;
  color: var(--p-text) !important;
  background: rgba(255,77,141,.06) !important;
}
.btn-outline-primary:hover{
  background: rgba(255,77,141,.16) !important;
  box-shadow: var(--p-glow-rose) !important;
}

.btn-white,
.btn-white:hover,
.btn-white:focus,
.btn-white:active{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid var(--p-border) !important;
  color: var(--p-text) !important;
  box-shadow: none !important;
}

/* Keep other common buttons aligned */
.btn-secondary,
.btn-light{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid var(--p-border) !important;
  color: var(--p-text) !important;
}
.btn-danger{
  background: rgba(245,54,92,.16) !important;
  border: 1px solid rgba(245,54,92,.35) !important;
  color: var(--p-text) !important;
}
.btn-success{
  background: rgba(45,206,137,.16) !important;
  border: 1px solid rgba(45,206,137,.35) !important;
  color: var(--p-text) !important;
}

/* ---------- Inputs / Forms ---------- */
.form-control,
.custom-select,
select,
textarea,
.search-bar,
.input-search{
  background: rgba(255,255,255,.07) !important;
  border: 1px solid var(--p-border) !important;
  color: var(--p-text) !important;
  border-radius: 14px !important;
}
.form-control::placeholder,
textarea::placeholder,
.search-bar::placeholder,
.input-search::placeholder{
  color: var(--p-text-faint) !important;
}
.form-control:focus,
.custom-select:focus,
textarea:focus,
.search-bar:focus,
.input-search:focus{
  outline: none !important;
  box-shadow: var(--p-focus) !important;
  border-color: rgba(255,77,141,.40) !important;
}

/* Input group */
.input-group-text{
  background: rgba(255,255,255,.07) !important;
  border: 1px solid var(--p-border) !important;
  color: rgba(255,255,255,.72) !important;
}

/* Autofill fix */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill{
  -webkit-text-fill-color: var(--p-text) !important;
  box-shadow: 0 0 0 1000px rgba(255,255,255,.07) inset !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* ---------- Dropdowns ---------- */
.dropdown-menu{
  background: rgba(15,15,22,.92) !important;
  border: 1px solid var(--p-border) !important;
  box-shadow: var(--p-shadow) !important;
}
.dd-menu:before,
.dd-menu-user:before{
  color: rgba(15,15,22,.92) !important;
}

/* Kill legacy blue hover */
.dropdown-item:focus,
.dropdown-item:hover{
  background-color: transparent !important;
  color: var(--p-text) !important;
}

/* Apply premium hover/active */
.dropdown-item{
  color: var(--p-text) !important;
  border-radius: 12px;
  padding: .5rem .85rem;
}
.dropdown-item:hover,
.dropdown-item:focus,
.dropdown-item.active,
.dropdown-item:active{
  background: linear-gradient(135deg, rgba(255,77,141,.18), rgba(245,200,106,.12)) !important;
  color: var(--p-text) !important;
}

/* ---------- Cards / list groups (NO hover movement) ---------- */
.card,
.list-group-item,
.list-group-item-action,
.card-body,
.card-header,
.card-footer{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.10) !important;
  color: var(--p-text) !important;
}

/* No hover effects on cards/items (client request) */
.card:hover,
.list-group-item:hover,
.list-group-item-action:hover{
  transform: none !important;
  box-shadow: var(--p-shadow-sm) !important;
}

/* ---------- Tables ---------- */
.table thead th{
  color: rgba(255,255,255,.72) !important;
}
.table td, .table th{
  color: var(--p-text) !important;
}
.table-striped tbody tr:nth-of-type(odd){
  background-color: rgba(255,255,255,.03) !important;
}

/* ---------- Pagination ---------- */
.page-link,
.page-item.disabled .page-link{
  background: rgba(255,255,255,.07) !important;
  color: var(--p-text) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
}
.page-item.active .page-link,
.page-link:hover{
  background: linear-gradient(135deg, var(--p-rose), var(--p-gold)) !important;
  color: #140a12 !important;
  border-color: transparent !important;
}

/* ---------- Badges ---------- */
.badge, .badge-pill{
  background: rgba(245,200,106,.14) !important;
  color: var(--p-gold) !important;
  border: 1px solid rgba(245,200,106,.28) !important;
}
.badge-free,
.badge-secondary{
  background: rgba(255,77,141,.14) !important;
  color: var(--p-text) !important;
  border: 1px solid rgba(255,77,141,.35) !important;
}

/* ---------- Alerts ---------- */
.alert{
  border: 1px solid var(--p-border) !important;
  background: rgba(15,15,22,.78) !important;
  color: var(--p-text) !important;
}
.alert-success{ border-color: rgba(45,206,137,.35) !important; }
.alert-danger { border-color: rgba(245,54,92,.35) !important; }
.alert-warning{ border-color: rgba(245,200,106,.35) !important; }
.alert-primary{ border-color: rgba(255,77,141,.35) !important; }

/* ---------- Navbar / menu accent ---------- */
.navbar .nav-link,
.menu-left-home li > a,
.p-nav a.nav-link:not(.btn){
  color: var(--p-text) !important;
}
.navbar .nav-link:hover,
.menu-left-home li > a:hover{
  color: var(--p-text) !important;
}
.navbar .navbar-nav .nav-item .nav-link:not(.btn).active,
.menu-left-home li > a.active{
  background: linear-gradient(135deg, rgba(255,77,141,.18), rgba(245,200,106,.10)) !important;
  box-shadow: var(--p-glow-gold) !important;
  border-radius: 999px !important;
}

/* ---------- Modals ---------- */
.modal-header,
.modal-footer{
  border-color: rgba(255,255,255,.10) !important;
}

/* ---------- Shadows normalization ---------- */
.shadow, .shadow-sm, .shadow-lg,
.shadow-custom{
  box-shadow: var(--p-shadow-sm) !important;
}

/* ---------- Mobile menu ---------- */
@media (max-width: 991px){
  .navbar .navbar-collapse{
    background: rgba(15,15,22,.94) !important;
    border-left: 1px solid var(--p-border) !important;
  }
  .navbar .navbar-collapse .navbar-nav .nav-link:not(.btn){
    color: var(--p-text) !important;
  }
}

/* ---------- Extra: make legacy “featured” color match gold ---------- */
.text-featured{
  color: var(--p-gold) !important;
}

/* ---------- Safety: stop any forced light gray blocks ---------- */
.content-locked{
  background: rgba(15,15,22,.76) !important;
  color: var(--p-text) !important;
}

/* ===========================
   DASHBOARD PREMIUM STAT CARDS
   =========================== */

.p-stat-card{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: var(--p-radius-lg) !important;
  box-shadow: var(--p-shadow-sm) !important;
  overflow: hidden;
}

.p-stat-card .card-body{
  padding: 18px 18px !important;
}

.p-stat-card h4,
.p-stat-card h6{
  margin: 0 0 6px 0 !important;
  font-weight: 900 !important;
  letter-spacing: .2px;
}

.p-stat-card small{
  color: var(--p-text-muted) !important;
}

/* icon left (small icon near value) */
.p-stat-card .icon-dashboard,
.p-stat-card .icon-dashboard-2{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  margin-right: 10px !important;
  background: linear-gradient(135deg, rgba(255,77,141,.22), rgba(245,200,106,.14));
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92) !important;
  box-shadow: 0 12px 32px rgba(0,0,0,.35);
}

/* big ghost icon on right (the one inside .icon-wrap) */
.p-stat-card .icon-wrap.icon--dashboard{
  position: absolute;
  right: -12px;
  top: -12px;
  width: 88px;
  height: 88px;
  border-radius: 26px;
  background: radial-gradient(circle at 30% 30%,
    rgba(245,200,106,.20), rgba(255,77,141,.12), transparent 70%);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .45;
  pointer-events: none;
}

.p-stat-card .icon-wrap.icon--dashboard i{
  font-size: 34px;
  color: rgba(255,255,255,.75) !important;
}

/* revenue numbers should be clean */
.p-stat-card .text-revenue{
  font-weight: 900 !important;
  letter-spacing: .2px;
}

.p-stat-card .text-success{ color: rgba(45,206,137,.95) !important; }
.p-stat-card .text-danger { color: rgba(255,77,141,.95) !important; }

/* kill legacy bootstrap "text-primary" blue inside dashboard only */
.p-stat-card .text-primary{
  color: inherit !important;
}

/* ===========================
   EXPLORE CREATORS (RIGHT BOX)
   =========================== */

.p-explore-item{
  display: block;
  text-decoration: none !important;
  margin-bottom: 12px;
}

.p-explore-cover{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.12);
  background-color: rgba(255,255,255,.06);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--p-shadow-sm);
  position: relative;
  min-height: 120px;
}

/* top soft overlay for readability */
.p-explore-cover::before{
  content:"";
  position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.45)),
    radial-gradient(700px 250px at 10% 0%, rgba(255,77,141,.18), transparent 60%),
    radial-gradient(700px 250px at 90% 0%, rgba(245,200,106,.14), transparent 60%);
  pointer-events:none;
}

/* footer glass bar */
.p-explore-footer{
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  background: rgba(15,15,22,.72);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 12px 12px;
}

.p-explore-media{
  display:flex;
  gap: 12px;
  align-items:center;
  min-width: 0;
}

.p-explore-avatar{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.18);
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
}

.p-explore-info{ min-width: 0; }

.p-explore-name{
  font-weight: 900;
  color: var(--p-text);
  line-height: 1.1;
  display:flex;
  gap: 8px;
  align-items:center;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.p-explore-username{
  color: var(--p-text-muted);
  font-size: 13px;
  margin-top: 2px;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.p-verified i{ color: rgba(245,200,106,.95) !important; }
.p-featured i{ color: rgba(255,77,141,.95) !important; }

/* FREE badge */
.p-badge-free{
  position:absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(255,77,141,.22), rgba(245,200,106,.14));
  border: 1px solid rgba(255,255,255,.14);
  color: var(--p-text);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

/* hover (NO movement, only glow) */
.p-explore-item:hover .p-explore-cover{
  box-shadow: var(--p-shadow-sm), var(--p-glow-rose);
}

.input-group-alternative{
  background: transparent !important;
  box-shadow: none !important;
}

.input-group{
  border-radius: 16px !important;
}

.p-input{
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 16px !important;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.p-input .input-group-prepend,
.p-input .input-group-append{
  display: flex;
}

/* FORCE premium input group everywhere (strong override) */
.input-group.p-input,
.input-group.input-group-alternative.p-input{
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

/* kill borders/backgrounds inside */
.input-group.p-input .input-group-text,
.input-group.input-group-alternative.p-input .input-group-text{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.input-group.p-input .form-control,
.input-group.input-group-alternative.p-input .form-control{
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* divider line */
.input-group.p-input .input-group-prepend .input-group-text{
  border-right: 1px solid rgba(255,255,255,.12) !important;
}
.input-group.p-input .input-group-append .input-group-text{
  border-left: 1px solid rgba(255,255,255,.12) !important;
}

.p-input .input-group-text{
  background: transparent !important;
  border: 0 !important;
  color: rgba(255,255,255,.78) !important;
  padding: 0 14px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
}

.p-input .input-group-prepend .input-group-text{
  border-right: 1px solid rgba(255,255,255,.12) !important;
}
.p-input .input-group-append .input-group-text{
  border-left: 1px solid rgba(255,255,255,.12) !important;
}

.p-input .form-control,
.p-input .custom-select,
.p-input select{
  background: transparent !important;
  border: 0 !important;
  color: var(--p-text) !important;
  height: 44px;
  padding: 10px 14px !important;
}

.p-input .form-control::placeholder{
  color: rgba(255,255,255,.45) !important;
}

.p-input:focus-within{
  border-color: rgba(255,77,141,.42) !important;
  box-shadow: var(--p-focus), 0 18px 55px rgba(0,0,0,.50) !important;
}

.p-input i, .p-input svg{
  color: rgba(255,255,255,.82) !important;
}

.p-input .form-control:disabled,
.p-input .custom-select:disabled{
  opacity: .6;
  cursor: not-allowed;
}

select.form-control,
select.custom-select{
  background-image: none !important;
}

.select2-container--default .select2-selection--multiple{
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 16px !important;
  min-height: 44px !important;
  padding: 6px 10px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice{
  background: rgba(255,77,141,.14) !important;
  border: 1px solid rgba(255,77,141,.28) !important;
  color: var(--p-text) !important;
  border-radius: 999px !important;
}

.select2-container--default .select2-search--inline .select2-search__field{
  color: var(--p-text) !important;
}

.select2-dropdown{
  background: rgba(15,15,22,.95) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow: var(--p-shadow) !important;
}
.select2-results__option{
  color: var(--p-text) !important;
}
.select2-container--default .select2-results__option--highlighted[aria-selected]{
  background: linear-gradient(135deg, rgba(255,77,141,.18), rgba(245,200,106,.12)) !important;
}

/* Sidebar container */
.nudara-sidebar {
  position: relative;
}

.nudara-sidebar .card-settings {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border: 1px solid rgba(255, 200, 180, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  margin-bottom: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.nudara-sidebar small {
  color: rgba(255, 200, 180, 0.85) !important;
  letter-spacing: 1.2px;
  font-size: 11px;
}

.nudara-sidebar .list-group {
  gap: 6px;
  padding: 8px;
}

.nudara-sidebar .list-group-item {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  color: #eee;
  transition: all 0.25s ease;
}

.nudara-sidebar .list-group-item i {
  color: #e7b7a5;
  font-size: 16px;
}

.nudara-sidebar .icon-chevron-right {
  opacity: 0.5;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nudara-sidebar .list-group-item:hover {
  background: rgba(255, 200, 180, 0.08);
  border-color: rgba(255, 200, 180, 0.35);
  transform: translateX(4px);
}

.nudara-sidebar .list-group-item:hover .icon-chevron-right {
  opacity: 1;
  transform: translateX(4px);
}

.nudara-sidebar .list-group-item.active {
  background: linear-gradient(
    135deg,
    rgba(255, 190, 170, 0.35),
    rgba(255, 140, 120, 0.25)
  );
  border-color: rgba(255, 200, 180, 0.9);
  color: #000;
  box-shadow: 0 0 18px rgba(255, 170, 150, 0.45);
}

.nudara-sidebar .list-group-item.active i {
  color: #000;
}

.nudara-sidebar .badge {
  background: linear-gradient(
    135deg,
    #ffb199,
    #ff6f61
  );
  color: #000;
  font-weight: 700;
  border-radius: 999px;
}

.btn-menu-expand {
  background: linear-gradient(135deg, #ffb199, #ff6f61);
  color: #000;
  border-radius: 12px;
  font-weight: 700;
  border: none;
  box-shadow: 0 8px 20px rgba(255, 160, 140, 0.5);
}

.btn-menu-expand:hover {
  opacity: 0.9;
}

:root{
  --tiktok-header-h: 80px;
}

.tiktok-explore{
  background: radial-gradient(circle at top, #2b1c1f, #0b0b0d 60%);
  height: 100dvh; /* better on mobile than 100vh */
  padding-top: var(--tiktok-header-h);
  box-sizing: border-box;
  overflow: hidden; /* important */
  position: relative;
}

.tiktok-feed{
  height: calc(100dvh - var(--tiktok-header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tiktok-feed::-webkit-scrollbar{ width: 0; }

.tiktok-post{
  height: calc(100dvh - var(--tiktok-header-h));
  min-height: calc(100dvh - var(--tiktok-header-h));
  scroll-snap-align: start;
  scroll-snap-stop: always;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  display: block;
}

.tiktok-post .card-body,
.tiktok-post .card-footer{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}

.tiktok-stage{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.tiktok-frame{
  position: relative;
  height: 100%;
  width: clamp(320px, 32vw, 460px);
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(0,0,0,.55);
}

@media (max-width: 576px){
  .tiktok-frame{
    width: min(94vw, 460px);
    height: 100%;
    border-radius: 12px;
  }
}

.tiktok-media{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tiktok-media-item{
  width: 100%;
  height: 100%;
  object-fit: contain; /* Instagram vibe */
  display: block;
  border: 0;
}

.tiktok-actions{
  position: absolute;
  right: 12px;
  bottom: 92px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tiktok-action{
  color: #fff;
  text-align: center;
  text-decoration: none;
  user-select: none;
}
.tiktok-action i{
  font-size: 24px;
  line-height: 1;
}
.tiktok-action small{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: .9;
}

.tiktok-actions .btnLike.active i{
  color: #ff4d6d !important;
}
.tiktok-actions .is-saved i{
  color: #ffb199 !important;
}

.tiktok-info{
  position: absolute;
  left: 12px;
  right: 70px; /* space for actions */
  bottom: 14px;
  z-index: 20;
  color: #fff;
}

.tiktok-info::before{
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  bottom: -14px;
  height: 180px;
  background: linear-gradient(to top, rgba(0,0,0,.65), rgba(0,0,0,0));
  pointer-events: none;
  z-index: -1;
}

.tiktok-userrow{
  display: flex;
  align-items: center;
  gap: 10px;
}
.tiktok-avatar{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ffb199;
}

.tiktok-usertext{ min-width: 0; }
.tiktok-name{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}
.tiktok-verified{
  color: #ffb199;
  font-size: 14px;
}

.tiktok-meta{
  font-size: 12px;
  opacity: .85;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tiktok-meta .dot{ opacity: .7; }

.tiktok-desc{
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.25;
  opacity: .95;
  max-width: 95%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tiktok-audio{
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 88px; /* above info area */
  z-index: 15;
}
.tiktok-audio audio{ width: 100%; }

@media (max-width: 576px){
  .tiktok-frame{
    width: min(94vw, 460px);
    height: 100%;
    border-radius: 12px;
  }
  .tiktok-actions{
    right: 10px;
    bottom: 86px;
    gap: 14px;
  }
  .tiktok-action i{ font-size: 22px; }
}
.tiktok-comments-sheet{
  z-index: 50;
  display: none;
  position: absolute;
  inset: 0;
}
.tiktok-comments-sheet.is-open{ display:block; }

.tiktok-comments-backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.55);
}

.tiktok-comments-panel{
  position:absolute;
  left:0; right:0; bottom:0;
  height: 70%;
  background: rgba(15,15,18,.95);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  overflow:hidden;

  transform: translateY(100%);
  transition: transform .25s ease;
}
.tiktok-comments-sheet.is-open .tiktok-comments-panel{ transform: translateY(0); }

.tiktok-comments-head{
  display:flex; align-items:center; justify-content:space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color:#fff;
  height: 52px;
}

.tiktok-comments-input{
  border-top:1px solid rgba(255,255,255,.08);
  padding: 10px 12px;
  background: rgba(0,0,0,.25);
  height: 62px;
}

.tiktok-comments-list{
  padding: 12px 14px;
  overflow:auto;
  height: calc(100% - 52px - 62px);
}

.ttInputComment{
  width:100%;
  background: rgba(255,255,255,.08);
  color:#fff;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.10);
}
.ttInputComment::placeholder{ color: rgba(255,255,255,.6); }

.ttEmptyComments{
  height: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  padding: 10px;
}
.ttEmptyComments i{
  font-size: 22px;
  display:block;
  margin-bottom: 8px;
  opacity: .9;
}

.ui-close-rose{
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    linear-gradient(145deg,
      rgba(255,255,255,.10),
      rgba(255,255,255,.02)
    ),
    radial-gradient(circle at top left,
      rgba(255,77,141,.35),
      rgba(245,200,106,.25)
    );

  border: 1px solid var(--p-border);
  color: var(--p-text);

  box-shadow: var(--p-shadow-sm);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  cursor: pointer;
  transition: all .25s ease;
}

.ui-close-rose i{
  font-size: 14px;
  z-index: 2;
}

.ui-close-ring{
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: var(--p-glow-rose);
  opacity: .65;
  transition: opacity .25s ease;
}

.ui-close-rose:hover{
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    var(--p-shadow-sm),
    0 0 0 1px rgba(255,77,141,.35);
}
.ui-close-rose:hover .ui-close-ring{
  opacity: 1;
}

.ui-close-rose:active{
  transform: scale(.96);
}

.ui-close-rose:focus-visible{
  outline: none;
  box-shadow: var(--p-focus);
}