:root{
  --bg: #f6f8fc;
  --card: #ffffff;
  --text: #0f172a;
  --muted:#64748b;
  --border:#e6eaf2;
  --sidebar-w: 248px;

  --fz-navy-1:#0b2342;
  --fz-navy-2:#071a33;
  --fz-green:#A6D608; /* brand green (logo) */
  --fz-green-2:#74E147;

  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, .08);
}

/* Base */
html{
  overflow-x: hidden !important;
}
body{
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden !important;
  max-width: 100% !important;
}

.text-white-75{ color: rgba(255,255,255,.75) !important; }

/* Topbar */
.topbar{
  background: radial-gradient(1200px 500px at 10% 0%, rgba(107, 114, 255, .35), transparent 60%),
              radial-gradient(900px 500px at 90% 10%, rgba(14, 165, 233, .25), transparent 60%),
              linear-gradient(180deg, #0b1430, #111a3a);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-logo{ width: 34px; height: 34px; }
.brand-name{
  font-weight: 800;
  color: #fff;
  letter-spacing: .2px;
  font-size: 1.05rem;
}

.searchbar{
  position: relative;
  width: min(560px, 48vw);
}
.searchbar i{
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  z-index: 2;
}
.searchbar .form-control{
  padding-left: 42px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 14px;
}
.searchbar .form-control::placeholder{ color: rgba(255,255,255,.70); }
.searchbar .form-control:focus{
  box-shadow: 0 0 0 .25rem rgba(91, 94, 247, .25);
  border-color: rgba(255,255,255,.25);
}

.icon-btn{
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #fff;
  display: grid;
  place-items: center;
}
.icon-btn:hover{ background: rgba(255,255,255,.12); }
.icon-btn .dot{
  position: absolute;
  width: 9px;
  height: 9px;
  right: 10px;
  top: 9px;
  border-radius: 50%;
  background: #ff4d6d;
  border: 2px solid #0f1736;
}

.wallet-pill{
  padding: 10px 12px 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.08);
  color: #fff;
}

.avatar{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
}

/* App layout */
.app{
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 88px);
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Make content area stay inside its grid column */
.main{
  min-width: 0;
  overflow-x: hidden !important;
  width: 100%;
}



/* Sidebar (SaaS dark style) — background handled in responsive blocks below */
.sidebar{
  box-shadow: 0 18px 40px rgba(2,6,23,.35);
}
.sidebar .sidebar-title{
  color: rgba(255,255,255,.88);
  letter-spacing: .2px;
}
.sidebar .sidebar-subtitle{ color: rgba(255,255,255,.55); }

.sidebar-nav{
  padding: 14px 12px 18px;
}
.sidebar .nav-link{
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 10px 16px;
  margin: 6px 6px;
  border-radius: 14px;
  color: rgba(226,232,240,.86);
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  position: relative;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.sidebar .nav-link .icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.20);
  box-shadow: 0 10px 22px rgba(2,6,23,.20);
}
.sidebar .nav-link .icon i{
  color: rgba(226,232,240,.92);
  font-size: 15px;
}
.sidebar .nav-link:hover{
  transform: translateX(2px);
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.10);
}
.sidebar .nav-link.active{
  background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(34,197,94,.10));
  border-color: rgba(34,197,94,.40);
  box-shadow: 0 16px 26px rgba(34,197,94,.12);
  color: #ffffff;
}
.sidebar .nav-link.active::before{
  content:"";
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 26px;
  border-radius: 99px;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}
.sidebar .nav-link.active .icon{
  background: rgba(34,197,94,.22);
  border-color: rgba(34,197,94,.42);
}
.sidebar .nav-section-label{
  margin: 14px 16px 6px;
  color: rgba(255,255,255,.45);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
}

/* Make content background lighter (SaaS) — layout rules are near .app above */
.main{
  background: linear-gradient(180deg, #f6f9ff 0%, #f4f7fb 50%, #f6f9ff 100%);
}


/* Cards */
.card-soft{
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--card);
}

.card-glow{
  background: radial-gradient(900px 300px at 80% 0%, rgba(34, 197, 94, .10), transparent 60%),
              radial-gradient(800px 260px at 10% 20%, rgba(14, 165, 233, .12), transparent 60%),
              var(--card);
}

.card-watermark{
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 180px;
  opacity: .10;
  pointer-events: none;
}
.card-glow .card-body{ position: relative; }

/* KPI cards (colorful) */
.kpi-card{
  position: relative;
  border-radius: 22px;
  padding: 18px 18px 16px;
  min-height: 160px;
  color: #0b1220;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.55);
}
.kpi-icon{
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 10px 20px rgba(2,6,23,.12);
}
.kpi-title{
  font-weight: 700;
  color: rgba(15,23,42,.85);
}
.kpi-value{
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.kpi-pattern{
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 140px;
  opacity: .20;
  pointer-events: none;
  filter: blur(.2px);
}

/* Gradients */
.kpi-blue{
  background: radial-gradient(900px 260px at 20% 0%, rgba(255,255,255,.45), transparent 55%),
              linear-gradient(135deg, #69C6FF, #2F6BFF);
}
.kpi-blue .kpi-icon{ background: linear-gradient(135deg, #2F6BFF, #0EA5E9); }

.kpi-green{
  background: radial-gradient(900px 260px at 20% 0%, rgba(255,255,255,.45), transparent 55%),
              linear-gradient(135deg, #A8FFCE, #22C55E);
}
.kpi-green .kpi-icon{ background: linear-gradient(135deg, #22C55E, #16A34A); }

.kpi-purple{
  background: radial-gradient(900px 260px at 20% 0%, rgba(255,255,255,.45), transparent 55%),
              linear-gradient(135deg, #E7B6FF, #7C3AED);
}
.kpi-purple .kpi-icon{ background: linear-gradient(135deg, #7C3AED, #5B5EF7); }

.kpi-orange{
  background: radial-gradient(900px 260px at 20% 0%, rgba(255,255,255,.45), transparent 55%),
              linear-gradient(135deg, #FFE6A6, #F97316);
}
.kpi-orange .kpi-icon{ background: linear-gradient(135deg, #F97316, #F59E0B); }

/* Badges & chips */
.kpi-badge{
  font-weight: 800;
  font-size: .82rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.7);
}
.kpi-badge.positive{ color: #0f7a3b; }
.kpi-badge.negative{ color: #b42318; }

.chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: .85rem;
  padding: 6px 10px;
  border-radius: 999px;
}
.chip.positive{ background: rgba(34,197,94,.12); color: #0f7a3b; }
.chip.negative{ background: rgba(239,68,68,.12); color: #b42318; }

/* Section icons */
.section-icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 22px rgba(2,6,23,.10);
}
.bg-indigo{ background: linear-gradient(135deg, #5B5EF7, #7C3AED); }
.bg-sky{ background: linear-gradient(135deg, #0EA5E9, #2F6BFF); }

/* Mini stats */
.mini-stat{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(248,250,252,.8);
}
.mini-icon{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(91,94,247,.12);
  color: #3b4ef7;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.mini-label{
  font-size: .82rem;
  color: var(--muted);
}
.mini-value{
  font-weight: 900;
  font-size: 1.15rem;
}

.mini-wide{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(248,250,252,.8);
}

/* Metric pills */
.metric-pill{
  flex: 1 1 260px;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(248,250,252,.85);
}

/* Quick stats */
.quick-card{
  background: radial-gradient(900px 320px at 80% 0%, rgba(249,115,22,.10), transparent 60%),
              radial-gradient(800px 260px at 10% 20%, rgba(124,58,237,.10), transparent 60%),
              var(--card);
}
.quick-item{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(100,116,139,.25);
}
.quick-item:last-child{ border-bottom: 0; }

.quick-ic{
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  color:#fff;
}
.bg-amber{ background: linear-gradient(135deg, #F59E0B, #F97316); }
.bg-violet{ background: linear-gradient(135deg, #7C3AED, #5B5EF7); }

/* Chart placeholder */
.chart-placeholder{
  height: 160px;
  border-radius: 18px;
  border: 1px dashed rgba(100,116,139,.35);
  background: linear-gradient(180deg, rgba(91,94,247,.06), rgba(14,165,233,.03));
  display:grid;
  place-items:center;
}

/* Responsive */
@media (max-width: 991.98px){
  .app{ grid-template-columns: 1fr; }
}



/* Subscriptions page */
.table-soft{
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 16px;
}
.table-soft thead th{
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(241,245,249,.75);
  border-bottom: 1px solid var(--border) !important;
}
.table-soft td{
  vertical-align: middle;
  border-color: rgba(230,234,242,.9) !important;
}
.table-soft tbody tr:hover{
  background: rgba(91,94,247,.05);
}
.avatar-xs{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}
.pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.65);
  font-weight: 700;
}
.status-pill{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .78rem;
  border: 1px solid rgba(15,23,42,.08);
}
.status-pill.active{
  background: rgba(34,197,94,.12);
  color: #166534;
  border-color: rgba(34,197,94,.22);
}
.status-pill.expired{
  background: rgba(239,68,68,.10);
  color: #991b1b;
  border-color: rgba(239,68,68,.18);
}

.status-pill .dot{width:8px;height:8px;border-radius:99px;background:currentColor;display:inline-block;opacity:.8;}


/* Coins page */
.coins-banner{
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.16);
  background: linear-gradient(135deg, rgba(91,94,247,.95), rgba(14,165,233,.88));
  box-shadow: 0 18px 40px rgba(2,6,23,.18);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.coins-banner:after{
  content:"";
  position:absolute; inset:-40px -120px auto auto;
  width: 320px; height: 320px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  filter: blur(0px);
}
.coins-balance{
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}
.coins-subtext{ opacity:.9; }
.form-soft .form-control, .form-soft .form-select{
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
}
.form-soft .form-control:focus, .form-soft .form-select:focus{
  box-shadow: 0 0 0 .25rem rgba(91,94,247,.12);
  border-color: rgba(91,94,247,.35);
}
.radio-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 14px;
  background: #fff;
  display:flex;
  align-items:flex-start;
  gap: 12px;
}
.radio-card:hover{ background: rgba(241,245,249,.7); }
.radio-card .small{ color: var(--muted); }
.btn-hero{
  border:0;
  border-radius: 999px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 16px 30px rgba(34,197,94,.22);
  color:#fff;
  font-weight: 900;
}


/* Gifts page */
.kpi-mini{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.75);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.kpi-mini .val{ font-size: 1.35rem; font-weight: 900; }
.kpi-mini .lbl{ color: var(--muted); font-size: .85rem; }
.gift-icon{
  width: 42px; height: 42px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.15);
  display:grid; place-items:center;
}
.gift-thumb{
  width: 46px; height: 46px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  display:grid; place-items:center;
  overflow:hidden;
}
.gift-thumb img{ width: 34px; height: 34px; object-fit: contain; }


/* Referrals page */
.ref-hero{
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    radial-gradient(420px 260px at 15% 20%, rgba(91,94,247,.30), transparent 60%),
    radial-gradient(420px 260px at 70% 0%, rgba(14,165,233,.22), transparent 55%),
    linear-gradient(135deg, rgba(15,23,42,.92), rgba(2,6,23,.75));
  color: #fff;
  box-shadow: 0 18px 40px rgba(2,6,23,.22);
  overflow:hidden;
  position:relative;
}
.ref-hero:after{
  content:"";
  position:absolute;
  right:-140px; top:-140px;
  width: 320px; height: 320px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}
.ref-link{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff;
}
.ref-link::placeholder{ color: rgba(255,255,255,.7); }
.ref-link:focus{
  color:#fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.28);
  box-shadow: 0 0 0 .25rem rgba(91,94,247,.18);
}
.btn-copy{
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(255,255,255,.14);
  color:#fff;
  border-radius: 14px;
}
.btn-copy:hover{ background: rgba(255,255,255,.20); color:#fff; }


/* Stories page */
.story-grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.story-card{
  grid-column: span 3;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow:hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.story-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(2,6,23,.10);
}
.story-thumb{
  position: relative;
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, rgba(91,94,247,.18), rgba(14,165,233,.14));
  display:flex;
  align-items:center;
  justify-content:center;
}
.story-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
}
.story-badge{
  position:absolute;
  left: 10px;
  top: 10px;
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,.62);
  color:#fff;
  font-weight: 800;
  font-size: .78rem;
}
.story-actions{
  position:absolute;
  right: 10px;
  top: 10px;
  display:flex;
  gap: 8px;
}
.story-actions .btn{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(15,23,42,.45);
  color:#fff;
}
.story-meta{
  padding: 14px 14px;
}
.story-title{
  font-weight: 900;
  margin: 0;
  font-size: .98rem;
}
.story-sub{
  color: var(--muted);
  font-size: .85rem;
  margin: 4px 0 0 0;
}
@media (max-width: 1200px){
  .story-card{ grid-column: span 4; }
}
@media (max-width: 768px){
  .story-card{ grid-column: span 6; }
}
@media (max-width: 520px){
  .story-card{ grid-column: span 12; }
}


/* Verified account page */
.verify-card{
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: 0 18px 40px rgba(2,6,23,.10);
  overflow:hidden;
}
.verify-banner{
  border-radius: 18px;
  border: 1px solid rgba(34,197,94,.25);
  background: linear-gradient(135deg, rgba(34,197,94,.20), rgba(14,165,233,.14));
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}
.verify-banner .icon{
  width: 42px; height: 42px;
  border-radius: 16px;
  background: rgba(34,197,94,.18);
  display:grid;
  place-items:center;
  color: #16a34a;
  border: 1px solid rgba(34,197,94,.20);
}
.verify-banner h6{
  margin:0;
  font-weight: 900;
}
.verify-banner p{
  margin:0;
  color: var(--muted);
  font-size: .9rem;
}
.verify-step{
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}
.verify-step .step-icon{
  width: 44px; height: 44px;
  border-radius: 16px;
  display:grid;
  place-items:center;
  background: rgba(91,94,247,.10);
  color: var(--primary);
  border: 1px solid rgba(91,94,247,.18);
}


/* Subscription price page */
.form-panel{
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: 0 18px 40px rgba(2,6,23,.10);
}
.price-row{
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
}
.price-row .label{
  font-weight: 900;
}
.price-row .hint{
  color: var(--muted);
  font-size: .85rem;
}
.price-row .input-group-text{
  border-radius: 14px 0 0 14px;
}
.price-row .form-control{
  border-radius: 0 14px 14px 0;
}
.switch-pill{
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 12px 10px 16px;
  background: rgba(255,255,255,.65);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.switch-pill .t{
  font-weight: 900;
}
.switch-pill .d{
  color: var(--muted);
  font-size: .85rem;
}


/* My subscribers page */
.table-actions .btn{
  border-radius: 12px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .78rem;
  border: 1px solid transparent;
}
.pill-success{
  background: rgba(34,197,94,.16);
  border-color: rgba(34,197,94,.22);
  color: #15803d;
}
.pill-muted{
  background: rgba(148,163,184,.18);
  border-color: rgba(148,163,184,.25);
  color: #475569;
}
.subscriber-avatar{
  width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(91,94,247,.20), rgba(14,165,233,.14));
  display:grid;
  place-items:center;
  color: var(--primary);
  border: 1px solid rgba(91,94,247,.16);
}


/* Privacy & security page */
.session-item{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 14px;
}
.session-item .device{
  font-weight: 900;
}
.session-item .meta{
  color: var(--muted);
  font-size: .85rem;
}
.toggle-list .form-check{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  margin: 0;
}
.toggle-list .form-check-label{
  font-weight: 800;
}
.toggle-list .desc{
  color: var(--muted);
  font-size: .85rem;
  font-weight: 600;
  margin-top: 2px;
}


/* Password page */
.password-panel{
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.85);
  box-shadow: 0 18px 40px rgba(2,6,23,.10);
}
.input-icon{
  position: relative;
}
.input-icon i{
  position:absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.input-icon .form-control{
  padding-left: 44px;
  border-radius: 14px;
}
.password-strength{
  height: 8px;
  border-radius: 999px;
  background: rgba(148,163,184,.22);
  overflow:hidden;
}
.password-strength .bar{
  height: 100%;
  width: 55%;
  background: linear-gradient(90deg, #f59e0b, #22c55e);
  border-radius: 999px;
}


/* Block countries page */
.chip-input{
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 10px 10px;
  background: rgba(255,255,255,.86);
}
.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
  align-items:center;
}
.chip{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(91,94,247,.12);
  border: 1px solid rgba(91,94,247,.20);
  color: #2b2d5c;
  font-weight: 800;
  font-size: .85rem;
}
.chip .x{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(2,6,23,.08);
  cursor:pointer;
}
.chip .x:hover{ background: rgba(2,6,23,.14); }
.chip-field{
  min-width: 180px;
  flex: 1 1 auto;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  padding: 8px 6px;
}
.country-list{
  max-height: 260px;
  overflow:auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
}
.country-list .item{
  padding: 10px 12px 10px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  cursor:pointer;
}
.country-list .item:hover{
  background: rgba(2,132,199,.08);
}


/* My page (profile) */
.cover{
  border-radius: 22px;
  overflow:hidden;
  position: relative;
  min-height: 260px;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.22), transparent 35%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,.18), transparent 40%),
              linear-gradient(135deg, rgba(91,94,247,.95), rgba(14,165,233,.85), rgba(34,197,94,.75));
}
.cover::after{
  content:"";
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(circle at 10% 40%, rgba(255,255,255,.18), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(255,255,255,.14), transparent 55%);
  filter: blur(0px);
  pointer-events:none;
}
.cover-actions{
  position:absolute;
  left: 18px;
  top: 18px;
  display:flex;
  gap: 10px;
  z-index:2;
}
.profile-card{
  margin-top:-64px;
}
.avatar-xl{
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 6px solid rgba(255,255,255,.85);
  background: linear-gradient(135deg, rgba(91,94,247,.25), rgba(14,165,233,.18));
  display:grid;
  place-items:center;
  box-shadow: 0 18px 40px rgba(2,6,23,.18);
}
.profile-actions .btn{
  border-radius: 14px;
}
.tabs-pills .nav-link{
  border-radius: 16px;
  padding: 10px 14px;
  font-weight: 800;
  color: #0f172a;
  background: rgba(2,6,23,.04);
  border: 1px solid rgba(148,163,184,.35);
}
.tabs-pills .nav-link.active{
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, rgba(91,94,247,.95), rgba(14,165,233,.75));
  box-shadow: 0 14px 28px rgba(2,6,23,.14);
}
.composer{
  border-radius: 22px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.86);
}
.post-card{
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #fff;
}
.post-meta{
  color: var(--muted);
  font-size: .85rem;
}
.icon-btn{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(2,6,23,.03);
  display:grid;
  place-items:center;
}
.icon-btn:hover{ background: rgba(2,6,23,.06); }

/* My page (profile) v2 enhancements */
.cover{
  min-height: 280px;
  background:
    radial-gradient(circle at 18% 35%, rgba(255,255,255,.18), transparent 45%),
    radial-gradient(circle at 82% 20%, rgba(255,255,255,.14), transparent 48%),
    radial-gradient(circle at 65% 80%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(135deg, rgba(91,94,247,.98), rgba(14,165,233,.82), rgba(34,197,94,.72));
}
.cover::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(2,6,23,.18), transparent 55%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 10px);
  mix-blend-mode: overlay;
  opacity:.7;
  pointer-events:none;
}
.cover-actions .btn{
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(2,6,23,.32);
  backdrop-filter: blur(10px);
}
.cover-actions .btn:hover{ background: rgba(2,6,23,.44); }

.profile-card{
  border-radius: 26px;
}
.avatar-xl{
  width: 104px;
  height: 104px;
  border-radius: 28px;
  border: 6px solid rgba(255,255,255,.92);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.35), transparent 40%),
              linear-gradient(135deg, rgba(91,94,247,.28), rgba(14,165,233,.18));
}
.avatar-xl i{ filter: drop-shadow(0 10px 18px rgba(2,6,23,.18)); }

.profile-actions .btn{
  padding: 10px 14px;
}
.btn-gradient{
  color:#fff !important;
  border: 0;
  background: linear-gradient(135deg, rgba(91,94,247,.98), rgba(14,165,233,.78));
  box-shadow: 0 16px 30px rgba(2,6,23,.18);
}
.btn-gradient:hover{ filter: brightness(1.03); }

.meta-chips .pill{
  border-radius: 999px;
  padding: 8px 10px;
}

.tabs-pills .nav-link{
  background: rgba(2,6,23,.03);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tabs-pills .nav-link:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2,6,23,.08);
}
.tabs-pills .nav-link .count{
  width: 30px; height: 30px;
  display:grid; place-items:center;
  border-radius: 10px;
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(148,163,184,.30);
  font-weight: 900;
}

.composer{
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(2,6,23,.08);
}
.composer textarea{
  border: 1px solid rgba(148,163,184,.35);
  background: rgba(255,255,255,.9);
}
.toolbar .icon-btn{
  width: 42px; height: 42px;
  border-radius: 16px;
  background: rgba(2,6,23,.02);
}
.toolbar .icon-btn.primary{ background: rgba(91,94,247,.10); border-color: rgba(91,94,247,.22); }
.toolbar .icon-btn.info{ background: rgba(14,165,233,.10); border-color: rgba(14,165,233,.22); }
.toolbar .icon-btn.success{ background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.22); }
.toolbar .icon-btn.warn{ background: rgba(245,158,11,.10); border-color: rgba(245,158,11,.22); }
.toolbar .icon-btn.danger{ background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.22); }

.post-card{
  border-radius: 26px;
  box-shadow: 0 16px 42px rgba(2,6,23,.08);
}
.post-actions .icon-btn{
  width: 44px; height: 44px;
  border-radius: 16px;
}
.post-actions .icon-btn:hover{
  transform: translateY(-1px);
}


/* Icon visibility fixes */
.toolbar .icon-btn{ color:#0f172a; }
.toolbar .icon-btn.primary{ color:#1d4ed8; }
.toolbar .icon-btn.info{ color:#0369a1; }
.toolbar .icon-btn.success{ color:#166534; }
.toolbar .icon-btn.warn{ color:#92400e; }
.toolbar .icon-btn.danger{ color:#9f1239; }

.post-actions .icon-btn{ color:#334155; background: rgba(2,6,23,.02); border-color: rgba(148,163,184,.30); }
.post-actions .icon-btn:hover{ color:#0f172a; background: rgba(91,94,247,.08); border-color: rgba(91,94,247,.18); }



/* Timeline page */
.avatar{ width:46px; height:46px; border-radius:16px; overflow:hidden; background: rgba(2,6,23,.04); display:flex; align-items:center; justify-content:center; }
.avatar img{ width:100%; height:100%; object-fit:cover; }
.avatar-lg{ width:58px; height:58px; border-radius:18px; }

.btn-icon-soft{
  width:42px; height:42px;
  display:inline-flex; align-items:center; justify-content:center;
  border-radius:14px;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(255,255,255,.75);
  color: #0f172a;
  transition: all .15s ease;
}
.btn-icon-soft:hover{
  transform: translateY(-1px);
  background: rgba(91,94,247,.10);
  border-color: rgba(91,94,247,.22);
  color: #111827;
}

.composer-input{
  border-radius: 18px;
  padding: 14px 14px;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(255,255,255,.85);
}
.composer-input:focus{
  box-shadow: 0 0 0 .25rem rgba(91,94,247,.14);
  border-color: rgba(91,94,247,.45);
}

.btn-action{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,.30);
  background: rgba(255,255,255,.80);
  color:#0f172a;
}
.btn-action i{ font-size: 1.05rem; opacity:.85; }
.btn-action:hover{
  transform: translateY(-1px);
  background: rgba(91,94,247,.10);
  border-color: rgba(91,94,247,.22);
  color:#0f172a;
}
.dot-sep{ width:4px; height:4px; border-radius:999px; background: rgba(148,163,184,.8); display:inline-block; }

.creator-card{
  position:relative;
  display:block;
  border-radius: 18px;
  overflow:hidden;
  height: 108px;
  text-decoration:none;
  box-shadow: 0 18px 40px rgba(2,6,23,.12);
}
.creator-overlay{
  position:absolute; inset:0;
  padding: 16px;
  background: linear-gradient(90deg, rgba(2,6,23,.62), rgba(2,6,23,.18));
}
.creator-avatar{
  width:48px; height:48px; border-radius: 18px; overflow:hidden;
  border: 2px solid rgba(255,255,255,.65);
  background: rgba(255,255,255,.25);
}
.creator-avatar img{ width:100%; height:100%; object-fit:cover; }

.creator-bg-1{ background: radial-gradient(1200px 300px at 20% 30%, rgba(91,94,247,.8), rgba(2,6,23,.92)); }
.creator-bg-2{ background: radial-gradient(1200px 300px at 20% 30%, rgba(34,197,94,.72), rgba(2,6,23,.92)); }
.creator-bg-3{ background: radial-gradient(1200px 300px at 20% 30%, rgba(245,158,11,.78), rgba(2,6,23,.92)); }


/* ===== FansZone Brand Green Theme ===== */
:root{
  --fz-green:#9ACD32;
  --fz-dark:#1f2937;
  --fz-gradient:linear-gradient(135deg,#9ACD32 0%,#5f8f1f 100%);
}

.navbar{
  background:var(--fz-gradient) !important;
}

.sidebar .nav-link.active{
  background:var(--fz-green) !important;
  color:#fff !important;
}

.btn-primary{
  background:var(--fz-green) !important;
  border-color:var(--fz-green) !important;
}

.btn-primary:hover{
  background:#5f8f1f !important;
  border-color:#5f8f1f !important;
}

.cover-gradient{
  background:var(--fz-gradient) !important;
}

.badge-verified{
  background:var(--fz-green) !important;
}

.logo-img{
  height:42px;
}



/* ===== FansZone Green Boost Theme ===== */
:root{
  --fz-green:#9ACD32;          /* brand */
  --fz-green-700:#5f8f1f;      /* darker */
  --fz-green-100:#ecf7d6;      /* tint */
  --fz-green-50:#f7fbef;       /* subtle tint */
  --fz-border:#dbe7c1;         /* greenish border */
  --fz-shadow:0 10px 30px rgba(95,143,31,.14);
}

/* Global accents */
a{ color: var(--fz-green-700); }
a:hover{ color: var(--fz-green); }

/* Primary buttons everywhere */
.btn-primary,
.btn-primary:focus{
  background: var(--fz-green) !important;
  border-color: var(--fz-green) !important;
  box-shadow: 0 10px 20px rgba(154,205,50,.22) !important;
}
.btn-primary:hover{
  background: var(--fz-green-700) !important;
  border-color: var(--fz-green-700) !important;
}

.btn-outline-primary{
  color: var(--fz-green-700) !important;
  border-color: rgba(154,205,50,.55) !important;
  background: transparent !important;
}
.btn-outline-primary:hover{
  color:#fff !important;
  background: var(--fz-green) !important;
  border-color: var(--fz-green) !important;
}

/* Pills/chips + badges */
.badge-verified,
.badge.bg-success,
.badge.text-bg-success{
  background: var(--fz-green) !important;
}

.pill, .chip, .nav-pills .nav-link.active{
  background: rgba(154,205,50,.16) !important;
  color: var(--fz-green-700) !important;
  border: 1px solid rgba(154,205,50,.25) !important;
}
.nav-pills .nav-link.active{
  background: var(--fz-green) !important;
  color:#fff !important;
}

/* Sidebar active highlight */
.sidebar .nav-link.active{
  background: rgba(154,205,50,.18) !important;
  border-left: 4px solid var(--fz-green) !important;
  color: var(--fz-green-700) !important;
}

/* Card styling: subtle green tint + soft shadow */
.card,
.fz-card{position:relative;overflow:hidden;
  border-color: rgba(154,205,50,.18) !important;
  box-shadow: var(--fz-shadow);
}
.card.bg-soft,
.bg-soft-green{
  background: linear-gradient(180deg, var(--fz-green-50) 0%, #ffffff 55%) !important;
}

/* Make stats/summary cards greener */
.stat-card,
.metric-card{
  background: linear-gradient(135deg, rgba(154,205,50,.22) 0%, rgba(154,205,50,.10) 45%, rgba(255,255,255,1) 100%) !important;
  border: 1px solid rgba(154,205,50,.22) !important;
}

/* Table header accent */
.table thead th{
  background: rgba(154,205,50,.14) !important;
  color: var(--fz-dark) !important;
  border-bottom: 1px solid rgba(154,205,50,.24) !important;
}

/* Inputs focus ring */
.form-control:focus, .form-select:focus{
  border-color: rgba(154,205,50,.55) !important;
  box-shadow: 0 0 0 .25rem rgba(154,205,50,.20) !important;
}

/* Small icon buttons */
.btn-icon, .icon-btn{
  border: 1px solid rgba(154,205,50,.25) !important;
  background: rgba(154,205,50,.10) !important;
}
.btn-icon:hover, .icon-btn:hover{
  background: rgba(154,205,50,.18) !important;
  border-color: rgba(154,205,50,.35) !important;
}

/* Cover gradient more green-forward */
.cover-gradient,
.navbar{
  background: linear-gradient(135deg, #9ACD32 0%, #1fa36b 45%, #0b3a4b 100%) !important;
}

/* ===== Edit Page Fixes ===== */
.edit-page .card-header h6{ font-weight: 700; }
.edit-page .card-header{ padding-left: 1.25rem; padding-right: 1.25rem; }
.edit-page .card-body{ padding: 1.25rem; }
.edit-page .form-label{ font-weight: 600; }



/* ===== FansZone Latest Professional Sidebar ===== */

:root{
  --fz-green:#B7D63E;
  --fz-dark-1:#0b1630;
  --fz-dark-2:#0f2447;
  --fz-text:#d7def0;
  --fz-muted:rgba(215,222,240,.72);
}

.sidebar, .fz-sidebar{
  width: 260px;
  min-height: 100vh;
  padding: 18px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(15,36,71,.95), rgba(11,22,48,.95));
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}

.sidebar .nav-link,
#sidebarMenu .nav-link{
  position: relative;
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 14px;
  margin: 6px 6px;
  border-radius: 14px;
  color: var(--fz-text) !important;
  text-decoration:none;
  transition: .2s ease;
  font-weight:500;
}

.sidebar .nav-link i,
#sidebarMenu .nav-link i{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,255,255,.08);
  color: var(--fz-muted);
  font-size:18px;
}

.sidebar .nav-link:hover,
#sidebarMenu .nav-link:hover{
  background: rgba(183,214,62,.10);
  color: #fff !important;
}

.sidebar .nav-link:hover i,
#sidebarMenu .nav-link:hover i{
  color: var(--fz-green);
}

.sidebar .nav-link.active,
#sidebarMenu .nav-link.active{
  background: rgba(183,214,62,.18);
  color: #fff !important;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(183,214,62,.35);
}

.sidebar .nav-link.active i,
#sidebarMenu .nav-link.active i{
  background: rgba(183,214,62,.22);
  color: var(--fz-green);
}

/* ==========================================================
   RESPONSIVE FIXES — mobile layout & overflow prevention
   ========================================================== */

/* Topbar: never exceed viewport */
.topbar{
  max-width: 100%;
  overflow: hidden;
}

/* Topbar inner container: allow flex children to shrink */
.topbar .container-fluid{
  min-width: 0;
}

/* Brand name: ellipsis when screen is tiny */
@media (max-width: 400px){
  .brand-name{
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .85rem;
  }
  .wallet-pill{ display: none !important; }
}

/* Tablet (md) — hide wallet pill to save space */
@media (max-width: 767.98px){
  .wallet-pill{ display: none !important; }
}

/* Chip field: shrink min-width on small screens */
@media (max-width: 575.98px){
  .chip-field{ min-width: 100px; }
}

/* Input groups: ensure they never force horizontal overflow */
.input-group,
.input-group-text,
.form-control,
.form-select{
  min-width: 0;
}

/* Section cards / fz-section-card inside main: always full-width */
.fz-section-card,
.fz-card-outer,
.side-card,
.verify-card,
.password-panel{
  max-width: 100%;
  box-sizing: border-box;
}

/* Tables: scroll horizontally rather than push layout */
.main table{
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Responsive grid: single column on mobile for xl-only two-col layouts */
@media (max-width: 991.98px){
  .app{
    grid-template-columns: 1fr;
  }
}

/* Prevent any image from breaking layout */
.main img{
  max-width: 100%;
  height: auto;
}
