* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }
    :root {
      --font-b: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
      /* mixed palette: dark header, light body, refined accents */
      --bg-0: #f4f2fa;
      --bg-1: #ffffff;
      --card-0: #ffffff;
      --card-1: #f0edf8;
      --border-0: #e2daf0;
      --border-1: #d0c5e8;
      --border-2: #b8aad6;
      --text-0: #1a142b;
      --text-2: #3d3557;
      --text-3: #6b5f87;
      --violet-dim: rgba(139, 92, 246, 0.08);
      --violet-4: #7c3aed;
      --violet-5: #6d28d9;
      --green-2: #0e9f4e;
      --rose: #e11d48;
      --amber: #d97706;
      --grad-brand: linear-gradient(135deg, #7c3aed, #6d28d9);
      --grad-rose: linear-gradient(135deg, #e11d48, #be123c);
      --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.04);
      --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
      --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
      /* dark header overrides */
      --header-bg: #0f0a1e;
      --header-border: #2a1f48;
      --header-text: #f0ebff;
      --header-muted: #b8aad6;
    }
    body {
      background: var(--bg-0);
      font-family: var(--font-b);
      color: var(--text-2);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
      overscroll-behavior: none;
      min-height: 100vh;
      min-height: 100dvh;
    }
    .app-container {
      display: flex;
      flex-direction: column;
      height: 100vh;
      height: 100dvh;
      max-width: 1280px;
      margin: 0 auto;
      position: relative;
    }
    /* HEADER — dark, premium */
    .app-header {
      background: var(--header-bg);
      border-bottom: 1px solid var(--header-border);
      padding: 0.5rem 0.8rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 0.4rem;
      flex-shrink: 0;
      z-index: 100;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      min-height: 60px;
    }
    .header-left {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      flex-shrink: 0;
      min-width: 0;
    }
    .logo {
      display: flex;
      align-items: center;
      gap: 0.4rem;
      flex-shrink: 0;
      text-decoration: none;
    }
    .nav-logo-mark {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.02));
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow: 0 2px 12px rgba(0,0,0,0.3);
      overflow: hidden;
      flex-shrink: 0;
    }
    .nav-logo-mark img {
      width: 34px;
      height: 34px;
      object-fit: contain;
      display: block;
    }
    .logo-name {
      font-family: "Outfit", sans-serif;
      font-size: 1rem;
      font-weight: 800;
      letter-spacing: 0.03em;
      color: #fff;
      text-shadow: 0 2px 12px rgba(0,0,0,0.2);
      line-height: 1;
      white-space: nowrap;
    }
    .logo-name em {
      background: linear-gradient(90deg, #4ade80, #22c55e, #a3e635);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      font-style: normal;
    }
    .header-right {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      flex-shrink: 0;
    }
    .header-badge {
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--header-border);
      padding: 0.25rem 0.6rem;
      border-radius: 20px;
      font-size: 0.7rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      white-space: nowrap;
      color: var(--header-muted);
    }
    .live-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--green-2);
      box-shadow: 0 0 6px rgba(14, 159, 78, 0.5);
      animation: pulse 1.5s infinite;
      flex-shrink: 0;
    }
    @keyframes pulse {
      0%, 100% { opacity: 0.6; transform: scale(0.9); }
      50% { opacity: 1; transform: scale(1.2); }
    }
    .translate-badge {
      background: rgba(139, 92, 246, 0.15);
      border: 1px solid var(--header-border);
      padding: 0.25rem 0.6rem;
      border-radius: 20px;
      font-size: 0.7rem;
      font-weight: 600;
      color: #c4b5e3;
      cursor: pointer;
      transition: 0.2s;
      display: flex;
      align-items: center;
      gap: 0.2rem;
      position: relative;
      white-space: nowrap;
    }
    .translate-badge:active { background: var(--header-border); }
    .translate-badge .active-dot {
      width: 5px;
      height: 5px;
      background: var(--green-2);
      border-radius: 50%;
      position: absolute;
      top: -2px;
      right: -2px;
    }
    @media (max-width: 480px) {
      .app-header { padding: 0.4rem 0.5rem; min-height: 52px; }
      .nav-logo-mark { width: 28px; height: 28px; }
      .nav-logo-mark img { width: 28px; height: 28px; }
      .logo-name { font-size: 0.85rem; }
      .header-badge { font-size: 0.6rem; padding: 0.2rem 0.4rem; }
      .translate-badge { font-size: 0.6rem; padding: 0.2rem 0.4rem; }
    }
    /* CONTENT — light */
    .app-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      position: relative;
      background: var(--bg-0);
    }
    /* PROFILES STRIP — light */
    .profiles-strip {
      padding: 0.5rem 0.6rem;
      background: var(--bg-1);
      border-bottom: 1px solid var(--border-0);
      flex-shrink: 0;
    }
    .profiles-strip-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 0.4rem;
    }
    .profiles-strip-header .label {
      font-size: 0.65rem;
      font-weight: 700;
      color: var(--text-3);
      text-transform: uppercase;
      letter-spacing: 0.05em;
      display: flex;
      align-items: center;
      gap: 0.3rem;
    }
    .profiles-strip-header .label .active-people {
      font-weight: 400;
      color: var(--green-2);
      font-size: 0.6rem;
      text-transform: none;
      letter-spacing: 0;
      display: flex;
      align-items: center;
      gap: 0.2rem;
    }
    .profiles-strip-header .label .active-people .mini-dot {
      width: 4px;
      height: 4px;
      background: var(--green-2);
      border-radius: 50%;
      animation: pulse 1.5s infinite;
    }
    .profile-scroll {
      display: flex;
      gap: 0.5rem;
      overflow-x: auto;
      padding: 0.2rem 0;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      scroll-behavior: smooth;
    }
    .profile-scroll::-webkit-scrollbar { display: none; }
    .profile-card {
      flex-shrink: 0;
      text-align: center;
      cursor: pointer;
      width: 60px;
      transition: transform 0.2s var(--spring);
      position: relative;
      -webkit-tap-highlight-color: transparent;
    }
    .profile-card:active { transform: scale(0.94); }
    .profile-card.active .avatar-wrapper {
      border-color: var(--violet-4);
      box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    }
    .avatar-wrapper {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      padding: 2px;
      border: 2px solid var(--border-1);
      margin: 0 auto;
      transition: all 0.2s;
      position: relative;
      background: white;
    }
    .avatar-wrapper img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      display: block;
    }
    .online-indicator {
      position: absolute;
      bottom: 1px;
      right: 1px;
      width: 10px;
      height: 10px;
      background: var(--green-2);
      border-radius: 50%;
      border: 2px solid var(--bg-1);
      box-shadow: 0 0 8px rgba(14, 159, 78, 0.3);
    }
    .profile-card .p-name {
      font-size: 0.55rem;
      font-weight: 600;
      color: var(--text-0);
      margin-top: 0.2rem;
      white-space: nowrap;
      line-height: 1.2;
    }
    .profile-card .p-topic {
      font-size: 0.45rem;
      color: var(--text-3);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 55px;
    }
    .unread-dot {
      position: absolute;
      top: 1px;
      right: 4px;
      width: 14px;
      height: 14px;
      background: var(--rose);
      color: white;
      font-size: 0.45rem;
      font-weight: 700;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    @media (max-width: 480px) {
      .profile-card { width: 52px; }
      .avatar-wrapper { width: 38px; height: 38px; }
      .profile-card .p-name { font-size: 0.5rem; }
      .profile-card .p-topic { font-size: 0.4rem; max-width: 48px; }
      .online-indicator { width: 8px; height: 8px; }
      .unread-dot { width: 12px; height: 12px; font-size: 0.4rem; right: 2px; }
    }
    /* ACTIVE PEOPLE BAR — light */
    .active-people-bar {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.4rem;
      padding: 0.3rem 0.8rem;
      background: rgba(14, 159, 78, 0.04);
      border-bottom: 1px solid rgba(14, 159, 78, 0.08);
      flex-shrink: 0;
    }
    .active-people-bar .people-avatars {
      display: flex;
      align-items: center;
    }
    .active-people-bar .people-avatars img {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--bg-1);
      margin-left: -5px;
    }
    .active-people-bar .people-avatars img:first-child { margin-left: 0; }
    .active-people-bar .people-text {
      font-size: 0.65rem;
      color: var(--text-2);
      font-weight: 500;
    }
    .active-people-bar .people-text strong { color: var(--green-2); font-weight: 700; }
    .active-people-bar .pulse-dot {
      width: 5px;
      height: 5px;
      background: var(--green-2);
      border-radius: 50%;
      animation: pulse 1.5s infinite;
      box-shadow: 0 0 6px rgba(14, 159, 78, 0.3);
    }
    /* CHAT AREA — light */
    .chat-container {
      flex: 1;
      display: flex;
      flex-direction: column;
      background: var(--bg-0);
      position: relative;
      min-height: 0;
    }
    .chat-header {
      background: var(--bg-1);
      padding: 0.5rem 0.8rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
      border-bottom: 1px solid var(--border-0);
      flex-shrink: 0;
    }
    .chat-header .ch-avatar {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid var(--border-0);
      cursor: pointer;
      flex-shrink: 0;
    }
    .chat-header .ch-info {
      flex: 1;
      min-width: 0;
      cursor: pointer;
    }
    .chat-header .ch-name {
      font-weight: 700;
      color: var(--text-0);
      font-size: 0.85rem;
      display: flex;
      align-items: center;
      gap: 0.2rem;
      flex-wrap: wrap;
    }
    .chat-header .ch-status {
      font-size: 0.6rem;
      color: var(--green-2);
      display: flex;
      align-items: center;
      gap: 0.2rem;
    }
    .chat-header .ch-topics {
      display: flex;
      gap: 0.2rem;
      flex-wrap: wrap;
    }
    .topic-pill {
      background: var(--violet-dim);
      color: var(--violet-4);
      font-size: 0.5rem;
      padding: 0.1rem 0.4rem;
      border-radius: 6px;
      font-weight: 600;
    }
    .chat-header-actions {
      display: flex;
      gap: 0.2rem;
      align-items: center;
      flex-shrink: 0;
    }
    .ch-action-btn {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background: var(--card-0);
      border: 1px solid var(--border-0);
      color: var(--text-2);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.7rem;
      transition: 0.2s;
      flex-shrink: 0;
    }
    .ch-action-btn:active { background: var(--border-0); }
    .earn-badge {
      background: rgba(14, 159, 78, 0.08);
      color: var(--green-2);
      font-size: 0.65rem;
      font-weight: 700;
      padding: 0.2rem 0.5rem;
      border-radius: 10px;
      white-space: nowrap;
    }
    @media (max-width: 480px) {
      .chat-header { padding: 0.4rem 0.5rem; }
      .chat-header .ch-avatar { width: 30px; height: 30px; }
      .chat-header .ch-name { font-size: 0.75rem; }
      .earn-badge { font-size: 0.55rem; padding: 0.15rem 0.4rem; }
      .ch-action-btn { width: 26px; height: 26px; font-size: 0.6rem; }
    }
    /* MESSAGES */
    .messages-area {
      flex: 1;
      overflow-y: auto;
      padding: 0.8rem;
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }
    .messages-area .empty-state {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      color: var(--text-3);
      gap: 0.6rem;
    }
    .empty-state .empty-icon { font-size: 2.5rem; opacity: 0.6; }
    .empty-state h3 { color: var(--text-0); font-size: 0.95rem; font-weight: 700; }
    .empty-state p { font-size: 0.75rem; max-width: 260px; }
    .empty-state .suggested-profiles {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
      justify-content: center;
      margin-top: 0.3rem;
    }
    .suggested-chip {
      background: var(--bg-1);
      border: 1px solid var(--border-0);
      color: var(--text-0);
      padding: 0.3rem 0.6rem;
      border-radius: 16px;
      font-size: 0.65rem;
      cursor: pointer;
      transition: 0.2s;
      display: flex;
      align-items: center;
      gap: 0.3rem;
      box-shadow: var(--shadow-sm);
    }
    .suggested-chip:active { background: var(--border-0); }
    .suggested-chip img {
      width: 18px;
      height: 18px;
      border-radius: 50%;
      object-fit: cover;
    }
    /* Message Bubbles */
    .msg-bubble {
      display: flex;
      flex-direction: column;
      max-width: 82%;
      animation: msgIn 0.3s ease;
    }
    .msg-bubble.received { align-items: flex-start; align-self: flex-start; margin-right: auto; }
    .msg-bubble.sent { align-items: flex-end; align-self: flex-end; margin-left: auto; }
    .bubble-content {
      padding: 0.5rem 0.8rem;
      border-radius: 14px;
      font-size: 0.8rem;
      line-height: 1.4;
      word-wrap: break-word;
    }
    .received .bubble-content {
      background: var(--bg-1);
      color: var(--text-0);
      border-bottom-left-radius: 4px;
      box-shadow: var(--shadow-sm);
    }
    .sent .bubble-content {
      background: var(--grad-brand);
      color: white;
      border-bottom-right-radius: 4px;
    }
    .msg-meta {
      display: flex;
      align-items: center;
      gap: 0.3rem;
      font-size: 0.5rem;
      color: var(--text-3);
      margin-top: 2px;
      padding: 0 4px;
    }
    .sent .msg-meta { justify-content: flex-end; }
    .translation-tag {
      font-size: 0.5rem;
      color: var(--violet-4);
      font-style: italic;
      display: flex;
      align-items: center;
      gap: 0.15rem;
    }
    @keyframes msgIn {
      from { opacity: 0; transform: translateY(6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .typing-dots {
      display: flex;
      gap: 3px;
      padding: 0.5rem 0.8rem;
      background: var(--bg-1);
      border-radius: 14px;
      border-bottom-left-radius: 4px;
      align-self: flex-start;
      margin-right: auto;
      box-shadow: var(--shadow-sm);
    }
    .typing-dots span {
      width: 5px;
      height: 5px;
      background: var(--text-3);
      border-radius: 50%;
      animation: bounce 1.2s infinite;
    }
    .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
    .typing-dots span:nth-child(3) { animation-delay: 0.4s; }
    @keyframes bounce {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-4px); }
    }
    /* INPUT BAR — light */
    .input-bar {
      padding: 0.4rem 0.6rem;
      background: var(--bg-1);
      border-top: 1px solid var(--border-0);
      display: flex;
      gap: 0.3rem;
      align-items: center;
      flex-shrink: 0;
      position: relative;
    }
    .input-bar input {
      flex: 1;
      min-width: 0;
      background: var(--bg-0);
      border: 1px solid var(--border-0);
      color: var(--text-0);
      padding: 0.5rem 0.7rem;
      border-radius: 18px;
      font-size: 0.8rem;
      outline: none;
      font-family: var(--font-b);
    }
    .input-bar input::placeholder { color: var(--text-3); font-size: 0.75rem; }
    .input-bar input:disabled { opacity: 0.5; }
    .tool-btn {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--bg-0);
      border: 1px solid var(--border-0);
      color: var(--text-2);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.75rem;
      transition: 0.2s;
      flex-shrink: 0;
    }
    .tool-btn:active { background: var(--border-0); transform: scale(0.95); }
    .tool-btn.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: auto; }
    .send-main-btn {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--grad-brand);
      border: none;
      color: white;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 0.8rem;
      transition: 0.2s;
      flex-shrink: 0;
    }
    .send-main-btn:disabled { opacity: 0.4; cursor: not-allowed; }
    .send-main-btn:not(:disabled):active { transform: scale(0.9); }
    @media (max-width: 480px) {
      .input-bar { padding: 0.3rem 0.4rem; }
      .input-bar input { font-size: 0.7rem; padding: 0.4rem 0.5rem; }
      .tool-btn { width: 28px; height: 28px; font-size: 0.65rem; }
      .send-main-btn { width: 32px; height: 32px; font-size: 0.7rem; }
    }
    /* Emoji Picker — light */
    .emoji-panel {
      position: absolute;
      bottom: 52px;
      left: 0.4rem;
      right: 0.4rem;
      background: var(--bg-1);
      border: 1px solid var(--border-0);
      border-radius: 14px;
      padding: 0.5rem;
      display: none;
      z-index: 50;
      box-shadow: var(--shadow-lg);
      max-height: 200px;
      overflow-y: auto;
    }
    .emoji-panel.open { display: block; animation: msgIn 0.2s ease; }
    .emoji-cats {
      display: flex;
      gap: 0.2rem;
      margin-bottom: 0.3rem;
      flex-wrap: wrap;
    }
    .emoji-cat {
      background: var(--bg-0);
      border: 1px solid var(--border-0);
      color: var(--text-2);
      padding: 0.15rem 0.5rem;
      border-radius: 12px;
      font-size: 0.6rem;
      cursor: pointer;
    }
    .emoji-cat.active {
      background: var(--violet-dim);
      border-color: var(--violet-4);
      color: var(--violet-4);
    }
    .emoji-list {
      display: grid;
      grid-template-columns: repeat(8, 1fr);
      gap: 0.2rem;
    }
    .emoji-list span {
      font-size: 1.1rem;
      text-align: center;
      cursor: pointer;
      padding: 0.15rem;
      border-radius: 6px;
      transition: 0.15s;
    }
    .emoji-list span:active { background: var(--border-0); transform: scale(1.2); }
    /* Voice Wave */
    .voice-wave {
      display: none;
      align-items: center;
      gap: 2px;
      padding: 0.4rem 0.6rem;
      background: var(--bg-0);
      border-radius: 18px;
      flex: 1;
      min-width: 0;
      border: 1px solid var(--border-0);
    }
    .voice-wave.active { display: flex; }
    .voice-wave span {
      flex: 1;
      background: var(--violet-4);
      border-radius: 2px;
      animation: waveAnim 0.8s infinite ease-in-out;
    }
    .voice-wave span:nth-child(1) { height: 8px; animation-delay: 0s; }
    .voice-wave span:nth-child(2) { height: 14px; animation-delay: 0.1s; }
    .voice-wave span:nth-child(3) { height: 5px; animation-delay: 0.2s; }
    .voice-wave span:nth-child(4) { height: 18px; animation-delay: 0.3s; }
    .voice-wave span:nth-child(5) { height: 10px; animation-delay: 0.4s; }
    @keyframes waveAnim {
      0%, 100% { transform: scaleY(1); }
      50% { transform: scaleY(0.4); }
    }
    /* Sidebar — light */
    .sidebar-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.2);
      backdrop-filter: blur(4px);
      z-index: 200;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    .sidebar-backdrop.open { opacity: 1; pointer-events: auto; }
    .conversations-drawer {
      position: fixed;
      top: 0;
      left: 0;
      width: 280px;
      max-width: 82vw;
      height: 100vh;
      height: 100dvh;
      background: var(--bg-1);
      border-right: 1px solid var(--border-0);
      z-index: 201;
      transform: translateX(-100%);
      transition: transform 0.3s var(--spring);
      display: flex;
      flex-direction: column;
      box-shadow: var(--shadow-lg);
    }
    .conversations-drawer.open { transform: translateX(0); }
    .drawer-header {
      padding: 0.8rem;
      border-bottom: 1px solid var(--border-0);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .drawer-header h3 {
      color: var(--text-0);
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }
    .drawer-close {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--bg-0);
      border: none;
      color: var(--text-2);
      cursor: pointer;
    }
    .drawer-list {
      flex: 1;
      overflow-y: auto;
      padding: 0.4rem;
    }
    .drawer-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.5rem;
      border-radius: 10px;
      cursor: pointer;
      transition: 0.2s;
    }
    .drawer-item:active, .drawer-item.active { background: var(--border-0); }
    .drawer-item img {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      object-fit: cover;
    }
    .drawer-item-info {
      flex: 1;
      min-width: 0;
    }
    .drawer-item-info .di-name {
      font-weight: 600;
      color: var(--text-0);
      font-size: 0.8rem;
    }
    .drawer-item-info .di-msg {
      font-size: 0.65rem;
      color: var(--text-3);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .drawer-item-time {
      font-size: 0.55rem;
      color: var(--text-3);
      flex-shrink: 0;
    }
    /* Registration Modal — light */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.25);
      backdrop-filter: blur(8px);
      z-index: 300;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    .modal-card {
      background: var(--bg-1);
      border: 1px solid var(--border-0);
      border-radius: 20px;
      padding: 1.5rem 1.2rem;
      text-align: center;
      max-width: 360px;
      width: 100%;
      box-shadow: 0 30px 50px rgba(0,0,0,0.08);
    }
    .modal-card .modal-icon {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--violet-dim);
      margin: 0 auto 0.8rem;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      color: var(--violet-4);
    }
    .modal-card h3 { color: var(--text-0); font-size: 1.1rem; margin-bottom: 0.2rem; }
    .modal-card p { color: var(--text-3); font-size: 0.8rem; margin-bottom: 0.8rem; }
    .modal-features {
      display: flex;
      gap: 0.4rem;
      flex-wrap: wrap;
      justify-content: center;
      margin: 0.6rem 0;
    }
    .modal-feature {
      background: var(--bg-0);
      padding: 0.3rem 0.6rem;
      border-radius: 16px;
      font-size: 0.65rem;
      color: var(--violet-4);
      display: flex;
      align-items: center;
      gap: 0.2rem;
    }
    .modal-btn {
      width: 100%;
      padding: 0.7rem;
      background: var(--grad-brand);
      border: none;
      color: white;
      border-radius: 12px;
      font-weight: 700;
      font-size: 0.85rem;
      cursor: pointer;
      margin-top: 0.4rem;
      transition: 0.2s;
    }
    .modal-btn:active { transform: scale(0.97); }
    .modal-skip {
      background: none;
      border: none;
      color: var(--text-3);
      margin-top: 0.5rem;
      cursor: pointer;
      font-size: 0.75rem;
      padding: 0.3rem;
    }
    /* Toast */
    .toast-msg {
      position: fixed;
      bottom: 80px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--bg-1);
      border: 1px solid var(--border-0);
      color: var(--text-0);
      padding: 0.5rem 1rem;
      border-radius: 16px;
      font-size: 0.75rem;
      z-index: 400;
      animation: msgIn 0.3s ease;
      box-shadow: var(--shadow-lg);
      white-space: nowrap;
      font-weight: 500;
    }
    @media (max-width: 480px) {
      .modal-card { padding: 1.2rem 1rem; max-width: 320px; }
      .modal-card h3 { font-size: 1rem; }
      .modal-card p { font-size: 0.75rem; }
    }