/* ============================================
   BIZ DUNIYA — SHARED STYLESHEET (responsive)
   ============================================ */
:root {
  --primary: 49 0 154;
  --on-primary: 255 255 255;
  --primary-container: 148 125 255;

  --secondary: 0 122 255;
  --on-secondary: 255 255 255;

  --tertiary: 98 70 234;
  --on-tertiary: 255 255 255;

  --surface: 255 255 255;
  --surface-container: 245 245 245;
  --surface-container-low: 250 250 250;
  --surface-container-high: 235 235 235;
  --surface-container-highest: 225 225 225;
  --surface-container-lowest: 255 255 255;

  --on-surface: 17 24 39;
  --on-surface-variant: 75 85 99;

  --background: 255 255 255;

  --outline: 156 163 175;
  --outline-variant: 209 213 219;

  --error: 220 38 38;
  --error-container: 254 226 226;
}
.dark {
  --primary: 202 190 255;
  --on-primary: 49 0 154;
  --primary-container: 148 125 255;

  --secondary: 72 241 229;
  --on-secondary: 0 55 51;

  --tertiary: 208 189 248;
  --on-tertiary: 54 40 88;

  --surface: 16 19 28;
  --surface-container: 28 31 41;
  --surface-container-low: 24 27 37;
  --surface-container-high: 39 42 52;
  --surface-container-highest: 50 52 63;
  --surface-container-lowest: 11 14 23;

  --on-surface: 224 226 239;
  --on-surface-variant: 201 196 216;

  --background: 16 19 28;

  --outline: 147 142 161;
  --outline-variant: 72 69 85;

  --error: 255 180 171;
  --error-container: 147 0 10;
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: "Hanken Grotesk", sans-serif;
  background: #10131c;
  color: #e0e2ef;
  overflow-x: hidden;
  margin: 0;
}
html.light body {
  background: #f0eeff;
  color: #1d1b27 !important;
}
.ms {
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
  display: inline-block;
  vertical-align: middle;
  font-family: "Material Symbols Outlined";
}
img {
  max-width: 100%;
  height: auto;
}

/* Glass */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
html.light .glass {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(103, 80, 164, 0.12);
}
.glass-hi {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(202, 190, 255, 0.2);
}
html.light .glass-hi {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(103, 80, 164, 0.2);
}
.MobileOne {
  --tw-gradient-to: #10131c var(--tw-gradient-to-position);
  --tw-gradient-from: #1c1f29 var(--tw-gradient-from-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
html.light .MobileOne {
  --tw-gradient-to: #f5f7fa var(--tw-gradient-to-position);
  --tw-gradient-from: #ffffff var(--tw-gradient-from-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
/* Mesh background */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 15% 25%,
      rgba(108, 59, 255, 0.18) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(72, 241, 229, 0.1) 0%,
      transparent 45%
    );
}
html.light .mesh {
  background:
    radial-gradient(
      circle at 15% 25%,
      rgba(103, 80, 164, 0.08) 0%,
      transparent 45%
    ),
    radial-gradient(
      circle at 85% 75%,
      rgba(72, 241, 229, 0.05) 0%,
      transparent 45%
    );
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;
  background: rgba(16, 19, 28, 0.5);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  height: 64px;
  display: flex;
  align-items: center;
}
html.light .site-nav {
  background: rgba(240, 238, 255, 0.7);
  border-color: rgba(103, 80, 164, 0.1);
}

/* Mobile dropdown menu (marketing nav) */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(16, 19, 28, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px 16px;
}
.mobile-menu.open {
  display: flex;
}
html.light .mobile-menu {
  background: rgba(240, 238, 255, 0.98);
}
.mob-link {
  padding: 12px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #c9c4d8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
html.light .mob-link {
  color: #4f378b;
}

/* Sidebar (app pages) */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 256px;
  z-index: 150;
  background: rgba(24, 27, 37, 0.85);
  backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transform: translateX(-256px);
  transition: transform 0.3s;
  overflow-y: auto;
}
.sidebar.open {
  transform: translateX(0);
}
html.light .sidebar {
  background: rgba(240, 238, 255, 0.95);
  border-color: rgba(103, 80, 164, 0.1);
}
@media (min-width: 768px) {
  .sidebar {
    transform: translateX(0);
  }
  .app-body {
    padding-left: 256px;
  }
}
.app-body {
  transition: padding 0.3s;
}
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 149;
}
.mobile-overlay.show {
  display: block;
}

/* Buttons */
.btn-p {
  background: #cabeff;
  color: #31009a;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  border-radius: 12px;
  padding: 11px 22px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 6px 18px rgba(202, 190, 255, 0.2);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}
.btn-p:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}
.btn-p:active {
  transform: scale(0.97);
}
.btn-s {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: #e0e2ef;
  font-weight: 600;
  font-size: 14px;
  border-radius: 12px;
  padding: 11px 22px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-s:hover {
  background: rgba(255, 255, 255, 0.07);
}
html.light .btn-s {
  border-color: rgba(103, 80, 164, 0.2);
  color: #1d1b27;
}
html.light .btn-s:hover {
  background: rgba(103, 80, 164, 0.07);
}
.btn-t {
  background: #48f1e5;
  color: #003733;
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  padding: 11px 22px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.btn-t:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

/* Sidebar nav links */
.snav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #c9c4d8;
  user-select: none;
  text-decoration: none;
}
.snav:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e0e2ef;
}
.snav.act {
  background: rgba(202, 190, 255, 0.1);
  color: #cabeff;
}
html.light .snav {
  color: #4f378b;
}
html.light .snav.act {
  background: rgba(103, 80, 164, 0.12);
  color: #381e72;
}

/* Inputs */
.inp {
  width: 100%;
  background: rgba(11, 14, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  color: #e0e2ef;
  outline: none;
  transition: all 0.2s;
  font-family: inherit;
}
.inp:focus {
  border-color: #cabeff;
  box-shadow: 0 0 0 3px rgba(202, 190, 255, 0.1);
}
.inp::placeholder {
  color: rgba(201, 196, 216, 0.35);
}
html.light .inp {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(103, 80, 164, 0.15);
  color: #1d1b27;
}
html.light .inp::placeholder {
  /* color: rgb(72, 70, 77); */
  color: gray;
}

/* Toggle */
.tog {
  width: 50px;
  height: 26px;
  border-radius: 999px;
  background: #32343f;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.3s;
  display: flex;
}
.tog-t {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #cabeff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s;
  box-shadow: 0 0 8px rgba(202, 190, 255, 0.4);
}

/* Cards */
.card-lift {
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.card-lift:hover {
  transform: translateY(-4px);
}
.stat {
  transition: transform 0.25s;
}
.stat:hover {
  transform: translateY(-4px);
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(-1deg);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
@keyframes fadeup {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.float-anim {
  animation: float 6s ease-in-out infinite;
}
.bob-anim {
  animation: bob 3s ease-in-out infinite;
}
.draw-line {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.5s ease-out forwards;
}
.sh-bar {
  position: relative;
  overflow: hidden;
}
.sh-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.12),
    transparent
  );
  animation: shimmer 2.5s infinite;
}
.pulse-dot {
  animation: pulse 2s infinite;
}
.fadeup {
  animation: fadeup 0.6s ease-out both;
}
.d1 {
  animation-delay: 0.1s;
}
.d2 {
  animation-delay: 0.2s;
}
.d3 {
  animation-delay: 0.3s;
}

::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-thumb {
  background: rgba(202, 190, 255, 0.15);
  border-radius: 10px;
}
.star-on {
  font-variation-settings: "FILL" 1;
  color: #cabeff;
}
html.light .star-on {
  color: #32343f;
}
.faq-body {
  display: none;
}
.faq-body.open {
  display: block;
}

.toast {
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: 16px;
  z-index: 9999;
  background: #cabeff;
  color: #31009a;
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 8px 24px rgba(202, 190, 255, 0.25);
  text-align: center;
}
.toast.on {
  transform: translateY(0);
  opacity: 1;
}
@media (min-width: 480px) {
  .toast {
    left: auto;
    max-width: 320px;
  }
}

.billing-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: #c9c4d8;
  border: none;
  background: transparent;
}
.billing-pill.act {
  background: rgba(202, 190, 255, 0.15);
  color: #cabeff;
}
html.light .star-on {
  color: #32343f;
}
.tab-b {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: #c9c4d8;
  border: none;
  background: transparent;
}
.tab-b.act {
  background: rgba(202, 190, 255, 0.15);
  color: #cabeff;
}
html.light .tab-b.act {
  color: #32343f;
}

/* ── Admin panel ── */
.adm-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}
.adm-table th {
  text-align: left;
  padding: 10px 14px;
  color: #938ea1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.adm-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}
.adm-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.badge-pro {
  background: rgba(202, 190, 255, 0.15);
  color: #cabeff;
}
.badge-free {
  background: rgba(255, 255, 255, 0.08);
  color: #c9c4d8;
}
.badge-active {
  background: rgba(72, 241, 229, 0.12);
  color: #48f1e5;
}
.badge-suspended {
  background: rgba(255, 180, 171, 0.15);
  color: #ffb4ab;
}
.badge-admin {
  background: rgba(231, 195, 101, 0.15);
  color: #e7c365;
}
.badge-paid {
  background: rgba(72, 241, 229, 0.12);
  color: #48f1e5;
}
.badge-pending {
  background: rgba(231, 195, 101, 0.15);
  color: #e7c365;
}
.badge-failed {
  background: rgba(255, 180, 171, 0.15);
  color: #ffb4ab;
}
.badge-refunded {
  background: rgba(255, 255, 255, 0.08);
  color: #c9c4d8;
}
.adm-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.adm-icon-btn:hover {
  background: rgba(255, 255, 255, 0.09);
}
.adm-icon-btn.danger:hover {
  background: rgba(255, 180, 171, 0.15);
  border-color: rgba(255, 180, 171, 0.3);
}
.adm-search {
  background: rgba(11, 14, 23, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  color: #e0e2ef;
  outline: none;
}
.adm-search:focus {
  border-color: #cabeff;
}

/* ── Blog ── */
.blog-card {
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.blog-card:hover {
  transform: translateY(-4px);
}
.prose-blog {
  line-height: 1.8;
  font-size: 16px;
}
.prose-blog h2 {
  font-family: "Clash Display", "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
}
.prose-blog h3 {
  font-family: "Clash Display", "Syne", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 1.5rem 0 0.75rem;
}
.prose-blog p {
  margin-bottom: 1.25rem;
  color: #c9c4d8;
}
.prose-blog ul,
.prose-blog ol {
  margin: 0 0 1.25rem 1.5rem;
  color: #c9c4d8;
}
.prose-blog li {
  margin-bottom: 0.5rem;
}
.prose-blog a {
  color: #cabeff;
  text-decoration: underline;
}
html.light .prose-blog a {
  color: #32343f;
}
.prose-blog strong {
  color: #e0e2ef;
  font-weight: 700;
}
html.light .prose-blog p,
html.light .prose-blog ul,
html.light .prose-blog ol {
  color: #4f378b;
}
html.dark .LivePreviewBox {
  background: linear-gradient(to bottom, #1c1f29 0%, #10131c 100%);
}
html.light .LivePreviewBox {
  background: linear-gradient(to bottom, #ffffff 0%, #f5f7fa 100%);
}

/* ── Modals (admin edit dialogs) ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(8, 9, 15, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-overlay.show {
  display: flex;
}
.modal-box {
  background: rgba(24, 27, 37, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
html.light .modal-box {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(103, 80, 164, 0.12);
}
@media (max-width: 480px) {
  .modal-box {
    padding: 18px;
    border-radius: 18px;
    max-height: 92vh;
  }
}

/* ── Responsive utility tweaks ── */
@media (max-width: 640px) {
  .site-nav {
    height: 60px;
  }
  .app-body {
    padding-top: 0;
  }
}
