/* ============================================================
   SOCIAL UP HUB — full stylesheet
   theme: white + DeepSeek blue #4D6BFE
   layouts: app shell (sidebar+topbar) · public landing · auth
            standalone docs page
   ============================================================ */

/* ============================================================
   1. ROOT VARIABLES
   ============================================================ */
:root {
  --blue: #4D6BFE;
  --blue-dark: #3A54D6;
  --blue-light: #6B85FF;
  --blue-soft: #eef2ff;
  --blue-softer: #f6f8ff;
  --blue-glow: rgba(77, 107, 254, 0.35);
  --ink: #0f172a;
  --muted: #64748b;
  --muted-soft: #94a3b8;
  --line: rgba(15, 23, 42, 0.07);
  --line-strong: rgba(15, 23, 42, 0.10);
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --success: #10b981;
  --success-soft: #f0fdf4;
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --sidebar-w: 260px;
  --topbar-h: 72px;
  --nav-h: 76px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 50px rgba(77, 107, 254, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  height: 100%;
  background: #ffffff;
  color: #0f172a;
  font-family: 'Plus Jakarta Sans', Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #4D6BFE; text-decoration: none; transition: color 0.2s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: #4D6BFE; color: #ffffff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #4D6BFE; }

/* ============================================================
   3. BACKGROUND DECORATIONS
   ============================================================ */
.bg-grid {
  position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background-image: radial-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.glow-blob {
  position: fixed; border-radius: 50%; filter: blur(120px);
  opacity: 0.14; animation: floatBlob 20s infinite ease-in-out alternate;
  z-index: -9; pointer-events: none;
}

.blob-blue { top: -10%; left: -10%; width: 600px; height: 600px; background: #4D6BFE; }
.blob-indigo { bottom: -10%; right: -10%; width: 600px; height: 600px; background: #6B85FF; animation-delay: -5s; }

@keyframes floatBlob {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -40px) scale(1.1); }
}

.deepseek-border {
  height: 4px; width: 100%; flex-shrink: 0;
  background: linear-gradient(90deg, #4D6BFE 0%, #6B85FF 50%, #3A54D6 100%);
}

/* ============================================================
   4. ANNOUNCEMENT MARQUEE
   ============================================================ */
.marquee-top {
  overflow: hidden; white-space: nowrap; display: flex;
  background: linear-gradient(90deg, #4D6BFE, #6B85FF, #3A54D6);
  color: #ffffff; padding: 8px 0;
  font-size: 11px; font-weight: 800; letter-spacing: 0.15em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.marquee-top-content { display: flex; animation: marquee 30s linear infinite; }
.marquee-top-content span {
  margin: 0 32px;
  display: inline-flex; align-items: center; gap: 8px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   5. APP SHELL (sidebar + topbar)
   ============================================================ */
.shell {
  display: flex;
  flex: 1 0 auto;
  min-height: 0;
  position: relative;
}
/* ---------- SIDEBAR ---------- */
.sidebar {
  width: 260px;
  background: #ffffff;
  border-right: 1px solid rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  flex-shrink: 0;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  color: #0f172a;
  font-weight: 800;
  flex-shrink: 0;
}

.sidebar-brand .brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 17px;
  box-shadow: 0 8px 20px rgba(77, 107, 254, 0.35);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.sidebar-brand:hover .brand-logo { transform: rotate(360deg); }

.sidebar-brand .brand-text {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.sidebar-brand .brand-text .accent {
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 0;
  min-height: 0;
  scrollbar-width: thin;
}

.sidebar-nav::-webkit-scrollbar { width: 5px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: #4D6BFE; }

.side-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: #64748b;
  font-size: 13.5px;
  font-weight: 600;
  border-left: 3px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-item:hover { background: #f6f8ff; color: #4D6BFE; }

.side-item.active {
  background: #eef2ff;
  color: #4D6BFE;
  border-left-color: #4D6BFE;
  font-weight: 700;
}

.side-item .icon {
  width: 22px;
  text-align: center;
  font-size: 15px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.side-item:hover .icon { transform: scale(1.15) rotate(-6deg); }

/* -------- content -------- */
.content {
  flex: 1; display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
}

.topbar {
  height: 72px; padding: 0 30px;
  display: flex; align-items: center; gap: 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px) saturate(1.6);
  -webkit-backdrop-filter: blur(14px) saturate(1.6);
  position: sticky; top: 0; z-index: 30;
  flex-shrink: 0;
}

.topbar h1 {
  font-size: 18px; font-weight: 900;
  letter-spacing: -0.02em; color: #0f172a;
}

.topbar-spacer { flex: 1; }

.menu-toggle {
  display: none;
  background: none; border: none;
  font-size: 22px; color: #4D6BFE;
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 10px;
  align-items: center; justify-content: center;
  transition: background 0.2s;
}

.menu-toggle:hover { background: #eef2ff; }

.page-body {
  flex: 1; padding: 30px;
  max-width: 1280px; width: 100%;
  margin: 0 auto;
}

/* ============================================================
   6. PUBLIC NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  flex-shrink: 0;
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.95);
}

.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  color: #0f172a; font-weight: 800;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover { transform: translateY(-1px); }

.brand-logo {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  display: flex; align-items: center; justify-content: center;
  color: #ffffff; font-weight: 800; font-size: 20px;
  box-shadow: 0 8px 20px rgba(77, 107, 254, 0.35);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-logo { transform: rotate(360deg); }

.brand-text {
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.02em; line-height: 1;
}

.brand-text .accent {
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-right { display: flex; align-items: center; gap: 4px; }

.nav-link {
  padding: 9px 14px; font-size: 14px; font-weight: 600;
  color: #0f172a; border-radius: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link:hover { color: #4D6BFE; background: #eef2ff; }
.nav-link.active { color: #4D6BFE; background: #eef2ff; }
.nav-link.nav-logout { color: #dc2626; }
.nav-link.nav-logout:hover { background: rgba(220, 38, 38, 0.08); color: #dc2626; }

/* ============================================================
   7. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 700; font-size: 14px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative; overflow: hidden;
  isolation: isolate; cursor: pointer;
  white-space: nowrap; text-decoration: none;
}

.btn::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(255, 255, 255, 0.35), transparent 60%);
  opacity: 0; transition: opacity 0.4s; z-index: -1;
}

.btn:hover::after { opacity: 1; }
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(90deg, #4D6BFE, #3A54D6);
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(77, 107, 254, 0.45);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(77, 107, 254, 0.6); }
.btn-primary:active { transform: translateY(0) scale(0.97); }

.btn-ghost {
  background: #ffffff; color: #0f172a;
  border: 1.5px solid rgba(15, 23, 42, 0.10);
}

.btn-ghost:hover { border-color: #4D6BFE; color: #4D6BFE; transform: translateY(-2px); }

.btn-danger {
  background: #ef4444; color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(239, 68, 68, 0.35);
}

.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 15px 30px -5px rgba(239, 68, 68, 0.5); }

.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 12.5px; }
.btn-block { width: 100%; }

.btn .fa-spinner { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   8. WRAP / MAIN
   ============================================================ */
.wrap {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px; width: 100%;
}

.app-main {
  flex: 1 0 auto; display: flex; flex-direction: column;
  position: relative;
}

/* ============================================================
   9. HERO (landing)
   ============================================================ */
.hero {
  padding: 70px 0 60px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
  position: relative; overflow: hidden;
}

.hero::before {
  content: ""; position: absolute;
  top: -200px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(closest-side, rgba(77, 107, 254, 0.18), transparent 70%);
  filter: blur(30px); pointer-events: none;
}

.hero::after {
  content: ""; position: absolute;
  bottom: -200px; right: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(107, 133, 255, 0.14), transparent 70%);
  filter: blur(30px); pointer-events: none;
}

.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px; align-items: start;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-grid > div {
  opacity: 0; transform: translateY(30px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-grid > div:nth-child(2) { animation-delay: 0.15s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #eef2ff; color: #4D6BFE;
  padding: 7px 16px; border-radius: 999px;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 22px;
  position: relative; overflow: hidden;
}

.badge-pill::before {
  content: ""; position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  animation: shine 3s infinite;
}

@keyframes shine { to { left: 100%; } }

.hero h1 {
  font-size: clamp(34px, 5.5vw, 64px);
  line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 22px; color: #0f172a;
  font-weight: 900; text-transform: uppercase;
}

.hero h1 .accent {
  display: inline-block;
  background: linear-gradient(135deg, #4D6BFE, #7d92ff, #4D6BFE);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s linear infinite;
}

@keyframes gradientMove { to { background-position: 200% center; } }

.hero-sub {
  color: #64748b; font-size: 17px; line-height: 1.6;
  margin: 0 0 30px; max-width: 520px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 6px; }

@media (max-width: 520px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
}

.video-card {
  background: #0c0f1a;
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
  box-shadow: 0 30px 60px rgba(12, 18, 32, 0.18);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover { transform: translateY(-6px) scale(1.01); }

.video-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(77, 107, 254, 0.35), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(124, 58, 237, 0.3), transparent 55%),
    linear-gradient(135deg, #0c0f1a, #1a1f2e);
}

.video-inner {
  position: relative; z-index: 2;
  text-align: left; padding: 0 40px; width: 100%;
}

.video-yt {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ffffff; font-size: 15px; font-weight: 700;
  margin-bottom: 14px;
}

.video-yt::before {
  content: ""; width: 26px; height: 26px;
  background: #ff0033; border-radius: 6px;
  display: inline-flex; position: relative;
}

.video-yt::after {
  content: "▶"; position: absolute;
  color: #ffffff; font-size: 11px; margin-left: 8px;
}

.video-title { color: #ffffff; font-size: 24px; font-weight: 800; margin: 0 0 10px; }

.video-desc {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px; line-height: 1.5;
  margin: 0; max-width: 320px;
}

.login-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 20px; padding: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(77, 107, 254, 0.12); }

.login-card h3 {
  text-align: center; margin: 0 0 6px;
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em;
}

.login-card .sub {
  text-align: center; color: #64748b;
  font-size: 13px; margin: 0 0 22px;
}

.quick-steps { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }

.quick-step {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; border-radius: 12px;
  background: #f6f8ff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-step:hover {
  border-color: rgba(77, 107, 254, 0.4);
  background: #ffffff;
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(77, 107, 254, 0.08);
}

.qs-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  color: #ffffff; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(77, 107, 254, 0.35);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-step:hover .qs-num { transform: scale(1.15) rotate(-6deg); }

.qs-text { display: flex; flex-direction: column; gap: 2px; }
.qs-text b { font-size: 13.5px; font-weight: 700; color: #0f172a; line-height: 1.2; }
.qs-text span { font-size: 12px; color: #64748b; line-height: 1.3; }

.login-footer { text-align: center; font-size: 13px; color: #64748b; margin: 18px 0 0; }
.login-footer a { font-weight: 700; }

.trust-strip {
  margin-top: 50px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

@media (max-width: 820px) {
  .trust-strip { grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 20px; }
}

.trust-item { text-align: center; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.trust-item:hover { transform: translateY(-4px); }

.trust-num {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900; letter-spacing: -0.02em; line-height: 1.1;
  background: linear-gradient(135deg, #4D6BFE, #6B85FF);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.trust-label {
  font-size: 11.5px; color: #64748b; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px;
}

/* ============================================================
   10. SECTIONS
   ============================================================ */
.section { padding: 70px 0; position: relative; }
.section-alt { background: #f6f8ff; }
.section-tight { padding: 20px 0; }

.sec-head { text-align: center; max-width: 680px; margin: 0 auto 50px; }

.sec-head .kicker {
  display: inline-block;
  background: #eef2ff; color: #4D6BFE;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 18px;
}

.sec-head h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  margin: 0 0 14px;
  letter-spacing: -0.03em; font-weight: 900;
  text-transform: uppercase; line-height: 1.05;
}

.sec-head h2 .accent {
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sec-head p { color: #64748b; font-size: 16px; margin: 0; line-height: 1.6; }

.sec-head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 18px; flex-wrap: wrap;
}

.sec-title {
  font-size: 14px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #64748b;
  display: flex; align-items: center; gap: 8px;
}

.sec-title::before {
  content: ""; width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, #4D6BFE, #6B85FF);
}

/* ============================================================
   11. FEATURE CARDS
   ============================================================ */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

.feat-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px; padding: 26px 22px;
  position: relative;
  display: flex; flex-direction: column;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.feat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(77, 107, 254, 0.35);
  box-shadow: 0 24px 50px rgba(77, 107, 254, 0.14);
}

.feat-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}

.feat-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: #eef2ff; color: #4D6BFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.feat-card:hover .feat-icon {
  transform: scale(1.1) rotate(-8deg);
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(77, 107, 254, 0.35);
}

.feat-num {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.15em; color: #64748b;
  text-transform: uppercase;
}

.feat-num b { color: #0f172a; font-weight: 800; }

.feat-card h3 { font-size: 17px; margin: 0 0 10px; font-weight: 800; letter-spacing: -0.01em; }
.feat-card p { color: #64748b; font-size: 13.5px; line-height: 1.6; margin: 0 0 20px; flex: 1; }

.feat-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.feat-label { font-size: 12px; color: #64748b; font-weight: 600; }

.feat-value {
  font-size: 12px; font-weight: 800; color: #4D6BFE;
  background: #eef2ff;
  padding: 5px 12px; border-radius: 999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feat-card:hover .feat-value {
  background: #4D6BFE; color: #ffffff;
  box-shadow: 0 4px 12px rgba(77, 107, 254, 0.35);
}

/* ============================================================
   12. STEPS
   ============================================================ */
.steps-head { text-align: center; margin-bottom: 60px; }

.steps-head h2 {
  font-size: clamp(30px, 4.5vw, 48px);
  margin: 0 0 10px;
  letter-spacing: -0.03em; font-weight: 900;
  text-transform: uppercase;
}

.steps-head p { color: #64748b; font-size: 16px; margin: 0; }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px; position: relative;
}

@media (max-width: 900px) { .steps-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps-grid { grid-template-columns: 1fr; } }

.steps-grid::before {
  content: ""; position: absolute;
  top: 46px; left: 11%; right: 11%; height: 1px;
  border-top: 1.5px dashed #c8d2e8;
  z-index: 0;
}

@media (max-width: 900px) { .steps-grid::before { display: none; } }

.step {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px; padding: 32px 22px;
  text-align: center;
  position: relative; z-index: 1;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover {
  transform: translateY(-8px);
  border-color: rgba(77, 107, 254, 0.35);
  box-shadow: 0 24px 50px rgba(77, 107, 254, 0.14);
}

.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: #eef2ff; color: #4D6BFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800;
  margin: 0 auto 22px;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(77, 107, 254, 0.15);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover .step-num {
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  color: #ffffff;
  transform: scale(1.12) rotate(-6deg);
  box-shadow: 0 10px 24px rgba(77, 107, 254, 0.35);
}

.step h3 { font-size: 16px; margin: 0 0 10px; font-weight: 800; }
.step p { color: #64748b; font-size: 13px; line-height: 1.55; margin: 0; }

/* ============================================================
   13. FINAL CTA
   ============================================================ */
.cta-final {
  text-align: center;
  padding: 56px 30px;
  background: linear-gradient(135deg, #f6f8ff, #ffffff);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 24px;
  position: relative; overflow: hidden;
}

.cta-final::before {
  content: ""; position: absolute;
  inset: -40% -10% auto auto;
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(77, 107, 254, 0.12), transparent 70%);
  filter: blur(30px); pointer-events: none;
}

.cta-final h2 {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 900; letter-spacing: -0.02em;
  margin: 0 0 12px; position: relative;
}

.cta-final p {
  color: #64748b; font-size: 16px;
  max-width: 560px; margin: 0 auto 26px;
  line-height: 1.6; position: relative;
}

.cta-final-btns {
  display: flex; gap: 12px; justify-content: center;
  flex-wrap: wrap; position: relative;
}

/* ============================================================
   14. PAGE HEAD (dashboard etc)
   ============================================================ */
.page-head {
  padding: 34px 0 26px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, #ffffff, #f6f8ff 140%);
  position: relative; overflow: hidden;
}

.page-head::before {
  content: ""; position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(77, 107, 254, 0.13), transparent 70%);
  filter: blur(30px); pointer-events: none;
}

.page-head-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  position: relative; z-index: 2;
}

.page-head h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900; letter-spacing: -0.02em;
}

.page-head h1 .accent {
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-head p { color: #64748b; margin: 0; font-size: 14px; }

.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ============================================================
   15. CARDS
   ============================================================ */
.premium-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}

.premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 107, 254, 0.25);
  box-shadow: 0 20px 40px rgba(77, 107, 254, 0.10);
}

.card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px; padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.card h3 {
  color: #0f172a; font-size: 15px;
  margin-bottom: 16px; font-weight: 800;
  letter-spacing: -0.01em;
}

/* ============================================================
   16. STAT CARDS
   ============================================================ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stat-grid { grid-template-columns: 1fr; } }

.stat-card { padding: 22px; position: relative; }

.stat-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}

.stat-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: #eef2ff; color: #4D6BFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-card:hover .stat-icon {
  transform: scale(1.08) rotate(-6deg);
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(77, 107, 254, 0.35);
}

.stat-tag {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #64748b;
  padding: 4px 10px; border-radius: 999px;
  background: #f1f5f9;
}

.stat-tag.green { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.stat-tag.blue { background: #eef2ff; color: #4D6BFE; }
.stat-tag.amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }

.stat-num {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1; color: #0f172a;
}

.stat-num.blue {
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px; font-weight: 600;
  color: #64748b; margin-top: 8px;
}

/* ============================================================
   17. API KEY CARD (dashboard)
   ============================================================ */
.api-card { padding: 26px; }

.api-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}

.api-card h3 { margin: 0; font-size: 16px; font-weight: 800; }
.api-card p { margin: 4px 0 0; color: #64748b; font-size: 13px; }

.api-key-row {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}

.api-key {
  flex: 1; min-width: 240px;
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  border: 1px dashed rgba(77, 107, 254, 0.3);
  padding: 14px 16px; border-radius: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 16px; font-weight: 700;
  letter-spacing: 0.18em; color: #3A54D6;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.api-key:hover { border-color: #4D6BFE; background: #eef2ff; }
.api-key .dots { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================
   18. QUICK ACTIONS
   ============================================================ */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 820px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .quick-grid { grid-template-columns: 1fr; } }

.quick-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  text-decoration: none; color: #0f172a;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; overflow: hidden;
}

.quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(77, 107, 254, 0.35);
  box-shadow: 0 18px 40px rgba(77, 107, 254, 0.12);
}

.quick-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: #eef2ff; color: #4D6BFE;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.quick-card:hover .quick-icon {
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  color: #ffffff;
  transform: scale(1.1) rotate(-8deg);
  box-shadow: 0 8px 20px rgba(77, 107, 254, 0.35);
}

.quick-card b { font-size: 14.5px; font-weight: 800; }
.quick-card span { font-size: 12.5px; color: #64748b; line-height: 1.4; }

/* ============================================================
   19. TABLES
   ============================================================ */
.tbl-wrap {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.table-wrap { overflow-x: auto; }

.tbl, table { width: 100%; border-collapse: collapse; font-size: 13px; }

.tbl thead, table thead { background: linear-gradient(180deg, #f8fafc, #f1f5f9); }

.tbl th, table th {
  text-align: left; padding: 14px 18px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #64748b;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.tbl td, table td {
  padding: 14px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  color: #0f172a; font-weight: 500;
}

.tbl tbody tr, table tbody tr { transition: background 0.2s; }
.tbl tbody tr:hover, table tbody tr:hover { background: #f6f8ff; }

.tbl .empty {
  padding: 40px 18px; text-align: center;
  color: #64748b; font-size: 14px;
}

/* ============================================================
   20. BADGES
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.02em; white-space: nowrap;
}

.badge-blue, .badge-info { background: #eef2ff; color: #4D6BFE; }
.badge-green, .badge-success { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.badge-red, .badge-danger { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.badge-gray { background: #f1f5f9; color: #64748b; }
.badge-amber { background: rgba(245, 158, 11, 0.12); color: #d97706; }

/* ============================================================
   21. FORMS
   ============================================================ */
.form-group { margin-bottom: 16px; }

.form-group label, label {
  display: block;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: #0f172a; margin: 0 0 8px;
}

.input, select, textarea,
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  background: #ffffff;
  font-size: 14px; font-family: inherit; color: #0f172a;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.input:focus, select:focus, textarea:focus,
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: #4D6BFE;
  box-shadow: 0 0 0 4px rgba(77, 107, 254, 0.12);
}

.input-prefix {
  display: flex; align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.input-prefix:focus-within {
  border-color: #4D6BFE;
  box-shadow: 0 0 0 4px rgba(77, 107, 254, 0.12);
}

.input-prefix > span {
  padding: 13px 12px 13px 14px;
  color: #64748b; font-weight: 700; font-size: 14px;
  border-right: 1.5px solid rgba(15, 23, 42, 0.07);
  background: #f6f8ff;
}

.input-prefix .input { border: none; box-shadow: none; background: transparent; border-radius: 0; }
.input-prefix .input:focus { box-shadow: none; }

/* Password field */
.input-pw {
  position: relative;
  display: flex; align-items: center;
}

.input-pw .input { padding-right: 44px; }

.pw-toggle {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: transparent;
  color: #64748b;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; cursor: pointer;
}

.pw-toggle:hover { background: #eef2ff; color: #4D6BFE; }
.pw-toggle i { font-size: 14px; }

/* ============================================================
   22. GLASS
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

/* ============================================================
   23. ALERTS
   ============================================================ */
.alert {
  padding: 12px 16px; border-radius: 12px;
  font-size: 13.5px; font-weight: 500;
  margin-bottom: 16px;
  border: 1px solid;
}

.alert i { margin-right: 6px; }
.alert-error { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.alert-info { background: #eef2ff; color: #3A54D6; border-color: #c7d2fe; }

/* ============================================================
   24. AUTH PAGES
   ============================================================ */
.auth-wrap {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 60px 24px; width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
  position: relative; overflow: hidden;
}

.auth-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px; padding: 36px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  width: 100%; max-width: 440px;
  position: relative; z-index: 2;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-head { text-align: center; margin-bottom: 26px; }

.auth-head h2 {
  margin: 0 0 6px; font-size: 24px;
  font-weight: 900; letter-spacing: -0.02em;
}

.auth-head p { color: #64748b; margin: 0; font-size: 14px; }

.auth-foot {
  text-align: center; color: #64748b;
  font-size: 13px; margin: 18px 0 0;
}

.auth-foot a { font-weight: 700; }
.auth-card label { color: #0f172a; }
.auth-card .form-group { margin-bottom: 16px; }

/* Logo block */
.auth-logo { text-align: center; margin-bottom: 16px; }

.auth-logo .brand-logo {
  width: 52px; height: 52px; font-size: 22px;
  margin: 0 auto 10px !important;
  border-radius: 50%;
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
  box-shadow: 0 10px 24px rgba(77, 107, 254, 0.4);
  animation: logoPop 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes logoPop {
  0% { transform: scale(0.5) rotate(-180deg); opacity: 0; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

.auth-logo-text {
  font-size: 20px; font-weight: 900;
  letter-spacing: -0.02em; line-height: 1;
}

.auth-logo-text .accent {
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Compact auth (no scroll on mobile) */
.auth-compact {
  padding: 30px 24px;
  align-items: flex-start;
  padding-top: 40px;
}

@media (min-width: 900px) { .auth-compact { align-items: center; padding-top: 60px; } }

.auth-card-lg { padding: 30px; max-width: 420px; }

@media (max-width: 520px) {
  .auth-card-lg { padding: 22px 20px; border-radius: 16px; }
  .auth-compact { padding-top: 20px; }
  .auth-head { margin-bottom: 18px; }
  .auth-head h2 { font-size: 20px; }
  .auth-head p { font-size: 12.5px; }
  .auth-card .form-group { margin-bottom: 12px; }
  .auth-card label { font-size: 10px; margin-bottom: 6px; }
  .auth-card .input, .input-prefix .input { padding: 11px 13px; font-size: 14px; }
  .input-prefix > span { padding: 11px 10px 11px 12px; font-size: 13px; }
  .auth-foot { margin-top: 14px; font-size: 12.5px; }
}

@media (max-height: 700px) {
  .auth-compact { padding-top: 20px !important; padding-bottom: 20px; }
  .auth-logo { margin-bottom: 10px; }
  .auth-logo .brand-logo { width: 44px; height: 44px; font-size: 18px; }
  .auth-head { margin-bottom: 14px; }
  .auth-card .form-group { margin-bottom: 10px; }
}

@media (max-height: 620px) {
  .auth-logo-text { display: none; }
  .auth-logo .brand-logo { width: 40px; height: 40px; font-size: 16px; margin-bottom: 6px !important; }
  .auth-head h2 { font-size: 18px; }
  .auth-head p { display: none; }
}

/* ============================================================
   25. GRID UTILITIES
   ============================================================ */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ============================================================
   26. REVEAL / SCROLL PROGRESS
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in { opacity: 1; transform: translateY(0); }

.fade { animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

.scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0; z-index: 200;
  background: linear-gradient(90deg, #4D6BFE, #6B85FF);
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(77, 107, 254, 0.35);
  pointer-events: none;
}

/* ============================================================
   27. ORDER PAGE — service info
   ============================================================ */
.order-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 22px;
}

.order-logo .brand-logo {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 22px;
  box-shadow: 0 10px 24px rgba(77, 107, 254, 0.4);
}

.order-logo .brand-text {
  font-size: 22px; font-weight: 900;
  letter-spacing: -0.02em;
}

.order-logo .brand-text .accent {
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.svc-info {
  background: linear-gradient(135deg, #f6f8ff, #ffffff);
  border: 1px solid rgba(77, 107, 254, 0.15);
  border-radius: 12px; padding: 16px;
  max-width: 100%; overflow: hidden;
}

.svc-info-head { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.svc-info-rate {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px; padding: 12px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;
}

.svc-rate-label {
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #64748b; margin-bottom: 4px;
}

.svc-rate-value {
  font-size: 20px; font-weight: 900;
  color: #4D6BFE; letter-spacing: -0.02em;
}

.svc-rate-value span { font-size: 12px; color: #64748b; font-weight: 600; }
.svc-rate-value-sm { font-size: 15px; font-weight: 800; color: #0f172a; }

/* DESCRIPTION — safe overflow */
.svc-desc {
  margin-top: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 10px;
  font-size: 13px; line-height: 1.6;
  color: #475569;
  max-width: 100%; overflow: hidden;
  max-height: 320px;
  overflow-y: auto; overflow-x: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.svc-desc b {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #64748b;
  display: block; margin-bottom: 8px;
}

.svc-desc::-webkit-scrollbar { width: 6px; }
.svc-desc::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 6px; }
.svc-desc::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.svc-desc::-webkit-scrollbar-thumb:hover { background: #4D6BFE; }

.qty-hint { font-size: 12px; color: #64748b; margin-top: 6px; font-weight: 500; }

.charge-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 20px;
  background: linear-gradient(135deg, #eef2ff, #f6f8ff);
  border: 1px solid rgba(77, 107, 254, 0.2);
  border-radius: 14px;
  margin: 14px 0;
}

.charge-label {
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #64748b; margin-bottom: 4px;
}

.charge-value {
  font-size: 28px; font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.charge-balance { font-size: 13px; color: #64748b; }
.charge-balance b { color: #0f172a; font-weight: 800; }

/* Platform picker (if used) */
.plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.plat-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px;
  border: 1.5px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
}

.plat-btn:hover {
  border-color: rgba(77, 107, 254, 0.4);
  background: #f6f8ff;
  transform: translateY(-2px);
}

.plat-btn.active {
  border-color: #4D6BFE;
  background: linear-gradient(135deg, #eef2ff, #fff);
  box-shadow: 0 8px 20px rgba(77, 107, 254, 0.18);
}

.plat-btn.active .plat-name { color: #4D6BFE; }

.plat-icon { font-size: 22px; line-height: 1; }

.plat-name {
  font-size: 12px; font-weight: 700;
  color: #0f172a; text-align: center; line-height: 1.2;
}

@media (max-width: 520px) {
  .svc-info-rate { grid-template-columns: 1fr 1fr; }
  .svc-rate-value { font-size: 17px; }
  .charge-value { font-size: 22px; }
  .charge-box { padding: 14px 16px; }
  .svc-desc { max-height: 220px; font-size: 12.5px; padding: 12px 14px; }
  .order-logo .brand-logo { width: 44px; height: 44px; font-size: 18px; }
  .order-logo .brand-text { font-size: 18px; }
  .plat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .plat-btn { padding: 10px 6px; border-radius: 12px; }
  .plat-icon { font-size: 18px; }
  .plat-name { font-size: 10.5px; }
}

/* ============================================================
   28. API DOCS — STANDALONE PAGE
   ============================================================ */
.docs-body {
  background: #fff;
  min-height: 100vh;
  display: block;
  padding: 0;
  overflow-x: hidden;
}

.docs-topbar {
  position: sticky; top: 0; z-index: 100;
  height: 68px; padding: 0 18px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.docs-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border-radius: 999px;
  background: #f6f8ff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  color: #0f172a; font-weight: 700; font-size: 13px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  white-space: nowrap;
}

.docs-back:hover {
  background: #eef2ff; color: #4D6BFE;
  border-color: rgba(77, 107, 254, 0.35);
}

.docs-back i { font-size: 12px; }

.docs-brand {
  display: flex; align-items: center; gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}

.docs-brand .brand-logo { width: 34px; height: 34px; font-size: 15px; flex-shrink: 0; }
.docs-brand .brand-text { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.docs-actions {
  margin-left: auto;
  display: flex; gap: 8px;
  flex-shrink: 0;
}

.docs-actions .btn { padding: 8px 14px; font-size: 13px; }

/* mobile */
@media (max-width: 640px) {
  .docs-topbar { height: 60px; padding: 0 12px; gap: 8px; }
  .docs-back { padding: 7px 10px; font-size: 12px; }
  .docs-back span { display: none; }
  .docs-back i { font-size: 14px; }
  .docs-brand .brand-logo { width: 30px; height: 30px; font-size: 14px; }
  .docs-brand .brand-text { font-size: 15px; }
  .docs-actions { gap: 6px; }
  .docs-actions .btn-ghost { display: none; }
  .docs-actions .btn { padding: 7px 12px; font-size: 12px; }
}

.docs-main {
  padding: 32px 20px 80px;
  overflow-x: hidden;
}

.docs-container {
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  .docs-main { padding: 22px 14px 60px; }
}

.docs-intro { margin-bottom: 30px; }

.docs-intro h1 {
  font-size: clamp(26px, 5vw, 42px);
  font-weight: 900; letter-spacing: -0.03em;
  margin: 10px 0 12px; line-height: 1.1;
  word-break: break-word;
}

.docs-intro h1 .accent {
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.docs-intro p {
  color: #64748b; font-size: 15px;
  margin: 0; max-width: 620px; line-height: 1.55;
}

.docs-foot {
  margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  text-align: center;
}

/* docs body should ignore app shell */
.docs-body .sidebar,
.docs-body .sidebar-backdrop,
.docs-body .topbar,
.docs-body .bottom-nav,
.docs-body .marquee-top,
.docs-body .deepseek-border { display: none !important; }

/* ============================================================
   29. API DOCS — CONTENT BLOCKS (with block-wise scroll)
   ============================================================ */
.api-block {
  margin-bottom: 36px;
  scroll-margin-top: 90px;
  max-width: 100%;
  min-width: 0;
}

.api-block-head { margin-bottom: 16px; }

.api-block-head h2 {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 900; letter-spacing: -0.02em;
  margin: 0 0 6px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  word-break: break-word;
}

.api-block-head h2 i { color: #4D6BFE; font-size: 18px; flex-shrink: 0; }
.api-block-head p { color: #64748b; font-size: 13.5px; margin: 0; line-height: 1.55; word-break: break-word; }

.api-field {
  margin-bottom: 14px;
  max-width: 100%;
  min-width: 0;
}

.api-field label {
  display: block;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #64748b; margin-bottom: 8px;
}

/* ---------- copy row: scrollable inner ---------- */
.api-copy-row {
  display: flex; align-items: center; gap: 8px;
  background: #f6f8ff;
  border: 1px solid rgba(77, 107, 254, 0.15);
  border-radius: 12px;
  padding: 8px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.api-copy-row code {
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 13.5px; font-weight: 700;
  color: #3A54D6; letter-spacing: 0.02em;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.api-copy-row code::-webkit-scrollbar { height: 3px; }
.api-copy-row code::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }

.copy-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 12px;
  border-radius: 8px; border: none;
  background: #ffffff; color: #4D6BFE;
  font-weight: 700; font-size: 12.5px;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
  flex-shrink: 0;
}

.copy-btn:hover { background: #4D6BFE; color: #ffffff; }
.copy-btn.copied { background: #10b981; color: #ffffff; }

.api-note {
  display: flex; gap: 12px;
  padding: 14px 16px;
  background: #eef2ff;
  border: 1px solid rgba(77, 107, 254, 0.2);
  border-radius: 12px;
  font-size: 13px; color: #3A54D6;
  line-height: 1.55;
  word-break: break-word;
}

.api-note i { color: #4D6BFE; font-size: 18px; flex-shrink: 0; margin-top: 2px; }

/* ---------- method row ---------- */
.api-method-row {
  display: flex; align-items: center; gap: 10px;
  background: #0f172a;
  padding: 12px 14px; border-radius: 12px;
  margin-bottom: 18px;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.method-badge {
  background: #10b981; color: #ffffff;
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 800;
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.method-url {
  flex: 1 1 auto;
  min-width: 0;
  color: #e2e8f0;
  font-family: ui-monospace, monospace;
  font-size: 12.5px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.method-url::-webkit-scrollbar { height: 3px; }
.method-url::-webkit-scrollbar-thumb { background: #4D6BFE; border-radius: 6px; }

.api-method-row .copy-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff; box-shadow: none;
  flex-shrink: 0;
}

.api-method-row .copy-btn:hover { background: #4D6BFE; }

/* ---------- params table: wrap in scrollable container ---------- */
.api-params-table {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.api-params-table::-webkit-scrollbar { height: 5px; }
.api-params-table::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 6px; }
.api-params-table::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.api-params-table::-webkit-scrollbar-thumb:hover { background: #4D6BFE; }

.api-params-table table {
  min-width: 500px;
}

/* ---------- action card ---------- */
.action-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 14px;
  padding: 18px; margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  max-width: 100%;
  min-width: 0;
}

.action-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 10px;
  flex-wrap: wrap;
}

.action-name {
  display: inline-block;
  padding: 6px 12px;
  background: #eef2ff; color: #4D6BFE;
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 12.5px; font-weight: 700;
  word-break: break-word;
  max-width: 100%;
}

.action-desc {
  color: #64748b; font-size: 13.5px;
  margin: 0 0 14px; line-height: 1.55;
  word-break: break-word;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 700px) {
  .action-grid { grid-template-columns: 1fr; }
}

/* ---------- code block: scrollable inner only ---------- */
.code-block {
  background: #0f172a; color: #e2e8f0;
  padding: 14px 16px; border-radius: 10px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.65;
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0;
  white-space: pre;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  tab-size: 2;
}

.code-block::-webkit-scrollbar { height: 6px; }
.code-block::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); border-radius: 6px; }
.code-block::-webkit-scrollbar-thumb { background: rgba(77, 107, 254, 0.6); border-radius: 6px; }
.code-block::-webkit-scrollbar-thumb:hover { background: #4D6BFE; }

@media (max-width: 480px) {
  .code-block { font-size: 11px; padding: 12px; }
}

/* ---------- tabs ---------- */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px 16px;
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 13px; font-weight: 700;
  color: #64748b; cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.tab-btn:hover { color: #4D6BFE; }
.tab-btn.active { color: #4D6BFE; border-bottom-color: #4D6BFE; }

.tab-panel {
  display: none;
  padding-top: 14px;
  max-width: 100%;
  min-width: 0;
}
.tab-panel.active { display: block; }

.code-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
  flex-wrap: wrap;
}

.code-head span {
  font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #64748b;
}

/* ---------- playground ---------- */
.pg-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; margin-bottom: 14px;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 600px) { .pg-grid { grid-template-columns: 1fr; } }

/* ---------- api list ---------- */
.api-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}

.api-list li {
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  font-size: 13px; color: #475569;
  transition: all 0.2s;
  word-break: break-word;
  line-height: 1.5;
}

.api-list li:hover {
  border-color: rgba(77, 107, 254, 0.3);
}

/* ---------- stat cards on docs page ---------- */
@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px;
  }
  .stat-grid .stat-num { font-size: 20px; }
  .stat-grid .stat-label { font-size: 11px; }
  .stat-grid .stat-tag { font-size: 9px; padding: 3px 8px; }
  .premium-card { padding: 14px !important; }
}
/* ============================================================
   30. BOTTOM NAV
   ============================================================ */
.bottom-nav { display: none; }

/* ============================================================
   31. RESPONSIVE (mobile ≤ 820px)
   ============================================================ */
@media (max-width: 820px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    transform: translateX(-100%);
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.15);
    z-index: 120;
  }

  .sidebar.open { transform: translateX(0); }

  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.4);
    z-index: 110;
    backdrop-filter: blur(2px);
  }

  .sidebar-backdrop.open { display: block; }

  .menu-toggle { display: flex; }

  .nav-inner { height: 60px; padding: 0 16px; }
  .brand-logo { width: 38px; height: 38px; font-size: 17px; }
  .brand-text { font-size: 18px; }

  .nav-link { display: none; }
  .nav-link.nav-logout { display: inline-flex; }

  .nav-right { gap: 2px; }
  .nav-right .btn { padding: 8px 16px; font-size: 13px; }

  .wrap { padding: 0 16px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 40px 0; }
  .page-body { padding: 18px 16px; }
  .topbar { padding: 0 16px; height: 60px; }
  .topbar h1 { font-size: 16px; }

  .stat-grid { gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-num { font-size: 24px; }

  .quick-grid { gap: 12px; }
  .quick-card { padding: 16px; }

  .tbl th, .tbl td, table th, table td { padding: 11px 12px; font-size: 12px; }

  .bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 100;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(18px) saturate(1.7);
    -webkit-backdrop-filter: blur(18px) saturate(1.7);
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  }

  .bottom-nav a {
    flex: 1;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    gap: 3px;
    color: #64748b; text-decoration: none;
    font-size: 10.5px; font-weight: 700;
    padding: 6px 0;
    transition: color 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .bottom-nav a .icon {
    font-size: 18px; line-height: 1;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .bottom-nav a:active { transform: scale(0.92); }
  .bottom-nav a.active { color: #4D6BFE; }
  .bottom-nav a.active .icon { transform: translateY(-2px) scale(1.1); }

  body { padding-bottom: 64px; }
  .docs-body { padding-bottom: 0; }
}

@media (min-width: 821px) {
  .bottom-nav { display: none; }
}
/* ============ WALLET ============ */
.wallet-hero{
  display: flex; align-items: center; justify-content: space-between;
  padding: 34px 30px;
  background: linear-gradient(135deg, #4D6BFE, #3A54D6);
  color: #fff; border: none; overflow: hidden; position: relative;
}
.wallet-hero::before{
  content: ""; position: absolute;
  top: -60%; right: -10%; width: 400px; height: 400px;
  background: radial-gradient(closest-side, rgba(255,255,255,.18), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.wallet-hero-left{ position: relative; z-index: 2; }
.wallet-hero-label{
  font-size: 11px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.75); margin-bottom: 10px;
}
.wallet-hero-amount{
  font-size: clamp(34px, 6vw, 52px);
  font-weight: 900; letter-spacing: -.03em; line-height: 1;
}
.wallet-hero-sub{
  font-size: 13px; color: rgba(255,255,255,.75);
  margin-top: 10px; font-weight: 500;
}
.wallet-hero-right{
  position: relative; z-index: 2;
  font-size: 60px; opacity: .25;
}
@media (max-width: 520px){
  .wallet-hero{ padding: 24px 20px; }
  .wallet-hero-right{ font-size: 40px; }
}

.amt-grid{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 640px){ .amt-grid{ grid-template-columns: repeat(3, 1fr); } }

.amt-chip{
  padding: 14px 8px;
  border: 1.5px solid rgba(15,23,42,.08);
  border-radius: 12px;
  background: #fff; color: #0f172a;
  font-weight: 700; font-size: 14px;
  cursor: pointer; transition: all .2s cubic-bezier(.16,1,.3,1);
  font-family: inherit;
}
.amt-chip:hover{
  border-color: rgba(77,107,254,.4);
  background: #f6f8ff;
  transform: translateY(-2px);
}
.amt-chip.active{
  border-color: #4D6BFE;
  background: linear-gradient(135deg, #eef2ff, #fff);
  color: #4D6BFE;
  box-shadow: 0 8px 20px rgba(77,107,254,.18);
}

.pending-row{
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f6f8ff;
  border: 1px solid rgba(77,107,254,.15);
  margin-bottom: 8px;
}
.pending-row b{ display: block; font-size: 15px; font-weight: 800; }
.pending-row span{ font-size: 11.5px; color: var(--muted); font-family: ui-monospace, monospace; }

/* ============ PAYMENT CHECKOUT LOADING ============ */
.pay-loading-wrap{
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center;
  padding: 20px;
}
.pay-loading-card{
  background: #fff; padding: 40px 30px;
  border-radius: 22px; text-align: center;
  box-shadow: 0 20px 50px rgba(15,23,42,.08);
  border: 1px solid rgba(15,23,42,.06);
  max-width: 420px; width: 100%;
  animation: fadeUp .5s cubic-bezier(.16,1,.3,1);
}
.pay-loading-card h2{
  margin: 20px 0 8px; font-size: 19px; font-weight: 800;
  letter-spacing: -.01em;
}
.pay-loading-card p{
  color: var(--muted); font-size: 13.5px; margin: 0 0 22px;
}
.pay-spinner{
  width: 56px; height: 56px;
  border-radius: 50%; margin: 0 auto;
  border: 5px solid #eef2ff;
  border-top-color: #4D6BFE;
  animation: spin .8s linear infinite;
}
.pay-order-info{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin: 16px 0 22px;
}
.pay-order-info > div{
  background: #f6f8ff; padding: 12px;
  border-radius: 10px; text-align: left;
}
.pay-order-info span{
  display: block; font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.pay-order-info b{
  font-size: 13px; font-weight: 800;
  word-break: break-all;
}

/* ============ PAYMENT RESULT POPUP ============ */
.pay-result-overlay{
  width: 100%; max-width: 460px;
  animation: fadeUp .5s cubic-bezier(.16,1,.3,1);
}
.pay-result-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 24px;
  padding: 44px 34px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(15,23,42,.12);
}
.pay-result-card h1{
  margin: 22px 0 10px;
  font-size: 24px; font-weight: 900;
  letter-spacing: -.02em;
}
.pay-result-card p{
  color: var(--muted); font-size: 14.5px;
  margin: 0 0 22px; line-height: 1.55;
}
.pr-txn{
  font-size: 12px; color: var(--muted);
  background: #f6f8ff; padding: 8px 14px;
  border-radius: 10px; margin-bottom: 22px;
  font-family: ui-monospace, monospace;
  display: inline-block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pr-txn b{ color: var(--blue-dark); }

.pr-btns{
  display: flex; gap: 10px;
  justify-content: center; flex-wrap: wrap;
}
.pr-btns .btn{ min-width: 150px; }

/* SVG animations */
.pr-anim{
  width: 110px; height: 110px;
  margin: 0 auto; position: relative;
}
.pr-svg{
  width: 100%; height: 100%;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Success */
.pr-anim-success .pr-circle{
  stroke: #10b981; stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: circleStroke .6s cubic-bezier(.65,0,.45,1) forwards;
}
.pr-anim-success .pr-check{
  stroke: #10b981; stroke-width: 4;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkStroke .4s .55s cubic-bezier(.65,0,.45,1) forwards;
}
.pr-anim-success{
  animation: popIn .5s .95s cubic-bezier(.16,1.4,.3,1) both;
}
@keyframes circleStroke { to { stroke-dashoffset: 0; } }
@keyframes checkStroke { to { stroke-dashoffset: 0; } }
@keyframes popIn {
  0% { transform: scale(.9); }
  60% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Failed */
.pr-anim-failed .pr-circle{
  stroke: #ef4444; stroke-width: 3;
  stroke-dasharray: 166; stroke-dashoffset: 166;
  animation: circleStroke .55s cubic-bezier(.65,0,.45,1) forwards;
}
.pr-anim-failed .pr-cross1,
.pr-anim-failed .pr-cross2{
  stroke: #ef4444; stroke-width: 4;
  stroke-dasharray: 30; stroke-dashoffset: 30;
  animation: checkStroke .35s .5s cubic-bezier(.65,0,.45,1) forwards;
}
.pr-anim-failed{ animation: shakeAnim .55s .9s ease; }
@keyframes shakeAnim {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Processing */
.pr-anim-processing{
  display: flex; align-items: center; justify-content: center;
}
.pr-spinner{
  width: 74px; height: 74px;
  border-radius: 50%;
  border: 5px solid #eef2ff;
  border-top-color: #4D6BFE;
  border-right-color: #6B85FF;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 30px rgba(77,107,254,.25);
}
/* ============ LIVE STATUS DOT ============ */
.live-dot{
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #ef4444;
  margin-right: 6px;
  vertical-align: middle;
  position: relative;
  animation: livePulse 1.5s infinite;
}
.live-dot::after{
  content: ""; position: absolute;
  inset: -3px; border-radius: 50%;
  background: rgba(239,68,68,.35);
  animation: liveRing 1.5s infinite;
}
@keyframes livePulse{
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}
@keyframes liveRing{
  0% { transform: scale(.8); opacity: .7; }
  100% { transform: scale(1.8); opacity: 0; }
}
/* ============ TRANSACTION TABLE — mobile scroll ============ */
.txn-scroll-wrap {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.txn-scroll-wrap::-webkit-scrollbar { height: 6px; }
.txn-scroll-wrap::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 6px; }
.txn-scroll-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 6px; }
.txn-scroll-wrap::-webkit-scrollbar-thumb:hover { background: #4D6BFE; }

.txn-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

/* on mobile, tighter padding so more fits */
@media (max-width: 640px) {
  .txn-table th,
  .txn-table td {
    padding: 10px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  .txn-table td:nth-child(4) {
    /* Note column can wrap */
    white-space: normal;
    max-width: 200px;
  }
}