/* ════════════════════════════════════════════
   RadioVibe v3 — Frontend Premium Light CSS
   ════════════════════════════════════════════ */
:root {
  --rv1: #E91E8C; --rv2: #FF6B35;
  --rvg: linear-gradient(135deg, #E91E8C, #FF6B35);
  --rvg2: linear-gradient(135deg, #667EEA, #764BA2);
  --rvg3: linear-gradient(135deg, #11998e, #38ef7d);
  --white: #FFFFFF; --bg: #F4F5FB; --card: #FFFFFF;
  --border: #ECEEF6; --text: #1A1A2E; --muted: #8A8AAA;
  --soft: #F3F4FF; --shadow: 0 20px 60px rgba(0,0,0,.11), 0 4px 16px rgba(0,0,0,.06);
  --r: 20px;
}

/* ═══ AUTH PAGE ═══ */
#rv-auth-root {
  max-width: 460px; margin: 48px auto;
  background: var(--card); border-radius: 24px;
  box-shadow: var(--shadow); overflow: hidden;
  border: 1.5px solid var(--border);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.rv-auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--bg); border-bottom: 1.5px solid var(--border);
}
.rv-auth-tab {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 16px; border: none; background: transparent;
  font-family: 'Syne', sans-serif; font-size: .88rem; font-weight: 700;
  color: var(--muted); cursor: pointer; transition: all .25s;
  border-bottom: 3px solid transparent;
}
.rv-auth-tab.active { color: var(--rv1); border-bottom-color: var(--rv1); background: var(--white); }

.rv-auth-pane { display: none; padding: 32px; }
.rv-auth-pane.active { display: block; }

.rv-auth-form { display: flex; flex-direction: column; gap: 0; }
.rv-field-group { margin-bottom: 16px; }
.rv-field-group > label {
  display: block; font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 7px;
}
.rv-input-wrap { position: relative; }
.rv-fi { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.rv-input-wrap input {
  width: 100%; box-sizing: border-box;
  padding: 12px 42px 12px 38px;
  background: var(--soft); border: 1.5px solid var(--border);
  border-radius: 12px; font-family: 'DM Sans', sans-serif;
  font-size: .9rem; color: var(--text); outline: none; transition: all .2s;
}
.rv-input-wrap input:focus { border-color: var(--rv1); background: #fff; box-shadow: 0 0 0 3px rgba(233,30,140,.1); }
.rv-input-wrap input::placeholder { color: var(--muted); }
.rv-toggle-pass {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--muted);
  transition: color .2s; padding: 0;
}
.rv-toggle-pass:hover { color: var(--rv1); }

.rv-hint { font-size: .72rem; color: var(--muted); margin: 5px 0 0; }

.rv-pass-bar { height: 4px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 8px; }
#rv-pass-fill { height: 100%; width: 0; border-radius: 4px; transition: all .4s; }
.rv-pass-label { font-size: .72rem; margin: 4px 0 0; font-weight: 600; }

.rv-form-msg {
  padding: 10px 14px; border-radius: 10px;
  font-size: .83rem; line-height: 1.55; margin-bottom: 12px;
}
.rv-form-msg.err { background: #fff0f5; border: 1.5px solid #ffd6ea; color: #c00060; }
.rv-form-msg.ok  { background: #f0fff6; border: 1.5px solid #c0f0d8; color: #007040; }

.rv-submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px; background: var(--rvg); border: none; border-radius: 14px;
  color: #fff; font-family: 'Syne', sans-serif; font-size: .92rem; font-weight: 800;
  letter-spacing: .3px; cursor: pointer; transition: all .25s;
  box-shadow: 0 6px 20px rgba(233,30,140,.3); margin-bottom: 12px;
}
.rv-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(233,30,140,.4); }
.rv-submit-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

.rv-link-btn {
  background: none; border: none; color: var(--muted);
  font-family: 'DM Sans', sans-serif; font-size: .82rem;
  cursor: pointer; text-align: center; transition: color .2s; padding: 0;
}
.rv-link-btn:hover { color: var(--rv1); }

.rv-reg-success { text-align: center; padding: 12px 0; }
.rv-success-icon { font-size: 3.5rem; margin-bottom: 12px; }
.rv-reg-success h2 { font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; color: var(--text); margin: 0 0 8px; }
.rv-reg-success p { font-family: 'DM Sans', sans-serif; color: var(--muted); font-size: .88rem; line-height: 1.6; margin: 0 0 14px; }
.rv-success-tip { background: #FFFDE7; border: 1.5px solid #FFF176; border-radius: 12px; padding: 12px 16px; font-size: .8rem; color: #7A6500; font-family: 'DM Sans', sans-serif; }

/* Activate page */
.rv-activate-wrap { max-width: 440px; margin: 60px auto; text-align: center; padding: 20px; font-family: 'Plus Jakarta Sans', sans-serif; }
.rv-activate-ok { background: #fff; border-radius: 24px; padding: 48px 36px; box-shadow: var(--shadow); border: 1.5px solid var(--border); }
.rv-act-icon { font-size: 4rem; margin-bottom: 16px; }
.rv-activate-ok h2 { font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 800; color: var(--text); margin: 0 0 10px; }
.rv-activate-ok p { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0 0 24px; }
.rv-act-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rvg); color: #fff; text-decoration: none;
  border-radius: 14px; padding: 13px 28px;
  font-family: 'Syne', sans-serif; font-size: .9rem; font-weight: 800;
  box-shadow: 0 6px 20px rgba(233,30,140,.3); transition: all .25s;
}
.rv-act-btn:hover { transform: translateY(-2px); color: #fff; }

/* ═══ COVER LAUNCHER ═══ */
.rv-cover-launcher {
  position: relative; display: inline-block;
  border-radius: 20px; overflow: hidden; cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .3s;
  user-select: none;
}
.rv-cover-launcher:hover { transform: scale(1.03) translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.22); }
.rv-cover-img { width: 100%; display: block; transition: transform .5s; }
.rv-cover-launcher:hover .rv-cover-img { transform: scale(1.06); }

.rv-cover-veil {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 50%);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 22px; gap: 10px; opacity: .88;
  transition: opacity .25s;
}
.rv-cover-launcher:hover .rv-cover-veil { opacity: 1; }

.rv-cv-waves { position: absolute; top: 14px; left: 14px; display: flex; align-items: center; gap: 3px; }
.rv-cv-waves span { width: 4px; border-radius: 4px; background: rgba(255,255,255,.9); animation: rv-wv 1.1s ease-in-out infinite; }
.rv-cv-waves span:nth-child(1){height:8px;animation-delay:0s}
.rv-cv-waves span:nth-child(2){height:18px;animation-delay:.12s}
.rv-cv-waves span:nth-child(3){height:12px;animation-delay:.24s}
.rv-cv-waves span:nth-child(4){height:22px;animation-delay:.36s}
.rv-cv-waves span:nth-child(5){height:10px;animation-delay:.48s}
@keyframes rv-wv { 0%,100%{transform:scaleY(1);opacity:.7} 50%{transform:scaleY(2.2);opacity:1} }

.rv-cv-info { text-align: center; }
.rv-cv-name { color: #fff; font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.rv-cv-sub  { color: rgba(255,255,255,.75); font-size: .75rem; margin-top: 3px; font-family: 'DM Sans', sans-serif; }

.rv-cv-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rvg); color: #fff; border-radius: 100px;
  padding: 10px 24px; font-family: 'Syne', sans-serif; font-size: .8rem; font-weight: 800;
  letter-spacing: .5px; box-shadow: 0 4px 18px rgba(233,30,140,.5);
  transition: transform .2s, box-shadow .2s;
}
.rv-cover-launcher:hover .rv-cv-cta { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(233,30,140,.6); }

/* ═══ LIGHTBOX ═══ */
.rv-lightbox {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.rv-lb-backdrop {
  position: absolute; inset: 0;
  background: rgba(10,10,25,.6); backdrop-filter: blur(10px);
  animation: rv-fade .3s;
}
@keyframes rv-fade { from{opacity:0} to{opacity:1} }

.rv-lb-modal {
  position: relative; z-index: 1;
  background: var(--bg); border-radius: 24px;
  width: 800px; max-width: 100%;
  height: 90vh; max-height: 720px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow); overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.8);
  animation: rv-modal-in .45s cubic-bezier(.34,1.56,.64,1);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
@keyframes rv-modal-in { from{opacity:0;transform:scale(.88) translateY(24px)} to{opacity:1;transform:none} }

/* AUTH GATE */
.rv-lb-auth-gate {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fff5fb, #fff8f5);
}
.rv-ag-inner { text-align: center; padding: 48px 36px; max-width: 360px; }
.rv-ag-waves { display: flex; align-items: center; justify-content: center; gap: 4px; height: 50px; margin-bottom: 20px; }
.rv-ag-waves span { width: 6px; border-radius: 6px; background: var(--rvg); background: linear-gradient(180deg,var(--rv1),var(--rv2)); animation: rv-wv 1.2s ease-in-out infinite; }
.rv-ag-waves span:nth-child(1){height:16px;animation-delay:0s}
.rv-ag-waves span:nth-child(2){height:32px;animation-delay:.12s}
.rv-ag-waves span:nth-child(3){height:22px;animation-delay:.24s}
.rv-ag-waves span:nth-child(4){height:40px;animation-delay:.36s}
.rv-ag-waves span:nth-child(5){height:18px;animation-delay:.48s}
.rv-ag-title { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; background: var(--rvg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin: 0 0 8px; }
.rv-ag-sub { font-family: 'DM Sans', sans-serif; font-size: .9rem; color: var(--muted); line-height: 1.6; margin: 0 0 28px; }
.rv-ag-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rvg); color: #fff; text-decoration: none;
  border-radius: 14px; padding: 14px 32px;
  font-family: 'Syne', sans-serif; font-size: .92rem; font-weight: 800;
  box-shadow: 0 6px 20px rgba(233,30,140,.3); transition: all .25s;
}
.rv-ag-btn-primary:hover { transform: translateY(-2px); color: #fff; }
.rv-ag-close { margin-top: 16px; background: none; border: none; color: var(--muted); font-size: .82rem; cursor: pointer; font-family: 'DM Sans',sans-serif; transition: color .2s; }
.rv-ag-close:hover { color: var(--rv1); }

/* HEADER */
.rv-lb-header {
  background: var(--white); border-bottom: 1.5px solid var(--border);
  padding: 12px 18px; display: flex; align-items: center; gap: 14px;
  flex-shrink: 0;
}
.rv-lh-left { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.rv-live-badge {
  display: flex; align-items: center; gap: 6px;
  background: #FFF0F5; border: 1.5px solid #FFD6EA;
  border-radius: 100px; padding: 4px 12px;
  font-family: 'Syne', sans-serif; font-size: .65rem; font-weight: 800;
  letter-spacing: 1.5px; color: var(--rv1); flex-shrink: 0;
}
.rv-live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--rv1);
  animation: rv-pulse 1.8s infinite;
}
@keyframes rv-pulse { 0%,100%{box-shadow:0 0 0 2px rgba(233,30,140,.2)} 50%{box-shadow:0 0 0 6px rgba(233,30,140,.08)} }

.rv-lh-radio { font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 800; background: var(--rvg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.rv-lh-waves { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.rv-lh-waves span { width: 3px; border-radius: 3px; background: linear-gradient(180deg,var(--rv1),var(--rv2)); animation: rv-wv .9s ease-in-out infinite; }
.rv-lh-waves span:nth-child(1){height:7px;animation-delay:0s}
.rv-lh-waves span:nth-child(2){height:13px;animation-delay:.1s}
.rv-lh-waves span:nth-child(3){height:9px;animation-delay:.2s}
.rv-lh-waves span:nth-child(4){height:15px;animation-delay:.3s}
.rv-lh-waves span:nth-child(5){height:8px;animation-delay:.4s}

.rv-lh-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.rv-lh-user { display: flex; align-items: center; gap: 9px; }
.rv-lh-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .78rem; color: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); flex-shrink: 0; }
.rv-lh-uname { font-family: 'Syne', sans-serif; font-size: .82rem; font-weight: 700; color: var(--text); }
.rv-lh-upts { font-size: .68rem; color: var(--rv1); font-weight: 700; font-family: 'DM Sans', sans-serif; }
.rv-listeners { font-family: 'DM Sans', sans-serif; font-size: .75rem; color: var(--muted); background: var(--soft); border: 1.5px solid var(--border); border-radius: 100px; padding: 4px 11px; white-space: nowrap; }
.rv-listeners span { color: var(--rv1); font-weight: 800; }
.rv-close-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--soft); border: 1.5px solid var(--border); color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; flex-shrink: 0; }
.rv-close-btn:hover { background: #fff0f5; border-color: var(--rv1); color: var(--rv1); transform: rotate(90deg); }

/* NOW PLAYING */
.rv-now-playing {
  background: var(--white); border-bottom: 1.5px solid var(--border);
  padding: 12px 18px; display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.rv-np-vinyl {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--rvg); display: flex; align-items: center; justify-content: center;
  animation: rv-spin 5s linear infinite; flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(233,30,140,.3);
}
.rv-np-vinyl-hole { width: 14px; height: 14px; border-radius: 50%; background: #fff; }
@keyframes rv-spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

.rv-np-info { flex: 1; min-width: 0; }
.rv-np-badge { font-family: 'Syne', sans-serif; font-size: .6rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--rv1); margin-bottom: 2px; }
.rv-np-track { font-family: 'Syne', sans-serif; font-size: .92rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-np-artist { font-family: 'DM Sans', sans-serif; font-size: .76rem; color: var(--muted); }
.rv-np-prog-wrap { height: 3px; background: var(--border); border-radius: 3px; margin-top: 7px; overflow: hidden; }
.rv-np-prog { height: 100%; background: var(--rvg); width: 30%; border-radius: 3px; animation: rv-prog 30s linear infinite; }
@keyframes rv-prog { from{width:5%} to{width:92%} }

.rv-np-quick-reacts { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.rv-np-quick-reacts button { background: var(--soft); border: 1.5px solid var(--border); border-radius: 20px; padding: 3px 10px; font-size: .95rem; cursor: pointer; transition: all .2s; line-height: 1; }
.rv-np-quick-reacts button:hover { transform: scale(1.3); background: #fff0f5; border-color: var(--rv1); }

/* TABS */
.rv-nav-tabs {
  display: flex; gap: 0; padding: 10px 12px 0;
  background: var(--white); border-bottom: 1.5px solid var(--border);
  overflow-x: auto; flex-shrink: 0; scrollbar-width: none;
}
.rv-nav-tabs::-webkit-scrollbar { display: none; }
.rv-ntab {
  display: flex; align-items: center; gap: 5px; padding: 9px 14px 11px;
  border: none; background: transparent; color: var(--muted);
  font-family: 'Plus Jakarta Sans', sans-serif; font-size: .8rem; font-weight: 700;
  cursor: pointer; white-space: nowrap; transition: all .2s;
  border-bottom: 2.5px solid transparent; margin-bottom: -1.5px;
}
.rv-ntab span { display: none; }
.rv-ntab:hover { color: var(--text); }
.rv-ntab.active { color: var(--rv1); border-bottom-color: var(--rv1); }
@media(min-width:480px){.rv-ntab span{display:inline}}

/* PANES */
.rv-panes-wrap { flex: 1; overflow: hidden; position: relative; min-height: 0; }
.rv-pane { display: none; height: 100%; flex-direction: column; overflow-y: auto; }
.rv-pane.active { display: flex; }
.rv-pane::-webkit-scrollbar { width: 5px; }
.rv-pane::-webkit-scrollbar-thumb { background: var(--border); border-radius: 5px; }

/* ═══ CHAT ═══ */
#rv-pane-chat { overflow: hidden; }
.rv-chat-msgs { flex: 1; overflow-y: auto; padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.rv-chat-msgs::-webkit-scrollbar { width: 4px; }
.rv-chat-msgs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.rv-msg { display: flex; gap: 8px; align-items: flex-end; animation: rv-msg-in .35s cubic-bezier(.34,1.4,.64,1); }
.rv-msg.own { flex-direction: row-reverse; }
@keyframes rv-msg-in { from{opacity:0;transform:translateY(10px) scale(.95)} to{opacity:1;transform:none} }
.rv-msg-av { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .72rem; flex-shrink: 0; color: #fff; }
.rv-msg-body { max-width: 74%; }
.rv-msg-meta { font-size: .65rem; color: var(--muted); margin-bottom: 3px; font-family: 'DM Sans', sans-serif; }
.rv-msg.own .rv-msg-meta { text-align: right; }
.rv-msg-txt {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: 14px 14px 14px 4px; padding: 9px 13px;
  font-family: 'DM Sans', sans-serif; font-size: .86rem; line-height: 1.55;
  color: var(--text); box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.rv-msg.own .rv-msg-txt {
  background: var(--rvg); color: #fff; border-color: transparent;
  border-radius: 14px 14px 4px 14px; box-shadow: 0 4px 14px rgba(233,30,140,.22);
}

.rv-chat-bar {
  padding: 10px 12px; background: var(--white); border-top: 1.5px solid var(--border);
  display: flex; align-items: center; gap: 7px; flex-shrink: 0;
}
.rv-emoji-zone { position: relative; }
.rv-emoji-btn { width: 38px; height: 38px; background: var(--soft); border: 1.5px solid var(--border); border-radius: 10px; font-size: 1.05rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.rv-emoji-btn:hover { background: #fff0f5; border-color: var(--rv1); transform: scale(1.1); }
.rv-emoji-grid {
  display: none; position: absolute; bottom: 48px; left: 0;
  background: var(--white); border: 1.5px solid var(--border); border-radius: 16px;
  padding: 10px; grid-template-columns: repeat(8,1fr); gap: 3px;
  box-shadow: 0 8px 30px rgba(0,0,0,.1); z-index: 20; width: 256px;
}
.rv-emoji-grid.open { display: grid; }
.rv-eg-e { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; cursor: pointer; border-radius: 8px; transition: all .15s; }
.rv-eg-e:hover { background: var(--soft); transform: scale(1.3); }

.rv-msg-input {
  flex: 1; background: var(--soft); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: .86rem; color: var(--text);
  outline: none; transition: all .2s;
}
.rv-msg-input:focus { border-color: var(--rv1); background: #fff; box-shadow: 0 0 0 3px rgba(233,30,140,.1); }
.rv-msg-input::placeholder { color: var(--muted); }

.rv-msg-send { width: 38px; height: 38px; border-radius: 10px; background: var(--rvg); border: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 12px rgba(233,30,140,.3); transition: all .2s; flex-shrink: 0; }
.rv-msg-send:hover { transform: scale(1.1); box-shadow: 0 5px 18px rgba(233,30,140,.4); }
.rv-ia-s { background: var(--rvg2); box-shadow: 0 3px 12px rgba(102,126,234,.3); }
.rv-ia-s:hover { box-shadow: 0 5px 18px rgba(102,126,234,.4); }

/* ═══ IA ═══ */
#rv-pane-ia { overflow: hidden; }
.rv-ia-msgs { flex: 1; overflow-y: auto; padding: 16px 16px 6px; display: flex; flex-direction: column; gap: 12px; }
.rv-ia-row { display: flex; gap: 9px; align-items: flex-start; animation: rv-msg-in .35s; }
.rv-ia-row.ia-user { flex-direction: row-reverse; }
.rv-ia-av { width: 34px; height: 34px; border-radius: 50%; background: var(--rvg2); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; box-shadow: 0 3px 10px rgba(102,126,234,.3); }
.rv-ia-bubble { max-width: 78%; padding: 10px 14px; border-radius: 4px 14px 14px 14px; font-family: 'DM Sans', sans-serif; font-size: .86rem; line-height: 1.6; }
.rv-ia-bot { background: var(--white); border: 1.5px solid var(--border); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.rv-ia-user-bubble { background: var(--rvg2); color: #fff; border-radius: 14px 4px 14px 14px; box-shadow: 0 4px 14px rgba(102,126,234,.28); }

.rv-ia-typing { display: flex; align-items: center; gap: 5px; background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 11px 15px; width: fit-content; }
.rv-ia-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--rvg2); animation: rv-dot 1.4s infinite; }
.rv-ia-typing span:nth-child(2){animation-delay:.2s}
.rv-ia-typing span:nth-child(3){animation-delay:.4s}
@keyframes rv-dot { 0%,80%,100%{opacity:.3;transform:scale(.8)} 40%{opacity:1;transform:scale(1.2)} }

.rv-ia-shortcuts { padding: 8px 16px 4px; display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.rv-ia-shortcuts button { background: var(--soft); border: 1.5px solid var(--border); border-radius: 100px; padding: 6px 12px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .76rem; font-weight: 700; color: var(--text); cursor: pointer; transition: all .2s; }
.rv-ia-shortcuts button:hover { background: #fff0f5; border-color: var(--rv1); color: var(--rv1); transform: translateY(-2px); }

/* ═══ GAMES ═══ */
#rv-pane-jogos { overflow: hidden; }
.rv-games-home { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.rv-games-title { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--text); }
.rv-games-subtitle { font-family: 'DM Sans', sans-serif; font-size: .82rem; color: var(--muted); }
.rv-games-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media(max-width:500px){.rv-games-grid{grid-template-columns:1fr 1fr}}
.rv-game-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 16px;
  padding: 16px 14px; cursor: pointer; transition: all .25s; text-align: center;
  position: relative; overflow: hidden;
}
.rv-game-card::before { content: ''; position: absolute; inset: 0; background: var(--rvg); opacity: 0; transition: opacity .25s; }
.rv-game-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(233,30,140,.18); border-color: var(--rv1); }
.rv-game-card:hover::before { opacity: .04; }
.rv-gc-icon { font-size: 1.8rem; margin-bottom: 7px; }
.rv-gc-name { font-family: 'Syne', sans-serif; font-size: .88rem; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.rv-gc-desc { font-family: 'DM Sans', sans-serif; font-size: .72rem; color: var(--muted); line-height: 1.4; }
.rv-gc-badge { position: absolute; top: 8px; right: 8px; background: var(--rvg); color: #fff; font-family: 'Syne', sans-serif; font-size: .58rem; font-weight: 800; padding: 2px 7px; border-radius: 100px; letter-spacing: .5px; }

/* Game Screen */
#rv-game-screen { overflow-y: auto; padding: 16px; }
.rv-game-back { display: flex; align-items: center; gap: 6px; background: none; border: none; color: var(--muted); font-family: 'Plus Jakarta Sans', sans-serif; font-size: .82rem; font-weight: 700; cursor: pointer; padding: 0 0 14px; transition: color .2s; }
.rv-game-back:hover { color: var(--rv1); }

/* Forca */
.rv-forca-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.rv-forca-svg { width: 140px; }
.rv-forca-cat { font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--rv1); }
.rv-word-display { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 4px 0; }
.rv-wd-letter { width: 32px; height: 40px; border-bottom: 2.5px solid var(--text); display: flex; align-items: center; justify-content: center; font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 800; color: var(--text); transition: all .3s; }
.rv-wd-letter.revealed { animation: rv-reveal .4s; color: var(--rv1); }
@keyframes rv-reveal { from{transform:scale(0) rotate(10deg);opacity:0} to{transform:none;opacity:1} }
.rv-forca-hint { font-family: 'DM Sans', sans-serif; font-size: .8rem; color: var(--muted); font-style: italic; background: var(--soft); border-radius: 8px; padding: 7px 14px; }
.rv-keyboard { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; max-width: 340px; }
.rv-key {
  width: 34px; height: 34px; border-radius: 8px; background: var(--soft); border: 1.5px solid var(--border);
  font-family: 'Syne', sans-serif; font-size: .82rem; font-weight: 800;
  cursor: pointer; transition: all .2s; color: var(--text);
}
.rv-key:hover:not(:disabled) { background: #fff0f5; border-color: var(--rv1); color: var(--rv1); }
.rv-key:disabled { opacity: .35; cursor: not-allowed; }
.rv-key.hit { background: #f0fff6; border-color: #4CAF50; color: #4CAF50; }
.rv-key.miss { background: #fff0f5; border-color: #ff5252; color: #ff5252; }
.rv-forca-status { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; text-align: center; }
.rv-forca-status.win { color: #4CAF50; }
.rv-forca-status.lose { color: #ff5252; }
.rv-forca-lives { font-family: 'DM Sans', sans-serif; font-size: .8rem; color: var(--muted); }

/* Caça-Palavras */
.rv-caca-wrap { display: flex; flex-direction: column; gap: 12px; }
.rv-caca-tema { font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--rv1); }
.rv-caca-grid-wrap { overflow-x: auto; }
.rv-caca-grid { display: inline-grid; gap: 2px; user-select: none; }
.rv-caca-cell {
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: .82rem; font-weight: 800; color: var(--text);
  border-radius: 6px; cursor: pointer; transition: all .15s; background: var(--soft);
  border: 1px solid var(--border);
}
.rv-caca-cell:hover { background: #fff0f5; }
.rv-caca-cell.selected { background: rgba(233,30,140,.12); border-color: var(--rv1); color: var(--rv1); }
.rv-caca-cell.found { background: var(--rvg); color: #fff; border-color: transparent; }
.rv-caca-words { display: flex; flex-wrap: wrap; gap: 7px; }
.rv-caca-word { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .78rem; font-weight: 700; background: var(--soft); border: 1.5px solid var(--border); border-radius: 8px; padding: 4px 10px; color: var(--text); transition: all .2s; }
.rv-caca-word.found { background: #f0fff6; border-color: #4CAF50; color: #4CAF50; text-decoration: line-through; }

/* Palavras Cruzadas */
.rv-cruzadas-wrap { display: flex; flex-direction: column; gap: 14px; }
.rv-cz-grid-outer { overflow-x: auto; }
.rv-cz-grid { display: inline-grid; gap: 2px; }
.rv-cz-cell {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-size: .8rem; font-weight: 800;
  border: 1.5px solid var(--border); background: var(--white); cursor: text;
  position: relative; transition: all .15s;
}
.rv-cz-cell.black { background: var(--text); border-color: var(--text); cursor: default; }
.rv-cz-cell.active { border-color: var(--rv1); background: #fff0f5; }
.rv-cz-cell.correct { background: #f0fff6; border-color: #4CAF50; color: #4CAF50; }
.rv-cz-cell input { width: 100%; height: 100%; border: none; background: transparent; text-align: center; font-family: 'Syne', sans-serif; font-size: .8rem; font-weight: 800; outline: none; color: inherit; text-transform: uppercase; padding: 0; cursor: text; }
.rv-cz-num { position: absolute; top: 1px; left: 2px; font-size: .5rem; color: var(--rv1); font-weight: 900; line-height: 1; }
.rv-cz-clues { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rv-cz-clue-sec h4 { font-family: 'Syne', sans-serif; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--rv1); margin: 0 0 8px; }
.rv-cz-clue { font-family: 'DM Sans', sans-serif; font-size: .8rem; color: var(--text); line-height: 1.5; margin-bottom: 5px; }
.rv-cz-clue span { font-weight: 700; color: var(--rv1); }

/* Quiz */
.rv-quiz-wrap { display: flex; flex-direction: column; gap: 14px; }
.rv-quiz-q { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--text); background: var(--white); border: 1.5px solid var(--border); border-radius: 14px; padding: 18px; line-height: 1.5; }
.rv-quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.rv-quiz-opt {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 12px;
  padding: 12px 16px; font-family: 'DM Sans', sans-serif; font-size: .88rem;
  cursor: pointer; transition: all .2s; color: var(--text); text-align: left; width: 100%;
  display: flex; align-items: center; gap: 10px;
}
.rv-quiz-opt:hover:not(:disabled) { border-color: var(--rv1); background: #fff0f5; color: var(--rv1); }
.rv-quiz-opt.correct { background: #f0fff6; border-color: #4CAF50; color: #4CAF50; }
.rv-quiz-opt.wrong   { background: #fff0f5; border-color: #ff5252; color: #ff5252; }
.rv-quiz-score { font-family: 'Syne', sans-serif; font-size: .82rem; font-weight: 700; color: var(--muted); text-align: right; }

/* Verdade/Mito */
.rv-vm-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 16px; padding: 22px; text-align: center; }
.rv-vm-statement { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--text); line-height: 1.5; margin-bottom: 20px; min-height: 60px; display: flex; align-items: center; justify-content: center; }
.rv-vm-btns { display: flex; gap: 10px; justify-content: center; }
.rv-vm-btn { flex: 1; max-width: 160px; padding: 13px; border: none; border-radius: 14px; font-family: 'Syne', sans-serif; font-size: .9rem; font-weight: 800; cursor: pointer; transition: all .25s; }
.rv-vm-v { background: linear-gradient(135deg,#11998e,#38ef7d); color: #fff; box-shadow: 0 4px 14px rgba(17,153,142,.3); }
.rv-vm-m { background: linear-gradient(135deg,#ff5252,#ff1744); color: #fff; box-shadow: 0 4px 14px rgba(255,82,82,.3); }
.rv-vm-result { font-family: 'Syne', sans-serif; font-size: .9rem; font-weight: 800; padding: 12px 16px; border-radius: 12px; margin-top: 14px; text-align: center; }
.rv-vm-result.ok   { background: #f0fff6; color: #1a8a4a; }
.rv-vm-result.fail { background: #fff0f5; color: #c00060; }

/* ═══ PIADAS ═══ */
#rv-pane-piadas { overflow-y: auto; }
.rv-jokes-wrap { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.rv-joke-stage {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 20px;
  padding: 28px; text-align: center; position: relative; overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.rv-joke-deco { position: absolute; top: -12px; right: -8px; font-size: 7rem; opacity: .06; pointer-events: none; transform: rotate(12deg); }
.rv-joke-cat { font-family: 'Syne', sans-serif; font-size: .62rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--rv1); margin-bottom: 14px; }
.rv-joke-setup { font-family: 'DM Sans', sans-serif; font-size: 1rem; color: var(--text); line-height: 1.7; min-height: 56px; display: flex; align-items: center; justify-content: center; }
.rv-joke-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); }
.rv-joke-sep::before, .rv-joke-sep::after { content: ''; flex: 1; height: 1.5px; background: linear-gradient(90deg,transparent,var(--border),transparent); }
.rv-joke-sep span { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.rv-joke-punchline { font-family: 'Syne', sans-serif; font-size: 1.15rem; font-weight: 800; background: var(--rvg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: rv-msg-in .4s; line-height: 1.4; }
.rv-joke-stars { display: flex; justify-content: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.rv-joke-stars span { font-size: 1.4rem; cursor: pointer; transition: transform .15s; }
.rv-joke-stars span:hover { transform: scale(1.4); }
.rv-joke-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.rv-jbtn-primary { display: flex; align-items: center; gap: 7px; background: var(--rvg); color: #fff; border: none; border-radius: 12px; padding: 11px 20px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .86rem; font-weight: 800; cursor: pointer; transition: all .25s; box-shadow: 0 4px 14px rgba(233,30,140,.28); }
.rv-jbtn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 22px rgba(233,30,140,.38); }
.rv-jbtn-outline { background: var(--white); border: 1.5px solid var(--border); border-radius: 12px; padding: 11px 18px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .86rem; font-weight: 700; color: var(--text); cursor: pointer; transition: all .2s; }
.rv-jbtn-outline:hover { border-color: var(--rv1); color: var(--rv1); background: #fff0f5; }

/* ═══ NOTÍCIAS ═══ */
#rv-pane-noticias { overflow: hidden; }
.rv-news-cats-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--white); border-bottom: 1.5px solid var(--border); overflow-x: auto; flex-shrink: 0; scrollbar-width: none; }
.rv-news-cats-bar::-webkit-scrollbar{display:none}
.rv-nc { background: var(--soft); border: 1.5px solid var(--border); border-radius: 100px; padding: 7px 15px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .78rem; font-weight: 700; color: var(--muted); cursor: pointer; transition: all .2s; white-space: nowrap; }
.rv-nc.active, .rv-nc:hover { background: var(--rvg); color: #fff; border-color: transparent; box-shadow: 0 3px 12px rgba(233,30,140,.25); }

.rv-news-body { flex: 1; overflow-y: auto; padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
@media(max-width:480px){.rv-news-body{grid-template-columns:1fr}}
.rv-news-empty { grid-column: 1/-1; text-align: center; padding: 40px; color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: .88rem; }
.rv-news-card {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 15px; transition: all .25s; cursor: pointer; animation: rv-msg-in .4s;
  position: relative; overflow: hidden;
}
.rv-news-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--rvg); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.rv-news-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.rv-news-card:hover::before { transform: scaleX(1); }
.rv-nc-cat { font-family: 'Syne', sans-serif; font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.rv-nc-title { font-family: 'Syne', sans-serif; font-size: .88rem; font-weight: 700; color: var(--text); line-height: 1.4; margin-bottom: 6px; }
.rv-nc-summary { font-family: 'DM Sans', sans-serif; font-size: .76rem; color: var(--muted); line-height: 1.55; }
.rv-nc-time { font-family: 'DM Sans', sans-serif; font-size: .65rem; color: var(--muted); margin-top: 8px; }

/* ═══ ENQUETES ═══ */
#rv-pane-enquetes { overflow-y: auto; }
.rv-polls-body { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.rv-poll-card { background: var(--white); border: 1.5px solid var(--border); border-radius: 16px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.04); animation: rv-msg-in .4s; }
.rv-poll-q { font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: 14px; }
.rv-poll-opt { margin-bottom: 8px; cursor: pointer; }
.rv-poll-bar-outer { background: var(--soft); border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color .2s; }
.rv-poll-bar-outer:hover { border-color: var(--rv1); }
.rv-poll-bar { min-width: 32px; height: 42px; padding: 0 14px; display: flex; align-items: center; background: linear-gradient(90deg,rgba(233,30,140,.1),rgba(255,107,53,.05)); transition: width 1s cubic-bezier(.4,0,.2,1); }
.rv-poll-bar-lbl { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .84rem; font-weight: 700; color: var(--text); }
.rv-poll-pct { margin-left: auto; font-family: 'Syne', sans-serif; font-size: .8rem; font-weight: 800; background: var(--rvg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.rv-poll-total { font-family: 'DM Sans', sans-serif; font-size: .68rem; color: var(--muted); text-align: right; margin-top: 6px; }

/* ═══ RANKING ═══ */
#rv-pane-ranking { overflow: hidden; }
.rv-rank-head { padding: 16px 18px 12px; background: var(--white); border-bottom: 1.5px solid var(--border); flex-shrink: 0; }
.rv-rank-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; color: var(--text); }
.rv-rank-sub { font-family: 'DM Sans', sans-serif; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.rv-rank-body { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.rv-rank-item {
  background: var(--white); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 13px 15px; display: flex; align-items: center; gap: 11px;
  transition: all .25s; animation: rv-msg-in .4s; box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.rv-rank-item:hover { transform: translateX(4px); border-color: rgba(233,30,140,.2); }
.rv-rank-item.top1 { border-left: 4px solid #FFD700; background: linear-gradient(90deg,#FFFDE7,#fff); }
.rv-rank-item.top2 { border-left: 4px solid #B0B0B0; }
.rv-rank-item.top3 { border-left: 4px solid #CD7F32; background: linear-gradient(90deg,#FFF8F0,#fff); }
.rv-ri-pos { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 900; width: 28px; text-align: center; flex-shrink: 0; }
.rv-ri-av { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; color: #fff; flex-shrink: 0; }
.rv-ri-info { flex: 1; min-width: 0; }
.rv-ri-name { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .88rem; font-weight: 800; color: var(--text); }
.rv-ri-detail { font-family: 'DM Sans', sans-serif; font-size: .7rem; color: var(--muted); }
.rv-ri-score { font-family: 'Syne', sans-serif; font-size: .95rem; font-weight: 800; background: var(--rvg); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* ═══ LOADING ═══ */
.rv-loading { text-align: center; padding: 40px 20px; color: var(--muted); font-family: 'DM Sans', sans-serif; font-size: .88rem; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rv-spin { width: 28px; height: 28px; border: 3px solid rgba(233,30,140,.15); border-top-color: var(--rv1); border-radius: 50%; animation: rv-s .7s linear infinite; }
@keyframes rv-s { to{transform:rotate(360deg)} }

/* ═══ TOAST ═══ */
.rv-toasts { position: fixed; bottom: 24px; right: 24px; z-index: 9999999; display: flex; flex-direction: column; gap: 7px; }
.rv-toast { background: var(--white); border: 1.5px solid var(--border); border-left: 4px solid var(--rv1); border-radius: 14px; padding: 11px 16px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: .83rem; font-weight: 600; color: var(--text); box-shadow: 0 8px 28px rgba(0,0,0,.1); max-width: 280px; animation: rv-t-in .4s cubic-bezier(.34,1.4,.64,1); }
@keyframes rv-t-in { from{opacity:0;transform:translateX(60px)} to{opacity:1;transform:none} }
.rv-toast.out { animation: rv-t-out .3s forwards; }
@keyframes rv-t-out { to{opacity:0;transform:translateX(60px)} }

/* FLOAT EMOJI */
.rv-float { position: fixed; pointer-events: none; font-size: 2rem; z-index: 9999998; animation: rv-float 2.5s ease-out forwards; }
@keyframes rv-float { 0%{opacity:1;transform:translateY(0) scale(1)} 100%{opacity:0;transform:translateY(-180px) scale(.4) rotate(22deg)} }

/* ═══ RESPONSIVE ═══ */
@media(max-width:600px) {
  .rv-lb-modal { height: 95vh; max-height: none; border-radius: 20px 20px 0 0; }
  .rv-lightbox { align-items: flex-end; padding: 0; }
  .rv-games-grid { grid-template-columns: 1fr 1fr; }
  .rv-news-body { grid-template-columns: 1fr; }
  .rv-cz-clues { grid-template-columns: 1fr; }
}
