/* ============================================================
   BuLumina — User Stylesheet
   Monochrome · minimal · premium
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* ---------- BACKGROUND (dark gray-blue) ---------- */
  --bg:            #0d1017;
  --bg-soft:       #13161d;
  --bg-elev:       #191c24;
  --bg-hover:      #1f232b;
  --bg-panel:      #161921;

  /* ---------- BORDERS ---------- */
  --border:        #242832;
  --border-soft:   #1a1d24;
  --border-strong: #2e323b;

  /* ---------- TEXT ---------- */
  --text:          #e6e8ee;
  --text-dim:      #9ca1ae;
  --text-muted:    #666c78;

  /* ---------- PRIMARY (white action) ---------- */
  --primary:       #ffffff;
  --primary-h:     #e5e7ec;
  --primary-soft:  rgba(255,255,255,0.08);

  /* ---------- ACCENT (amber) ---------- */
  --accent:        #f59e0b;
  --accent-h:      #fbbf24;
  --accent-soft:   rgba(245,158,11,0.1);
  --accent-glow:   rgba(245,158,11,0.28);

  /* ---------- SEMANTIC ---------- */
  --success:       #10b981;
  --danger:        #ef4444;
  --warning:       #f59e0b;
  --pending:       #f59e0b;
  --info:          #60a5fa;
  --search:        #60a5fa;

  /* ---------- RADII ---------- */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* ---------- SHADOWS ---------- */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.32);
  --shadow:       0 10px 32px rgba(0,0,0,0.5);
  --shadow-lg:    0 24px 64px rgba(0,0,0,0.72);
  --shadow-inner: inset 0 1px 0 rgba(255,255,255,0.045);

  /* ---------- FONTS ---------- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Monaco, "Cascadia Code", Consolas, monospace;

  /* ---------- EASING ---------- */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; }
*::selection { background: rgba(255,255,255,0.22); color: #fff; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  background-image:
    radial-gradient(1200px 800px at 15% -10%, rgba(255,255,255,0.045), transparent 60%),
    radial-gradient(1000px 600px at 100% 0%,  rgba(255,255,255,0.025), transparent 55%),
    radial-gradient(800px 600px  at 0% 100%,  rgba(255,255,255,0.02),  transparent 60%);
  background-attachment: fixed;
}

a { color: var(--text); text-decoration: none; transition: opacity 0.18s var(--ease); }
a:hover { opacity: 0.7; text-decoration: none; }

button { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.22);
  background-clip: padding-box;
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(5,5,5,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  position: sticky; top: 0; z-index: 50;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-weight: 700; font-size: 17px;
  letter-spacing: -0.01em;
}
.brand-mark {
  display: inline-flex;
  width: 22px; height: 22px;
  color: var(--text);
  animation: brandPulse 4s ease-in-out infinite;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
@keyframes brandPulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,255,255,0.4)); }
  50%      { filter: drop-shadow(0 0 14px rgba(255,255,255,0.85)); }
}
.brand-name { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-link { color: var(--text-dim); font-weight: 500; font-size: 14px; }
.nav-link:hover { color: var(--text); }
.nav-user { color: var(--text-muted); font-size: 13.5px; }

.balance-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.03);
}
.pill-gem { color: #fff; filter: drop-shadow(0 0 4px rgba(255,255,255,0.5)); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform 0.15s var(--ease),
              background 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              color 0.15s var(--ease),
              border-color 0.2s var(--ease);
}
.btn-primary:active, .btn-secondary:active, .btn-ghost:active { transform: scale(0.97); }

.btn-primary {
  background: #ffffff;
  color: #050505;
  box-shadow: 0 6px 20px rgba(255,255,255,0.14),
              inset 0 1px 0 rgba(255,255,255,0.9);
}
.btn-primary:hover {
  background: #f5f5f5;
  box-shadow: 0 10px 28px rgba(255,255,255,0.22),
              inset 0 1px 0 rgba(255,255,255,1);
  text-decoration: none;
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--bg-hover);
  border-color: rgba(255,255,255,0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.03);
}

.btn-sm { padding: 7px 13px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-full { width: 100%; }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  min-height: calc(100vh - 140px);
}

.auth-card {
  background: linear-gradient(160deg, rgba(15,15,15,0.98), rgba(10,10,10,0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 42px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: "";
  position: absolute; top: -60%; left: -30%; width: 160%; height: 160%;
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,0.05), transparent 45%);
  pointer-events: none;
}
.auth-card-wide { max-width: 540px; }

.auth-title { margin: 0 0 6px; font-size: 27px; letter-spacing: -0.015em; position: relative; }
.auth-sub { color: var(--text-dim); margin: 0 0 30px; font-size: 14px; position: relative; }
.auth-form { display: flex; flex-direction: column; gap: 18px; position: relative; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"] {
  background: rgba(5,5,5,0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.05),
              0 0 22px rgba(255,255,255,0.08);
}
.field-hint { font-size: 12px; color: var(--text-muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }

.form-error {
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  padding: 11px 13px;
  border-radius: var(--radius);
  font-size: 13px;
}
.form-error.form-error-pending,
.form-error.form-error-disabled {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.55;
}
.form-error.form-error-pending {
  background: rgba(245,158,11,0.08);
  border-color: rgba(245,158,11,0.35);
  color: #fbbf24;
}
.form-error.form-error-disabled {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.35);
  color: #fca5a5;
}
.form-error-icon {
  font-size: 20px; line-height: 1; flex-shrink: 0;
  margin-top: 1px; filter: drop-shadow(0 0 6px currentColor);
}
.form-error-body { flex: 1; }
.form-error-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 6px 12px;
  border-radius: 8px; font-size: 12.5px; font-weight: 600;
  background: rgba(88,101,242,0.18);
  border: 1px solid rgba(88,101,242,0.4);
  color: #b8bfff;
  transition: all 0.15s var(--ease);
}
.form-error-link:hover {
  background: rgba(88,101,242,0.28);
  border-color: rgba(88,101,242,0.6);
  color: #fff; opacity: 1;
}

.auth-alt { text-align: center; color: var(--text-dim); margin: 24px 0 0; font-size: 14px; position: relative; }

.tos-box { margin-top: 4px; }
.tos-label {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: var(--text-dim); cursor: pointer;
}
.tos-label input[type="checkbox"] {
  margin-top: 3px; accent-color: #fff; width: 16px; height: 16px;
}
.tos-link {
  background: none; border: none; padding: 0;
  color: var(--text); text-decoration: underline;
  cursor: pointer; font: inherit; font-size: 13px;
}

/* MODAL */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; z-index: 100;
  animation: fadeIn 0.2s var(--ease);
}
.modal-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: linear-gradient(160deg, rgba(15,15,15,0.99), rgba(10,10,10,0.99));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%; max-width: 640px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.28s var(--ease-out);
}
@keyframes slideUp {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 26px; border-bottom: 1px solid var(--border-soft);
}
.modal-header h2 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.modal-close {
  background: none; border: none; color: var(--text-dim);
  font-size: 26px; cursor: pointer; line-height: 1;
  transition: color 0.15s var(--ease), transform 0.2s var(--ease);
}
.modal-close:hover { color: var(--text); transform: rotate(90deg); }
.modal-body {
  padding: 24px 26px; overflow-y: auto;
  font-size: 14px; color: var(--text-dim);
}
.modal-body h3 { color: var(--text); font-size: 15px; margin: 22px 0 6px; }
.modal-body p { margin: 0 0 12px; }
.modal-footer {
  padding: 18px 26px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: flex-end;
}

/* ============================================================
   PENDING / DISABLED PAGE
   ============================================================ */
.pending-page { overflow: hidden; }

.pending-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
  min-height: calc(100vh - 140px);
}

.pending-card {
  background: linear-gradient(160deg, rgba(15,15,15,0.98), rgba(10,10,10,0.98));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px 38px 32px;
  width: 100%; max-width: 540px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  position: relative; overflow: hidden;
  animation: fadeIn 0.5s var(--ease);
}
.pending-card::before {
  content: "";
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.14), transparent 60%);
  pointer-events: none;
}
.pending-card-disabled::before {
  background: radial-gradient(circle, rgba(239,68,68,0.14), transparent 60%);
}

.pending-status {
  width: 96px; height: 96px;
  margin: 0 auto 26px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.pending-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(245,158,11,0.35);
}
.ring-outer {
  inset: 0;
  animation: ringPulse 2.4s ease-in-out infinite;
  border-color: rgba(245,158,11,0.18);
}
.ring-middle {
  inset: 12px;
  animation: ringPulse 2.4s ease-in-out infinite 0.4s;
  border-color: rgba(245,158,11,0.3);
}
.ring-inner {
  inset: 24px;
  border-color: rgba(245,158,11,0.5);
  animation: ringPulse 2.4s ease-in-out infinite 0.8s;
}
.pending-card-disabled .pending-ring { border-color: rgba(239,68,68,0.35); }
.pending-card-disabled .ring-outer { border-color: rgba(239,68,68,0.18); }
.pending-card-disabled .ring-middle { border-color: rgba(239,68,68,0.3); }
.pending-card-disabled .ring-inner { border-color: rgba(239,68,68,0.5); }

@keyframes ringPulse {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%      { transform: scale(1.08); opacity: 1;   }
}

.pending-icon {
  font-size: 34px;
  color: var(--pending);
  filter: drop-shadow(0 0 16px rgba(245,158,11,0.6));
  animation: hourglassSpin 3.2s ease-in-out infinite;
  position: relative; z-index: 1;
}
@keyframes hourglassSpin {
  0%, 45%   { transform: rotate(0deg); }
  55%, 100% { transform: rotate(180deg); }
}
.pending-icon-disabled {
  color: var(--danger);
  filter: drop-shadow(0 0 16px rgba(239,68,68,0.6));
  animation: none;
  font-size: 38px;
}

.pending-title {
  margin: 0 0 8px;
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.02em; color: var(--text);
}
.pending-sub {
  color: var(--text-dim);
  margin: 0 0 22px; font-size: 14.5px;
}

.pending-identity {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  margin-bottom: 20px;
  text-align: left;
}
.identity-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: #fff;
  flex-shrink: 0; letter-spacing: -0.02em;
}
.identity-info { min-width: 0; flex: 1; }
.identity-name {
  font-size: 14px; font-weight: 700; color: var(--text);
  letter-spacing: -0.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.identity-email {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.pending-body {
  text-align: left;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 22px;
}
.pending-body p {
  margin: 0 0 10px; color: var(--text-dim);
  font-size: 13.5px; line-height: 1.6;
}
.pending-body p:last-child { margin-bottom: 0; }
.pending-note {
  padding-top: 10px;
  border-top: 1px dashed rgba(255,255,255,0.08);
  font-size: 13px !important;
}

.pending-checklist {
  text-align: left;
  background: rgba(255,255,255,0.015);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 6px 4px;
  margin-bottom: 24px;
}
.check-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; font-size: 13.5px;
}
.check-mark {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; font-weight: 700;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.check-item.done .check-mark {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.5);
  color: var(--success);
}
.check-item.done .check-text { color: var(--text-dim); }
.check-item.pending .check-mark {
  background: rgba(245,158,11,0.15);
  border-color: rgba(245,158,11,0.5);
  color: var(--pending);
  animation: dotPulse 2s ease-in-out infinite;
}
.check-item.pending .check-text { color: var(--text); font-weight: 600; }
.check-item.blocked .check-mark {
  background: rgba(239,68,68,0.15);
  border-color: rgba(239,68,68,0.5);
  color: var(--danger);
}
.check-item.blocked .check-text { color: var(--danger); font-weight: 600; }
.check-item.todo .check-mark { color: var(--text-muted); }
.check-item.todo .check-text { color: var(--text-muted); }

@keyframes dotPulse {
  0%, 100% { opacity: 1;   }
  50%      { opacity: 0.5; }
}

.pending-actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 22px;
}
.pending-logout-form { margin: 0; }
.pending-discord {
  background: #5865f2; color: #fff;
  box-shadow: 0 6px 20px rgba(88,101,242,0.35),
              inset 0 1px 0 rgba(255,255,255,0.15);
}
.pending-discord:hover {
  background: #4752c4;
  box-shadow: 0 10px 28px rgba(88,101,242,0.5),
              inset 0 1px 0 rgba(255,255,255,0.2);
}
.discord-icon { font-size: 15px; filter: grayscale(1) brightness(2); }

.pending-footer {
  display: flex; align-items: center; justify-content: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.pending-footer strong { color: var(--pending); font-weight: 700; }
.pending-card-disabled .pending-footer strong { color: var(--danger); }
.pending-footer-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pending);
  box-shadow: 0 0 8px rgba(245,158,11,0.7);
  animation: dotPulse 2s ease-in-out infinite;
}
.pending-footer-dot.dot-danger {
  background: var(--danger);
  box-shadow: 0 0 8px rgba(239,68,68,0.7);
}

/* ============================================================
   CHAT LAYOUT
   ============================================================ */
body.chat-page {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.chat-page .nav { flex-shrink: 0; position: static; }
body.chat-page .main {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
body.chat-page .footer { flex-shrink: 0; }
body.chat-page .chat-wrap {
  flex: 1; min-height: 0;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  overflow: hidden;
}
body.chat-page .chat-sidebar {
  height: 100%; overflow-y: auto; overflow-x: hidden;
  padding: 22px 18px;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, rgba(10,10,10,0.7), rgba(5,5,5,0.5));
  border-right: 1px solid var(--border-soft);
}
body.chat-page .chat-main {
  height: 100%; min-height: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}
body.chat-page .chat-messages {
  overflow-y: auto; overflow-x: hidden; min-height: 0;
}

@media (max-width: 820px) {
  body.chat-page .chat-wrap { grid-template-columns: 1fr; }
  body.chat-page .chat-sidebar { display: none; }
}

.balance-box {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  text-align: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05),
              0 4px 20px rgba(0,0,0,0.5);
}
.balance-box-glow {
  position: absolute;
  top: -40px; right: -40px; width: 140px; height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  animation: balanceGlow 6s ease-in-out infinite;
}
@keyframes balanceGlow {
  0%, 100% { transform: translate(0,0) scale(1);   opacity: 0.6; }
  50%      { transform: translate(-12px, 8px) scale(1.1); opacity: 1; }
}

.balance-label {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 700; position: relative;
}
.balance-value {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 26px; font-weight: 800;
  margin: 10px 0 4px;
  letter-spacing: -0.015em;
  position: relative; color: var(--text);
}
.balance-gem { color: #fff; filter: drop-shadow(0 0 8px rgba(255,255,255,0.6)); }
.balance-sub {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 14px; letter-spacing: 0.03em; position: relative;
}

.new-chat-btn {
  justify-content: center; gap: 8px;
  padding: 11px 14px; border-radius: var(--radius); font-weight: 600;
}
.new-chat-icon {
  font-size: 17px; line-height: 1;
  transition: transform 0.25s var(--ease);
}
.new-chat-btn:hover .new-chat-icon { transform: rotate(90deg) scale(1.15); }

.chat-sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  display: flex; flex-direction: column; gap: 10px;
}
.info-row {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--text-muted); line-height: 1.45;
}
.info-icon {
  flex-shrink: 0;
  filter: grayscale(1) brightness(1.2);
  opacity: 0.7;
}

.chat-messages {
  padding: 32px 28px 20px;
  display: flex; flex-direction: column; gap: 20px;
  scroll-behavior: smooth;
  transition: background 0.2s var(--ease);
}
.chat-messages.drag-over {
  background: rgba(255,255,255,0.025);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
}

.chat-empty {
  text-align: center; margin: auto;
  color: var(--text-dim); max-width: 560px;
  padding: 20px;
  animation: fadeIn 0.5s var(--ease);
}
.chat-empty-orb {
  width: 92px; height: 92px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), rgba(255,255,255,0.05) 60%, transparent 80%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: orbFloat 5s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(255,255,255,0.12),
              inset 0 0 30px rgba(255,255,255,0.06);
}
.orb-inner {
  font-size: 40px; color: #fff;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.8));
}
@keyframes orbFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-8px) rotate(3deg); }
}
.chat-empty h2 {
  margin: 0 0 6px; font-size: 24px;
  color: var(--text); letter-spacing: -0.015em; font-weight: 700;
}
.chat-empty p { margin: 0 0 26px; font-size: 15px; }

.chat-suggestions {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
}
.suggestion {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
  padding: 9px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 500;
  cursor: pointer; font-family: inherit;
  transition: all 0.22s var(--ease);
}
.suggestion:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.sug-icon { font-size: 13px; filter: grayscale(1) brightness(1.3); }

/* ============================================================
   BUBBLES
   ============================================================ */
.bubble {
  display: flex; max-width: 100%;
  animation: bubbleIn 0.35s var(--ease-out);
}
@keyframes bubbleIn {
  from { transform: translateY(6px); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
.bubble-user { justify-content: flex-end; }
.bubble-assistant { justify-content: flex-start; }
.bubble-inner {
  max-width: min(820px, 94%);
  display: flex; flex-direction: column; gap: 6px;
}
.bubble-user .bubble-inner { align-items: flex-end; }
.bubble-assistant .bubble-inner {
  flex-direction: row; align-items: flex-start; gap: 12px;
}
.bubble-avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.02),
              0 0 22px rgba(255,255,255,0.06);
  color: #fff;
}
.bubble-avatar span {
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.7));
}
.bubble-body {
  display: flex; flex-direction: column; gap: 8px;
  min-width: 0; max-width: 100%;
}

/* ---------- User search badge ---------- */
.user-search-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(96,165,250,0.12);
  border: 1px solid rgba(96,165,250,0.32);
  color: #93c5fd;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 2px;
}
.user-search-badge span {
  font-size: 11px;
  filter: drop-shadow(0 0 4px rgba(96,165,250,0.5));
}

/* ---------- User images in bubble ---------- */
.bubble-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 100%;
}
.bubble-image {
  max-width: 240px;
  max-height: 240px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  object-fit: cover;
  background: #0f0f0f;
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  transition: transform 0.2s var(--ease);
  cursor: pointer;
}
.bubble-image:hover { transform: scale(1.02); }

.bubble-content {
  padding: 13px 17px; border-radius: 16px;
  font-size: 14.5px; line-height: 1.62;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.bubble-user .bubble-content {
  background: #ffffff; color: #050505;
  border-bottom-right-radius: 6px;
  box-shadow: 0 6px 24px rgba(255,255,255,0.12);
  font-weight: 500;
}
.bubble-user .bubble-content a { color: #050505; text-decoration: underline; }
.bubble-user .bubble-content code { background: rgba(0,0,0,0.1); color: #050505; }
.bubble-assistant .bubble-content {
  background: linear-gradient(160deg, rgba(15,15,15,0.98), rgba(10,10,10,0.98));
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}
.bubble-meta {
  font-size: 11.5px; color: var(--text-muted);
  padding: 0 4px; letter-spacing: 0.02em;
}

/* ---------- Markdown ---------- */
.bubble-content p { margin: 0 0 10px; }
.bubble-content p:last-child { margin-bottom: 0; }
.bubble-content strong { color: var(--text); font-weight: 700; }
.bubble-content em { color: var(--text-dim); font-style: italic; }

.bubble-content pre {
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px; line-height: 1.6; margin: 10px 0;
}
.bubble-content code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px; border-radius: 5px;
  font-family: var(--mono); font-size: 13px; color: var(--text);
}
.bubble-content pre code { background: none; padding: 0; color: var(--text); }

.code-block { position: relative; margin: 10px 0; }
.code-block .code-lang {
  position: absolute; top: 10px; left: 16px;
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; pointer-events: none;
}
.code-block .code-copy {
  position: absolute; top: 8px; right: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-dim);
  padding: 4px 11px; border-radius: 6px;
  font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s var(--ease);
  z-index: 1;
}
.code-block .code-copy:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  border-color: rgba(255,255,255,0.28);
}
.code-block .code-copy.copied {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.4);
  color: #6ee7b7;
}
.code-block pre { margin: 0; }
.error-text { color: #fca5a5; }

/* ============================================================
   THINKING PANEL
   ============================================================ */
.thinking-panel {
  background: linear-gradient(160deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s var(--ease);
}
.thinking-toggle {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; background: transparent; border: none;
  color: var(--text-dim); font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; text-align: left;
  letter-spacing: 0.01em; transition: color 0.15s var(--ease);
}
.thinking-toggle:hover { background: rgba(255,255,255,0.03); color: var(--text); }
.thinking-icon {
  font-size: 12px; color: #fff;
  animation: thinkFloat 2.5s ease-in-out infinite;
}
@keyframes thinkFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-2px) scale(1.08); }
}
.thinking-label { flex: 1; }
.thinking-caret {
  font-size: 11px; opacity: 0.65;
  transition: transform 0.2s var(--ease);
}
.thinking-content {
  padding: 12px 16px 16px;
  color: var(--text-dim);
  font-size: 13px; line-height: 1.65;
  white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere;
  max-height: 340px; overflow-y: auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-family: var(--mono);
  animation: thinkReveal 0.3s var(--ease);
}
@keyframes thinkReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.thinking-panel.collapsed .thinking-content { display: none; }

/* ============================================================
   SEARCH PANEL
   ============================================================ */
.search-panel {
  background: linear-gradient(160deg, rgba(96,165,250,0.08), rgba(96,165,250,0.02));
  border: 1px solid rgba(96,165,250,0.25);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s var(--ease);
}
.search-toggle {
  width: 100%; display: flex; align-items: center; gap: 9px;
  padding: 10px 14px; background: transparent; border: none;
  color: #93c5fd; font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; text-align: left;
  letter-spacing: 0.01em; transition: color 0.15s var(--ease);
}
.search-toggle:hover { background: rgba(96,165,250,0.08); color: #bfdbfe; }
.search-icon {
  font-size: 13px;
  animation: searchFloat 2.4s ease-in-out infinite;
}
@keyframes searchFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-2px) rotate(-8deg); }
}
.search-label { flex: 1; }
.search-caret {
  font-size: 11px; opacity: 0.7;
  transition: transform 0.2s var(--ease);
}
.search-content {
  padding: 12px 16px 14px;
  color: var(--text-dim);
  font-size: 12.5px; line-height: 1.55;
  border-top: 1px solid rgba(96,165,250,0.18);
  animation: thinkReveal 0.3s var(--ease);
}
.search-panel.collapsed .search-content { display: none; }

.search-status {
  display: flex; align-items: center; gap: 10px;
  color: #bfdbfe;
  font-family: var(--mono);
}
.search-spinner {
  display: inline-block;
  width: 12px; height: 12px;
  border: 2px solid rgba(96,165,250,0.3);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.search-done {
  display: flex; align-items: center; gap: 8px;
  color: #6ee7b7;
  font-family: var(--mono);
  font-size: 12px;
}
.search-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(16,185,129,0.18);
  color: #10b981;
  font-size: 10px; font-weight: 800;
  flex-shrink: 0;
}
.search-fail {
  color: #fca5a5;
  font-family: var(--mono);
  font-size: 12px;
}

/* ============================================================
   CURSOR
   ============================================================ */
.cursor-blink {
  display: inline-block; color: #fff;
  animation: blink 1s step-start infinite;
  font-weight: 400; margin-left: 1px;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   INPUT AREA
   ============================================================ */
.chat-input-wrap {
  padding: 12px 28px 18px;
  border-top: 1px solid var(--border-soft);
  background: linear-gradient(180deg, rgba(5,5,5,0.5), rgba(5,5,5,0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- Attachment preview strip ---------- */
.attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 12px;
  background: rgba(15,15,15,0.7);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  animation: slideUp 0.2s var(--ease-out);
}
.attach-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  max-width: 260px;
  position: relative;
}
.attach-thumb {
  width: 42px; height: 42px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.08);
}
.attach-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.attach-meta { min-width: 0; flex: 1; }
.attach-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.attach-size {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--mono);
  margin-top: 2px;
}
.attach-remove {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  color: #fca5a5;
  font-size: 15px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s var(--ease);
  padding: 0;
}
.attach-remove:hover {
  background: rgba(239,68,68,0.3);
  border-color: rgba(239,68,68,0.6);
  color: #fff;
}

/* ---------- Input shell ---------- */
.chat-input-shell {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  background: rgba(15,15,15,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 6px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.chat-input-shell:focus-within {
  border-color: rgba(255,255,255,0.35);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.04),
              0 0 32px rgba(255,255,255,0.06);
}

/* + butonu */
.attach-btn {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s var(--ease);
  font-family: inherit;
}
.attach-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
}
.attach-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.attach-icon {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.attach-btn:hover:not(:disabled) .attach-icon {
  transform: rotate(90deg);
}

/* 🌐 Web search button */
.websearch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.18s var(--ease);
  user-select: none;
  white-space: nowrap;
}
.websearch-btn:hover:not(:disabled) {
  color: var(--text-dim);
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.035);
}
.websearch-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.websearch-icon {
  font-size: 14px;
  line-height: 1;
  filter: grayscale(1) brightness(1.2);
  transition: filter 0.18s var(--ease), transform 0.2s var(--ease);
}
.websearch-label {
  font-size: 12.5px;
}

/* Aktif state — mavi arama rengi + glow */
.websearch-btn.active {
  color: #bfdbfe;
  border-color: rgba(96,165,250,0.55);
  background: linear-gradient(160deg, rgba(96,165,250,0.16), rgba(96,165,250,0.06));
  box-shadow: 0 0 0 3px rgba(96,165,250,0.08),
              0 4px 18px rgba(96,165,250,0.18);
}
.websearch-btn.active:hover:not(:disabled) {
  color: #dbeafe;
  border-color: rgba(96,165,250,0.75);
  background: linear-gradient(160deg, rgba(96,165,250,0.22), rgba(96,165,250,0.1));
}
.websearch-btn.active .websearch-icon {
  filter: none;
  color: #60a5fa;
  animation: searchPulse 2.4s ease-in-out infinite;
}
@keyframes searchPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 4px rgba(96,165,250,0.5)); }
  50%      { transform: scale(1.1); filter: drop-shadow(0 0 10px rgba(96,165,250,0.9)); }
}

#chat-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 8px;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  resize: none;
  max-height: 220px;
  min-height: 26px;
  line-height: 1.5;
  outline: none;
  min-width: 0;
}
#chat-input::placeholder { color: var(--text-muted); }

.chat-send {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; min-width: 42px; height: 42px;
  padding: 0 16px; border-radius: var(--radius); border: none;
  background: #ffffff; color: #050505;
  font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s var(--ease);
  box-shadow: 0 4px 16px rgba(255,255,255,0.14),
              inset 0 1px 0 rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.chat-send:hover {
  background: #f5f5f5;
  box-shadow: 0 8px 26px rgba(255,255,255,0.24),
              inset 0 1px 0 rgba(255,255,255,1);
}
.chat-send:active { transform: scale(0.96); }
.send-icon {
  font-size: 16px; line-height: 1; display: inline-block;
  transition: transform 0.2s var(--ease);
}
.send-label { font-size: 13px; letter-spacing: 0.01em; }
.chat-send:not(.btn-stop):hover .send-icon { transform: translateX(2px); }

.chat-send.btn-stop {
  background: var(--danger); color: #fff;
  box-shadow: 0 4px 16px rgba(239,68,68,0.4),
              inset 0 1px 0 rgba(255,255,255,0.15);
}
.chat-send.btn-stop:hover {
  background: #dc2626;
  box-shadow: 0 8px 26px rgba(239,68,68,0.55);
}
.chat-send.btn-stop .send-icon {
  animation: stopPulse 1.2s ease-in-out infinite;
}
@keyframes stopPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.15); }
}

.chat-input-hint {
  text-align: center; font-size: 11.5px;
  color: var(--text-muted); margin-top: 10px;
  letter-spacing: 0.01em;
}
.chat-input-hint kbd {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 4px; padding: 1px 6px;
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-dim);
}

/* ============================================================
   TOAST (chat page)
   ============================================================ */
.chat-toast {
  position: fixed;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(160deg, rgba(20,20,20,0.98), rgba(15,15,15,0.98));
  border: 1px solid rgba(239,68,68,0.4);
  color: #fca5a5;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0,0,0,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  z-index: 300;
  max-width: 90vw;
}
.chat-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.chat-toast.toast-info {
  border-color: rgba(96,165,250,0.45);
  color: #bfdbfe;
}
.chat-toast.toast-success {
  border-color: rgba(16,185,129,0.45);
  color: #6ee7b7;
}

/* ============================================================
   BALANCE PAGE
   ============================================================ */
.page-wrap { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
.page-title { font-size: 26px; margin: 0 0 26px; letter-spacing: -0.015em; }

.balance-hero {
  background:
    radial-gradient(900px 420px at 50% 0%, rgba(255,255,255,0.09), transparent 70%),
    linear-gradient(160deg, rgba(15,15,15,0.98), rgba(10,10,10,0.98));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  padding: 44px 28px;
  text-align: center;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative; overflow: hidden;
}
.balance-hero::after {
  content: "";
  position: absolute; inset: -1px;
  border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), rgba(255,255,255,0.06), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.balance-hero-label {
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 700;
}
.balance-hero-value {
  font-size: 54px; font-weight: 800;
  margin: 14px 0 2px; letter-spacing: -0.025em;
  background: linear-gradient(135deg, #ffffff, #9c9c9c 60%, #4a4a4a);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.balance-hero-unit { font-size: 15px; color: var(--text-dim); letter-spacing: 0.02em; }
.balance-hero-note { font-size: 13px; color: var(--text-muted); margin-top: 12px; }

.two-col {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 22px;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.panel {
  background: linear-gradient(160deg, rgba(15,15,15,0.95), rgba(10,10,10,0.95));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.panel-title { margin: 0 0 6px; font-size: 17px; letter-spacing: -0.01em; }
.panel-sub { color: var(--text-dim); font-size: 13px; margin: 0 0 20px; }

.coming-soon { text-align: center; padding: 24px 0; }
.coming-soon .badge {
  display: inline-block;
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
  padding: 5px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(245,158,11,0.3);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.coming-soon p { color: var(--text-dim); font-size: 13.5px; margin: 0 0 16px; }

.txn-list { display: flex; flex-direction: column; }
.txn-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid var(--border-soft);
  gap: 12px; border-radius: 8px;
  transition: background 0.15s var(--ease);
}
.txn-row:hover { background: rgba(255,255,255,0.03); }
.txn-row:last-child { border-bottom: none; }
.txn-reason { font-size: 13.5px; }
.txn-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; letter-spacing: 0.01em; }
.txn-right {
  font-weight: 700; font-family: var(--mono);
  font-size: 14px; white-space: nowrap;
}
.txn-right.positive { color: var(--success); }
.txn-right.negative { color: var(--danger); }

.loading, .empty { color: var(--text-muted); padding: 24px; text-align: center; font-size: 14px; }
.empty.error { color: #fca5a5; }

/* ============================================================
   FOOTER v2
   ============================================================ */
.footer {
  padding: 28px 32px;
  border-top: 1px solid var(--border-soft);
  background: rgba(5,5,5,0.7);
  position: relative;
  z-index: 1;
}
@media (max-width: 700px) {
  .footer { padding: 22px 20px; }
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* ---------- Brand ---------- */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 13px;
}
.footer-brand-mark {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  opacity: 0.7;
  transition: opacity 0.25s ease;
}
.footer-brand-mark svg {
  width: 100%; height: 100%; display: block;
}
.footer-brand:hover .footer-brand-mark { opacity: 1; }
.footer-copy {
  letter-spacing: 0.01em;
}

/* ---------- Links ---------- */
.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
@media (max-width: 700px) {
  .footer-links { gap: 16px; justify-content: center; }
}

.footer-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, #f59e0b), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.footer-link:hover {
  color: var(--text);
  opacity: 1;
  text-decoration: none;
}
.footer-link:hover::after {
  transform: scaleX(1);
}

.footer-link-discord {
  color: var(--text-dim);
}
.footer-link-discord:hover {
  color: #7a86ff;
}
.footer-link-discord:hover::after {
  background: linear-gradient(90deg, transparent, #5865f2, transparent);
}
.footer-discord-icon {
  font-size: 12px;
  filter: grayscale(1) brightness(1.4);
  transition: filter 0.2s ease;
}
.footer-link-discord:hover .footer-discord-icon {
  filter: none;
}

/* ============================================================
   NAV — About link when not logged in (subtle)
   ============================================================ */
.nav-link-about {
  position: relative;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 720px) {
  /* Web search label'ı küçük ekranda gizle — sadece ikon kalsın */
  .websearch-label { display: none; }
  .websearch-btn { padding: 0 12px; }
}

@media (max-width: 600px) {
  .chat-input-wrap { padding: 10px 14px 14px; }
  .attach-btn { width: 38px; height: 38px; }
  .attach-icon { font-size: 20px; }
  .websearch-btn { height: 38px; padding: 0 10px; }
  .websearch-icon { font-size: 13px; }
  .chat-send { min-width: 38px; height: 38px; padding: 0 12px; }
  .bubble-image { max-width: 180px; max-height: 180px; }
  .chat-input-hint { font-size: 10.5px; }
}