/*
 * Wiantex Professional UI Layer
 * Global, non-destructive visual system loaded after legacy styles.
 * Functional PHP/JS, Woin logic, avatars and verified badges are untouched.
 */

:root {
  color-scheme: dark;
  --wtx-radius-xl: 28px;
  --wtx-surface: color-mix(in srgb, var(--panel-0) 86%, transparent);
  --wtx-surface-raised: color-mix(in srgb, var(--panel-1) 92%, transparent);
  --wtx-surface-soft: rgba(255, 255, 255, .035);
  --wtx-line: rgba(153, 166, 196, .13);
  --wtx-line-active: rgba(132, 105, 255, .42);
  --wtx-shadow-sm: 0 8px 24px rgba(0, 0, 0, .20);
  --wtx-shadow-md: 0 18px 50px rgba(0, 0, 0, .28);
  --wtx-shadow-lg: 0 32px 90px rgba(0, 0, 0, .38);
  --wtx-glow: 0 0 0 1px rgba(132, 105, 255, .12), 0 18px 48px rgba(67, 56, 202, .12);
  --wtx-transition: 180ms cubic-bezier(.2, .75, .25, 1);
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scrollbar-color: rgba(132, 105, 255, .42) rgba(255, 255, 255, .025);
  scrollbar-width: thin;
}

body.wtx-pro-ui {
  background:
    radial-gradient(900px 620px at 14% -8%, color-mix(in srgb, var(--purple) 14%, transparent), transparent 66%),
    radial-gradient(780px 560px at 96% 8%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 64%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 52%, var(--bg-1) 100%);
  background-attachment: fixed;
  color: var(--text-0);
  font-family: var(--font-body, Inter, system-ui, -apple-system, "Segoe UI", sans-serif);
  font-size: 14px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.wtx-pro-ui::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255, 255, 255, .014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .014) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

.wtx-pro-ui * {
  scrollbar-color: rgba(132, 105, 255, .36) transparent;
  scrollbar-width: thin;
}

.wtx-pro-ui *::-webkit-scrollbar { width: 8px; height: 8px; }
.wtx-pro-ui *::-webkit-scrollbar-track { background: transparent; }
.wtx-pro-ui *::-webkit-scrollbar-thumb {
  background: rgba(132, 105, 255, .34);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.wtx-pro-ui a,
.wtx-pro-ui button,
.wtx-pro-ui input,
.wtx-pro-ui textarea,
.wtx-pro-ui select { -webkit-tap-highlight-color: transparent; }

.wtx-pro-ui :where(a, button, input, textarea, select, [tabindex]):focus-visible {
  outline: 2px solid #a996ff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 5px rgba(124, 92, 255, .14) !important;
}

.wtx-pro-ui h1,
.wtx-pro-ui h2,
.wtx-pro-ui h3,
.wtx-pro-ui h4 {
  color: var(--text-0);
  letter-spacing: -.025em;
  text-wrap: balance;
}

.wtx-pro-ui p { text-wrap: pretty; }
.wtx-pro-ui img, .wtx-pro-ui video { max-width: 100%; }

/* Main shell */
.wtx-pro-ui .app { min-height: 100vh; }

.wtx-pro-ui .main {
  min-width: 0;
  background: transparent;
}

.wtx-pro-ui .sidebar {
  background: rgba(9, 12, 20, .90);
  border-right: 1px solid var(--wtx-line);
  box-shadow: 16px 0 50px rgba(0, 0, 0, .16);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
}

.wtx-pro-ui .sidebar-brand {
  min-height: 80px;
  margin: 0 6px 12px;
  padding: 14px 12px;
  border-radius: 18px;
  transition: background var(--wtx-transition), transform var(--wtx-transition);
}

.wtx-pro-ui .sidebar-brand:hover {
  background: rgba(255, 255, 255, .035);
  transform: translateY(-1px);
}

.wtx-pro-ui .sidebar-brand-logo {
  width: min(172px, 100%);
  height: auto;
  filter: drop-shadow(0 10px 22px rgba(92, 68, 255, .14));
}

.wtx-pro-ui .nav-group { gap: 4px; }

.wtx-pro-ui .nav-label {
  margin: 18px 12px 7px;
  color: #778196;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.wtx-pro-ui .nav-item {
  position: relative;
  min-height: 43px;
  margin: 1px 6px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #99a3b8;
  font-weight: 600;
  transition: color var(--wtx-transition), background var(--wtx-transition), border-color var(--wtx-transition), transform var(--wtx-transition);
}

.wtx-pro-ui .nav-item svg { opacity: .82; transition: opacity var(--wtx-transition), transform var(--wtx-transition); }

.wtx-pro-ui .nav-item:hover {
  color: #eef0f8;
  background: rgba(255, 255, 255, .042);
  border-color: rgba(255, 255, 255, .055);
  transform: translateX(2px);
}

.wtx-pro-ui .nav-item:hover svg { opacity: 1; transform: scale(1.04); }

.wtx-pro-ui .nav-item.active {
  color: #fff;
  background: linear-gradient(110deg, rgba(124, 92, 255, .20), rgba(60, 141, 255, .09));
  border-color: rgba(139, 112, 255, .22);
  box-shadow: inset 3px 0 0 #8b6cff, 0 8px 24px rgba(55, 44, 145, .10);
}

.wtx-pro-ui .nav-item.active svg { color: #ac9bff; opacity: 1; }
.wtx-pro-ui .nav-item .count { background: rgba(255, 255, 255, .055); color: #8e98aa; }

.wtx-pro-ui .navbar {
  min-height: 74px;
  padding: 13px clamp(14px, 2.2vw, 28px);
  background: rgba(8, 11, 18, .74);
  border-bottom: 1px solid var(--wtx-line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .12);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}

.wtx-pro-ui .search-box {
  min-height: 44px;
  max-width: 560px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(153, 166, 196, .14);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: background var(--wtx-transition), border-color var(--wtx-transition), box-shadow var(--wtx-transition);
}

.wtx-pro-ui .search-box:focus-within {
  background: rgba(17, 21, 34, .94);
  border-color: rgba(139, 112, 255, .50);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .11), 0 12px 34px rgba(0, 0, 0, .18);
}

.wtx-pro-ui .search-box input { color: #f5f6fb; }
.wtx-pro-ui .search-box input::placeholder { color: #737d90; }

.wtx-pro-ui .kbd {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  border-bottom-color: rgba(255, 255, 255, .16);
  border-radius: 7px;
  color: #7e8798;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}

.wtx-pro-ui .navbar-actions { gap: 9px; }

.wtx-pro-ui .icon-btn,
.wtx-pro-ui .profile-trigger {
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(153, 166, 196, .13);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: color var(--wtx-transition), background var(--wtx-transition), border-color var(--wtx-transition), transform var(--wtx-transition), box-shadow var(--wtx-transition);
}

.wtx-pro-ui .icon-btn:hover,
.wtx-pro-ui .profile-trigger:hover {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  border-color: rgba(154, 132, 255, .28);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

.wtx-pro-ui .profile-dropdown,
.wtx-pro-ui .ac-dropdown {
  background: rgba(14, 18, 29, .97);
  border: 1px solid rgba(153, 166, 196, .16);
  border-radius: 15px;
  box-shadow: var(--wtx-shadow-lg);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.wtx-pro-ui .profile-dropdown a,
.wtx-pro-ui .ac-item { border-radius: 10px; }

.wtx-pro-ui .content-wrap {
  width: 100%;
  max-width: 1540px;
  margin-inline: auto;
  padding: clamp(18px, 2.2vw, 32px);
}

.wtx-pro-ui .content-grid { gap: clamp(16px, 2vw, 24px); }
.wtx-pro-ui .right-panel { gap: 15px; }

/* Surfaces and typography */
.wtx-pro-ui .card,
.wtx-pro-ui .widget,
.wtx-pro-ui .admin-card,
.wtx-pro-ui .lb-card,
.wtx-pro-ui .wx-card {
  background: linear-gradient(155deg, rgba(20, 25, 39, .92), rgba(13, 17, 28, .94));
  border: 1px solid var(--wtx-line);
  border-radius: var(--radius-md);
  box-shadow: var(--wtx-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .025);
}

.wtx-pro-ui .section-head {
  gap: 16px;
  margin-bottom: 16px;
}

.wtx-pro-ui .section-head h2 {
  font-size: clamp(19px, 1.7vw, 24px);
  font-weight: 800;
}

.wtx-pro-ui .section-head p { color: var(--text-2); }
.wtx-pro-ui .section-link { color: #aa9aff; font-weight: 700; }
.wtx-pro-ui .section-link:hover { color: #c2b7ff; }

.wtx-pro-ui .text-muted { color: #939caf !important; }
.wtx-pro-ui .text-dim { color: #697386 !important; }

/* Controls */
.wtx-pro-ui .btn {
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 11px;
  font-weight: 700;
  letter-spacing: -.005em;
  transition: transform var(--wtx-transition), box-shadow var(--wtx-transition), background var(--wtx-transition), border-color var(--wtx-transition), filter var(--wtx-transition);
}

.wtx-pro-ui .btn:hover { transform: translateY(-1px); }
.wtx-pro-ui .btn:active { transform: translateY(0) scale(.985); }

.wtx-pro-ui .btn-primary {
  color: #fff;
  background: var(--gradient-primary);
  border-color: rgba(255, 255, 255, .10);
  box-shadow: 0 8px 24px rgba(72, 61, 202, .23), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.wtx-pro-ui .btn-primary:hover {
  filter: brightness(1.08) saturate(1.04);
  box-shadow: 0 12px 32px rgba(72, 61, 202, .32), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.wtx-pro-ui .btn-ghost {
  color: #c1c8d7;
  background: rgba(255, 255, 255, .035);
  border-color: rgba(153, 166, 196, .14);
}

.wtx-pro-ui .btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, .065);
  border-color: rgba(154, 132, 255, .30);
}

.wtx-pro-ui .btn-danger {
  color: #ff9aaa;
  background: rgba(244, 63, 94, .10);
  border-color: rgba(244, 63, 94, .24);
}

.wtx-pro-ui .btn-danger:hover { background: rgba(244, 63, 94, .16); border-color: rgba(244, 63, 94, .40); }

.wtx-pro-ui :where(.input, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
  min-height: 43px;
  color: var(--text-0);
  background-color: rgba(255, 255, 255, .032);
  border-color: rgba(153, 166, 196, .14);
  border-radius: 11px;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .10);
  transition: background var(--wtx-transition), border-color var(--wtx-transition), box-shadow var(--wtx-transition);
}

.wtx-pro-ui :where(.input, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select):hover {
  border-color: rgba(153, 166, 196, .23);
}

.wtx-pro-ui :where(.input, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select):focus {
  color: #fff;
  background-color: rgba(16, 21, 34, .94);
  border-color: rgba(139, 112, 255, .52);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .10);
  outline: none;
}

.wtx-pro-ui textarea { line-height: 1.58; resize: vertical; }
.wtx-pro-ui select option { background: #111622; color: #f6f7fb; }

.wtx-pro-ui input[type="checkbox"],
.wtx-pro-ui input[type="radio"] {
  accent-color: #8066ff;
  width: 16px;
  height: 16px;
}

.wtx-pro-ui .field label { color: #c5cbd8; font-weight: 700; }
.wtx-pro-ui .field-hint { color: #737d90; }

.wtx-pro-ui .badge {
  border: 1px solid rgba(255, 255, 255, .075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.wtx-pro-ui .alert {
  padding: 12px 14px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .13);
}

.wtx-pro-ui .pagination a,
.wtx-pro-ui .pagination span {
  min-width: 38px;
  min-height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
}

/* Homepage and forum */
.wtx-pro-ui .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(145, 124, 255, .20);
  border-radius: var(--wtx-radius-xl);
  background:
    radial-gradient(600px 260px at 12% 0%, rgba(139, 92, 246, .20), transparent 66%),
    radial-gradient(440px 280px at 92% 110%, rgba(56, 139, 255, .14), transparent 70%),
    linear-gradient(145deg, rgba(20, 25, 40, .96), rgba(12, 16, 27, .96));
  box-shadow: var(--wtx-shadow-md), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.wtx-pro-ui .hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  top: -150px;
  right: -70px;
  z-index: -1;
  border: 46px solid rgba(136, 104, 255, .07);
  border-radius: 50%;
}

.wtx-pro-ui .hero h1 {
  max-width: 760px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.045em;
}

.wtx-pro-ui .hero p { max-width: 680px; color: #a3acbd; font-size: clamp(14px, 1.5vw, 16px); }

.wtx-pro-ui .hero-stats {
  gap: 10px;
  padding-top: 8px;
}

.wtx-pro-ui .hero-stat {
  min-width: 98px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: 13px;
}

.wtx-pro-ui .hero-stat strong { color: #fff; }
.wtx-pro-ui .hero-stat span { color: #7e889b; }

.wtx-pro-ui .topic-list {
  overflow: hidden;
  border: 1px solid var(--wtx-line);
  border-radius: 18px;
  background: rgba(13, 17, 27, .58);
  box-shadow: var(--wtx-shadow-sm);
}

.wtx-pro-ui .topic-card {
  position: relative;
  min-height: 86px;
  padding: 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(153, 166, 196, .095);
  border-radius: 0;
  box-shadow: none;
  transition: background var(--wtx-transition), transform var(--wtx-transition);
}

.wtx-pro-ui .topic-card:last-child { border-bottom: 0; }

.wtx-pro-ui .topic-card:hover {
  background: linear-gradient(90deg, rgba(124, 92, 255, .085), rgba(255, 255, 255, .018));
  border-color: rgba(153, 166, 196, .095);
  box-shadow: inset 3px 0 0 rgba(139, 112, 255, .65);
  transform: none;
}

.wtx-pro-ui .topic-icon {
  background: linear-gradient(145deg, rgba(124, 92, 255, .16), rgba(56, 139, 255, .08));
  border: 1px solid rgba(139, 112, 255, .18);
  border-radius: 13px;
  color: #b2a5ff;
}

.wtx-pro-ui .topic-title { color: #eef0f7; font-weight: 700; }
.wtx-pro-ui .topic-card:hover .topic-title { color: #fff; }
.wtx-pro-ui .topic-meta { color: #7f899b; }
.wtx-pro-ui .topic-stat strong { color: #dce0e9; }

.wtx-pro-ui .widget { padding: 17px; }

.wtx-pro-ui .widget h3 {
  color: #e9ebf2;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.wtx-pro-ui .stat-row {
  min-height: 37px;
  border-color: rgba(153, 166, 196, .09);
}

.wtx-pro-ui .leader-row {
  min-height: 38px;
  margin-inline: -6px;
  padding: 6px;
  border-radius: 10px;
  transition: background var(--wtx-transition);
}

.wtx-pro-ui .leader-row:hover { background: rgba(255, 255, 255, .04); }

/* Topics and posts */
.wtx-pro-ui .post-card {
  overflow: hidden;
  border: 1px solid var(--wtx-line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(19, 24, 37, .92), rgba(12, 16, 26, .94));
  box-shadow: var(--wtx-shadow-sm);
}

.wtx-pro-ui .post-author {
  background: rgba(255, 255, 255, .018);
  border-right: 1px solid rgba(153, 166, 196, .09);
}

.wtx-pro-ui .post-content { color: #d7dbe5; font-size: 14px; line-height: 1.75; }
.wtx-pro-ui .post-content a { color: #a99aff; text-decoration-color: rgba(169, 154, 255, .38); }

.wtx-pro-ui .post-content blockquote {
  background: rgba(124, 92, 255, .055);
  border-color: #7660e9;
  border-radius: 0 12px 12px 0;
}

.wtx-pro-ui .post-content pre,
.wtx-pro-ui .post-content code {
  background: #090c13;
  border-color: rgba(153, 166, 196, .14);
}

/* Profile and members */
.wtx-pro-ui .profile-hero {
  border-radius: 22px !important;
  background: linear-gradient(155deg, rgba(20, 25, 39, .96), rgba(12, 16, 26, .96));
  border-color: rgba(153, 166, 196, .14);
  box-shadow: var(--wtx-shadow-md);
}

.wtx-pro-ui .profile-banner {
  border-radius: 18px;
  box-shadow: inset 0 -50px 70px rgba(5, 7, 12, .34);
}

.wtx-pro-ui .profile-username { letter-spacing: -.035em; }

.wtx-pro-ui .profile-stat,
.wtx-pro-ui .profile-rating-card,
.wtx-pro-ui .profile-frame-option,
.wtx-pro-ui .member-card {
  border-color: var(--wtx-line) !important;
  background: rgba(255, 255, 255, .025);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .02);
}

.wtx-pro-ui .member-card,
.wtx-pro-ui .profile-frame-option {
  transition: transform var(--wtx-transition), background var(--wtx-transition), border-color var(--wtx-transition), box-shadow var(--wtx-transition);
}

.wtx-pro-ui .member-card:hover,
.wtx-pro-ui .profile-frame-option:hover {
  background: rgba(255, 255, 255, .043);
  border-color: rgba(139, 112, 255, .30) !important;
  box-shadow: var(--wtx-glow);
  transform: translateY(-2px);
}

/* Market */
.wtx-pro-ui .market-hero {
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(139, 112, 255, .20);
  border-radius: 22px;
  background:
    radial-gradient(440px 180px at 90% 0%, rgba(62, 139, 255, .13), transparent 72%),
    linear-gradient(145deg, rgba(22, 27, 42, .96), rgba(13, 17, 28, .96));
  box-shadow: var(--wtx-shadow-md);
}

.wtx-pro-ui .market-balance,
.wtx-pro-ui .shop-price-pill {
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

.wtx-pro-ui .market-tabs {
  padding: 5px;
  background: rgba(255, 255, 255, .028);
  border: 1px solid var(--wtx-line);
  border-radius: 14px;
}

.wtx-pro-ui .market-tab-btn { border-radius: 10px; }

.wtx-pro-ui .market-product-card,
.wtx-pro-ui .shop-card,
.wtx-pro-ui .package-card {
  overflow: hidden;
  background: linear-gradient(155deg, rgba(20, 25, 39, .92), rgba(13, 17, 27, .96));
  border-color: var(--wtx-line);
  border-radius: 17px;
  box-shadow: var(--wtx-shadow-sm), inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: transform var(--wtx-transition), border-color var(--wtx-transition), box-shadow var(--wtx-transition);
}

.wtx-pro-ui .market-product-card:hover,
.wtx-pro-ui .shop-card:hover,
.wtx-pro-ui .package-card:hover {
  border-color: rgba(139, 112, 255, .34);
  box-shadow: var(--wtx-shadow-md), 0 0 0 1px rgba(124, 92, 255, .06);
  transform: translateY(-3px);
}

.wtx-pro-ui .market-product-image,
.wtx-pro-ui .market-product-placeholder,
.wtx-pro-ui .shop-card-media {
  background:
    radial-gradient(circle at 50% 15%, rgba(124, 92, 255, .13), transparent 60%),
    rgba(255, 255, 255, .018);
}

/* Messaging and WiaNova */
.wtx-pro-ui .messages-shell {
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(153, 166, 196, .15);
  background: rgba(11, 15, 24, .94);
  box-shadow: var(--wtx-shadow-md);
}

.wtx-pro-ui .conv-list {
  background: rgba(255, 255, 255, .012);
  border-right-color: rgba(153, 166, 196, .10);
}

.wtx-pro-ui .conv-list-item {
  margin: 3px 7px;
  border: 1px solid transparent;
  border-radius: 13px;
  transition: background var(--wtx-transition), border-color var(--wtx-transition), transform var(--wtx-transition);
}

.wtx-pro-ui .conv-list-item:hover { background: rgba(255, 255, 255, .035); transform: translateX(2px); }

.wtx-pro-ui .conv-list-item.active {
  background: linear-gradient(110deg, rgba(124, 92, 255, .14), rgba(56, 139, 255, .055));
  border-color: rgba(139, 112, 255, .17);
}

.wtx-pro-ui .conv-chat-header {
  background: rgba(15, 19, 30, .88);
  border-bottom-color: rgba(153, 166, 196, .10);
  backdrop-filter: blur(16px);
}

.wtx-pro-ui .conv-chat-body {
  background:
    radial-gradient(480px 300px at 85% 0%, rgba(77, 62, 190, .055), transparent 70%),
    rgba(7, 10, 17, .52);
}

.wtx-pro-ui .msg-bubble {
  border: 1px solid rgba(153, 166, 196, .10);
  box-shadow: 0 7px 20px rgba(0, 0, 0, .14);
}

.wtx-pro-ui .msg-row.mine .msg-bubble {
  background: linear-gradient(145deg, rgba(111, 81, 234, .84), rgba(62, 102, 221, .78));
  border-color: rgba(181, 170, 255, .18);
}

.wtx-pro-ui .conv-chat-input,
.wtx-pro-ui .msg-composer {
  background: rgba(13, 17, 27, .94);
  border-top-color: rgba(153, 166, 196, .10);
}

.wtx-pro-ui .messages-shell .conv-chat[data-wianova-thread="1"] .conv-chat-header,
.wtx-pro-ui .messages-shell .conv-chat[data-wianova-thread="1"] form[data-wianova="1"] {
  background: rgba(12, 16, 27, .82);
  backdrop-filter: blur(18px);
}

.wtx-pro-ui .messages-shell .wianova-code-block,
.wtx-pro-ui .wianova-code-modal-card,
.wtx-pro-ui .wianova-render-browser { border-color: rgba(153, 166, 196, .14); }

/* Pulses */
.wtx-pro-ui .pulses-shell,
.wtx-pro-ui .studio-shell,
.wtx-pro-ui .pulse-upload-shell { max-width: 1180px; margin-inline: auto; }

.wtx-pro-ui .pulses-hero,
.wtx-pro-ui .studio-header,
.wtx-pro-ui .pulse-upload-hero {
  border: 1px solid rgba(139, 112, 255, .18);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(21, 26, 41, .96), rgba(12, 16, 27, .96));
  box-shadow: var(--wtx-shadow-md);
}

.wtx-pro-ui .pulse-card,
.wtx-pro-ui .pc-card,
.wtx-pro-ui .pulse-comment,
.wtx-pro-ui .pc-manage {
  overflow: hidden;
  border-color: var(--wtx-line);
  border-radius: 17px;
  background: linear-gradient(155deg, rgba(20, 25, 39, .92), rgba(12, 16, 26, .95));
  box-shadow: var(--wtx-shadow-sm);
}

.wtx-pro-ui .pulse-modal { backdrop-filter: blur(9px); }
.wtx-pro-ui .pulse-modal__panel {
  border-color: rgba(153, 166, 196, .16);
  border-radius: 20px;
  background: rgba(14, 18, 29, .98);
  box-shadow: var(--wtx-shadow-lg);
}

/* Admin */
.wtx-pro-ui.admin-page .content-wrap { max-width: 1640px; }

.wtx-pro-ui .admin-nav-grid,
.wtx-pro-ui .admin-kpi-grid,
.wtx-pro-ui .admin-recent-grid { gap: 14px !important; }

.wtx-pro-ui .admin-card,
.wtx-pro-ui .admin-nav-link,
.wtx-pro-ui .admin-kpi-card,
.wtx-pro-ui .admin-recent-card {
  border-color: var(--wtx-line);
  border-radius: 16px;
  background: linear-gradient(155deg, rgba(20, 25, 39, .92), rgba(13, 17, 27, .96));
  box-shadow: var(--wtx-shadow-sm);
  transition: border-color var(--wtx-transition), transform var(--wtx-transition), box-shadow var(--wtx-transition);
}

.wtx-pro-ui .admin-nav-link:hover,
.wtx-pro-ui .admin-kpi-card:hover {
  border-color: rgba(139, 112, 255, .30);
  box-shadow: var(--wtx-glow);
  transform: translateY(-2px);
}

.wtx-pro-ui :where(.admin-table, table) { border-spacing: 0; }

.wtx-pro-ui .admin-table {
  overflow: hidden;
  border: 1px solid rgba(153, 166, 196, .11);
  border-radius: 13px;
}

.wtx-pro-ui .admin-table th {
  color: #8e98ab;
  background: rgba(255, 255, 255, .028);
  border-bottom-color: rgba(153, 166, 196, .12);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.wtx-pro-ui .admin-table td { border-bottom-color: rgba(153, 166, 196, .08); }
.wtx-pro-ui .admin-table tbody tr { transition: background var(--wtx-transition); }
.wtx-pro-ui .admin-table tbody tr:hover { background: rgba(124, 92, 255, .045); }

.wtx-pro-ui .admin-log-table-wrap,
.wtx-pro-ui .table-wrap {
  overflow: auto;
  border: 1px solid var(--wtx-line);
  border-radius: 15px;
}

/* Auth, errors and legal */
.wtx-pro-ui .auth-shell,
.wtx-pro-ui .error-shell {
  position: relative;
  isolation: isolate;
}

.wtx-pro-ui .auth-shell::before,
.wtx-pro-ui .error-shell::before {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 45%;
  z-index: -1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 76, 255, .15), transparent 68%);
  filter: blur(20px);
}

.wtx-pro-ui .auth-card {
  max-width: 430px;
  padding: clamp(25px, 4vw, 38px);
  border: 1px solid rgba(153, 166, 196, .16);
  border-radius: 22px;
  background: linear-gradient(155deg, rgba(20, 25, 39, .96), rgba(11, 15, 25, .98));
  box-shadow: var(--wtx-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.wtx-pro-ui .auth-card h1 { font-size: 23px; }
.wtx-pro-ui .auth-site-logo { filter: drop-shadow(0 12px 30px rgba(92, 68, 255, .17)); }

.wtx-pro-ui .error-shell .code {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.wtx-pro-ui .wx-shell { max-width: 1180px; margin-inline: auto; }

.wtx-pro-ui .wx-hero {
  overflow: hidden;
  border: 1px solid rgba(139, 112, 255, .18);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(21, 26, 41, .96), rgba(12, 16, 27, .96));
  box-shadow: var(--wtx-shadow-md);
}

.wtx-pro-ui .wx-card { padding: clamp(18px, 3vw, 28px); }

/* Overlays, language and footer */
.wtx-pro-ui .wt-modal-overlay,
.wtx-pro-ui .group-create-modal,
.wtx-pro-ui .wianova-code-modal-backdrop {
  background: rgba(3, 5, 10, .76);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wtx-pro-ui .wt-modal,
.wtx-pro-ui .group-create-card {
  border-color: rgba(153, 166, 196, .16);
  border-radius: 20px;
  background: rgba(14, 18, 29, .98);
  box-shadow: var(--wtx-shadow-lg);
}

.wtx-pro-ui .wtx-language-switcher {
  background: rgba(12, 16, 26, .88);
  border-color: rgba(153, 166, 196, .16);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.wtx-pro-ui .footer {
  color: #778195;
  border-top-color: rgba(153, 166, 196, .09);
}

.wtx-pro-ui .footer a:hover { color: #b3a6ff; }

.wtx-pro-ui .bottom-nav {
  background: rgba(9, 12, 20, .90);
  border-top-color: rgba(153, 166, 196, .14);
  box-shadow: 0 -14px 40px rgba(0, 0, 0, .24);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
}

.wtx-pro-ui .bottom-nav > a { border-radius: 12px; }
.wtx-pro-ui .bottom-nav > a.active { color: #b5a7ff; }
.wtx-pro-ui .bottom-nav > a.fab { box-shadow: 0 12px 30px rgba(77, 62, 205, .34); }

/* Theme picker in Settings */
.wtx-pro-ui .wtx-theme-field { margin-top: 18px; }

.wtx-pro-ui .wtx-theme-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.wtx-pro-ui .wtx-theme-choice {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 11px;
  min-height: 84px;
  padding: 10px;
  color: var(--text-1);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--wtx-line);
  border-radius: 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .025);
  transition: transform var(--wtx-transition), background var(--wtx-transition), border-color var(--wtx-transition), box-shadow var(--wtx-transition);
}

.wtx-pro-ui .wtx-theme-choice:hover {
  background: rgba(255, 255, 255, .045);
  border-color: rgba(139, 112, 255, .28);
  transform: translateY(-1px);
}

.wtx-pro-ui .wtx-theme-choice:has(input:checked),
.wtx-pro-ui .wtx-theme-choice.is-previewing {
  background: rgba(124, 92, 255, .075);
  border-color: rgba(139, 112, 255, .55);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .10), inset 0 1px 0 rgba(255, 255, 255, .04);
}

.wtx-pro-ui .wtx-theme-choice > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.wtx-pro-ui .wtx-theme-swatch {
  display: grid;
  grid-template-rows: 16px 1fr;
  width: 66px;
  height: 58px;
  overflow: hidden;
  background: var(--choice-bg);
  border: 1px solid color-mix(in srgb, var(--choice-text) 15%, transparent);
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .15);
}

.wtx-pro-ui .wtx-theme-swatch-bar {
  display: block;
  background: linear-gradient(90deg, var(--choice-accent), var(--choice-accent-2));
}

.wtx-pro-ui .wtx-theme-swatch-layout {
  display: grid;
  grid-template-columns: 14px 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  padding: 6px;
}

.wtx-pro-ui .wtx-theme-swatch-layout i {
  grid-row: 1 / 3;
  display: block;
  background: color-mix(in srgb, var(--choice-text) 12%, transparent);
  border-radius: 3px;
}

.wtx-pro-ui .wtx-theme-swatch-layout b {
  display: block;
  background: var(--choice-panel);
  border: 1px solid color-mix(in srgb, var(--choice-text) 10%, transparent);
  border-radius: 3px;
}

.wtx-pro-ui .wtx-theme-choice-copy { min-width: 0; }
.wtx-pro-ui .wtx-theme-choice-copy strong { display: block; overflow: hidden; color: var(--text-0); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.wtx-pro-ui .wtx-theme-choice-copy small { display: block; margin-top: 3px; color: var(--text-3); font-size: 10.5px; }

.wtx-pro-ui .wtx-theme-choice-check {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: transparent;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--wtx-line);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 900;
}

.wtx-pro-ui .wtx-theme-choice:has(input:checked) .wtx-theme-choice-check,
.wtx-pro-ui .wtx-theme-choice.is-previewing .wtx-theme-choice-check {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
}

/* Complete light theme */
body.wtx-pro-ui[data-wtx-theme="light"] {
  color-scheme: light;
  color: var(--text-0);
  background:
    radial-gradient(900px 620px at 14% -8%, rgba(109, 74, 255, .10), transparent 66%),
    radial-gradient(780px 560px at 96% 8%, rgba(40, 120, 232, .08), transparent 64%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 58%, #eef2f8 100%);
}

body.wtx-pro-ui[data-wtx-theme="light"]::before {
  opacity: .35;
  background-image:
    linear-gradient(rgba(32, 42, 62, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 42, 62, .035) 1px, transparent 1px);
}

body.wtx-pro-ui[data-wtx-theme="light"] ::selection { color: #171a24; background: rgba(109, 74, 255, .20); }

body.wtx-pro-ui[data-wtx-theme="light"] * {
  scrollbar-color: rgba(100, 83, 220, .34) rgba(27, 36, 54, .04);
}

body.wtx-pro-ui[data-wtx-theme="light"] *::-webkit-scrollbar-thumb { background-color: rgba(100, 83, 220, .34); }

body.wtx-pro-ui[data-wtx-theme="light"] h1,
body.wtx-pro-ui[data-wtx-theme="light"] h2,
body.wtx-pro-ui[data-wtx-theme="light"] h3,
body.wtx-pro-ui[data-wtx-theme="light"] h4 { color: #151824; }

body.wtx-pro-ui[data-wtx-theme="light"] .text-muted { color: #667085 !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .text-dim { color: #8a94a6 !important; }

body.wtx-pro-ui[data-wtx-theme="light"] .sidebar {
  background: rgba(255, 255, 255, .88) !important;
  border-right-color: rgba(52, 64, 84, .12) !important;
  box-shadow: 14px 0 42px rgba(35, 46, 70, .07);
}

body.wtx-pro-ui[data-wtx-theme="light"] .sidebar-brand:hover,
body.wtx-pro-ui[data-wtx-theme="light"] .nav-item:hover { background: rgba(56, 68, 92, .055); }

body.wtx-pro-ui[data-wtx-theme="light"] .sidebar-brand {
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(241, 244, 251, .98));
  border: 1px solid rgba(52, 64, 84, .11);
  box-shadow: 0 10px 26px rgba(35, 46, 70, .07);
}

body.wtx-pro-ui[data-wtx-theme="light"] .sidebar-brand:hover {
  background: linear-gradient(145deg, #fff, #f2f0ff);
  border-color: rgba(109, 74, 255, .24);
}

body.wtx-pro-ui[data-wtx-theme="light"] .sidebar-brand-logo {
  filter: brightness(.46) contrast(1.45) saturate(1.55) drop-shadow(0 8px 16px rgba(68, 45, 150, .15));
}

body.wtx-pro-ui[data-wtx-theme="light"] .nav-label { color: #8993a5; }

body.wtx-pro-ui[data-wtx-theme="light"] .nav-item {
  color: #5f697b;
  border-color: transparent;
}

body.wtx-pro-ui[data-wtx-theme="light"] .nav-item:hover { color: #202532; border-color: rgba(52, 64, 84, .08); }

body.wtx-pro-ui[data-wtx-theme="light"] .nav-item.active {
  color: #37277d;
  background: linear-gradient(110deg, rgba(109, 74, 255, .13), rgba(40, 120, 232, .05));
  border-color: rgba(109, 74, 255, .16);
  box-shadow: inset 3px 0 0 #7354e9, 0 8px 22px rgba(91, 72, 180, .06);
}

body.wtx-pro-ui[data-wtx-theme="light"] .nav-item.active svg { color: #6848d7; }
body.wtx-pro-ui[data-wtx-theme="light"] .nav-item .count { color: #6c7586; background: rgba(38, 48, 68, .055); }

body.wtx-pro-ui[data-wtx-theme="light"] .navbar {
  background: rgba(255, 255, 255, .78) !important;
  border-bottom-color: rgba(52, 64, 84, .11) !important;
  box-shadow: 0 10px 30px rgba(35, 46, 70, .06);
}

body.wtx-pro-ui[data-wtx-theme="light"] .search-box,
body.wtx-pro-ui[data-wtx-theme="light"] .icon-btn,
body.wtx-pro-ui[data-wtx-theme="light"] .profile-trigger {
  color: #5b6577;
  background: rgba(31, 41, 61, .035) !important;
  border-color: rgba(52, 64, 84, .13) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .72);
}

body.wtx-pro-ui[data-wtx-theme="light"] .search-box:focus-within {
  background: #fff !important;
  border-color: rgba(109, 74, 255, .42) !important;
  box-shadow: 0 0 0 4px rgba(109, 74, 255, .09), 0 12px 30px rgba(42, 53, 77, .08);
}

body.wtx-pro-ui[data-wtx-theme="light"] .search-box input { color: #171b25; background: transparent; }
body.wtx-pro-ui[data-wtx-theme="light"] .search-box input::placeholder { color: #8b95a6; }
body.wtx-pro-ui[data-wtx-theme="light"] .kbd { color: #7e8797; background: rgba(31, 41, 61, .045); border-color: rgba(52, 64, 84, .10); }

body.wtx-pro-ui[data-wtx-theme="light"] .icon-btn:hover,
body.wtx-pro-ui[data-wtx-theme="light"] .profile-trigger:hover {
  color: #242936;
  background: #fff !important;
  border-color: rgba(109, 74, 255, .25) !important;
  box-shadow: 0 8px 22px rgba(35, 46, 70, .09);
}

body.wtx-pro-ui[data-wtx-theme="light"] .profile-dropdown,
body.wtx-pro-ui[data-wtx-theme="light"] .ac-dropdown {
  color: #2c3240;
  background: rgba(255, 255, 255, .98);
  border-color: rgba(52, 64, 84, .13);
  box-shadow: 0 28px 70px rgba(35, 46, 70, .16);
}

body.wtx-pro-ui[data-wtx-theme="light"] .profile-dropdown a:hover,
body.wtx-pro-ui[data-wtx-theme="light"] .ac-item:hover,
body.wtx-pro-ui[data-wtx-theme="light"] .ac-item.active { background: rgba(109, 74, 255, .075); }

body.wtx-pro-ui[data-wtx-theme="light"] .card,
body.wtx-pro-ui[data-wtx-theme="light"] .widget,
body.wtx-pro-ui[data-wtx-theme="light"] .admin-card,
body.wtx-pro-ui[data-wtx-theme="light"] .lb-card,
body.wtx-pro-ui[data-wtx-theme="light"] .wx-card {
  color: #303746;
  background: linear-gradient(155deg, rgba(255, 255, 255, .98), rgba(247, 249, 252, .98)) !important;
  border-color: rgba(52, 64, 84, .11) !important;
  box-shadow: 0 10px 30px rgba(35, 46, 70, .07), inset 0 1px 0 #fff;
}

body.wtx-pro-ui[data-wtx-theme="light"] .card:hover { border-color: rgba(109, 74, 255, .22) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .section-head p { color: #667085; }
body.wtx-pro-ui[data-wtx-theme="light"] .section-link { color: #6547cf; }

body.wtx-pro-ui[data-wtx-theme="light"] .btn-ghost,
body.wtx-pro-ui[data-wtx-theme="light"] .btn-secondary {
  color: #4a5364;
  background: rgba(31, 41, 61, .035) !important;
  border-color: rgba(52, 64, 84, .13) !important;
}

body.wtx-pro-ui[data-wtx-theme="light"] .btn-ghost:hover,
body.wtx-pro-ui[data-wtx-theme="light"] .btn-secondary:hover {
  color: #242936;
  background: #fff !important;
  border-color: rgba(109, 74, 255, .26) !important;
}

body.wtx-pro-ui[data-wtx-theme="light"] :where(.input, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select) {
  color: #202532 !important;
  background-color: rgba(255, 255, 255, .86) !important;
  border-color: rgba(52, 64, 84, .14) !important;
  box-shadow: inset 0 1px 2px rgba(31, 41, 61, .035);
}

body.wtx-pro-ui[data-wtx-theme="light"] :where(.input, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea, select):focus {
  background-color: #fff !important;
  border-color: rgba(109, 74, 255, .48) !important;
  box-shadow: 0 0 0 4px rgba(109, 74, 255, .09) !important;
}

body.wtx-pro-ui[data-wtx-theme="light"] :where(input, textarea)::placeholder { color: #98a1b1; }
body.wtx-pro-ui[data-wtx-theme="light"] select option { color: #1d2230; background: #fff; }
body.wtx-pro-ui[data-wtx-theme="light"] .field label { color: #424a59 !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .field-hint { color: #7a8495; }

body.wtx-pro-ui[data-wtx-theme="light"] .alert-success { color: #177a59; background: #edf9f4; border-color: #b8e6d5; }
body.wtx-pro-ui[data-wtx-theme="light"] .alert-error { color: #b42343; background: #fff0f3; border-color: #f3c1cb; }
body.wtx-pro-ui[data-wtx-theme="light"] .alert-warning { color: #895b06; background: #fff8e6; border-color: #efd99d; }

body.wtx-pro-ui[data-wtx-theme="light"] .pagination a,
body.wtx-pro-ui[data-wtx-theme="light"] .pagination span { color: #535d6f; background: #fff; border-color: rgba(52, 64, 84, .12); }
body.wtx-pro-ui[data-wtx-theme="light"] .pagination .active { color: #fff; background: var(--gradient-primary); }

body.wtx-pro-ui[data-wtx-theme="light"] .hero {
  background:
    radial-gradient(600px 260px at 12% 0%, rgba(109, 74, 255, .12), transparent 66%),
    radial-gradient(440px 280px at 92% 110%, rgba(40, 120, 232, .09), transparent 70%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(246, 248, 252, .98)) !important;
  border-color: rgba(109, 74, 255, .17) !important;
  box-shadow: 0 18px 48px rgba(35, 46, 70, .08), inset 0 1px 0 #fff;
}

body.wtx-pro-ui[data-wtx-theme="light"] .hero h1 { color: #171b25; }
body.wtx-pro-ui[data-wtx-theme="light"] .hero p { color: #626d7f; }
body.wtx-pro-ui[data-wtx-theme="light"] .hero-stat { background: rgba(255, 255, 255, .64); border-color: rgba(52, 64, 84, .09); }
body.wtx-pro-ui[data-wtx-theme="light"] .hero-stat strong { color: #1b202c; }
body.wtx-pro-ui[data-wtx-theme="light"] .hero-stat span { color: #6f798b; }

body.wtx-pro-ui[data-wtx-theme="light"] .topic-list {
  background: rgba(255, 255, 255, .70);
  border-color: rgba(52, 64, 84, .11);
  box-shadow: 0 10px 30px rgba(35, 46, 70, .065);
}

body.wtx-pro-ui[data-wtx-theme="light"] .topic-card {
  background: transparent !important;
  border-bottom-color: rgba(52, 64, 84, .085) !important;
}

body.wtx-pro-ui[data-wtx-theme="light"] .topic-card:hover {
  background: linear-gradient(90deg, rgba(109, 74, 255, .065), rgba(255, 255, 255, .36)) !important;
  box-shadow: inset 3px 0 0 rgba(109, 74, 255, .55);
}

body.wtx-pro-ui[data-wtx-theme="light"] .topic-title,
body.wtx-pro-ui[data-wtx-theme="light"] .topic-card:hover .topic-title { color: #222734; }
body.wtx-pro-ui[data-wtx-theme="light"] .topic-meta { color: #707a8c; }
body.wtx-pro-ui[data-wtx-theme="light"] .topic-stat strong { color: #495264; }
body.wtx-pro-ui[data-wtx-theme="light"] .topic-icon { color: #6749d5; background: rgba(109, 74, 255, .08); border-color: rgba(109, 74, 255, .14); }

body.wtx-pro-ui[data-wtx-theme="light"] .stat-row { border-color: rgba(52, 64, 84, .08); }
body.wtx-pro-ui[data-wtx-theme="light"] .leader-row:hover { background: rgba(31, 41, 61, .045); }

body.wtx-pro-ui[data-wtx-theme="light"] .post-card {
  color: #303746;
  background: linear-gradient(155deg, #fff, #f7f9fc) !important;
  border-color: rgba(52, 64, 84, .11);
  box-shadow: 0 10px 30px rgba(35, 46, 70, .07);
}

body.wtx-pro-ui[data-wtx-theme="light"] .post-author { background: rgba(31, 41, 61, .025); border-color: rgba(52, 64, 84, .08); }
body.wtx-pro-ui[data-wtx-theme="light"] .post-content { color: #343c4b; }
body.wtx-pro-ui[data-wtx-theme="light"] .post-content a { color: #6244cb; }
body.wtx-pro-ui[data-wtx-theme="light"] .post-content blockquote { color: #4c5566; background: rgba(109, 74, 255, .055); }
body.wtx-pro-ui[data-wtx-theme="light"] .post-content :not(pre) > code { color: #4b32ad; background: #f0edff; }

body.wtx-pro-ui[data-wtx-theme="light"] .profile-hero {
  color: #303746;
  background: linear-gradient(155deg, #fff, #f7f9fc) !important;
  border-color: rgba(52, 64, 84, .11) !important;
  box-shadow: 0 18px 48px rgba(35, 46, 70, .09);
}

body.wtx-pro-ui[data-wtx-theme="light"] .profile-main-avatar .avatar-frame-wrap { border-color: #fff !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .profile-stat,
body.wtx-pro-ui[data-wtx-theme="light"] .profile-rating-card,
body.wtx-pro-ui[data-wtx-theme="light"] .profile-frame-option,
body.wtx-pro-ui[data-wtx-theme="light"] .member-card { color: #303746; background: rgba(31, 41, 61, .022); border-color: rgba(52, 64, 84, .10) !important; }

body.wtx-pro-ui[data-wtx-theme="light"] .market-hero,
body.wtx-pro-ui[data-wtx-theme="light"] .pulses-hero,
body.wtx-pro-ui[data-wtx-theme="light"] .studio-header,
body.wtx-pro-ui[data-wtx-theme="light"] .pulse-upload-hero,
body.wtx-pro-ui[data-wtx-theme="light"] .wx-hero {
  color: #303746;
  background:
    radial-gradient(440px 180px at 90% 0%, rgba(40, 120, 232, .085), transparent 72%),
    linear-gradient(145deg, #fff, #f7f9fc) !important;
  border-color: rgba(109, 74, 255, .15) !important;
  box-shadow: 0 18px 48px rgba(35, 46, 70, .08);
}

body.wtx-pro-ui[data-wtx-theme="light"] .market-balance,
body.wtx-pro-ui[data-wtx-theme="light"] .shop-price-pill,
body.wtx-pro-ui[data-wtx-theme="light"] .market-tabs { color: #3e4655; background: rgba(31, 41, 61, .035); border-color: rgba(52, 64, 84, .10); }

body.wtx-pro-ui[data-wtx-theme="light"] .market-product-card,
body.wtx-pro-ui[data-wtx-theme="light"] .shop-card,
body.wtx-pro-ui[data-wtx-theme="light"] .package-card,
body.wtx-pro-ui[data-wtx-theme="light"] .pulse-card,
body.wtx-pro-ui[data-wtx-theme="light"] .pc-card,
body.wtx-pro-ui[data-wtx-theme="light"] .pulse-comment,
body.wtx-pro-ui[data-wtx-theme="light"] .pc-manage {
  color: #303746;
  background: linear-gradient(155deg, #fff, #f7f9fc) !important;
  border-color: rgba(52, 64, 84, .11) !important;
  box-shadow: 0 10px 30px rgba(35, 46, 70, .07);
}

body.wtx-pro-ui[data-wtx-theme="light"] .market-product-image,
body.wtx-pro-ui[data-wtx-theme="light"] .market-product-placeholder,
body.wtx-pro-ui[data-wtx-theme="light"] .shop-card-media { background: radial-gradient(circle at 50% 15%, rgba(109, 74, 255, .08), transparent 60%), #f5f7fb; }

body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell {
  color: #303746;
  background: rgba(255, 255, 255, .95) !important;
  border-color: rgba(52, 64, 84, .12) !important;
  box-shadow: 0 18px 48px rgba(35, 46, 70, .09);
}

body.wtx-pro-ui[data-wtx-theme="light"] .conv-list { background: rgba(245, 247, 251, .82) !important; border-right-color: rgba(52, 64, 84, .09) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-list-item { color: #465061; }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-list-item:hover { background: rgba(31, 41, 61, .045); }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-list-item.active { color: #2f245f; background: linear-gradient(110deg, rgba(109, 74, 255, .10), rgba(40, 120, 232, .035)); border-color: rgba(109, 74, 255, .14); }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-chat { background: #f8f9fc !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-chat-header { background: rgba(255, 255, 255, .88) !important; border-bottom-color: rgba(52, 64, 84, .09) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-chat-body { background: radial-gradient(480px 300px at 85% 0%, rgba(109, 74, 255, .04), transparent 70%), #f6f8fb !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .msg-row:not(.mine) .msg-bubble { color: #303746; background: #fff !important; border-color: rgba(52, 64, 84, .10); }
body.wtx-pro-ui[data-wtx-theme="light"] .msg-row.mine .msg-bubble { color: #fff; }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-chat-input,
body.wtx-pro-ui[data-wtx-theme="light"] .msg-composer { background: rgba(255, 255, 255, .94) !important; border-top-color: rgba(52, 64, 84, .09) !important; }

body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell .conv-chat[data-wianova-thread="1"] { background: #f7f9fd !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell .conv-chat[data-wianova-thread="1"] .conv-chat-header,
body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell .conv-chat[data-wianova-thread="1"] form[data-wianova="1"] { background: rgba(255, 255, 255, .90) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell .conv-chat[data-wianova-thread="1"] .msg-row:not(.mine) .msg-bubble { color: #2f3644; background: rgba(255, 255, 255, .94) !important; border-color: rgba(71, 85, 105, .13) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell .wianova-subtitle { color: #748094; }
body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell .wianova-image-toggle,
body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell .wianova-video-toggle { color: #4e596b !important; background: rgba(31, 41, 61, .045) !important; border-color: rgba(52, 64, 84, .11) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell .wianova-image-toggle.is-active,
body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell .wianova-video-toggle.is-active { color: #fff !important; background: var(--gradient-primary) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell .wianova-usage-pill { color: #51427d; background: rgba(109, 74, 255, .075); border-color: rgba(109, 74, 255, .16); }

body.wtx-pro-ui[data-wtx-theme="light"] .pulse-modal { background: rgba(30, 37, 51, .30); }
body.wtx-pro-ui[data-wtx-theme="light"] .pulse-modal__panel,
body.wtx-pro-ui[data-wtx-theme="light"] .wt-modal,
body.wtx-pro-ui[data-wtx-theme="light"] .group-create-card,
body.wtx-pro-ui[data-wtx-theme="light"] .wianova-code-modal-card {
  color: #303746;
  background: rgba(255, 255, 255, .98) !important;
  border-color: rgba(52, 64, 84, .13) !important;
  box-shadow: 0 28px 70px rgba(35, 46, 70, .18);
}

body.wtx-pro-ui[data-wtx-theme="light"] .pulse-modal__head,
body.wtx-pro-ui[data-wtx-theme="light"] .wianova-code-modal-head,
body.wtx-pro-ui[data-wtx-theme="light"] .wianova-code-modal-actions { border-color: rgba(52, 64, 84, .09); }

body.wtx-pro-ui[data-wtx-theme="light"] .admin-nav-link,
body.wtx-pro-ui[data-wtx-theme="light"] .admin-kpi,
body.wtx-pro-ui[data-wtx-theme="light"] .admin-kpi-card,
body.wtx-pro-ui[data-wtx-theme="light"] .admin-recent-card,
body.wtx-pro-ui[data-wtx-theme="light"] .role-card,
body.wtx-pro-ui[data-wtx-theme="light"] .permission-card,
body.wtx-pro-ui[data-wtx-theme="light"] .empty-state {
  color: #4c5668 !important;
  background: rgba(255, 255, 255, .82) !important;
  border-color: rgba(52, 64, 84, .11) !important;
}

body.wtx-pro-ui[data-wtx-theme="light"] .admin-nav-link.active { color: #fff !important; background: var(--gradient-primary) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .admin-table-wrap,
body.wtx-pro-ui[data-wtx-theme="light"] .admin-log-table-wrap,
body.wtx-pro-ui[data-wtx-theme="light"] .table-wrap { background: #fff !important; border-color: rgba(52, 64, 84, .11) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .admin-table { color: #343c4b; background: #fff; }
body.wtx-pro-ui[data-wtx-theme="light"] .admin-table th { color: #697386; background: #f4f6fa !important; border-bottom-color: rgba(52, 64, 84, .10); }
body.wtx-pro-ui[data-wtx-theme="light"] .admin-table td { border-bottom-color: rgba(52, 64, 84, .075); }
body.wtx-pro-ui[data-wtx-theme="light"] .admin-table tbody tr:hover,
body.wtx-pro-ui[data-wtx-theme="light"] .admin-table tbody tr:hover td { background: rgba(109, 74, 255, .04) !important; }

body.wtx-pro-ui[data-wtx-theme="light"] .auth-card {
  color: #303746;
  background: linear-gradient(155deg, rgba(255, 255, 255, .99), rgba(247, 249, 252, .99)) !important;
  border-color: rgba(52, 64, 84, .12) !important;
  box-shadow: 0 30px 80px rgba(35, 46, 70, .14), inset 0 1px 0 #fff;
}

body.wtx-pro-ui[data-wtx-theme="light"] .auth-shell::before,
body.wtx-pro-ui[data-wtx-theme="light"] .error-shell::before { background: radial-gradient(circle, rgba(109, 74, 255, .11), transparent 68%); }

body.wtx-pro-ui[data-wtx-theme="light"] .wtx-language-switcher {
  color: #4c5668;
  background: rgba(255, 255, 255, .90);
  border-color: rgba(52, 64, 84, .12);
  box-shadow: 0 10px 28px rgba(35, 46, 70, .10);
}

body.wtx-pro-ui[data-wtx-theme="light"] .wtx-language-switcher select { color: #3e4655 !important; background: transparent !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .footer { color: #707a8c; border-top-color: rgba(52, 64, 84, .09); }
body.wtx-pro-ui[data-wtx-theme="light"] .footer a:hover { color: #6041ca; }

body.wtx-pro-ui[data-wtx-theme="light"] .bottom-nav {
  color: #687285;
  background: rgba(255, 255, 255, .90) !important;
  border-top-color: rgba(52, 64, 84, .12) !important;
  box-shadow: 0 -14px 36px rgba(35, 46, 70, .10);
}

body.wtx-pro-ui[data-wtx-theme="light"] .bottom-nav > a.active { color: #6547cf; }

body.wtx-pro-ui[data-wtx-theme="light"] .wtx-theme-choice {
  color: #4e5869;
  background: rgba(31, 41, 61, .025);
  border-color: rgba(52, 64, 84, .11);
  box-shadow: inset 0 1px 0 #fff;
}

body.wtx-pro-ui[data-wtx-theme="light"] .wtx-theme-choice:hover { background: #fff; border-color: rgba(109, 74, 255, .24); }
body.wtx-pro-ui[data-wtx-theme="light"] .wtx-theme-choice:has(input:checked),
body.wtx-pro-ui[data-wtx-theme="light"] .wtx-theme-choice.is-previewing { background: rgba(109, 74, 255, .055); border-color: rgba(109, 74, 255, .43); }
body.wtx-pro-ui[data-wtx-theme="light"] .wtx-theme-choice-copy strong { color: #242936; }
body.wtx-pro-ui[data-wtx-theme="light"] .wtx-theme-choice-copy small { color: #788294; }

[dir="rtl"] body.wtx-pro-ui[data-wtx-theme="light"] .nav-item.active { box-shadow: inset -3px 0 0 #7354e9, 0 8px 22px rgba(91, 72, 180, .06); }

/* RTL */
[dir="rtl"] .wtx-pro-ui .nav-item:hover { transform: translateX(-2px); }
[dir="rtl"] .wtx-pro-ui .nav-item.active { box-shadow: inset -3px 0 0 #8b6cff, 0 8px 24px rgba(55, 44, 145, .10); }
[dir="rtl"] .wtx-pro-ui .post-author { border-right: 0; border-left: 1px solid rgba(153, 166, 196, .09); }

/* Tablet */
@media (max-width: 1180px) {
  .wtx-pro-ui .content-wrap { padding: 22px; }
  .wtx-pro-ui .right-panel { gap: 12px; }
  .wtx-pro-ui .widget { padding: 15px; }
}

@media (max-width: 980px) {
  .wtx-pro-ui .sidebar { box-shadow: 22px 0 70px rgba(0, 0, 0, .42); }
  .wtx-pro-ui .content-wrap { padding: 18px; }
  .wtx-pro-ui .navbar { min-height: 66px; padding: 10px 16px; }
  .wtx-pro-ui .hero { border-radius: 22px; }
  .wtx-pro-ui .admin-recent-grid { grid-template-columns: 1fr !important; }
}

/* Mobile */
@media (max-width: 700px) {
  body.wtx-pro-ui { font-size: 13.5px; background-attachment: scroll; }
  body.wtx-pro-ui::before { background-size: 48px 48px; opacity: .17; }

  .wtx-pro-ui .navbar {
    min-height: 60px;
    padding: 8px 11px;
    gap: 8px;
  }

  .wtx-pro-ui .navbar-actions { gap: 6px; }
  .wtx-pro-ui .navbar-actions .btn { min-height: 36px; padding: 7px 11px; }
  .wtx-pro-ui .navbar-woin { max-width: 104px; overflow: hidden; text-overflow: ellipsis; }
  .wtx-pro-ui .search-box { min-height: 40px; border-radius: 12px; }

  .wtx-pro-ui .content-wrap {
    padding: 13px 11px calc(88px + env(safe-area-inset-bottom));
  }

  .wtx-pro-ui .content-grid { gap: 13px; }
  .wtx-pro-ui .card,
  .wtx-pro-ui .widget,
  .wtx-pro-ui .post-card,
  .wtx-pro-ui .messages-shell { border-radius: 14px; }

  .wtx-pro-ui .hero {
    padding: 22px 17px;
    border-radius: 18px;
  }

  .wtx-pro-ui .hero h1 { font-size: clamp(25px, 9vw, 34px); }
  .wtx-pro-ui .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wtx-pro-ui .hero-stat { min-width: 0; }

  .wtx-pro-ui .section-head { align-items: flex-start; gap: 10px; }
  .wtx-pro-ui .section-head h2 { font-size: 19px; }

  .wtx-pro-ui .topic-list { border-radius: 14px; }
  .wtx-pro-ui .topic-card { min-height: 76px; padding: 13px 11px; }
  .wtx-pro-ui .topic-icon { border-radius: 11px; }

  .wtx-pro-ui .post-row { display: block; }
  .wtx-pro-ui .post-author {
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(153, 166, 196, .09);
    background: rgba(255, 255, 255, .018);
  }

  .wtx-pro-ui .market-hero,
  .wtx-pro-ui .pulses-hero,
  .wtx-pro-ui .studio-header,
  .wtx-pro-ui .pulse-upload-hero,
  .wtx-pro-ui .wx-hero { border-radius: 17px; }

  .wtx-pro-ui .market-tabs { border-radius: 12px; }
  .wtx-pro-ui .market-product-card,
  .wtx-pro-ui .shop-card,
  .wtx-pro-ui .package-card,
  .wtx-pro-ui .pulse-card,
  .wtx-pro-ui .pc-card { border-radius: 14px; }

  .wtx-pro-ui .messages-shell { box-shadow: none; }
  .wtx-pro-ui .conv-list-item { margin-inline: 5px; }
  .wtx-pro-ui .msg-row { max-width: 90%; }

  .wtx-pro-ui .auth-card {
    padding: 25px 19px;
    border-radius: 18px;
  }

  .wtx-pro-ui .admin-table { min-width: 650px; }
  .wtx-pro-ui .admin-log-table-wrap,
  .wtx-pro-ui .table-wrap { border-radius: 12px; }

  .wtx-pro-ui .bottom-nav { padding-bottom: env(safe-area-inset-bottom); }
}

@media (max-width: 420px) {
  .wtx-pro-ui .content-wrap { padding-inline: 9px; }
  .wtx-pro-ui .hero { padding-inline: 14px; }
  .wtx-pro-ui .btn { padding-inline: 13px; }
  .wtx-pro-ui .navbar-actions .btn-primary { display: none; }
  .wtx-pro-ui .market-product-grid,
  .wtx-pro-ui .shop-grid,
  .wtx-pro-ui .member-grid,
  .wtx-pro-ui .lb-grid { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  .wtx-pro-ui *,
  .wtx-pro-ui *::before,
  .wtx-pro-ui *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  body.wtx-pro-ui { background: #fff !important; color: #111 !important; }
  .wtx-pro-ui .sidebar,
  .wtx-pro-ui .navbar,
  .wtx-pro-ui .bottom-nav,
  .wtx-pro-ui .right-panel,
  .wtx-pro-ui .wtx-language-switcher { display: none !important; }
  .wtx-pro-ui .main { margin: 0 !important; }
  .wtx-pro-ui .content-wrap { max-width: none; padding: 0; }
  .wtx-pro-ui .card,
  .wtx-pro-ui .post-card { color: #111; background: #fff; border: 1px solid #bbb; box-shadow: none; }
}

/* Wiantex UI refresh 2026-09: global layout and fixed theme switcher */
html[data-wtx-theme="dark"] { --purple:#7c5cff;--blue:#3b82f6;--bg-0:#070914;--bg-1:#0c1022;--panel-0:#0d1428;--panel-1:#121a33;--text-0:#f3f2fb;--text-1:#c7c6dd;--text-2:#8b8ba7;--border:rgba(140,130,255,.14);color-scheme:dark; }
html[data-wtx-theme="light"] { --purple:#6d4aff;--blue:#2878e8;--bg-0:#f4f6fb;--bg-1:#fff;--panel-0:#fff;--panel-1:#f7f9fc;--text-0:#151824;--text-1:#3d4657;--text-2:#667085;--border:rgba(61,70,87,.13);color-scheme:light; }
html, body.wtx-pro-ui { min-height: 100%; }
body.wtx-pro-ui .app { min-height: 100dvh; }
body.wtx-pro-ui .main { min-height: 100dvh; display: flex; flex-direction: column; }
body.wtx-pro-ui .content-wrap { flex: 1 0 auto; }
body.wtx-pro-ui .footer { flex: 0 0 auto; margin-top: auto !important; padding-top: 24px; padding-bottom: 26px; }

.wtx-theme-menu { position: relative; }
.wtx-theme-trigger { display: grid !important; place-items: center; }
.wtx-theme-popover { position: absolute; top: calc(100% + 10px); right: 0; z-index: 1200; width: 248px; padding: 10px; border: 1px solid var(--wtx-line-strong); border-radius: 18px; background: rgba(13, 16, 29, .97); box-shadow: 0 22px 60px rgba(0, 0, 0, .38); backdrop-filter: blur(22px); }
.wtx-theme-popover[hidden] { display: none !important; }
.wtx-theme-popover > strong { display: block; padding: 6px 8px 9px; font-size: 12px; color: var(--wtx-muted); text-transform: uppercase; letter-spacing: .08em; }
.wtx-theme-popover button { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; gap: 8px; padding: 11px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: var(--wtx-text); text-align: left; cursor: pointer; }
.wtx-theme-popover button:hover { background: rgba(255, 255, 255, .055); }
.wtx-theme-popover button.active { border-color: rgba(124, 92, 255, .28); background: rgba(124, 92, 255, .12); }
.wtx-theme-popover button > svg { width: 18px; height: 18px; color: #9a88ff; }
.wtx-theme-popover button span { display: grid; gap: 2px; }
.wtx-theme-popover button b { font-size: 13px; }
.wtx-theme-popover button small { font-size: 11px; color: var(--wtx-muted); }
.wtx-theme-popover button i { opacity: 0; color: #8c76ff; font-style: normal; }
.wtx-theme-popover button.active i { opacity: 1; }
.wtx-theme-quick { position: fixed; top: 16px; right: 16px; z-index: 4200; display: flex; gap: 4px; padding: 4px; border: 1px solid var(--wtx-line); border-radius: 999px; background: rgba(13,16,29,.88); box-shadow: 0 12px 34px rgba(0,0,0,.24); backdrop-filter: blur(16px); }
.wtx-theme-quick button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--wtx-muted); cursor: pointer; font-size: 17px; }
.wtx-theme-quick button.active { color: #fff; background: var(--gradient-primary); }

/* Profile: one orderly identity card instead of scattered inline blocks */
.wtx-pro-ui .profile-hero { padding: 0 !important; overflow: hidden; border-radius: 24px; }
.wtx-pro-ui .profile-hero[data-has-banner="0"]::before { content: ''; display: block; height: 132px; background: radial-gradient(circle at 20% 0, rgba(125, 92, 255, .30), transparent 42%), linear-gradient(125deg, #171329, #101522 58%, #0c1c2d); border-bottom: 1px solid rgba(255,255,255,.07); }
.wtx-pro-ui .profile-hero .profile-banner { height: 210px; border-radius: 0; }
.wtx-pro-ui .profile-identity-layout { position: relative; padding: 0 24px 24px; margin-top: -42px; gap: 22px !important; align-items: flex-end !important; }
.wtx-pro-ui .profile-main-avatar { flex: 0 0 auto; padding: 6px; border-radius: 26px; background: var(--wtx-panel); box-shadow: 0 14px 34px rgba(0,0,0,.26); }
.wtx-pro-ui .profile-identity-copy { padding-top: 54px; min-width: min(100%, 280px) !important; }
.wtx-pro-ui .profile-title-row { gap: 8px !important; }
.wtx-pro-ui .profile-title-row h1 { margin: 0; font-size: clamp(21px, 2vw, 28px) !important; letter-spacing: -.035em; }
.wtx-pro-ui .profile-bio { margin: 10px 0 16px !important; max-width: 680px !important; line-height: 1.65; }
.wtx-pro-ui .profile-stats-strip { gap: 8px !important; }
.wtx-pro-ui .profile-stats-strip > span,
.wtx-pro-ui .profile-stats-strip > a { display: inline-flex; align-items: center; min-height: 34px; padding: 7px 10px; border: 1px solid var(--wtx-line); border-radius: 11px; background: rgba(255,255,255,.025); }
.wtx-pro-ui .profile-stats-strip .profile-presence { gap: 7px; padding-left: 7px; }
.wtx-pro-ui .profile-presence i { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 999px; background: color-mix(in srgb, currentColor 18%, transparent); }
.wtx-pro-ui .profile-presence i .presence-svg-icon { width: 18px !important; height: 18px !important; stroke-width: 2.4; }
.wtx-pro-ui .profile-level-block { max-width: 440px !important; margin-top: 15px !important; }
.wtx-pro-ui .profile-actions { align-self: flex-start; padding-top: 52px; justify-content: flex-end; }
.wtx-pro-ui .profile-rating-card { border-radius: 19px; }

/* Avatar presence badge: readable symbols without touching verified SVGs */
.wtx-pro-ui .avatar-presence-stack .avatar-presence-dot,
.wtx-pro-ui .avatar-wrap .avatar-presence-dot { width: 20px !important; height: 20px !important; min-width: 20px !important; min-height: 20px !important; right: -8px !important; bottom: -8px !important; border-width: 2px !important; }
.wtx-pro-ui .avatar-presence-dot .presence-svg-icon { width: 12px !important; height: 12px !important; stroke-width: 2.6; }

/* Messages and groups */
.wtx-pro-ui .chat-section-head { align-items: center; }
.wtx-pro-ui .conv-list { padding: 9px; }
.wtx-pro-ui .conv-list-label { padding: 10px 11px 7px; color: var(--wtx-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.wtx-pro-ui .conv-list-item { margin-bottom: 4px; border: 1px solid transparent; border-radius: 14px; }
.wtx-pro-ui .conv-list-item:hover { border-color: var(--wtx-line); background: rgba(255,255,255,.045); }
.wtx-pro-ui .group-conv-avatar { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--gradient-primary); box-shadow: 0 8px 20px rgba(96,72,220,.22); }
.wtx-pro-ui .group-create-modal { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 18px; background: rgba(3,5,12,.72); backdrop-filter: blur(10px); }
.wtx-pro-ui .group-create-modal[hidden] { display: none !important; }
.wtx-pro-ui .group-create-card { position: relative; width: min(510px, 100%); display: grid; gap: 15px; padding: 24px; border-radius: 22px; }
.wtx-pro-ui .group-create-card h3 { margin: 8px 0 5px; font-size: 20px; }
.wtx-pro-ui .group-create-card p { margin: 0; color: var(--wtx-muted); font-size: 12px; }
.wtx-pro-ui .group-create-card small { color: var(--wtx-muted); }
.wtx-pro-ui .group-modal-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--gradient-primary); }
.wtx-pro-ui .modal-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px; color: var(--wtx-text); background: rgba(255,255,255,.055); font-size: 22px; cursor: pointer; }
.wtx-pro-ui .group-chat-shell { border-radius: 22px; }
.wtx-pro-ui .group-info-panel { background: rgba(255,255,255,.018); }
.wtx-pro-ui .group-member-row { min-height: 42px; padding: 6px; border-radius: 11px; }
.wtx-pro-ui .group-member-row:hover { background: rgba(255,255,255,.04); }

/* Pulses: immersive vertical Shorts layout */
.wtx-pro-ui.pulses-page-body .content-wrap { padding-top: 12px; padding-bottom: 0; }
.wtx-pro-ui .pulses-hero { max-width: 500px; }
.wtx-pro-ui .pulses-feed { height: calc(100dvh - 132px); min-height: 560px; gap: 14px; padding: 0 10px 22px; scrollbar-width: none; }
.wtx-pro-ui .pulses-feed::-webkit-scrollbar { display: none; }
.wtx-pro-ui .pulse-short { position: relative; width: min(430px, calc(100vw - 36px)); height: calc(100dvh - 154px); min-height: 580px; max-height: 840px; flex: 0 0 auto; overflow: hidden; border-radius: 24px; background: #050508; }
.wtx-pro-ui .pulse-short .pulse-video-wrap { width: 100%; height: 100% !important; min-height: 0; flex: 1; aspect-ratio: auto; }
.wtx-pro-ui .pulse-short .pulse-player,
.wtx-pro-ui .pulse-short video { width: 100%; height: 100%; object-fit: cover; }
.wtx-pro-ui .pulse-short .pulse-caption { left: 16px; right: 78px; bottom: 88px; font-size: 15px; font-weight: 800; text-shadow: 0 2px 12px #000; }
.wtx-pro-ui .pulse-short .pulse-meta { position: absolute; inset: auto 0 0 0; z-index: 12; min-height: 150px; padding: 76px 82px 18px 16px; pointer-events: none; color: #fff; background: linear-gradient(180deg, transparent, rgba(0,0,0,.84)); }
.wtx-pro-ui .pulse-short .pulse-title { font-size: 15px; white-space: normal; }
.wtx-pro-ui .pulse-short .pulse-user { color: rgba(255,255,255,.76); font-size: 12px; }
.wtx-pro-ui .pulse-short .pulse-engagement { position: absolute; right: 12px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; pointer-events: auto; }
.wtx-pro-ui .pulse-short .pulse-eng-btn { width: 52px; min-height: 52px; display: grid; place-items: center; gap: 1px; padding: 6px; border-radius: 999px; color: #fff; background: rgba(18,18,24,.72); border-color: rgba(255,255,255,.15); backdrop-filter: blur(10px); }
.wtx-pro-ui .pulse-short .pulse-comments { display: none; }
.wtx-pro-ui .pulse-short .pulse-player__shade { z-index: 14; }

/* Members */
.wtx-pro-ui .member-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; gap: 14px !important; }
.wtx-pro-ui .member-card { position: relative; min-height: 160px; padding: 18px !important; overflow: hidden; border-radius: 19px; }
.wtx-pro-ui .member-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--gradient-primary); opacity: .7; }
.wtx-pro-ui .member-card-main { align-items: center; }
.wtx-pro-ui .member-card-actions { margin-top: 14px; }

/* Market */
.wtx-pro-ui.market-page .content-wrap { max-width: 1520px; }
.wtx-pro-ui .market-hero { position: relative; overflow: hidden; min-height: 126px; align-items: center; padding: 26px; }
.wtx-pro-ui .market-hero::after { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(96,165,250,.2), transparent 68%); pointer-events: none; }
.wtx-pro-ui .market-tabs { position: sticky; top: 82px; z-index: 50; padding: 7px; overflow-x: auto; scrollbar-width: none; backdrop-filter: blur(18px); }
.wtx-pro-ui .market-tabs::-webkit-scrollbar { display: none; }
.wtx-pro-ui .market-tab-btn { white-space: nowrap; min-height: 42px; }
.wtx-pro-ui .shop-grid,
.wtx-pro-ui .market-product-grid { gap: 16px !important; }
.wtx-pro-ui .shop-card,
.wtx-pro-ui .package-card,
.wtx-pro-ui .market-product-card { border-radius: 20px; }
.wtx-pro-ui .shop-card-media { min-height: 128px; border-radius: 15px; background: radial-gradient(circle at 50% 35%, rgba(124,92,255,.18), transparent 65%), rgba(255,255,255,.025); }

/* Admin: shared visual system for every panel screen */
.wtx-pro-ui.admin-page .section-head { padding: 4px 2px 14px; }
.wtx-pro-ui.admin-page .section-head h2 { font-size: clamp(21px, 2vw, 28px); }
.wtx-pro-ui.admin-page .admin-nav-grid { padding: 8px; border: 1px solid var(--wtx-line); border-radius: 18px; background: rgba(255,255,255,.018); }
.wtx-pro-ui.admin-page .admin-nav-link { min-height: 46px; border-radius: 12px; }
.wtx-pro-ui.admin-page .card { border-radius: 19px; }
.wtx-pro-ui.admin-page table { overflow: hidden; border-radius: 14px; }
.wtx-pro-ui .admin-control-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px; margin-bottom: 16px; }
.wtx-pro-ui .admin-control-copy { display: flex; align-items: center; gap: 14px; }
.wtx-pro-ui .admin-control-copy h3 { margin: 0 0 5px; font-size: 15px; }
.wtx-pro-ui .admin-control-copy p { margin: 0; color: var(--wtx-muted); font-size: 12px; }
.wtx-pro-ui .admin-control-icon { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--gradient-primary); }
.wtx-pro-ui .admin-toggle-form { display: flex; align-items: center; gap: 10px; }
.wtx-pro-ui .admin-status-pill { padding: 7px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.wtx-pro-ui .admin-status-pill.is-on { color: #68e2a6; background: rgba(52,211,153,.12); }
.wtx-pro-ui .admin-status-pill.is-off { color: #ff8a9d; background: rgba(251,113,133,.12); }
.wtx-pro-ui .admin-theme-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.wtx-pro-ui .admin-theme-card { display: grid; grid-template-columns: 160px minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 16px; }
.wtx-pro-ui .admin-theme-card p { margin: 5px 0 0; color: var(--wtx-muted); font-size: 12px; }
.wtx-pro-ui .admin-theme-preview { position: relative; height: 100px; overflow: hidden; border-radius: 14px; background: var(--preview-bg); border: 1px solid rgba(128,128,128,.16); }
.wtx-pro-ui .admin-theme-preview span { position: absolute; inset: 0 auto 0 0; width: 34px; background: var(--preview-panel); }
.wtx-pro-ui .admin-theme-preview i { position: absolute; left: 44px; right: 10px; top: 10px; height: 16px; border-radius: 7px; background: var(--preview-panel); }
.wtx-pro-ui .admin-theme-preview b { position: absolute; left: 44px; width: 46px; bottom: 12px; height: 50px; border-radius: 8px; background: linear-gradient(145deg,var(--preview-accent),var(--preview-accent-2)); }
.wtx-pro-ui .admin-theme-preview b:last-child { left: 98px; right: 10px; width: auto; background: var(--preview-panel); }

/* Light-theme additions */
body.wtx-pro-ui[data-wtx-theme="light"] .wtx-theme-popover { color: #273142; background: rgba(255,255,255,.98); border-color: rgba(52,64,84,.13); box-shadow: 0 22px 60px rgba(35,46,70,.16); }
body.wtx-pro-ui[data-wtx-theme="light"] .wtx-theme-popover button:hover { background: rgba(31,41,61,.045); }
body.wtx-pro-ui[data-wtx-theme="light"] .wtx-theme-quick { background: rgba(255,255,255,.92); border-color: rgba(52,64,84,.12); box-shadow: 0 12px 34px rgba(35,46,70,.13); }
body.wtx-pro-ui[data-wtx-theme="light"] .auth-site-logo { filter: brightness(.46) contrast(1.45) saturate(1.55) drop-shadow(0 8px 16px rgba(68,45,150,.15)); }
body.wtx-pro-ui[data-wtx-theme="light"] .profile-hero[data-has-banner="0"]::before { background: radial-gradient(circle at 20% 0, rgba(109,74,255,.18), transparent 44%), linear-gradient(125deg,#f6f3ff,#eef4ff 60%,#f7f9fc); border-bottom-color: rgba(52,64,84,.08); }
body.wtx-pro-ui[data-wtx-theme="light"] .profile-main-avatar { background: #fff; box-shadow: 0 14px 34px rgba(35,46,70,.14); }
body.wtx-pro-ui[data-wtx-theme="light"] .profile-stats-strip > span,
body.wtx-pro-ui[data-wtx-theme="light"] .profile-stats-strip > a { background: rgba(31,41,61,.025); border-color: rgba(52,64,84,.10); }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-list-item:hover,
body.wtx-pro-ui[data-wtx-theme="light"] .group-member-row:hover { background: rgba(31,41,61,.04); }
body.wtx-pro-ui[data-wtx-theme="light"] .group-create-modal { background: rgba(27,35,49,.45); }
body.wtx-pro-ui[data-wtx-theme="light"] .group-info-panel { background: #f8f9fc; }
body.wtx-pro-ui[data-wtx-theme="light"].admin-page .admin-nav-grid { background: rgba(31,41,61,.025); border-color: rgba(52,64,84,.10); }

@media (max-width: 920px) {
  .wtx-pro-ui .profile-identity-layout { align-items: flex-start !important; }
  .wtx-pro-ui .profile-actions { width: 100%; padding-top: 0; justify-content: flex-start; }
  .wtx-pro-ui .admin-theme-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .wtx-pro-ui .profile-hero[data-has-banner="0"]::before { height: 104px; }
  .wtx-pro-ui .profile-hero .profile-banner { height: 150px; }
  .wtx-pro-ui .profile-identity-layout { margin-top: -34px; padding: 0 14px 18px; gap: 10px !important; }
  .wtx-pro-ui .profile-identity-copy { width: 100%; padding-top: 0; }
  .wtx-pro-ui .profile-title-row { margin-top: 2px; }
  .wtx-pro-ui .profile-stats-strip { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wtx-pro-ui .profile-stats-strip > span,
  .wtx-pro-ui .profile-stats-strip > a { justify-content: center; text-align: center; }
  .wtx-pro-ui .profile-actions .btn,
  .wtx-pro-ui .profile-actions form { flex: 1 1 150px; }
  .wtx-pro-ui .profile-actions form .btn { width: 100%; }
  .wtx-pro-ui .pulse-short { width: 100vw; height: calc(100dvh - 112px); min-height: 0; max-height: none; border-radius: 0; border-left: 0; border-right: 0; }
  .wtx-pro-ui .pulses-feed { height: calc(100dvh - 100px); padding: 0 0 12px; gap: 8px; }
  .wtx-pro-ui .pulses-hero { display: none; }
  .wtx-pro-ui .admin-control-card { align-items: stretch; flex-direction: column; }
  .wtx-pro-ui .admin-toggle-form { justify-content: space-between; }
  .wtx-pro-ui .admin-theme-card { grid-template-columns: 1fr; }
  .wtx-pro-ui .admin-theme-preview { height: 130px; }
}

/* 2026-09-12 final polish: profile hierarchy, presence, Shorts snapping */
.wtx-pro-ui .profile-identity-layout {
  display:grid !important;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:end !important;
}
.wtx-pro-ui .profile-identity-copy { min-width:0 !important; }
.wtx-pro-ui .profile-title-row { align-items:center !important; }
.wtx-pro-ui .profile-stats-strip {
  display:flex !important;
  align-items:center;
  gap:7px !important;
}
.wtx-pro-ui .profile-stats-strip > span,
.wtx-pro-ui .profile-stats-strip > a {
  min-height:36px;
  padding:8px 11px;
  border-radius:12px;
}
.wtx-pro-ui .profile-actions {
  min-width:max-content;
  max-width:310px;
  align-content:flex-start;
}
.wtx-pro-ui .profile-actions .btn { min-height:38px; }
.wtx-pro-ui .profile-main-avatar .avatar-wrap { filter:drop-shadow(0 12px 24px rgba(0,0,0,.18)); }
.wtx-pro-ui .profile-rating-card { padding:20px !important; }
.wtx-pro-ui .profile-rating-card + .card,
.wtx-pro-ui .profile-hero + .card { scroll-margin-top:96px; }

/* Presence symbols should read almost as large as their status circles. */
.wtx-pro-ui .avatar-presence-stack .avatar-presence-dot,
.wtx-pro-ui .avatar-wrap .avatar-presence-dot {
  width:22px !important;
  height:22px !important;
  min-width:22px !important;
  min-height:22px !important;
  right:-8px !important;
  bottom:-8px !important;
  border-width:2px !important;
}
.wtx-pro-ui .avatar-presence-dot .presence-svg-icon {
  width:16px !important;
  height:16px !important;
  stroke-width:2.8 !important;
}
.wtx-pro-ui .profile-presence i {
  width:26px;
  height:26px;
}
.wtx-pro-ui .profile-presence i .presence-svg-icon {
  width:20px !important;
  height:20px !important;
  stroke-width:2.7 !important;
}

/* True vertical Shorts behavior: one Pulse per swipe/scroll. */
.wtx-pro-ui .pulses-feed {
  overflow-y:auto;
  overflow-x:hidden;
  scroll-snap-type:y mandatory;
  scroll-behavior:smooth;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
}
.wtx-pro-ui .pulse-short {
  scroll-snap-align:center;
  scroll-snap-stop:always;
  isolation:isolate;
  box-shadow:0 20px 70px rgba(0,0,0,.32);
}
.wtx-pro-ui .pulse-short .pulse-engagement { z-index:18; }
.wtx-pro-ui .pulse-short .pulse-eng-btn {
  transition:transform .16s ease, background .16s ease, border-color .16s ease;
}
.wtx-pro-ui .pulse-short .pulse-eng-btn:hover {
  transform:scale(1.06);
  background:rgba(28,28,36,.88);
  border-color:rgba(255,255,255,.28);
}

/* Members discovery toolbar */
.wtx-pro-ui .members-toolbar {
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:12px;
  align-items:center;
  margin-bottom:16px;
}
.wtx-pro-ui .members-search {
  position:relative;
  display:flex;
  align-items:center;
  gap:9px;
  min-height:44px;
  padding:0 13px;
  border:1px solid var(--wtx-line);
  border-radius:14px;
  background:var(--wtx-panel);
}
.wtx-pro-ui .members-search svg { flex:0 0 auto; color:var(--wtx-muted); }
.wtx-pro-ui .members-search input {
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--wtx-text);
  font:inherit;
}
.wtx-pro-ui .members-sort-list { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; }
.wtx-pro-ui .members-sort-list::-webkit-scrollbar { display:none; }

/* Group administration actions remain compact on dense member lists. */
.wtx-pro-ui .group-member-actions { display:flex; align-items:center; gap:5px; }
.wtx-pro-ui .group-member-actions form { margin:0; }
.wtx-pro-ui .group-role-pill {
  display:inline-flex;
  align-items:center;
  min-height:22px;
  padding:3px 7px;
  border-radius:999px;
  background:rgba(124,92,255,.11);
  color:#b9adff;
  font-size:10px;
  font-weight:800;
}
.wtx-pro-ui .group-role-pill.owner { background:rgba(245,158,11,.12); color:#f6c66b; }
.wtx-pro-ui .group-role-pill.admin { background:rgba(59,130,246,.12); color:#8fbcff; }

/* Light theme final consistency */
body.wtx-pro-ui[data-wtx-theme="light"] .members-search { background:#fff; border-color:rgba(52,64,84,.12); }
body.wtx-pro-ui[data-wtx-theme="light"] .pulse-short { box-shadow:0 20px 60px rgba(35,46,70,.18); }
body.wtx-pro-ui[data-wtx-theme="light"] .group-role-pill { color:#5f49c9; background:rgba(109,74,255,.10); }
body.wtx-pro-ui[data-wtx-theme="light"] .group-role-pill.owner { color:#9a6500; background:rgba(245,158,11,.13); }
body.wtx-pro-ui[data-wtx-theme="light"] .group-role-pill.admin { color:#2864ae; background:rgba(59,130,246,.11); }

@media (max-width:980px) {
  .wtx-pro-ui .profile-identity-layout { grid-template-columns:auto minmax(0,1fr); }
  .wtx-pro-ui .profile-actions { grid-column:1 / -1; max-width:none; width:100%; padding-top:0; }
  .wtx-pro-ui .members-toolbar { grid-template-columns:1fr; }
}
@media (max-width:640px) {
  .wtx-pro-ui .profile-identity-layout {
    grid-template-columns:1fr;
    justify-items:center;
    text-align:center;
    margin-top:-54px;
    padding-inline:14px;
  }
  .wtx-pro-ui .profile-identity-copy { width:100%; padding-top:0; }
  .wtx-pro-ui .profile-title-row,
  .wtx-pro-ui .profile-stats-strip,
  .wtx-pro-ui .profile-actions { justify-content:center; }
  .wtx-pro-ui .profile-bio { margin-inline:auto !important; }
  .wtx-pro-ui .profile-level-block { margin-inline:auto; }
  .wtx-pro-ui .profile-actions { min-width:0; }
  .wtx-pro-ui .profile-actions .btn,
  .wtx-pro-ui .profile-actions form { flex:1 1 auto; }
  .wtx-pro-ui .profile-actions form .btn { width:100%; }
  .wtx-pro-ui .members-sort-list { margin-inline:-2px; padding-bottom:2px; }
}

/* ==========================================================================\n   SAFE HOTFIX — no PHP/DB dependencies. Presence + Messages + Market UI\n   ========================================================================== */

/* Presence badge: always anchored to the avatar itself. */
.wtx-pro-ui .avatar-wrap,
.wtx-pro-ui .avatar-presence-stack {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  vertical-align: middle !important;
  line-height: 0 !important;
  overflow: visible !important;
}
.wtx-pro-ui .avatar-wrap > img,
.wtx-pro-ui .avatar-presence-stack > img {
  display: block !important;
  margin: 0 !important;
}
.wtx-pro-ui .avatar-wrap .avatar-presence-dot,
.wtx-pro-ui .avatar-presence-stack .avatar-presence-dot {
  position: absolute !important;
  z-index: 20 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  left: auto !important;
  margin: 0 !important;
  transform: translate(18%, 18%) !important;
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  min-height: 17px !important;
  display: grid !important;
  place-items: center !important;
  border-width: 2px !important;
  border-style: solid !important;
  border-color: var(--panel-0, #0b0f18) !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.wtx-pro-ui .avatar-presence-dot .presence-svg-icon {
  width: 11px !important;
  height: 11px !important;
  display: block !important;
  stroke-width: 2.8 !important;
}
.wtx-pro-ui .profile-main-avatar .avatar-presence-dot {
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  transform: translate(12%, 12%) !important;
}
.wtx-pro-ui .profile-main-avatar .avatar-presence-dot .presence-svg-icon {
  width: 14px !important;
  height: 14px !important;
}
.wtx-pro-ui .msg-row .avatar-presence-dot {
  width: 11px !important;
  height: 11px !important;
  min-width: 11px !important;
  min-height: 11px !important;
  border-width: 1.5px !important;
  transform: translate(12%, 12%) !important;
}
.wtx-pro-ui .msg-row .avatar-presence-dot .presence-svg-icon {
  width: 7px !important;
  height: 7px !important;
}
body.wtx-pro-ui[data-wtx-theme="light"] .avatar-wrap .avatar-presence-dot,
body.wtx-pro-ui[data-wtx-theme="light"] .avatar-presence-stack .avatar-presence-dot {
  border-color: #fff !important;
}

/* Messages: visual-only refresh, compatible with original server-side markup. */
.wtx-pro-ui.chat-list .content-wrap,
.wtx-pro-ui.chat-open .content-wrap { max-width: 1480px; }
.wtx-pro-ui .messages-shell {
  display: grid;
  grid-template-columns: minmax(275px, 335px) minmax(0, 1fr);
  min-height: min(760px, calc(100dvh - 190px));
  height: min(760px, calc(100dvh - 190px));
  overflow: hidden;
  border: 1px solid rgba(148,163,184,.13) !important;
  border-radius: 24px !important;
  background: linear-gradient(145deg, rgba(14,18,29,.97), rgba(8,11,19,.985)) !important;
  box-shadow: 0 28px 78px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.025) !important;
}
.wtx-pro-ui .conv-list {
  min-width: 0;
  overflow-y: auto;
  padding: 10px !important;
  border-right: 1px solid rgba(148,163,184,.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.008)) !important;
}
.wtx-pro-ui .conv-list-label {
  margin: 6px 4px 3px;
  padding: 8px 6px 5px !important;
  font-size: 9px !important;
  letter-spacing: .13em !important;
}
.wtx-pro-ui .conv-list-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  margin: 3px 0 !important;
  padding: 10px 11px !important;
  border: 1px solid transparent !important;
  border-radius: 16px !important;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease !important;
}
.wtx-pro-ui .conv-list-item:hover {
  transform: none !important;
  background: rgba(255,255,255,.045) !important;
  border-color: rgba(148,163,184,.10) !important;
}
.wtx-pro-ui .conv-list-item.active {
  background: linear-gradient(115deg, rgba(124,92,255,.17), rgba(55,118,255,.06)) !important;
  border-color: rgba(139,112,255,.24) !important;
  box-shadow: inset 3px 0 0 #8c73ff, 0 10px 26px rgba(61,46,141,.08) !important;
}
.wtx-pro-ui .conv-chat {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  background: radial-gradient(680px 360px at 75% -10%, rgba(109,76,255,.075), transparent 70%), rgba(7,10,17,.48) !important;
}
.wtx-pro-ui .conv-chat-header {
  min-height: 70px;
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(148,163,184,.10) !important;
  background: rgba(13,17,27,.84) !important;
  backdrop-filter: blur(18px) saturate(120%);
}
.wtx-pro-ui .conv-chat-body {
  min-height: 0;
  overflow-y: auto;
  padding: 22px clamp(14px,2.5vw,28px) !important;
  background: radial-gradient(circle at 15% 10%, rgba(124,92,255,.035), transparent 25%), radial-gradient(circle at 85% 85%, rgba(56,139,255,.025), transparent 26%) !important;
}
.wtx-pro-ui .msg-bubble {
  border-radius: 17px !important;
  box-shadow: 0 7px 22px rgba(0,0,0,.10) !important;
}
.wtx-pro-ui .msg-row:not(.mine) .msg-bubble { background: rgba(255,255,255,.065) !important; }
.wtx-pro-ui .msg-row.mine .msg-bubble { background: linear-gradient(145deg,#7357df,#4e73dd) !important; }
.wtx-pro-ui .conv-chat-input {
  padding: 12px 14px !important;
  border-top: 1px solid rgba(148,163,184,.10) !important;
  background: rgba(11,15,24,.92) !important;
  backdrop-filter: blur(18px);
}
.wtx-pro-ui .msg-composer-wrap,
.wtx-pro-ui .msg-composer { border-radius: 16px !important; }

/* Market: visual-only storefront refresh; no extra PHP variables/functions. */
.wtx-pro-ui .market-hero {
  min-height: 170px !important;
  display: grid !important;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 22px;
  align-items: center !important;
  padding: clamp(24px,3.5vw,38px) !important;
  border: 1px solid rgba(139,112,255,.20) !important;
  border-radius: 28px !important;
  background: radial-gradient(520px 240px at 90% 15%, rgba(68,139,255,.17), transparent 68%), radial-gradient(440px 220px at 15% 0%, rgba(145,94,255,.14), transparent 72%), linear-gradient(135deg, rgba(22,27,43,.98), rgba(10,14,24,.98)) !important;
  box-shadow: 0 28px 75px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.035) !important;
}
.wtx-pro-ui .market-hero > div { min-width: 0; position: relative; z-index: 2; }
.wtx-pro-ui .market-hero h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: clamp(27px,3vw,38px);
  letter-spacing: -.045em;
}
.wtx-pro-ui .market-hero p { max-width: 650px; margin: 9px 0 0; color: var(--wtx-muted, var(--text-2)); font-size: 13px; }
.wtx-pro-ui .market-balance {
  position: relative;
  z-index: 2;
  min-width: 185px;
  min-height: 66px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 18px !important;
  border: 1px solid rgba(167,139,250,.22) !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(124,92,255,.16), rgba(41,91,188,.10)) !important;
}
.wtx-pro-ui .market-tabs {
  margin-top: 16px;
  padding: 6px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.025) !important;
}
.wtx-pro-ui .market-tab-btn { min-height: 40px; padding-inline: 14px !important; border-radius: 11px !important; }
.wtx-pro-ui .market-product-card,
.wtx-pro-ui .shop-card,
.wtx-pro-ui .package-card {
  border-radius: 20px !important;
  border-color: rgba(148,163,184,.12) !important;
  background: linear-gradient(155deg, rgba(20,25,39,.94), rgba(11,15,24,.98)) !important;
  box-shadow: 0 12px 34px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.025) !important;
}
.wtx-pro-ui .market-product-card:hover,
.wtx-pro-ui .shop-card:hover,
.wtx-pro-ui .package-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(139,112,255,.34) !important;
  box-shadow: 0 20px 46px rgba(0,0,0,.23), 0 0 0 1px rgba(124,92,255,.06) !important;
}

body.wtx-pro-ui[data-wtx-theme="light"] .messages-shell {
  background: #fff !important;
  border-color: rgba(52,64,84,.10) !important;
  box-shadow: 0 24px 60px rgba(45,55,75,.10) !important;
}
body.wtx-pro-ui[data-wtx-theme="light"] .conv-list { background: #f7f8fb !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-chat { background: #f8f9fc !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-chat-header,
body.wtx-pro-ui[data-wtx-theme="light"] .conv-chat-input { background: rgba(255,255,255,.92) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .conv-chat-body { background: #f6f8fb !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .msg-row:not(.mine) .msg-bubble { color: #2f3644 !important; background: #fff !important; border-color: rgba(71,85,105,.12) !important; }
body.wtx-pro-ui[data-wtx-theme="light"] .market-hero {
  background: radial-gradient(520px 240px at 90% 15%, rgba(68,139,255,.10), transparent 68%), radial-gradient(440px 220px at 15% 0%, rgba(145,94,255,.09), transparent 72%), linear-gradient(135deg,#fff,#f7f8fc) !important;
  border-color: rgba(109,74,255,.16) !important;
  box-shadow: 0 24px 60px rgba(45,55,75,.10) !important;
}
body.wtx-pro-ui[data-wtx-theme="light"] .market-product-card,
body.wtx-pro-ui[data-wtx-theme="light"] .shop-card,
body.wtx-pro-ui[data-wtx-theme="light"] .package-card { background: #fff !important; border-color: rgba(52,64,84,.10) !important; }

@media (max-width: 860px) {
  .wtx-pro-ui .messages-shell { grid-template-columns: 1fr; height: auto; min-height: 0; }
  .wtx-pro-ui.chat-open .messages-shell .conv-list { display: none; }
  .wtx-pro-ui.chat-list .messages-shell .conv-chat { display: none; }
  .wtx-pro-ui .conv-list { max-height: none; border-right: 0 !important; }
  .wtx-pro-ui .conv-chat { min-height: calc(100dvh - 185px); }
  .wtx-pro-ui .market-hero { grid-template-columns: 1fr; }
  .wtx-pro-ui .market-balance { min-width: 0; width: max-content; }
}

/* 2026-09-12 group/profile corrective hotfix */
.wtx-pro-ui .profile-main-avatar {
  position: relative !important;
  z-index: 8 !important;
  transform: translateY(-34px) !important;
  align-self: start !important;
}
.wtx-pro-ui .profile-identity-layout {
  overflow: visible !important;
}
.wtx-pro-ui .profile-main-avatar .avatar-wrap {
  position: relative !important;
  z-index: 9 !important;
}
@media (max-width: 640px) {
  .wtx-pro-ui .profile-main-avatar {
    transform: translateY(-22px) !important;
  }
}

/* --- PROFILE AVATAR + PRESENCE HOTFIX 2026-09-12 --- */
.wtx-pro-ui .profile-main-avatar,
.wtx-pro-ui .profile-main-avatar.has-banner{
  position: relative !important;
  z-index: 4 !important;
  width: 96px !important;
  min-width: 96px !important;
  height: 96px !important;
  overflow: visible !important;
}
.wtx-pro-ui .profile-main-avatar.has-banner{
  margin-top: -16px !important; /* avatar should sit lower, near the body area */
}
.wtx-pro-ui .profile-main-avatar .avatar-wrap,
.wtx-pro-ui .profile-main-avatar .avatar-presence-stack,
.wtx-pro-ui .profile-main-avatar .avatar-frame-wrap{
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 96px !important;
  height: 96px !important;
  min-width: 96px !important;
  min-height: 96px !important;
  overflow: visible !important;
  line-height: 0 !important;
  vertical-align: top !important;
}
.wtx-pro-ui .profile-main-avatar .avatar-wrap > img,
.wtx-pro-ui .profile-main-avatar .avatar-frame-base > img,
.wtx-pro-ui .profile-main-avatar .avatar,
.wtx-pro-ui .profile-main-avatar .avatar-fallback{
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}
.wtx-pro-ui .profile-main-avatar .avatar-presence-dot{
  position: absolute !important;
  right: -4px !important;
  bottom: -4px !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  z-index: 25 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid var(--panel-0, #0b0f18) !important;
  border-radius: 999px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.wtx-pro-ui .profile-main-avatar .avatar-presence-dot .presence-svg-icon{
  width: 12px !important;
  height: 12px !important;
  display: block !important;
}


/* === PROFILE POSITION + PRESENCE FINAL FIX v3 ===
   This block intentionally wins over every older profile/avatar hotfix. */
body.wtx-pro-ui .profile-identity-layout{overflow:visible!important;}
body.wtx-pro-ui .profile-main-avatar,
body.wtx-pro-ui .profile-main-avatar.has-banner{
  position:relative!important;z-index:20!important;transform:none!important;align-self:start!important;
  margin-top:20px!important;padding:0!important;width:84px!important;min-width:84px!important;height:84px!important;
  border-radius:50%!important;background:transparent!important;box-shadow:none!important;overflow:visible!important;
}
body.wtx-pro-ui .profile-main-avatar .avatar-wrap,
body.wtx-pro-ui .profile-main-avatar .avatar-presence-stack,
body.wtx-pro-ui .profile-main-avatar .avatar-frame-wrap{
  --avatar-size:84px!important;width:84px!important;height:84px!important;min-width:84px!important;min-height:84px!important;
  flex:0 0 84px!important;margin:0!important;transform:none!important;overflow:visible!important;
}
body.wtx-pro-ui .profile-main-avatar .avatar-presence-dot{display:none!important;}
body.wtx-pro-ui .profile-main-avatar .profile-avatar-presence-dot{
  position:absolute!important;right:-3px!important;bottom:-3px!important;top:auto!important;left:auto!important;z-index:50!important;
  width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;display:flex!important;
  align-items:center!important;justify-content:center!important;border:3px solid var(--panel-0,#0b0f18)!important;border-radius:999px!important;
  box-sizing:border-box!important;overflow:hidden!important;background:#64748b;color:#fff;box-shadow:0 2px 8px rgba(0,0,0,.28)!important;
}
body.wtx-pro-ui .profile-main-avatar .profile-avatar-presence-dot.avatar-presence-online{background:#22c55e!important;color:#fff!important}
body.wtx-pro-ui .profile-main-avatar .profile-avatar-presence-dot.avatar-presence-busy{background:#f59e0b!important;color:#fff!important}
body.wtx-pro-ui .profile-main-avatar .profile-avatar-presence-dot.avatar-presence-dnd{background:#ef4444!important;color:#fff!important}
body.wtx-pro-ui .profile-main-avatar .profile-avatar-presence-dot.avatar-presence-away{background:#94a3b8!important;color:#fff!important}
body.wtx-pro-ui .profile-main-avatar .profile-avatar-presence-dot.avatar-presence-sleep{background:#8b5cf6!important;color:#fff!important}
body.wtx-pro-ui .profile-main-avatar .profile-avatar-presence-dot.avatar-presence-offline{background:#64748b!important;color:#e2e8f0!important}
body.wtx-pro-ui .profile-main-avatar .profile-avatar-presence-dot .presence-svg-icon{width:11px!important;height:11px!important;display:block!important;}
@media(max-width:640px){
  body.wtx-pro-ui .profile-main-avatar,body.wtx-pro-ui .profile-main-avatar.has-banner{transform:none!important;margin-top:16px!important;width:76px!important;min-width:76px!important;height:76px!important;}
  body.wtx-pro-ui .profile-main-avatar .avatar-wrap,body.wtx-pro-ui .profile-main-avatar .avatar-presence-stack,body.wtx-pro-ui .profile-main-avatar .avatar-frame-wrap{--avatar-size:76px!important;width:76px!important;height:76px!important;min-width:76px!important;min-height:76px!important;flex-basis:76px!important;}
}

/* --- MOBILE PROFILE VERTICAL FLOW 2026-09-12 --- */
.wtx-pro-ui .profile-role-badges{
  display:flex;
  align-items:center;
  gap:7px;
  flex-wrap:wrap;
  min-width:0;
}
.wtx-pro-ui .profile-social-links{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
@media (max-width:640px){
  body.wtx-pro-ui .profile-hero{
    overflow:visible!important;
  }
  body.wtx-pro-ui .profile-identity-layout{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    margin-top:0!important;
    padding:0 14px 18px!important;
    text-align:center!important;
  }
  body.wtx-pro-ui .profile-main-avatar,
  body.wtx-pro-ui .profile-main-avatar.has-banner{
    order:1!important;
    align-self:center!important;
    margin:14px auto 0!important;
    transform:none!important;
  }
  body.wtx-pro-ui .profile-identity-copy{
    order:2!important;
    width:100%!important;
    min-width:0!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    text-align:center!important;
  }
  body.wtx-pro-ui .profile-title-row{
    width:100%!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
    margin:0!important;
  }
  body.wtx-pro-ui .profile-title-row .profile-username{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    margin:0!important;
    text-align:center!important;
    font-size:22px!important;
    line-height:1.2!important;
  }
  body.wtx-pro-ui .profile-role-badges{
    width:100%!important;
    justify-content:center!important;
    gap:7px!important;
    margin:0!important;
  }
  body.wtx-pro-ui .profile-bio{
    width:100%!important;
    max-width:520px!important;
    margin:10px auto 12px!important;
    text-align:center!important;
  }
  body.wtx-pro-ui .profile-social-links{
    width:100%!important;
    justify-content:center!important;
    gap:8px!important;
    margin:0 0 12px!important;
  }
  body.wtx-pro-ui .profile-social-links .btn{
    flex:0 1 auto!important;
    max-width:100%!important;
  }
  body.wtx-pro-ui .profile-stats-strip{
    width:100%!important;
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    justify-content:center!important;
    margin:0!important;
  }
  body.wtx-pro-ui .profile-stats-strip > span,
  body.wtx-pro-ui .profile-stats-strip > a{
    min-width:0!important;
    justify-content:center!important;
    text-align:center!important;
    white-space:normal!important;
  }
  body.wtx-pro-ui .profile-level-block{
    width:100%!important;
    max-width:420px!important;
    margin:14px auto 0!important;
    text-align:left!important;
  }
  body.wtx-pro-ui .profile-actions{
    order:3!important;
    width:100%!important;
    max-width:none!important;
    display:flex!important;
    align-items:stretch!important;
    justify-content:center!important;
    gap:8px!important;
    padding-top:0!important;
    margin-top:2px!important;
  }
  body.wtx-pro-ui .profile-actions > .btn,
  body.wtx-pro-ui .profile-actions > a.btn,
  body.wtx-pro-ui .profile-actions > form{
    flex:1 1 140px!important;
    min-width:0!important;
  }
  body.wtx-pro-ui .profile-actions form .btn{
    width:100%!important;
  }
}
@media (max-width:420px){
  body.wtx-pro-ui .profile-stats-strip{
    grid-template-columns:1fr 1fr!important;
  }
  body.wtx-pro-ui .profile-social-links{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  body.wtx-pro-ui .profile-social-links .btn{
    width:100%!important;
    justify-content:center!important;
  }
  body.wtx-pro-ui .profile-actions{
    flex-direction:column!important;
  }
  body.wtx-pro-ui .profile-actions > .btn,
  body.wtx-pro-ui .profile-actions > a.btn,
  body.wtx-pro-ui .profile-actions > form{
    width:100%!important;
    flex:0 0 auto!important;
  }
}

/* === PROFILE READABILITY / SPACING FIX v5 ===
   More breathing room on desktop and mobile without changing the established order. */
body.wtx-pro-ui .profile-identity-layout{
  column-gap:24px!important;
  row-gap:18px!important;
}
body.wtx-pro-ui .profile-identity-copy{
  line-height:1.55!important;
}
body.wtx-pro-ui .profile-title-row{
  column-gap:12px!important;
  row-gap:10px!important;
}
body.wtx-pro-ui .profile-title-row .profile-username{
  line-height:1.3!important;
  margin:0!important;
}
body.wtx-pro-ui .profile-role-badges{
  column-gap:8px!important;
  row-gap:8px!important;
}
body.wtx-pro-ui .profile-role-badges .badge{
  line-height:1.4!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
}
body.wtx-pro-ui .profile-bio{
  line-height:1.75!important;
  margin:14px 0 16px!important;
}
body.wtx-pro-ui .profile-social-links{
  column-gap:10px!important;
  row-gap:10px!important;
  margin-bottom:16px!important;
}
body.wtx-pro-ui .profile-social-links .btn{
  line-height:1.4!important;
  min-height:34px!important;
}
body.wtx-pro-ui .profile-stats-strip{
  column-gap:20px!important;
  row-gap:10px!important;
  line-height:1.55!important;
}
body.wtx-pro-ui .profile-stats-strip > span,
body.wtx-pro-ui .profile-stats-strip > a{
  display:inline-flex!important;
  align-items:center!important;
  gap:5px!important;
  min-height:24px!important;
  line-height:1.5!important;
}
body.wtx-pro-ui .profile-presence{
  line-height:1.5!important;
}
body.wtx-pro-ui .profile-level-block{
  margin-top:18px!important;
}
body.wtx-pro-ui .profile-level-block > div:first-child{
  margin-bottom:7px!important;
  line-height:1.45!important;
}
body.wtx-pro-ui .profile-actions{
  gap:10px!important;
}
body.wtx-pro-ui .profile-actions .btn{
  line-height:1.4!important;
}

@media (max-width:640px){
  body.wtx-pro-ui .profile-identity-layout{
    gap:16px!important;
    padding-bottom:22px!important;
  }
  body.wtx-pro-ui .profile-identity-copy{
    gap:0!important;
    line-height:1.6!important;
  }
  body.wtx-pro-ui .profile-title-row{
    gap:12px!important;
  }
  body.wtx-pro-ui .profile-title-row .profile-username{
    line-height:1.35!important;
    margin-bottom:1px!important;
  }
  body.wtx-pro-ui .profile-role-badges{
    gap:8px 9px!important;
    margin-top:1px!important;
    margin-bottom:1px!important;
  }
  body.wtx-pro-ui .profile-bio{
    line-height:1.75!important;
    margin:14px auto 17px!important;
  }
  body.wtx-pro-ui .profile-social-links{
    gap:10px!important;
    margin:0 0 17px!important;
  }
  body.wtx-pro-ui .profile-stats-strip{
    column-gap:10px!important;
    row-gap:12px!important;
    line-height:1.55!important;
  }
  body.wtx-pro-ui .profile-stats-strip > span,
  body.wtx-pro-ui .profile-stats-strip > a{
    min-height:30px!important;
    padding:3px 5px!important;
    line-height:1.5!important;
  }
  body.wtx-pro-ui .profile-level-block{
    margin-top:19px!important;
  }
  body.wtx-pro-ui .profile-actions{
    gap:10px!important;
    margin-top:8px!important;
  }
}

@media (max-width:420px){
  body.wtx-pro-ui .profile-identity-layout{
    gap:15px!important;
  }
  body.wtx-pro-ui .profile-role-badges{
    row-gap:9px!important;
  }
  body.wtx-pro-ui .profile-social-links{
    gap:9px!important;
  }
  body.wtx-pro-ui .profile-stats-strip{
    row-gap:10px!important;
  }
}

/* Mobile username -> verified badge breathing room */
@media (max-width: 760px){
  body.wtx-pro-ui .profile-title-row .profile-username > .verified-badge,
  body.wtx-pro-ui .profile-username .verified-badge{
    margin-left:4px!important;
    margin-inline-start:4px!important;
  }
}

/* ===== Wiantex custom voice/audio player ===== */
.wtx-pro-ui .msg-media-audio{display:none!important}
.wtx-pro-ui .msg-audio-player{
  --audio-progress:0%;
  width:min(390px,72vw);
  min-width:270px;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) auto;
  align-items:center;
  gap:11px;
  padding:10px 12px;
  margin:2px 0;
  border:1px solid rgba(255,255,255,.10);
  border-radius:17px;
  background:linear-gradient(135deg,rgba(255,255,255,.075),rgba(255,255,255,.025));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 8px 24px rgba(0,0,0,.10);
  overflow:hidden;
}
.wtx-pro-ui .msg-audio-native{display:none!important}
.wtx-pro-ui .msg-audio-play,
.wtx-pro-ui .msg-audio-mute{
  appearance:none;
  border:0;
  color:#fff;
  cursor:pointer;
  display:grid;
  place-items:center;
  padding:0;
  flex:0 0 auto;
}
.wtx-pro-ui .msg-audio-play{
  width:46px;height:46px;border-radius:50%;
  background:linear-gradient(135deg,#7657ff,#467dff);
  box-shadow:0 8px 22px rgba(91,88,255,.30),inset 0 1px 0 rgba(255,255,255,.22);
  transition:transform .16s ease,filter .16s ease;
}
.wtx-pro-ui .msg-audio-play:hover{transform:translateY(-1px);filter:brightness(1.08)}
.wtx-pro-ui .msg-audio-play:active{transform:scale(.96)}
.wtx-pro-ui .msg-audio-play svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.wtx-pro-ui .msg-audio-play svg path[d^="m8"]{fill:currentColor;stroke:none}
.wtx-pro-ui .msg-audio-main{min-width:0;display:grid;gap:7px}
.wtx-pro-ui .msg-audio-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.wtx-pro-ui .msg-audio-title{font-size:12px;font-weight:800;letter-spacing:.01em;color:var(--text-0);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.wtx-pro-ui .msg-audio-time{font-size:10.5px;font-variant-numeric:tabular-nums;color:var(--text-2);white-space:nowrap}
.wtx-pro-ui .msg-audio-timeline{height:23px;position:relative;display:flex;align-items:center}
.wtx-pro-ui .msg-audio-wave{position:absolute;inset:0;display:flex;align-items:center;gap:2px;pointer-events:none;overflow:hidden;mask-image:linear-gradient(90deg,#000,#000)}
.wtx-pro-ui .msg-audio-wave i{display:block;width:3px;height:var(--wave-h,55%);min-height:3px;border-radius:99px;background:rgba(167,178,204,.36);transition:background .15s ease}
.wtx-pro-ui .msg-audio-player.is-playing .msg-audio-wave i{background:rgba(162,151,255,.52)}
.wtx-pro-ui .msg-audio-progress{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer;z-index:2}
.wtx-pro-ui .msg-audio-volume{display:flex;align-items:center;gap:5px}
.wtx-pro-ui .msg-audio-mute{width:30px;height:30px;border-radius:9px;background:rgba(255,255,255,.055);color:var(--text-1);border:1px solid rgba(255,255,255,.07)}
.wtx-pro-ui .msg-audio-mute:hover{background:rgba(255,255,255,.10);color:var(--text-0)}
.wtx-pro-ui .msg-audio-mute svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.wtx-pro-ui .msg-audio-volume-range{appearance:none;width:54px;height:4px;border-radius:99px;background:rgba(255,255,255,.14);outline:none;cursor:pointer}
.wtx-pro-ui .msg-audio-volume-range::-webkit-slider-thumb{appearance:none;width:11px;height:11px;border-radius:50%;background:#a89dff;border:0;box-shadow:0 0 0 2px rgba(168,157,255,.16)}
.wtx-pro-ui .msg-audio-volume-range::-moz-range-thumb{width:11px;height:11px;border-radius:50%;background:#a89dff;border:0}
.wtx-pro-ui .msg-audio-volume-percent{min-width:34px;text-align:right;font-size:10px;font-weight:800;font-variant-numeric:tabular-nums;color:var(--text-2);line-height:1;white-space:nowrap}
.wtx-pro-ui .msg-row.mine .msg-audio-player{background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.035));border-color:rgba(255,255,255,.13)}
body.wtx-pro-ui[data-wtx-theme="light"] .msg-audio-player{background:linear-gradient(135deg,#fff,#f7f8fc);border-color:rgba(42,54,79,.10);box-shadow:0 8px 22px rgba(27,39,67,.07)}
body.wtx-pro-ui[data-wtx-theme="light"] .msg-audio-wave i{background:rgba(73,86,115,.25)}
body.wtx-pro-ui[data-wtx-theme="light"] .msg-audio-mute{background:rgba(38,49,70,.05);border-color:rgba(38,49,70,.08)}
body.wtx-pro-ui[data-wtx-theme="light"] .msg-audio-volume-range{background:rgba(44,55,80,.15)}
@media(max-width:680px){
  .wtx-pro-ui .msg-audio-player{width:min(320px,76vw);min-width:230px;grid-template-columns:42px minmax(0,1fr) auto;gap:9px;padding:9px 10px;border-radius:15px}
  .wtx-pro-ui .msg-audio-play{width:42px;height:42px}
  .wtx-pro-ui .msg-audio-volume-range{display:none}
  .wtx-pro-ui .msg-audio-volume{gap:4px}
  .wtx-pro-ui .msg-audio-volume-percent{min-width:30px;font-size:9.5px}
  .wtx-pro-ui .msg-audio-title{font-size:11.5px}
  .wtx-pro-ui .msg-audio-time{font-size:10px}
}

/* ============================================================
   2026-09-12 — Profil banner + ayarlar yenileme + arama geçmişi
   ============================================================ */

/* Profil banner: dört köşe de oval. */
body.wtx-pro-ui .profile-hero .profile-banner{
  border-radius:26px!important;
  overflow:hidden!important;
}
body.wtx-pro-ui .profile-preview-banner{
  border-radius:22px 22px 0 0!important;
  overflow:hidden!important;
}

/* Profil ayarları: daha ferah, daha belirgin kart hiyerarşisi. */
body.wtx-pro-ui.settings-profile-page .profile-settings-layout{
  max-width:1120px!important;
  grid-template-columns:minmax(0,1.45fr) minmax(300px,.75fr)!important;
  gap:22px!important;
}
body.wtx-pro-ui.settings-profile-page .profile-settings-hero{
  display:flex;
  align-items:center;
  gap:14px;
  padding:17px 18px;
  margin-bottom:18px;
  border:1px solid var(--border);
  border-radius:20px;
  background:linear-gradient(135deg,rgba(124,92,255,.11),rgba(59,130,246,.045) 52%,rgba(255,255,255,.018));
  box-shadow:0 14px 38px rgba(0,0,0,.11);
}
body.wtx-pro-ui.settings-profile-page .profile-settings-hero-icon{
  width:44px;height:44px;flex:0 0 44px;
  display:grid;place-items:center;
  border-radius:14px;
  color:#d8d0ff;
  background:linear-gradient(135deg,rgba(124,92,255,.28),rgba(59,130,246,.18));
  border:1px solid rgba(124,92,255,.26);
}
body.wtx-pro-ui.settings-profile-page .profile-settings-hero-copy{min-width:0;flex:1}
body.wtx-pro-ui.settings-profile-page .profile-settings-hero h2{margin:0!important;font-size:20px!important;line-height:1.25!important}
body.wtx-pro-ui.settings-profile-page .profile-settings-hero p{margin:4px 0 0!important;color:var(--text-2);font-size:12.5px;line-height:1.55}
body.wtx-pro-ui.settings-profile-page .profile-settings-view{white-space:nowrap}

body.wtx-pro-ui.settings-profile-page .profile-editor-card,
body.wtx-pro-ui.settings-profile-page .profile-settings-layout>.main-col>.card,
body.wtx-pro-ui.settings-profile-page .profile-preview-card{
  border-radius:20px!important;
  border-color:color-mix(in srgb,var(--border) 86%,#7c5cff 14%)!important;
  box-shadow:0 14px 38px rgba(0,0,0,.10)!important;
}
body.wtx-pro-ui.settings-profile-page .profile-primary-card{
  padding:22px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.028),rgba(255,255,255,.012))!important;
}
body.wtx-pro-ui.settings-profile-page .profile-settings-card-head{
  display:flex;align-items:center;gap:11px;
  margin-bottom:18px;
  padding-bottom:15px;
  border-bottom:1px solid var(--border);
}
body.wtx-pro-ui.settings-profile-page .profile-settings-card-icon{
  width:38px;height:38px;flex:0 0 38px;
  display:grid;place-items:center;
  border-radius:12px;
  color:#cfc5ff;
  background:rgba(124,92,255,.11);
  border:1px solid rgba(124,92,255,.20);
}
body.wtx-pro-ui.settings-profile-page .profile-settings-card-head h3{font-size:14.5px!important;line-height:1.3!important;margin:0!important}
body.wtx-pro-ui.settings-profile-page .profile-settings-card-head p{font-size:11.5px;line-height:1.5;color:var(--text-2);margin:3px 0 0}
body.wtx-pro-ui.settings-profile-page .profile-upload-row{gap:12px!important;margin-bottom:20px!important}
body.wtx-pro-ui.settings-profile-page .profile-upload-box{
  min-height:142px!important;
  padding:15px!important;
  border-radius:16px!important;
  border:1px dashed color-mix(in srgb,var(--border) 70%,#7c5cff 30%)!important;
  background:linear-gradient(145deg,rgba(124,92,255,.055),rgba(255,255,255,.015))!important;
  display:flex!important;
  flex-direction:column!important;
  gap:8px!important;
}
body.wtx-pro-ui.settings-profile-page .profile-upload-box strong{font-size:13px!important;margin:0!important}
body.wtx-pro-ui.settings-profile-page .profile-upload-box .field-hint{line-height:1.55!important;min-height:34px}
body.wtx-pro-ui.settings-profile-page .profile-upload-box .btn{margin-top:auto;align-self:flex-start;border-radius:11px!important}
body.wtx-pro-ui.settings-profile-page .profile-primary-card .field{margin-bottom:14px!important}
body.wtx-pro-ui.settings-profile-page .profile-primary-card .field>label{display:block;margin-bottom:7px;font-size:12.5px;font-weight:700;color:var(--text-1)}
body.wtx-pro-ui.settings-profile-page .profile-primary-card .input{border-radius:12px!important;min-height:42px}
body.wtx-pro-ui.settings-profile-page .profile-primary-card textarea.input{min-height:112px;padding-top:11px!important;line-height:1.6}
body.wtx-pro-ui.settings-profile-page .profile-fields-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 12px;
  margin-top:4px;
}
body.wtx-pro-ui.settings-profile-page .profile-fields-grid>.field:last-child{grid-column:1/-1}
body.wtx-pro-ui.settings-profile-page .profile-settings-save-row{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  margin-top:5px;padding-top:16px;border-top:1px solid var(--border);
}
body.wtx-pro-ui.settings-profile-page .profile-settings-save-row>span{font-size:11.5px;color:var(--text-2);line-height:1.45}
body.wtx-pro-ui.settings-profile-page .profile-settings-save-row .btn{min-width:142px;justify-content:center}
body.wtx-pro-ui.settings-profile-page .profile-preview-card{overflow:hidden!important}
body.wtx-pro-ui.settings-profile-page .profile-preview-banner{height:155px!important}

/* Arama olayları artık duyuru yerine DM içinde kart olarak görünür. */
body.wtx-pro-ui .msg-bubble.is-call-history,
body.wtx-pro-ui .msg-bubble:has(.wtx-call-history-card){
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
body.wtx-pro-ui .wtx-call-history-card{
  min-width:min(330px,74vw);
  display:flex;
  align-items:center;
  gap:11px;
  padding:12px 13px;
  border-radius:16px;
  border:1px solid rgba(124,92,255,.18);
  background:linear-gradient(135deg,rgba(124,92,255,.11),rgba(255,255,255,.035));
  color:var(--text-0);
}
body.wtx-pro-ui .wtx-call-history-card.missed,
body.wtx-pro-ui .wtx-call-history-card.rejected{border-color:rgba(255,104,122,.22);background:linear-gradient(135deg,rgba(255,91,110,.10),rgba(255,255,255,.025))}
body.wtx-pro-ui .wtx-call-history-card.accepted,
body.wtx-pro-ui .wtx-call-history-card.ringing{border-color:rgba(52,211,153,.20);background:linear-gradient(135deg,rgba(52,211,153,.09),rgba(255,255,255,.025))}
body.wtx-pro-ui .wtx-call-history-icon{
  width:38px;height:38px;flex:0 0 38px;
  display:grid;place-items:center;
  border-radius:12px;
  background:rgba(124,92,255,.13);
  font-size:17px;font-weight:900;
}
body.wtx-pro-ui .wtx-call-history-copy{min-width:0;display:grid;gap:2px;flex:1}
body.wtx-pro-ui .wtx-call-history-copy strong{font-size:12.5px;line-height:1.35;color:var(--text-0)}
body.wtx-pro-ui .wtx-call-history-copy small{font-size:10.5px;line-height:1.35;color:var(--text-2)}
body.wtx-pro-ui .wtx-call-history-redial{
  flex:0 0 auto;
  border:1px solid rgba(124,92,255,.25);
  border-radius:10px;
  padding:7px 9px;
  background:rgba(124,92,255,.10);
  color:var(--text-0);
  font:700 10.5px/1 inherit;
  cursor:pointer;
}
body.wtx-pro-ui .wtx-call-history-redial:hover{background:rgba(124,92,255,.18)}

@media(max-width:820px){
  body.wtx-pro-ui.settings-profile-page .profile-settings-layout{grid-template-columns:1fr!important;gap:16px!important}
  body.wtx-pro-ui.settings-profile-page .profile-settings-hero{align-items:flex-start;flex-wrap:wrap}
  body.wtx-pro-ui.settings-profile-page .profile-settings-view{margin-left:58px}
  body.wtx-pro-ui.settings-profile-page .profile-preview-card{order:-1!important;position:relative!important;top:auto!important}
}
@media(max-width:560px){
  body.wtx-pro-ui.settings-profile-page .profile-settings-hero{padding:14px!important;border-radius:17px!important}
  body.wtx-pro-ui.settings-profile-page .profile-settings-hero-icon{width:40px;height:40px;flex-basis:40px}
  body.wtx-pro-ui.settings-profile-page .profile-settings-view{margin-left:0;width:100%;justify-content:center}
  body.wtx-pro-ui.settings-profile-page .profile-primary-card{padding:16px!important}
  body.wtx-pro-ui.settings-profile-page .profile-upload-row,
  body.wtx-pro-ui.settings-profile-page .profile-fields-grid{grid-template-columns:1fr!important}
  body.wtx-pro-ui.settings-profile-page .profile-fields-grid>.field:last-child{grid-column:auto}
  body.wtx-pro-ui.settings-profile-page .profile-settings-save-row{align-items:stretch;flex-direction:column}
  body.wtx-pro-ui.settings-profile-page .profile-settings-save-row .btn{width:100%;justify-content:center}
  body.wtx-pro-ui .wtx-call-history-card{min-width:min(280px,76vw);padding:10px 11px;gap:9px}
  body.wtx-pro-ui .wtx-call-history-icon{width:34px;height:34px;flex-basis:34px;border-radius:10px}
  body.wtx-pro-ui .wtx-call-history-redial{padding:7px 8px}
}

/* ============================================================
   2026-09-12 — Ses kaydı oynatıcı v2: ince ses kontrolü + canlı dalga
   ============================================================ */
.wtx-pro-ui .msg-audio-volume{
  gap:4px!important;
}
.wtx-pro-ui .msg-audio-mute{
  width:27px!important;
  height:27px!important;
  border-radius:8px!important;
  border-width:1px!important;
  box-shadow:none!important;
}
.wtx-pro-ui .msg-audio-mute svg{
  width:14px!important;
  height:14px!important;
  stroke-width:1.8!important;
}
.wtx-pro-ui .msg-audio-volume-range{
  width:52px!important;
  height:2px!important;
  min-height:2px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.16)!important;
  box-shadow:none!important;
}
.wtx-pro-ui .msg-audio-volume-range::-webkit-slider-runnable-track{
  height:2px!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.16)!important;
}
.wtx-pro-ui .msg-audio-volume-range::-webkit-slider-thumb{
  appearance:none!important;
  width:8px!important;
  height:8px!important;
  margin-top:-3px!important;
  border-radius:50%!important;
  background:#a89dff!important;
  border:0!important;
  box-shadow:0 0 0 1.5px rgba(168,157,255,.13)!important;
}
.wtx-pro-ui .msg-audio-volume-range::-moz-range-track{
  height:2px!important;
  border:0!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.16)!important;
}
.wtx-pro-ui .msg-audio-volume-range::-moz-range-progress{
  height:2px!important;
  border-radius:999px!important;
  background:#9d91ff!important;
}
.wtx-pro-ui .msg-audio-volume-range::-moz-range-thumb{
  width:8px!important;
  height:8px!important;
  border:0!important;
  border-radius:50%!important;
  background:#a89dff!important;
  box-shadow:none!important;
}
.wtx-pro-ui .msg-audio-volume-percent{
  min-width:31px!important;
  font-size:9.5px!important;
  font-weight:600!important;
  letter-spacing:0!important;
  opacity:.82!important;
}

/* Dalga yalnızca ses gerçekten oynarken hareket eder. */
@keyframes wtxAudioWaveLive{
  0%,100%{transform:scaleY(.42);opacity:.58}
  25%{transform:scaleY(.92);opacity:.95}
  52%{transform:scaleY(.58);opacity:.72}
  76%{transform:scaleY(1.08);opacity:1}
}
.wtx-pro-ui .msg-audio-wave i{
  transform-origin:center center!important;
  will-change:transform,opacity;
}
.wtx-pro-ui .msg-audio-player.is-playing .msg-audio-wave i{
  animation:wtxAudioWaveLive .72s ease-in-out infinite!important;
}
.wtx-pro-ui .msg-audio-player.is-playing .msg-audio-wave i:nth-child(3n+1){animation-delay:-.12s!important;animation-duration:.66s!important}
.wtx-pro-ui .msg-audio-player.is-playing .msg-audio-wave i:nth-child(3n+2){animation-delay:-.31s!important;animation-duration:.82s!important}
.wtx-pro-ui .msg-audio-player.is-playing .msg-audio-wave i:nth-child(5n){animation-delay:-.47s!important;animation-duration:.58s!important}
.wtx-pro-ui .msg-audio-player:not(.is-playing) .msg-audio-wave i{
  animation:none!important;
  transform:scaleY(1)!important;
  opacity:1!important;
}
.wtx-pro-ui .msg-audio-player.is-playing .msg-audio-play{
  box-shadow:0 8px 22px rgba(91,88,255,.24),0 0 0 4px rgba(118,87,255,.07),inset 0 1px 0 rgba(255,255,255,.20)!important;
}
body.wtx-pro-ui[data-wtx-theme="light"] .msg-audio-volume-range,
body.wtx-pro-ui[data-wtx-theme="light"] .msg-audio-volume-range::-webkit-slider-runnable-track{
  background:rgba(44,55,80,.16)!important;
}
@media(max-width:680px){
  .wtx-pro-ui .msg-audio-mute{width:26px!important;height:26px!important}
  .wtx-pro-ui .msg-audio-volume-percent{font-size:9px!important;min-width:29px!important}
}
@media(prefers-reduced-motion:reduce){
  .wtx-pro-ui .msg-audio-player.is-playing .msg-audio-wave i{animation:none!important}
}
