/* ChatGPTaCuba — premium dark, glass + gradient mesh */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #07091a;
  --bg-elev:   #10142b;
  --bg-elev-2: #161b3a;
  --bg-glass:  rgba(22, 27, 58, 0.55);
  --bg-glass-2: rgba(255, 255, 255, 0.04);

  --border:    rgba(255, 255, 255, 0.08);
  --border-2:  rgba(255, 255, 255, 0.16);
  --border-glow: rgba(59, 130, 246, 0.4);

  --text:      #f1f5f9;
  --text-soft: #cbd5e1;
  --text-mute: #94a3b8;
  --text-dim:  #64748b;

  --primary:       #3b82f6;
  --primary-light: #60a5fa;
  --primary-dark:  #1e40af;
  --primary-glow:  rgba(59, 130, 246, 0.45);

  --accent:        #10b981;
  --accent-light:  #34d399;
  --accent-glow:   rgba(16, 185, 129, 0.35);

  --gold:          #fbbf24;
  --red:           #ef4444;

  --grad-cuba:    linear-gradient(135deg, #3b82f6 0%, #10b981 50%, #fbbf24 100%);
  --grad-primary: linear-gradient(135deg, #3b82f6, #1e40af);
  --grad-warm:    linear-gradient(135deg, #fbbf24, #f59e0b);

  --shadow:    0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 0 30px var(--primary-glow);
  --shadow-glow-a: 0 0 30px var(--accent-glow);

  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

html, body { height: 100%; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* gradient mesh background animado */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(59, 130, 246, 0.22), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.18), transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.08), transparent 55%);
  z-index: 0;
  pointer-events: none;
  animation: mesh 22s ease-in-out infinite alternate;
}

@keyframes mesh {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2%, -2%) scale(1.08); }
}

body > * { position: relative; z-index: 1; }

a { color: var(--primary-light); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-light); }

::selection { background: var(--primary); color: #fff; }

.hidden { display: none !important; }

/* ============================================
   NAV
============================================ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 26px;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px var(--primary-glow));
}
.brand-name { font-size: 1.1rem; letter-spacing: 0.3px; }
.brand-accent {
  background: var(--grad-cuba);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: shine 4s linear infinite;
}
@keyframes shine {
  to { background-position: 200% center; }
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--text-soft);
  font-size: 0.93rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all 0.18s;
  font-weight: 500;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-glass-2);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--text);
  background: var(--bg-glass-2);
  box-shadow: inset 0 0 0 1px var(--border-2);
}
.nav-links .ig {
  background: var(--grad-cuba);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  animation: shine 4s linear infinite;
}
.nav-links .ig:hover { -webkit-text-fill-color: white; background: var(--bg-glass-2); }

main {
  flex: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 22px 48px;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.15s;
  text-decoration: none;
}
.btn.primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 6px 20px var(--primary-glow);
}
.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px var(--primary-glow);
  filter: brightness(1.1);
  text-decoration: none;
}
.btn.primary:active { transform: translateY(0); }
.btn.ghost {
  background: var(--bg-glass-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-mute);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* ============================================
   HERO
============================================ */
.hero {
  text-align: center;
  padding: 60px 0 50px;
  position: relative;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(251, 191, 36, 0.12);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
  animation: pulse-pill 3s ease-in-out infinite;
}
@keyframes pulse-pill {
  0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.3); }
  50%      { box-shadow: 0 0 0 8px rgba(251, 191, 36, 0); }
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  font-weight: 800;
}
.grad {
  background: var(--grad-cuba);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 5s linear infinite;
}
.lead {
  color: var(--text-soft);
  max-width: 680px;
  margin: 0 auto 28px;
  font-size: 1.1rem;
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.trust {
  list-style: none;
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--text-mute);
  font-size: 0.9rem;
}
.trust li::before { color: var(--accent); margin-right: 4px; }

/* mockup chat en hero */
.hero-mock {
  margin: 40px auto 0;
  max-width: 480px;
  background: var(--bg-glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03);
  text-align: left;
  position: relative;
  overflow: hidden;
}
.hero-mock::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--grad-cuba);
  border-radius: var(--radius-lg);
  opacity: 0.15;
  z-index: -1;
  filter: blur(12px);
}
.mock-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
}
.mock-bar span:nth-child(1) { background: #ef4444; }
.mock-bar span:nth-child(2) { background: #fbbf24; }
.mock-bar span:nth-child(3) { background: #10b981; }
.mock-msg {
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  max-width: 85%;
  animation: slideIn 0.5s ease both;
}
.mock-msg.ia {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.mock-msg.user {
  background: var(--grad-primary);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   CARDS
============================================ */
.section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
  margin: 50px 0 8px;
  letter-spacing: -0.01em;
}
.section-sub {
  color: var(--text-mute);
  text-align: center;
  margin-bottom: 24px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 30px;
}
.card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--primary-glow));
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(59, 130, 246, 0.15);
}
.card:hover::before { opacity: 0.18; }
.card .ico {
  font-size: 1.9rem;
  margin-bottom: 12px;
  display: inline-block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}
.card p {
  color: var(--text-soft);
  font-size: 0.93rem;
}

/* ============================================
   IG BLOCK
============================================ */
.ig-block {
  text-align: center;
  margin: 50px 0 0;
  padding: 40px 24px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.ig-block::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 320px;
  height: 320px;
  background: var(--grad-cuba);
  filter: blur(80px);
  opacity: 0.18;
  border-radius: 50%;
  pointer-events: none;
}
.ig-block h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 10px;
  position: relative;
}
.ig-block p {
  color: var(--text-soft);
  margin-bottom: 22px;
  position: relative;
}

/* ============================================
   CHAT (sidebar + main)
============================================ */
.chat-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 16px;
  height: calc(100vh - 220px);
  min-height: 540px;
}

.chat-sidebar {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.sidebar-head h3 { font-size: 1rem; font-weight: 700; }
.conv-list {
  list-style: none;
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}
.conv-list::-webkit-scrollbar { width: 6px; }
.conv-list::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.conv-empty {
  padding: 14px;
  text-align: center;
  font-size: 0.88rem;
}
.conv-item {
  display: flex;
  align-items: stretch;
  gap: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
  transition: background 0.15s;
}
.conv-item:hover { background: var(--bg-glass-2); }
.conv-item.active {
  background: linear-gradient(135deg, rgba(59,130,246,0.18), rgba(16,185,129,0.12));
  box-shadow: inset 0 0 0 1px var(--border-glow);
}
.conv-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  min-width: 0;
}
.conv-link:hover { text-decoration: none; }
.conv-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-time { font-size: 0.72rem; color: var(--text-mute); }
.conv-del {
  width: 30px;
  background: transparent;
  border: 0;
  color: var(--text-mute);
  cursor: pointer;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.conv-del:hover { background: rgba(239,68,68,0.18); color: var(--red); }
.sidebar-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  text-align: center;
}

#sidebar-toggle {
  width: 34px;
  height: 34px;
  background: var(--bg-glass-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  margin-right: 10px;
  display: none;
}

.chat-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  min-width: 0;
}
.chat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 4px 4px 0;
}
.chat-top h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.muted { color: var(--text-mute); font-size: 0.86rem; }

.counter-box {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--bg-glass-2);
  border: 1px solid var(--border);
  letter-spacing: 0.2px;
}
.badge.free  { color: var(--text-soft); }
.badge.donor {
  background: var(--grad-warm);
  color: #2a1a08;
  border: 0;
  box-shadow: 0 4px 14px rgba(251,191,36,0.35);
}
.counter {
  font-size: 0.92rem;
  color: var(--text-soft);
}
.counter b { color: var(--text); font-weight: 700; }

.messages {
  flex: 1;
  overflow-y: auto;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  scroll-behavior: smooth;
}
.messages::-webkit-scrollbar { width: 8px; }
.messages::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.messages::-webkit-scrollbar-track { background: transparent; }

.msg { display: flex; animation: msgIn 0.3s ease both; }
.msg.user { justify-content: flex-end; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg .bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-wrap: break-word;
  line-height: 1.55;
  box-shadow: var(--shadow);
}
.msg.user .bubble {
  background: var(--grad-primary);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.msg.ia .bubble {
  background: var(--bg-elev-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.msg.error .bubble {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.08);
  color: #fecaca;
}

/* typing dots */
.msg.thinking .bubble {
  display: inline-flex;
  gap: 4px;
  padding: 14px 18px;
  align-items: center;
}
.msg.thinking .bubble span {
  width: 7px;
  height: 7px;
  background: var(--text-mute);
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}
.msg.thinking .bubble span:nth-child(2) { animation-delay: 0.15s; }
.msg.thinking .bubble span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%           { transform: translateY(-5px); opacity: 1; }
}

.limit-warn {
  background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(251,191,36,0.08));
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius);
  padding: 16px 20px;
  text-align: center;
  backdrop-filter: blur(8px);
}
.limit-warn p { margin-bottom: 8px; }

.chat-form {
  display: flex;
  gap: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 6px;
  backdrop-filter: blur(12px);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.chat-form:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.chat-form input {
  flex: 1;
  padding: 12px 16px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 0.97rem;
  outline: none;
}
.chat-form input::placeholder { color: var(--text-dim); }
.chat-form button {
  padding: 0 24px;
  background: var(--grad-primary);
  border: 0;
  border-radius: calc(var(--radius) - 4px);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s, transform 0.12s;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.chat-form button:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.chat-form button:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================================
   DONATE
============================================ */
.donate h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  text-align: center;
}
.donor-perks {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: 24px 0;
  backdrop-filter: blur(10px);
}
.donor-perks h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.donor-perks ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-soft);
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.pay-card {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.pay-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.pay-card.featured {
  border: 1px solid var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow-glow-a);
}
.pay-card.featured::before {
  content: '⭐ Recomendado';
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--grad-warm);
  color: #2a1a08;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}
.pay-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.pay-num {
  background: var(--bg-elev-2);
  border: 1px dashed var(--border-2);
  padding: 16px;
  border-radius: var(--radius);
  margin: 14px 0;
  text-align: center;
}
.pay-num code {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-light);
  letter-spacing: 1px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  margin-bottom: 4px;
}
.pay-num small { color: var(--text-mute); font-size: 0.82rem; }
.steps {
  margin-top: 14px;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.steps li { margin: 8px 0; }
.ig-cta {
  text-align: center;
  margin-top: 24px;
  padding: 28px 22px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.ig-cta p { color: var(--text-soft); margin-bottom: 14px; }

/* ============================================
   PROMO / SPONSOR
============================================ */
.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 20px;
  background: linear-gradient(90deg,
    rgba(59, 130, 246, 0.18),
    rgba(16, 185, 129, 0.18),
    rgba(251, 191, 36, 0.18));
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s;
  position: sticky;
  top: 60px;
  z-index: 40;
  backdrop-filter: blur(10px);
}
.promo-bar:hover {
  background: linear-gradient(90deg,
    rgba(59, 130, 246, 0.28),
    rgba(16, 185, 129, 0.28),
    rgba(251, 191, 36, 0.28));
  text-decoration: none;
}
.promo-icon { font-size: 1.1rem; }
.promo-text { color: var(--text-soft); }
.promo-text b { color: var(--text); }
.promo-text code {
  background: rgba(0,0,0,0.35);
  padding: 2px 8px;
  border-radius: 6px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.promo-cta {
  background: var(--grad-primary);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 3px 10px var(--primary-glow);
}

.sponsor-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  margin: 50px 0 0;
  padding: 36px;
  background: var(--bg-glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
.sponsor-feature::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: var(--grad-cuba);
  opacity: 0.12;
  filter: blur(40px);
  z-index: 0;
}
.sponsor-feature > * { position: relative; z-index: 1; }
.sponsor-tag {
  display: inline-block;
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-light);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 14px;
}
.sponsor-feature h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.sponsor-feature p { color: var(--text-soft); margin-bottom: 12px; }
.sponsor-perks {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
  margin: 14px 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.sponsor-code-big {
  font-size: 0.95rem;
  margin: 12px 0 16px;
  color: var(--text-mute);
}
.sponsor-code-big code {
  background: var(--bg-elev-2);
  border: 1px dashed var(--gold);
  padding: 4px 12px;
  border-radius: 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 1px;
  margin: 0 4px;
}

.sponsor-feature-mock {
  display: flex;
  justify-content: center;
}
.mock-window {
  background: var(--bg-elev);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 14px;
  width: 100%;
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.mock-host {
  margin-top: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.86rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.host-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg-elev-2);
  border-radius: 8px;
  color: var(--text-soft);
}
.host-line:last-child {
  background: var(--grad-primary);
  color: #fff;
  justify-content: center;
  font-weight: 700;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.ok   { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.dot.warn { background: var(--gold);   box-shadow: 0 0 8px rgba(251,191,36,0.5); }

.sponsor-block {
  background: var(--bg-glass);
  border-top: 1px solid var(--border);
  padding: 30px 22px;
  text-align: center;
}
.sponsor-inner { max-width: 600px; margin: 0 auto; }
.sponsor-block h3 { font-size: 1.2rem; margin: 8px 0; }
.sponsor-block p { color: var(--text-soft); margin-bottom: 8px; }
.sponsor-code code {
  background: var(--bg-elev-2);
  border: 1px dashed var(--gold);
  padding: 4px 12px;
  border-radius: 8px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 1px;
}

@media (max-width: 700px) {
  .promo-bar { font-size: 0.8rem; padding: 8px 14px; gap: 8px; top: auto; position: static; }
  .promo-cta { padding: 4px 10px; font-size: 0.78rem; }
  .sponsor-feature {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }
  .sponsor-perks { grid-template-columns: 1fr; }
}

/* ============================================
   AUTH (login / register)
============================================ */
.auth-wrap {
  max-width: 440px;
  margin: 40px auto;
  padding: 0 8px;
}
.auth-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.auth-card::before {
  content: '';
  position: absolute;
  top: -60%; right: -20%;
  width: 280px; height: 280px;
  background: var(--grad-cuba);
  filter: blur(70px);
  opacity: 0.18;
  border-radius: 50%;
  pointer-events: none;
}
.auth-card h1 {
  font-size: 1.6rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
  position: relative;
}
.auth-card .muted { margin-bottom: 22px; position: relative; }
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.field input {
  padding: 13px 16px;
  background: var(--bg-elev-2);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.97rem;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
}
.btn.block { width: 100%; justify-content: center; padding: 14px; }
.auth-foot {
  text-align: center;
  margin-top: 20px;
  color: var(--text-mute);
  font-size: 0.92rem;
  position: relative;
}
.auth-foot a { font-weight: 600; }
.auth-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #fecaca;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  font-size: 0.9rem;
  position: relative;
}

/* mini btn para nav */
.btn-mini {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}
.btn-mini.primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-mini.primary:hover { filter: brightness(1.12); text-decoration: none; }

/* user nav */
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-user a {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-glass-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 0.95rem;
  padding: 0 !important;
}
.nav-user a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* badge admin */
.badge.admin {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 14px rgba(139,92,246,0.4);
}

/* chat hint */
.hint-card {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-soft);
  text-align: center;
}
.hint-card a { font-weight: 700; }

/* ============================================
   ADMIN
============================================ */
.admin-wrap {
  max-width: 920px;
  margin: 0 auto;
}
.admin-wrap h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.admin-msg {
  margin: 16px 0;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: var(--accent-light);
  border-radius: var(--radius);
  font-weight: 600;
}
.admin-wrap h2 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.users-table {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  backdrop-filter: blur(8px);
}
.user-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius);
  transition: background 0.15s;
}
.user-row:hover { background: var(--bg-glass-2); }
.user-row + .user-row { border-top: 1px solid var(--border); }
.user-name b { font-weight: 700; }
.user-name small { display: block; font-size: 0.78rem; }
.role-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.role-form select {
  padding: 7px 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
}
.btn.btn-mini {
  padding: 7px 14px;
  font-size: 0.83rem;
}
.donor-list {
  list-style: none;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  margin-top: 10px;
}
.donor-list li {
  padding: 6px 10px;
  font-size: 0.85rem;
}
.donor-list li + li { border-top: 1px solid var(--border); }
.donor-list code { color: var(--accent-light); }

/* ============================================
   FOOTER
============================================ */
.foot {
  margin-top: auto;
  padding: 30px 22px;
  text-align: center;
  color: var(--text-mute);
  font-size: 0.86rem;
  border-top: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
}
.foot p { margin: 4px 0; }
.foot a { color: var(--primary-light); font-weight: 600; }

/* ============================================
   MOBILE
============================================ */
@media (max-width: 900px) {
  .chat-shell {
    grid-template-columns: 1fr;
    height: calc(100vh - 200px);
  }
  .chat-sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 80%;
    max-width: 320px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    border-radius: 0;
  }
  .chat-sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  #sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

@media (max-width: 700px) {
  main { padding: 22px 16px 36px; }
  .nav { padding: 12px 16px; flex-wrap: wrap; }
  .nav-links { gap: 4px; font-size: 0.88rem; }
  .nav-links a { padding: 6px 10px; }
  .hero { padding: 34px 0 28px; }
  .hero-mock { margin-top: 28px; }
  .msg .bubble { max-width: 88%; }
  .pay-num code { font-size: 1.15rem; letter-spacing: 0.5px; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .trust { gap: 10px; font-size: 0.82rem; }
}
