/* ═══════════════════════════════════════════
   APNA HAQ — UI v2 (ChatGPT-inspired)
   ═══════════════════════════════════════════ */

/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === TOKENS === */
:root {
  --sidebar-bg:       #f0ece6;
  --sidebar-width:    260px;
  --bg:               #f4f2ee;
  --surface:          #fff;
  --surface-hover:    #f9f8f6;
  --border:           rgba(26, 26, 26, 0.08);
  --text:             #1a1a1a;
  --text-secondary:   #605f5f;
  --text-muted:       #999;
  --accent:           #f5c518;
  --accent-dim:       rgba(245, 197, 24, 0.10);
  --accent-glow:      rgba(245, 197, 24, 0.06);
  --accent-hover:     #e8b400;
  --red:              #ef4444;
  --radius:           16px;
  --radius-sm:        10px;
  --topbar-h:         52px;
  --font:             'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:     'Space Grotesk', var(--font);
}

/* === BASE === */
html, body {
  height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

/* ═══════════════════════════
   LAYOUT
   ═══════════════════════════ */
#app {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ═══════════════════════════
   SIDEBAR
   ═══════════════════════════ */
.sidebar {
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow: hidden;
  border-right: 1px solid var(--border);
  transition: width 0.25s ease, transform 0.25s ease;
}

.sidebar.collapsed {
  width: 0;
  border-right-color: transparent;
}

/* Top: logo + new chat button */
.sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 10px;
  gap: 8px;
  flex-shrink: 0;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px;
  overflow: hidden;
  white-space: nowrap;
}

.sidebar-logo-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.sidebar-logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
}

.sidebar-new-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-new-btn:hover {
  background: var(--surface-hover);
  color: var(--text);
}

/* Section label */
.sidebar-section-label {
  padding: 8px 16px 4px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* History list */
.chat-history {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2px 8px;
}

.chat-history::-webkit-scrollbar { width: 3px; }
.chat-history::-webkit-scrollbar-thumb {
  background: var(--surface-hover);
  border-radius: 3px;
}

.no-history {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  padding: 24px 12px;
  line-height: 1.7;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.12s;
  white-space: nowrap;
  overflow: hidden;
}

.history-item:hover { background: var(--surface); }

.history-item.active {
  background: var(--surface);
  color: var(--text);
}

.history-icon { font-size: 13px; flex-shrink: 0; }

.history-title {
  font-size: 13px;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.history-item.active .history-title,
.history-item:hover .history-title {
  color: var(--text);
}

.history-delete {
  display: none;
  width: 22px;
  height: 22px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  transition: color 0.12s, background 0.12s;
}

.history-item:hover .history-delete { display: flex; }

.history-delete:hover {
  color: var(--red);
  background: rgba(239, 68, 68, 0.12);
}

/* Footer */
.sidebar-footer {
  padding: 10px 8px 14px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-credit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.15s;
  overflow: hidden;
}

.sidebar-credit:hover { background: var(--surface); }

.credit-avatar { font-size: 22px; flex-shrink: 0; }

.credit-info { overflow: hidden; }

.credit-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.credit-handle {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ═══════════════════════════
   MOBILE OVERLAY
   ═══════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.sidebar-overlay.visible { display: block; }

/* ═══════════════════════════
   MAIN CONTENT
   ═══════════════════════════ */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ═══════════════════════════
   TOPBAR
   ═══════════════════════════ */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  gap: 8px;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--surface);
  color: var(--text);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  justify-content: center;
}

.topbar-icon { font-size: 19px; }

.topbar-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

/* Hide topbar brand on desktop (already in sidebar) */
@media (min-width: 769px) {
  .topbar-brand { display: none; }
  #newChatMobile { display: none; }
}

/* ═══════════════════════════
   CHAT AREA
   ═══════════════════════════ */
.chat-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.chat-area::-webkit-scrollbar { width: 4px; }
.chat-area::-webkit-scrollbar-thumb {
  background: var(--surface-hover);
  border-radius: 4px;
}

/* ═══════════════════════════
   WELCOME SCREEN
   ═══════════════════════════ */
.welcome {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 32px 24px 80px;
}

.welcome-inner {
  text-align: center;
  max-width: 560px;
  width: 100%;
}

.welcome-icon {
  font-size: 60px;
  display: block;
  margin-bottom: 18px;
  animation: floatIcon 4s ease-in-out infinite;
}

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-12px) rotate(2deg); }
}

.welcome-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.welcome-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 36px;
  letter-spacing: 0.03em;
}

/* Suggestion cards */
.suggestions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.suggestion-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: background 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}

.suggestion-card:hover {
  background: var(--surface-hover);
  border-color: rgba(245, 197, 24, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(245, 197, 24, 0.08);
}

.suggestion-card .icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.suggestion-card .text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ═══════════════════════════
   MESSAGES
   ═══════════════════════════ */
.messages {
  display: none; /* shown via JS */
  flex-direction: column;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: 20px 20px 32px;
  gap: 2px;
}

/* Entrance animation */
@keyframes msgIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === USER MESSAGES === */
.message.user {
  display: flex;
  justify-content: flex-end;
  padding: 4px 0;
  animation: msgIn 0.2s ease;
}

.message-bubble {
  background: var(--surface);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 20px 20px 5px 20px;
  max-width: 74%;
  font-size: 15px;
  line-height: 1.55;
  word-wrap: break-word;
  border: 1px solid rgba(26, 26, 26, 0.08);
}

/* === ASSISTANT MESSAGES === */
.message.assistant {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  animation: msgIn 0.22s ease;
}

.message-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(245, 197, 24, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  margin-top: 3px;
}

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

.message-content {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text);
  word-wrap: break-word;
}

/* Markdown in assistant */
.message-content strong {
  color: var(--accent);
  font-weight: 600;
}

.message-content em {
  font-style: italic;
  color: var(--text-secondary);
}

.message-content a {
  color: #60a5fa;
  text-decoration: none;
}

.message-content a:hover { text-decoration: underline; }

.message-content ul,
.message-content ol {
  margin: 8px 0;
  padding-left: 22px;
}

.message-content li { margin: 5px 0; }

.message-content p { margin: 6px 0; }
.message-content p:first-child { margin-top: 0; }
.message-content p:last-child  { margin-bottom: 0; }

.message-content code {
  background: rgba(26, 26, 26, 0.06);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
}

.message-content table {
  border-collapse: collapse;
  margin: 10px 0;
  font-size: 13px;
  width: 100%;
}

.message-content th,
.message-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.message-content th {
  background: rgba(245, 197, 24, 0.06);
  color: var(--accent);
  font-weight: 600;
}

/* === ERROR MESSAGES === */
.message.error {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  animation: msgIn 0.2s ease;
}

.message.error .message-avatar {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}

.message.error .message-content {
  color: #f87171;
}

/* === TYPING INDICATOR === */
.typing-indicator {
  display: flex;
  gap: 5px;
  align-items: center;
  height: 26px;
}

.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30%           { transform: translateY(-8px); opacity: 1; }
}

/* === DOMAIN TAGS === */
.domain-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.domain-tag {
  font-size: 10px;
  padding: 3px 9px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(245, 197, 24, 0.2);
  border-radius: 100px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ═══════════════════════════
   INPUT / COMPOSER
   ═══════════════════════════ */
.input-area {
  padding: 10px 16px 18px;
  flex-shrink: 0;
}

.composer {
  max-width: 720px;
  margin: 0 auto;
}

.composer-box {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--surface);
  border: 1px solid rgba(26, 26, 26, 0.1);
  border-radius: 16px;
  padding: 10px 10px 10px 18px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.composer-box:focus-within {
  border-color: rgba(245, 197, 24, 0.38);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

textarea {
  flex: 1;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  resize: none;
  outline: none;
  line-height: 1.55;
  max-height: 150px;
  padding: 4px 0;
}

textarea::placeholder { color: var(--text-muted); }

.send-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.18s, opacity 0.18s;
}

.send-btn:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: scale(1.06);
}

.send-btn:disabled {
  opacity: 0.22;
  cursor: not-allowed;
  transform: none;
}

.disclaimer {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 9px;
}

/* ═══════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════ */
@media (max-width: 768px) {
  /* Sidebar becomes a fixed drawer */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 50;
    width: var(--sidebar-width);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5);
  }

  .sidebar.open { transform: translateX(0); }

  /* Desktop collapsed class is irrelevant on mobile */
  .sidebar.collapsed { width: var(--sidebar-width); }

  /* Messages take full width with tighter padding */
  .messages { padding: 16px 14px 28px; }

  .message-bubble {
    max-width: 88%;
    font-size: 14px;
  }

  .message-content { font-size: 14px; }

  /* Welcome */
  .welcome { padding: 28px 16px 80px; }
  .welcome-icon { font-size: 50px; }
  .welcome-title { font-size: 22px; }

  .suggestions { grid-template-columns: 1fr; }

  /* Input */
  .input-area { padding: 8px 10px 14px; }
}

@media (max-width: 400px) {
  .message-bubble { max-width: 94%; }
}

/* ═══════════════════════════
   LOGIN SCREEN
   ═══════════════════════════ */
.login-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}

.login-card {
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.login-logo {
  font-size: 64px;
  margin-bottom: 12px;
  animation: floatIcon 4s ease-in-out infinite;
}

.login-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.login-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.login-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.login-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  text-align: left;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 8px 14px;
  background: var(--surface);
  border-radius: var(--radius-sm);
}

.login-feature span {
  font-size: 16px;
  flex-shrink: 0;
}

.google-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
  min-height: 44px;
}

/* Phone login */
.phone-login {
  margin-bottom: 20px;
}

.phone-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.phone-prefix {
  padding: 11px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.phone-login input {
  flex: 1;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.phone-login input:focus {
  border-color: rgba(245, 197, 24, 0.4);
}

.phone-login input::placeholder {
  color: var(--text-muted);
}

.otp-btn {
  padding: 11px 16px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.otp-btn:hover { background: var(--accent-hover); }
.otp-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.otp-step {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.phone-status {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  min-height: 18px;
}

.phone-status.error { color: var(--red); }
.phone-status.success { color: #10b981; }

.login-email-toggle {
  margin-bottom: 16px;
  text-align: center;
}

.login-email-toggle a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.login-email-toggle a:hover {
  color: var(--accent);
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 12px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.login-form input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

.login-form input:focus {
  border-color: rgba(245, 197, 24, 0.4);
}

.login-form input::placeholder {
  color: var(--text-muted);
}

.login-submit-btn {
  width: 100%;
  padding: 11px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.login-submit-btn:hover {
  background: var(--accent-hover);
}

.login-footer {
  font-size: 12px;
  color: var(--text-muted);
}

.login-footer a {
  color: var(--accent);
  text-decoration: none;
}

.login-footer a:hover { text-decoration: underline; }

/* ═══════════════════════════
   APP CONTAINER
   ═══════════════════════════ */
.app-container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════
   SIDEBAR USER + USAGE
   ═══════════════════════════ */
.sidebar-usage {
  padding: 8px 12px;
  flex-shrink: 0;
}

.usage-bar-wrap {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.usage-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.usage-track {
  height: 4px;
  background: var(--surface-hover);
  border-radius: 4px;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.usage-pro {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  text-align: center;
  padding: 8px;
}

.upgrade-btn {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.upgrade-btn:hover { background: var(--accent-hover); }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px;
  overflow: hidden;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.user-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.user-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logout-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
}

.logout-btn:hover { color: var(--red); }

/* ═══════════════════════════
   PAYWALL MODAL
   ═══════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 20px;
}

.modal-card {
  background: var(--sidebar-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 32px 28px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: msgIn 0.25s ease;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
  color: var(--text);
  background: var(--surface);
}

.modal-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.modal-desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 24px;
}

.plan-card {
  background: var(--surface);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.plan-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 6px;
  margin-bottom: 4px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}

.plan-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-bottom: 18px;
}

.plan-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.pay-btn {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.pay-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.modal-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 16px;
}
