:root {
  --bg: #edf4fb;
  --bg-soft: #f8fbff;
  --surface: rgba(250, 253, 255, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(20, 66, 118, 0.12);
  --line-strong: rgba(20, 66, 118, 0.22);
  --text: #153f6c;
  --muted: #64748b;
  --accent: #e0b232;
  --accent-deep: #b88811;
  --telegram: #2d7fc2;
  --telegram-soft: #edf6ff;
  --danger: #c2410c;
  --success: #0f8c62;
  --shadow: 0 24px 70px rgba(28, 76, 132, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 127, 194, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(224, 178, 50, 0.12), transparent 22%),
    linear-gradient(180deg, #f7fbff 0%, #eaf2fb 100%);
  position: relative;
  overflow-x: hidden;
}

body.widget-dragging {
  user-select: none;
  cursor: grabbing;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.45;
  pointer-events: none;
}

.bg-orb-a {
  width: 240px;
  height: 240px;
  background: rgba(45, 127, 194, 0.18);
  top: -40px;
  right: -40px;
}

.bg-orb-b {
  width: 260px;
  height: 260px;
  background: rgba(224, 178, 50, 0.18);
  bottom: 6%;
  left: -60px;
}

.topbar,
.page-shell {
  width: min(calc(100vw - 24px), 1800px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 28px 0 16px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 251, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-block-logo-only {
  gap: 0;
}

.site-logo {
  width: 240px;
  height: 150px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 20px 38px rgba(24, 76, 132, 0.18)) contrast(1.04) saturate(1.08);
}

.topbar h1,
.hero h2,
.section-head h3,
.room-header h4,
.room-empty-state h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.topbar h1 {
  font-size: clamp(1.6rem, 2.4vw, 2rem);
}

.nav-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.eyebrow,
.mini-label,
.badge {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.eyebrow,
.mini-label {
  color: var(--muted);
  font-size: 0.76rem;
  margin: 0 0 6px;
}

.badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(224, 178, 50, 0.16);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.topbar-actions,
.hero-actions,
.toolbar,
.action-row,
.provider-list,
.panel-top {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.page-shell {
  display: grid;
  gap: 20px;
  padding: 12px 0 36px;
}

.home-area {
  display: grid;
  gap: 20px;
}

.member-area {
  width: 100%;
  margin: 0;
  padding: 0;
}

.admin-shell {
  width: min(calc(100vw - 24px), 1800px);
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 120px);
}

.admin-sidebar-top {
  display: grid;
  gap: 12px;
}

.admin-nav-list {
  display: grid;
  gap: 10px;
}

.admin-nav-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--text);
  border-radius: 16px;
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.active-admin-nav {
  background: linear-gradient(135deg, #1f6fb6 0%, #4ea2e4 100%);
  color: white;
  border-color: transparent;
}

.admin-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.admin-page {
  display: none;
}

.admin-page.active-admin-page,
.admin-transactions-page.active-admin-page {
  display: block;
}

.workspace-page-head {
  margin-bottom: 16px;
}

.member-tab-shell {
  padding-top: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
  padding: 24px;
  backdrop-filter: blur(16px);
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}

.hero h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 14px;
}

.hero-text {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 62ch;
}

.hero-highlight {
  margin: -4px 0 20px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(31, 111, 182, 0.08), rgba(224, 178, 50, 0.12));
  border: 1px solid rgba(31, 111, 182, 0.12);
  color: var(--text);
  line-height: 1.7;
  font-weight: 600;
  max-width: 64ch;
}

.fee-list {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.fee-item {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  display: grid;
  gap: 6px;
}

.fee-item strong,
.fee-item p {
  margin: 0;
}

.fee-item p {
  color: var(--muted);
  line-height: 1.6;
}

.fee-item-highlight {
  background: linear-gradient(135deg, rgba(31, 111, 182, 0.08), rgba(224, 178, 50, 0.08));
  border-color: rgba(31, 111, 182, 0.18);
}

.steps,
.party-list,
.summary-list,
.upload-list,
.lookup-result,
.admin-summary,
.admin-list,
.activity-list {
  display: grid;
  gap: 12px;
}

.step-item,
.current-user,
.telegram-login-box,
.panel,
.profile-card,
.check-card,
.admin-summary article,
.admin-item,
.lookup-result article,
.sidebar-section,
.upload-item {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
}

.grid-two,
.profile-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-item strong {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
}

.step-item h4,
.panel h5 {
  margin: 0 0 6px;
}

.step-item p,
.panel p,
.lookup-result p,
.room-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.provider-btn,
.primary-btn,
.ghost-btn,
.danger-btn {
  border: none;
  border-radius: 16px;
  padding: 13px 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

.provider-btn,
.ghost-btn {
  background: white;
  border: 1px solid var(--line);
  color: var(--text);
}

.primary-btn {
  background: linear-gradient(135deg, #1f6fb6 0%, #e0b232 100%);
  color: white;
}

.danger-btn {
  background: rgba(180, 58, 45, 0.14);
  color: var(--danger);
}

.provider-btn:hover,
.primary-btn:hover,
.ghost-btn:hover,
.danger-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.profile-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.profile-nav-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

.profile-nav-initial {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  background: linear-gradient(135deg, #1f6fb6 0%, #e0b232 100%);
  color: white;
}

.nav-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-nav-btn {
  width: 50px;
  height: 50px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  position: relative;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e53935 0%, #ff6b6b 100%);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(229, 57, 53, 0.3);
  border: 2px solid #fff;
}

.transaction-list-top .list-notif-badge {
  position: static;
  margin-left: auto;
  margin-right: 6px;
}

.icon-label-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.icon-label-btn::before {
  content: none;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  background: rgba(46, 36, 26, 0.92);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 10;
}

[data-tooltip]:hover::after,
[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-logo {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-weight: 800;
  background: rgba(46, 36, 26, 0.08);
}

.social-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.social-logo-svg {
  padding: 5px;
}

.social-logo-image {
  padding: 0;
  background: #fff;
  border: 1px solid rgba(46, 36, 26, 0.08);
}

.social-logo-svg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.social-btn-telegram .social-logo {
  background: #27a7e7;
  color: #fff;
}

.social-btn-google .social-logo {
  background: #fff;
  color: #db4437;
  border: 1px solid rgba(46, 36, 26, 0.12);
}

.site-logo-brand {
  width: min(320px, 100%);
  height: auto;
  object-fit: contain;
}

.social-btn-facebook .social-logo {
  background: #1877f2;
  color: #fff;
}

.social-btn-discord .social-logo {
  background: #5865f2;
  color: #fff;
}

.quick-provider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.login-modal-grid {
  margin-top: 18px;
}

.modal-actions-end {
  justify-content: flex-end;
  margin-top: 16px;
}

.telegram-login-box p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

#inline-transaction-panel {
  margin-top: 18px;
}

.mini-note,
.muted-text {
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.6;
}

.telegram-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(28, 125, 87, 0.1);
  color: var(--success);
  border: 1px solid rgba(28, 125, 87, 0.14);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  background: white;
  color: var(--text);
}

.submit-btn {
  grid-column: 1 / -1;
}

.profile-card,
.check-card {
  min-height: 220px;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.profile-subsection {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.profile-subsection h5 {
  margin: 0;
}

.profile-form {
  display: grid;
  gap: 12px;
}

.profile-row,
.summary-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(46, 36, 26, 0.08);
  padding-bottom: 10px;
}

.profile-row:last-child,
.summary-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.compact-provider-list {
  gap: 10px;
}

.verified-inline-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(28, 125, 87, 0.12);
  color: var(--success);
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.transactions-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width, 380px) 10px minmax(0, 1fr);
  gap: 0;
  align-items: start;
  min-height: calc(100vh - 150px);
}

.transactions-sidebar {
  display: grid;
  gap: 16px;
  padding: 20px;
  position: sticky;
  top: 96px;
  min-height: calc(100vh - 150px);
  overflow: auto;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.workspace-room {
  min-width: 0;
}

.panel-resizer {
  width: 10px;
  cursor: col-resize;
  position: relative;
  min-height: calc(100vh - 150px);
}

.panel-resizer::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: rgba(46, 36, 26, 0.12);
  border-radius: 999px;
}

.panel-resizer:hover::before {
  background: rgba(94, 168, 222, 0.65);
}

.sidebar-head h3 {
  font-size: 1rem;
}

.telegram-join-toolbar {
  flex-direction: column;
  align-items: stretch;
  margin: 0;
}

.join-label {
  display: grid;
  gap: 8px;
}

.telegram-list {
  gap: 10px;
}

.activity-item {
  background: rgba(94, 168, 222, 0.08);
  border: 1px solid rgba(94, 168, 222, 0.14);
  border-radius: 18px;
  padding: 10px;
  overflow: hidden;
}

.transaction-title-btn {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  border: none;
  border-radius: 14px;
  background: transparent;
  padding: 14px 16px;
  position: relative;
}

.transaction-list-card {
  display: grid;
  gap: 8px;
}

.transaction-list-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.transaction-list-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.transaction-list-title {
  font-size: 0.98rem;
}

.transaction-list-code,
.transaction-list-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.transaction-list-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-item.is-active {
  border-color: rgba(94, 168, 222, 0.5);
  box-shadow: inset 4px 0 0 var(--telegram);
  background: rgba(94, 168, 222, 0.16);
}

.telegram-room-shell {
  min-height: 820px;
  display: grid;
  gap: 18px;
  padding: 0;
  overflow: hidden;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.room-shell-head {
  padding: 22px 24px 0;
}

.room-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
}

.room-empty-state {
  min-height: 520px;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 32px;
}

.empty-chat-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--telegram-soft);
  font-size: 1.9rem;
}

.join-role-box {
  margin: 0 24px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(194, 106, 45, 0.08);
  border: 1px solid rgba(194, 106, 45, 0.14);
}

.join-role-box-modal {
  margin: 0;
}

.room {
  display: grid;
  gap: 18px;
  padding: 0 24px 24px;
  grid-template-rows: auto auto auto 1fr;
}

.room-content-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.room-side-column {
  display: grid;
  gap: 18px;
}

.room-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.status-pill {
  background: rgba(194, 106, 45, 0.14);
  color: var(--accent-deep);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  white-space: nowrap;
}

.transaction-guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.guide-points {
  display: grid;
  gap: 10px;
}

.chat-room-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.95)),
    linear-gradient(135deg, rgba(94, 168, 222, 0.09), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(94, 168, 222, 0.18);
  border-radius: 24px;
  padding: 18px 18px 16px;
  display: grid;
  gap: 14px;
  min-height: 520px;
}

.room-chat-main {
  min-height: 620px;
}

.room-summary-panel {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
  align-self: start;
}

.room-action-row {
  margin-bottom: 4px;
}

.room-summary-actions {
  display: grid;
  gap: 10px;
}

.room-summary-actions .primary-btn,
.room-summary-actions .ghost-btn,
.room-summary-actions .danger-btn {
  width: 100%;
  justify-content: center;
}

.upload-list {
  display: grid;
  gap: 14px;
  align-content: start;
}

.telegram-chat-head {
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(94, 168, 222, 0.18);
}

.chat-box {
  min-height: 390px;
  max-height: 600px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 12px 6px 16px;
  align-content: start;
  scroll-behavior: auto;
}

.chat-message {
  width: 100%;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(94, 168, 222, 0.12);
  box-shadow: 0 8px 18px rgba(64, 109, 149, 0.06);
}

.chat-message-body {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chat-avatar-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, #1f6fb6 0%, #e0b232 100%);
  color: #fff;
  flex: 0 0 42px;
  box-shadow: 0 10px 18px rgba(31, 95, 174, 0.18);
}

.chat-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chat-avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 0.92rem;
  font-weight: 800;
}

.chat-message-copy {
  min-width: 0;
  flex: 1;
}

.chat-message.chat-own {
  background: rgba(235, 245, 255, 0.98);
  border-left: 4px solid rgba(78, 154, 213, 0.72);
}

.chat-message.chat-other {
  border-left: 4px solid rgba(153, 173, 204, 0.42);
}

.chat-message.chat-admin {
  background: rgba(255, 246, 228, 0.98);
  border-color: rgba(194, 106, 45, 0.18);
  border-left: 4px solid rgba(214, 169, 63, 0.9);
}

.chat-message.chat-role-admin {
  background: rgba(255, 244, 224, 0.98);
  border-left-color: rgba(214, 169, 63, 0.92);
}

.chat-message.chat-role-seller {
  background: rgba(232, 246, 255, 0.98);
  border-left-color: rgba(67, 146, 214, 0.88);
}

.chat-message.chat-role-buyer {
  background: rgba(236, 252, 244, 0.98);
  border-left-color: rgba(44, 172, 104, 0.82);
}

.chat-message strong,
.upload-item strong {
  display: block;
  margin-bottom: 4px;
}

.chat-message p {
  margin: 0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.chat-author {
  display: grid;
  gap: 6px;
}

.chat-author-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.chat-author-btn:hover {
  text-decoration: underline;
}

.chat-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
}

.chat-badge-role {
  background: rgba(194, 106, 45, 0.14);
  color: var(--accent-deep);
}

.chat-badge-verified {
  background: rgba(28, 125, 87, 0.12);
  color: var(--success);
}

.chat-badge-unverified {
  background: rgba(46, 36, 26, 0.08);
  color: var(--muted);
}

.user-profile-modal-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.user-profile-modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(135deg, #1f6fb6 0%, #e0b232 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  font-weight: 800;
  flex: 0 0 72px;
}

.user-profile-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-card-wide {
  width: min(720px, 100%);
}

.user-profile-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-stat-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.72);
}

.profile-stat-card strong,
.profile-stat-card span {
  display: block;
}

.profile-stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.profile-status-list {
  display: grid;
  gap: 10px;
}

.profile-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed rgba(31, 95, 174, 0.12);
  padding-bottom: 10px;
}

.profile-status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.profile-status-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.profile-status-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff;
}

.profile-status-icon.telegram { background: #27a7e7; }
.profile-status-icon.google { background: #fff; color: #1b66c9; border: 1px solid rgba(46, 36, 26, 0.14); }
.profile-status-icon.facebook { background: #1877f2; }
.profile-status-icon.discord { background: #5865f2; }
.profile-status-icon.whatsapp { background: #22c35e; }
.profile-status-icon.ktp { background: #355c7d; }
.profile-status-icon.video { background: #f0a232; }

.profile-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
}

.profile-status-badge.done {
  background: rgba(28, 125, 87, 0.12);
  color: #1c7d57;
}

.profile-status-badge.pending {
  background: rgba(175, 92, 70, 0.14);
  color: #a45137;
}

.summary-status-item {
  align-items: center;
}

.status-flag {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-flag-done {
  background: rgba(28, 125, 87, 0.12);
  color: var(--success);
}

.status-flag-pending {
  background: rgba(180, 58, 45, 0.1);
  color: var(--danger);
}

.chat-message span,
.upload-item span {
  color: var(--muted);
  font-size: 0.8rem;
}

.chat-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid rgba(94, 168, 222, 0.14);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.92), rgba(255, 255, 255, 0.98));
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.chat-file-picker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  background: white;
  color: var(--muted);
  cursor: pointer;
}

.attach-icon {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mini-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--brand-blue, #1f4d9a);
}

.chat-form input[type="text"] {
  min-height: 50px;
  width: 100%;
}

.chat-file-picker input {
  display: none;
}

.pending-attachments {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: -0.1rem;
}

.pending-attachment {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  max-width: 100%;
  padding: 0.45rem 0.65rem 0.45rem 0.45rem;
  border-radius: 16px;
  border: 1px solid rgba(31, 77, 154, 0.12);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 18px rgba(31, 77, 154, 0.08);
}

.pending-attachment-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(31, 77, 154, 0.12), rgba(214, 169, 63, 0.18));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pending-attachment-thumb img,
.pending-attachment-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pending-attachment-thumb span {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--brand-blue, #1f4d9a);
  letter-spacing: 0.08em;
}

.pending-attachment-meta {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}

.pending-attachment-meta strong,
.pending-attachment-meta span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pending-attachment-meta strong {
  max-width: 180px;
  font-size: 0.88rem;
  color: #16335f;
}

.pending-attachment-meta span {
  max-width: 180px;
  font-size: 0.72rem;
  color: #6d7c96;
}

.pending-attachment-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 999px;
  background: rgba(229, 75, 75, 0.12);
  color: #d04747;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.pending-attachment-remove:hover {
  background: rgba(229, 75, 75, 0.2);
}

.upload-progress {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  min-width: min(100%, 280px);
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(94, 168, 222, 0.12);
  border: 1px solid rgba(94, 168, 222, 0.18);
}

.upload-progress.hidden {
  display: none;
}

.upload-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.88rem;
}

.upload-progress-top strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.upload-progress-top span {
  color: var(--accent-deep);
  font-weight: 800;
}

.upload-spinner {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid rgba(78, 154, 213, 0.22);
  border-top-color: #2d6ec9;
  animation: upload-spin 0.85s linear infinite;
}

.upload-progress-done .upload-spinner,
.upload-progress-error .upload-spinner {
  animation: none;
  border-color: currentColor;
}

.upload-progress-detail {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  word-break: break-word;
}

.upload-progress-track {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(46, 36, 26, 0.12);
}

.upload-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #4e9ad5 0%, #2d6ec9 100%);
  transition: width 0.2s ease;
}

.upload-progress-done {
  background: rgba(46, 181, 114, 0.12);
  border-color: rgba(46, 181, 114, 0.18);
}

.upload-progress-done .upload-progress-track span {
  background: linear-gradient(135deg, #27c17a 0%, #14935a 100%);
}

.upload-progress-error {
  background: rgba(214, 93, 83, 0.12);
  border-color: rgba(214, 93, 83, 0.18);
}

.upload-progress-error .upload-progress-track span {
  background: linear-gradient(135deg, #ef7a6d 0%, #cb4435 100%);
}

@keyframes upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.upload-item {
  display: grid;
  grid-template-columns: minmax(96px, 132px) minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.98));
  border-radius: 18px;
  padding: 12px;
  border: 1px solid rgba(94, 168, 222, 0.14);
  box-shadow: 0 12px 28px rgba(42, 91, 138, 0.08);
}

.room-chat-main {
  min-height: 680px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.room-summary-panel {
  min-height: 680px;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.upload-item a {
  color: var(--accent-deep);
}

.upload-preview-frame {
  overflow: hidden;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(94, 168, 222, 0.12);
  aspect-ratio: 4 / 3;
  position: relative;
}

.upload-preview-frame img,
.upload-preview-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #edf6ff;
}

.upload-video-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.upload-video-thumb {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(13, 30, 58, 0.78), rgba(25, 57, 101, 0.88)),
    linear-gradient(135deg, rgba(78, 154, 213, 0.22), rgba(214, 169, 63, 0.26));
  color: #fff;
}

.upload-video-thumb span {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(16, 28, 54, 0.24);
}

.upload-video-thumb strong {
  margin: 0;
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.4;
  word-break: break-word;
}

.upload-preview-frame audio {
  display: block;
  width: 100%;
}

.upload-item-body {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
  padding-top: 2px;
}

.upload-item-body strong {
  margin: 0;
  line-height: 1.45;
  word-break: break-word;
}

.upload-item-body span {
  line-height: 1.5;
  word-break: break-word;
}

.upload-file-fallback {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px;
  color: var(--accent-deep);
  text-decoration: none;
}

.upload-file-fallback span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(94, 168, 222, 0.12);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.upload-file-fallback strong {
  margin: 0;
  word-break: break-word;
}

.upload-empty-state {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(94, 168, 222, 0.2);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.terms-box {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(94, 168, 222, 0.14);
}

.terms-box h4 {
  margin: 0 0 10px;
}

.terms-box ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.support-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 72px;
}

.support-widget.is-dragging {
  cursor: grabbing;
}

.support-widget-hint {
  position: absolute;
  right: 74px;
  bottom: 10px;
  min-width: 220px;
  max-width: 280px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 122, 26, 0.18);
  box-shadow: 0 18px 40px rgba(46, 92, 150, 0.16);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.support-widget-toggle {
  position: relative;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 999px;
  padding: 0;
  background: linear-gradient(135deg, #ffffff 0%, #fff8ef 100%);
  color: white;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(46, 92, 150, 0.18);
  border: 1px solid rgba(255, 122, 26, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.support-widget-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(46, 92, 150, 0.3);
}

.support-widget-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 10px;
}

.support-widget-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.support-widget-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(360px, calc(100vw - 32px));
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(94, 168, 222, 0.14);
  box-shadow: 0 24px 56px rgba(22, 51, 95, 0.18);
  overflow: hidden;
  animation: support-pop 180ms ease;
}

.support-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(245, 249, 255, 0.96);
  cursor: move;
}

.storage-meter-list {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.storage-meter {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(94, 168, 222, 0.14);
}

.storage-meter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.storage-meter-top strong,
.storage-meter p {
  margin: 0;
}

.storage-meter p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.storage-meter-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 111, 182, 0.12);
  overflow: hidden;
}

.storage-meter-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #1f6fb6 0%, #e0b232 100%);
}

.admin-profit-card {
  margin-top: 18px;
}

.admin-profit-toolbar {
  margin-bottom: 16px;
}

.support-widget-messages {
  max-height: 320px;
  overflow: auto;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.support-widget-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid rgba(94, 168, 222, 0.12);
}

.support-widget-form input {
  min-height: 46px;
}

.support-widget .notif-badge.hidden {
  display: none !important;
}

.support-attachment {
  display: inline-flex;
  max-width: 220px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(94, 168, 222, 0.16);
}

.support-attachment img {
  display: block;
  width: 100%;
  height: auto;
}

.support-attachment-file {
  padding: 10px 12px;
  background: rgba(245, 249, 255, 0.98);
  color: var(--brand-blue, #1f4d9a);
}

.admin-user-menu-wrap {
  position: relative;
}

.admin-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(94, 168, 222, 0.14);
  box-shadow: 0 18px 42px rgba(22, 51, 95, 0.18);
  z-index: 8;
}

.admin-user-menu-item {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
}

.admin-user-menu-item:hover {
  background: rgba(94, 168, 222, 0.1);
}

.modal-card-compact {
  width: min(440px, 100%);
}

.modal-card textarea {
  width: 100%;
  margin-top: 12px;
  margin-bottom: 16px;
}

.share-link-box {
  margin: 14px 0 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(245, 249, 255, 0.98);
  border: 1px solid rgba(94, 168, 222, 0.14);
  word-break: break-all;
}

.fee-preview {
  display: block;
  margin-top: 8px;
}

@keyframes support-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.support-admin-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 18px;
}

.support-admin-room {
  border-radius: 20px;
  border: 1px solid rgba(94, 168, 222, 0.12);
  background: rgba(255, 255, 255, 0.94);
  min-height: 520px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.support-admin-messages {
  max-height: none;
  min-height: 420px;
}

@media (max-width: 1100px) {
  .room-chat-main,
  .room-summary-panel {
    min-height: auto;
  }

  .upload-item {
    grid-template-columns: 1fr;
  }

  .upload-preview-frame {
    max-width: 220px;
  }
}

.admin-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-item {
  display: grid;
  gap: 8px;
}

.admin-item h4,
.admin-item p {
  margin: 0;
}

.admin-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-user-menu-btn {
  min-width: 38px;
  padding: 8px 10px;
  font-size: 1.2rem;
  line-height: 1;
}

.admin-toolbar {
  margin-bottom: 14px;
}

.admin-toolbar input {
  width: 100%;
}

.warning-note,
.warning-text,
.danger-text {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.warning-note,
.warning-text {
  background: rgba(214, 169, 63, 0.14);
  color: #8a6200;
}

.warning-note-danger,
.danger-text {
  background: rgba(229, 57, 53, 0.12);
  color: #b62d2d;
}

.admin-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(194, 106, 45, 0.14);
  color: var(--accent-deep);
}

.admin-tag-danger {
  background: rgba(180, 58, 45, 0.12);
  color: var(--danger);
}

.admin-tag-muted {
  background: rgba(46, 36, 26, 0.08);
  color: var(--muted);
}

.active-filter {
  background: linear-gradient(135deg, var(--accent) 0%, #d68a52 100%);
  color: white;
  border-color: transparent;
}

.history-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-headbar {
  padding: 18px 22px;
}

.admin-headbar-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(32, 21, 12, 0.48);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-card {
  position: relative;
  width: min(520px, 100%);
  background: var(--surface-strong);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.hidden {
  display: none !important;
}

@media (max-width: 1080px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
    min-height: auto;
  }

  .transactions-shell {
    grid-template-columns: 1fr;
  }

  .transactions-sidebar {
    position: static;
    min-height: auto;
    border-radius: 28px;
  }

  .telegram-room-shell {
    border-radius: 28px;
  }

  .panel-resizer {
    display: none;
  }

  .admin-summary,
  .admin-headbar-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-content-grid {
    grid-template-columns: 1fr;
  }

  .room-summary-panel {
    position: static;
  }
}

@media (max-width: 920px) {
  .grid-two,
  .profile-layout,
  .transaction-guide-grid,
  .form-grid,
  .quick-provider-grid,
  .history-split {
    grid-template-columns: 1fr;
  }

  .topbar,
  .room-header,
  .room-page-head,
  .profile-row,
  .summary-item,
  .chat-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .chat-message {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .topbar,
  .page-shell {
    width: min(100% - 20px, 1240px);
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-logo {
    width: 170px;
    height: 106px;
  }

  .card {
    padding: 18px;
    border-radius: 22px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .provider-list,
  .topbar-actions,
  .action-row {
    width: 100%;
  }

  .topbar-actions > * {
    flex: 1 1 auto;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .telegram-room-shell {
    min-height: auto;
  }

  .room-shell-head,
  .room {
    padding-left: 18px;
    padding-right: 18px;
  }

  .join-role-box {
    margin-left: 18px;
    margin-right: 18px;
  }

  .admin-summary,
  .admin-headbar-row {
    grid-template-columns: 1fr;
  }

  .user-profile-modal-grid {
    grid-template-columns: 1fr;
  }
}
