:root {
  --bg-1: #0b1023;
  --bg-2: #161b38;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.14);
  --text: #f3f6ff;
  --muted: #b4bdd8;
  --primary: #46d6ff;
  --primary-2: #8af59d;
  --danger: #ff6a7a;
  --warning: #ffcf66;
  --line: rgba(255, 255, 255, 0.18);
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(70, 214, 255, 0.2), transparent 30%),
    radial-gradient(circle at 75% 20%, rgba(138, 245, 157, 0.15), transparent 35%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2));
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 0px;
}

.brand {
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.4px;
  margin: 6px 0 18px;
}

.subtitle {
  margin: 0 0 26px;
  color: var(--muted);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.card h2 {
  margin: 0 0 14px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 600;
}

.row {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  font-size: 13px;
  color: var(--muted);
}

.input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 12px;
  background: rgba(5, 9, 21, 0.45);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(70, 214, 255, 0.2);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 600;
  font-family: "Space Grotesk", sans-serif;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #02111a;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
}

.btn-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
}

.btn-danger {
  color: #fff;
  background: rgba(255, 106, 122, 0.22);
  border: 1px solid rgba(255, 106, 122, 0.45);
}

.btn:hover {
  filter: brightness(1.05);
}

.hint {
  color: var(--muted);
  font-size: 13px;
}

.status {
  margin-top: 12px;
  min-height: 20px;
  font-size: 14px;
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--primary-2);
}

.topbar {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.chat-shell {
  display: grid;
  grid-template-rows: 1fr auto;
  height: calc(100vh - 130px);
  min-height: 560px;
}

.chat-log {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  overflow: auto;
  background: rgba(4, 7, 16, 0.5);
}

.bubble {
  max-width: 78%;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.bubble.user {
  margin-left: auto;
  background: rgba(70, 214, 255, 0.18);
  border: 1px solid rgba(70, 214, 255, 0.38);
}

.bubble.assistant {
  margin-right: auto;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.composer {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  background: rgba(11, 15, 30, 0.72);
}

.file-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.file-box {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  background: rgba(8, 12, 24, 0.7);
}

thead th {
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
}

tbody td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.actions {
  display: flex;
  gap: 6px;
}

.captcha-box {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.hidden {
  display: none !important;
}

body.auth-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 30%),
    linear-gradient(90deg, #0d0f16 0%, #12151d 50%, #0d0f16 100%);
  position: relative;
  overflow: hidden;
}

body.auth-screen::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.02) 0,
      rgba(255, 255, 255, 0.02) 1px,
      transparent 1px,
      transparent 180px
    );
  opacity: 0.42;
  pointer-events: none;
}

.auth-wrap {
  width: 100%;
  max-width: 620px;
  padding: 20px;
  z-index: 1;
}

.auth-card {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(38, 39, 45, 0.95), rgba(31, 32, 37, 0.95));
  border: 1px solid rgba(71, 106, 160, 0.45);
  border-radius: 14px;
  padding: 30px 30px 24px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  animation: authCardIn 0.4s ease;
}

@keyframes authCardIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 42px;
  line-height: 1;
  letter-spacing: 0.3px;
}

.auth-subtitle {
  margin: 10px 0 26px;
  color: #8f96a6;
  font-size: 18px;
}

.auth-card .field label {
  color: #d9dcea;
  font-size: 16px;
  font-weight: 600;
}

.auth-input {
  border-radius: 10px;
  border: 1px solid #2f3f5f;
  padding: 12px 14px;
  background: rgba(31, 35, 46, 0.85);
  color: #f6f8ff;
  font-size: 16px;
}

.auth-input::placeholder {
  color: #8a91a3;
}

.auth-input:focus {
  border-color: #4b83f5;
  box-shadow: 0 0 0 3px rgba(75, 131, 245, 0.18);
}

.auth-submit {
  width: 100%;
  margin-top: 8px;
  border-radius: 10px;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: #f3f7ff;
  background: linear-gradient(180deg, #4b86f3, #3d76df);
}

.auth-links {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #8f96a6;
  font-size: 15px;
}

.auth-link-btn {
  border: none;
  background: transparent;
  color: #4c86f8;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.auth-link-btn:hover {
  color: #74a2ff;
}

.auth-card .status {
  text-align: center;
}

.auth-card .captcha-box {
  border: 1px solid #2f3f5f;
  background: rgba(22, 26, 36, 0.8);
}

.auth-admin-link {
  margin-top: 20px;
  text-align: center;
}

.auth-admin-link a {
  color: #8f96a6;
  text-decoration: none;
  font-size: 13px;
}

.auth-admin-link a:hover {
  color: #c3c8d9;
}

@media (max-width: 720px) {
  .auth-card {
    padding: 22px 18px 18px;
  }

  .auth-title {
    font-size: 34px;
  }

  .auth-subtitle {
    font-size: 15px;
  }

  .auth-card .field label,
  .auth-input,
  .auth-submit {
    font-size: 16px;
  }

  .auth-links,
  .auth-link-btn,
  .auth-admin-link a {
    font-size: 14px;
  }
}

@media (max-width: 980px) {
  .layout-2,
  .grid-2,
  .file-row {
    grid-template-columns: 1fr;
  }

  .chat-shell {
    height: auto;
    min-height: 0;
  }

  .bubble {
    max-width: 100%;
  }
}

/* ----------------------------- */
/* Chat UI (Figma-ish) overrides */
/* ----------------------------- */

body.chat-page {
  background:
    radial-gradient(circle at 18% 6%, rgba(70, 214, 255, 0.16), transparent 40%),
    radial-gradient(circle at 85% 18%, rgba(138, 245, 157, 0.12), transparent 42%),
    radial-gradient(circle at 60% 92%, rgba(255, 207, 102, 0.08), transparent 35%),
    linear-gradient(135deg, #070a12, #121a35);
}

body.chat-page.is-file-dragging,
body.chat-page.is-file-dragging * {
  cursor: copy !important;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.chat-brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #03111a;
  background: linear-gradient(140deg, rgba(70, 214, 255, 1), rgba(138, 245, 157, 1));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

.chat-brand__name {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.chat-brand__sub {
  color: rgba(180, 189, 216, 0.9);
  font-size: 13px;
  margin-top: 2px;
}

.chat-topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.chat-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.chat-stage {
  position: relative;
}

.chat-panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.chat-panel__header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(70, 214, 255, 0.12), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(138, 245, 157, 0.1), transparent 55%);
}

.chat-panel__title {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.chat-panel__hint {
  color: rgba(180, 189, 216, 0.88);
  font-size: 12px;
}

.chat-sessionbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 9, 20, 0.45);
}

.chat-sessionbar__new {
  flex: 0 0 auto;
  white-space: nowrap;
}

.chat-sessionbar__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  min-width: 0;
}

.session-pill {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(243, 246, 255, 0.92);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  cursor: pointer;
  max-width: 240px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.session-pill:hover {
  filter: brightness(1.05);
}

.session-pill.active {
  border-color: rgba(70, 214, 255, 0.65);
  background: rgba(70, 214, 255, 0.16);
}

.chat-panel .chat-log {
  border: none;
  border-radius: 0;
  padding: 18px;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.06), transparent 40%),
    rgba(4, 7, 16, 0.52);
  height: calc(100vh - 312px);
  min-height: 420px;
}

.msg {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.msg-user {
  justify-items: end;
}

.msg-assistant {
  justify-items: start;
}

.msg-meta {
  font-size: 12px;
  color: rgba(180, 189, 216, 0.9);
}

.msg-user .msg-meta {
  color: rgba(138, 245, 157, 0.9);
}

.msg-assistant .msg-meta {
  color: rgba(70, 214, 255, 0.9);
}

.msg-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: inherit;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(243, 246, 255, 0.92);
}

.msg-pending .bubble.assistant {
  position: relative;
  overflow: hidden;
}

.msg-pending .bubble.assistant::after {
  content: "";
  position: absolute;
  inset: -40% -40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-50%);
  animation: shimmer 1.2s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-60%); }
  100% { transform: translateX(60%); }
}

.bubble {
  max-width: min(720px, 78%);
  margin-bottom: 0;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  animation: msgIn 0.14s ease both;
}

@keyframes msgIn {
  from { transform: translateY(6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.bubble.user {
  background: linear-gradient(180deg, rgba(138, 245, 157, 0.16), rgba(70, 214, 255, 0.12));
  border: 1px solid rgba(138, 245, 157, 0.32);
}

.bubble.assistant {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.composer {
  margin-top: 0;
  border: none;
  border-radius: 0;
  padding: 14px clamp(8px, 3vw, 16px) 14px;
  background: rgba(10, 14, 26, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.composer__row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(4px, 1.6vw, 10px);
}

.composer__input {
  flex: 1;
  min-width: 0;
}

.composer__textarea {
  width: 100%;
  min-height: 46px;
  max-height: 140px;
  resize: none;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.18);
  padding: 11px 14px;
  font-size: 15px;
}

.composer__textarea:focus {
  border-color: rgba(70, 214, 255, 0.68);
  box-shadow: 0 0 0 3px rgba(70, 214, 255, 0.18);
}

.composer__uploads {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.upload-btn {
  position: relative;
  display: grid;
  gap: 2px;
  justify-items: start;
  min-width: clamp(132px, 22vw, 186px);
  padding: 10px 14px 10px 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  background:
    linear-gradient(145deg, rgba(12, 22, 44, 0.94), rgba(10, 15, 30, 0.94)) padding-box,
    linear-gradient(135deg, rgba(70, 214, 255, 0.56), rgba(138, 245, 157, 0.44)) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.26);
  transition: transform 0.15s ease, filter 0.18s ease, box-shadow 0.18s ease;
}

.upload-btn::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.upload-btn::after {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  border-right: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
}

.upload-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.32);
}

.upload-btn:active {
  transform: translateY(0);
}

.upload-btn__title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(243, 246, 255, 0.96);
}

.upload-btn__hint {
  font-size: 11px;
  line-height: 1.2;
  color: rgba(180, 189, 216, 0.95);
}

.upload-btn--image::before {
  background:
    radial-gradient(circle at 70% 30%, rgba(138, 245, 157, 0.9), transparent 46%),
    linear-gradient(160deg, rgba(70, 214, 255, 0.34), rgba(138, 245, 157, 0.22));
}

.upload-btn--image {
  padding-left: 50px;
}

.upload-btn--file {
  padding-left: 50px;
}

.upload-btn--file::before {
  background:
    linear-gradient(160deg, rgba(70, 214, 255, 0.3), rgba(70, 214, 255, 0.16)),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.18) 0 1px,
      rgba(255, 255, 255, 0) 1px 4px
    );
}

.composer__attachments {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

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

.attachment-chip {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 10px 12px;
  max-width: 100%;
}

.attachment-chip__label {
  font-size: 13px;
  font-weight: 700;
}

.attachment-chip__detail {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(180, 189, 216, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 560px;
}

.composer__row .btn {
  flex: 0 1 auto;
  min-width: 0;
  height: 46px;
  padding: 10px clamp(8px, 2.6vw, 14px);
  font-size: clamp(12px, 2.8vw, 14px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-images {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  justify-content: inherit;
}

.msg-images--single {
  grid-template-columns: minmax(0, 1fr);
}

.msg-image {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}

.msg-image img {
  display: block;
  width: 100%;
  height: 86px;
  object-fit: cover;
}

.attachment-chip__thumbs {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.attachment-chip__thumbs img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.img-preview {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.img-preview.open {
  display: block;
}

.img-preview__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.img-preview__stage {
  position: absolute;
  inset: 36px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(10, 14, 26, 0.88);
  padding: 12px;
}

.img-preview__close {
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 246, 255, 0.92);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 800;
}

.img-preview__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.22);
}

/* Membership page */
.vip-layout {
  display: grid;
  gap: 18px;
}

.vip-hero {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  padding: 18px;
}

.vip-hero__title {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.2px;
}

.vip-hero__desc {
  margin-top: 8px;
  color: rgba(180, 189, 216, 0.9);
  line-height: 1.65;
}

.vip-hero__badges {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.vip-card {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(10, 14, 26, 0.58);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  padding: 18px;
}

.vip-card--pro {
  background:
    radial-gradient(circle at 16% 10%, rgba(70, 214, 255, 0.13), transparent 45%),
    radial-gradient(circle at 85% 18%, rgba(138, 245, 157, 0.1), transparent 50%),
    rgba(10, 14, 26, 0.58);
  border-color: rgba(70, 214, 255, 0.22);
}

.vip-card__top {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.vip-card__name {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 900;
  font-size: 18px;
}

.vip-card__price {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 900;
  font-size: 28px;
}

.vip-card__unit {
  font-size: 14px;
  font-weight: 800;
  color: rgba(180, 189, 216, 0.9);
  margin-left: 6px;
}

.vip-card__sub {
  color: rgba(180, 189, 216, 0.9);
  font-size: 13px;
}

.vip-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px 0;
  display: grid;
  gap: 10px;
}

.vip-list li {
  padding-left: 14px;
  position: relative;
  color: rgba(243, 246, 255, 0.92);
}

.vip-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(140deg, rgba(70, 214, 255, 1), rgba(138, 245, 157, 1));
}

.vip-pay {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

.vip-note {
  margin-top: 10px;
  color: rgba(180, 189, 216, 0.85);
  font-size: 12px;
  line-height: 1.6;
}

.vip-faq {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background: rgba(10, 14, 26, 0.58);
  padding: 18px;
}

.vip-faq__title {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 900;
  font-size: 16px;
  margin-bottom: 12px;
}

.vip-faq__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.vip-faq__item {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
}

.vip-faq__q {
  font-weight: 900;
  margin-bottom: 8px;
}

.vip-faq__a {
  color: rgba(180, 189, 216, 0.9);
  line-height: 1.6;
}

.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
}

.pay-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}

.pay-modal__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 28px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  background: rgba(10, 14, 26, 0.92);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.pay-modal__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pay-modal__title {
  font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  font-weight: 900;
}

.pay-modal__close {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(243, 246, 255, 0.92);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 900;
}

.pay-modal__body {
  padding: 16px;
}

.pay-modal__hint {
  color: rgba(180, 189, 216, 0.9);
  line-height: 1.6;
}

.pay-modal__qr {
  margin-top: 12px;
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}

.pay-modal__actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 720px) {
  .chat-panel .chat-log {
    height: calc(100vh - 346px);
    min-height: 320px;
    padding: 14px;
  }

  .chat-sessionbar {
    flex-direction: column;
    align-items: stretch;
  }

  .chat-sessionbar__new {
    width: 100%;
  }

  .composer__row .btn {
    padding: 10px clamp(6px, 2.2vw, 12px);
  }

  .composer__uploads {
    gap: 8px;
  }

  .composer__uploads .btn {
    min-width: 0;
    flex: 1;
  }

  .upload-btn {
    padding: 10px 10px 10px 38px;
  }

  .upload-btn--image {
    padding-left: 44px;
  }

  .upload-btn--file {
    padding-left: 44px;
  }

  .upload-btn__title {
    font-size: 12px;
  }

  .upload-btn__hint {
    font-size: 10px;
  }

  .attachment-chip__detail {
    max-width: 100%;
  }

  .msg-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .msg-images--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .msg-image img {
    height: 104px;
  }

  .img-preview__stage {
    inset: 14px;
  }

  .vip-cards {
    grid-template-columns: 1fr;
  }

  .vip-faq__grid {
    grid-template-columns: 1fr;
  }

  .vip-pay {
    grid-template-columns: 1fr;
  }
}
