/* =========================================================
   COMPONENTS: HERO CARD, NEON SVG TEXT, METEORS & CODE STUDIO
   ========================================================= */

/* =========================================================
   1. HERO PROFILE CARD
   ========================================================= */
.hero-card {
  background: transparent;
  padding: 10px 10px 10px;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  z-index: 10;
}

/* Avatar with RGB Glowing Animation */
.avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 3px;
  animation: rgb-avatar-light 5s ease-in-out infinite;
  transition: 0.5s;
}

.avatar-wrapper img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

@keyframes rgb-avatar-light {
  0% { box-shadow: 0 0 10px #ff0055; }
  25% { box-shadow: 0 0 14px #00f2fe; }
  50% { box-shadow: 0 0 12px #28df99; }
  75% { box-shadow: 0 0 14px #feca57; }
  100% { box-shadow: 0 0 10px #ff0055; }
}

/* =========================================================
   NEON SVG STROKE TEXT (CHUẨN LOLIVN.ME / TOXIC)
   ========================================================= */
#svgBox {
  width: 100%;
  max-width: 550px;
  height: 70px;
  margin: 1px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animated-name-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.dark-theme .text {
  font-size: 34px;
  font-weight: bold;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  text-transform: uppercase;
  letter-spacing: 4px;
  fill: none;
  stroke-dasharray: 90 310;
  animation: stroke 6s infinite linear;
}

.dark-theme .text-1 {
  stroke: #3498db;
  text-shadow: 0 0 5px #3498db;
  animation-delay: -1.5s;
}

.dark-theme .text-2 {
  stroke: #f39c12;
  text-shadow: 0 0 5px #f39c12;
  animation-delay: -3s;
}

.dark-theme .text-3 {
  stroke: #e74c3c;
  text-shadow: 0 0 5px #e74c3c;
  animation-delay: -4.5s;
}

.dark-theme .text-4 {
  stroke: #9b59b6;
  text-shadow: 0 0 5px #9b59b6;
  animation-delay: -6s;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: -400;
  }
}

/* Chế độ sáng (Nền trắng): Chữ đen sắc nét */
body:not(.dark-theme) .text {
  font-size: 34px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', var(--font-main);
  text-transform: uppercase;
  letter-spacing: 4px;
  fill: #0f172a;
  stroke: none;
  animation: none;
}

body:not(.dark-theme) .text-1,
body:not(.dark-theme) .text-2,
body:not(.dark-theme) .text-3,
body:not(.dark-theme) .text-4 {
  stroke: none;
  text-shadow: none;
}

/* =========================================================
   DÒNG CHỮ THỨ 2: CHÂM NGÔN RUNG LẮC QUANG HỌC (SHAKE-IT GLITCH)
   ========================================================= */
.bio-quote, .description {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 6px auto 14px;
  line-height: 1.5;
  text-align: center;
  max-width: 580px;
}

.dark-theme .bio-quote,
.dark-theme .description {
  color: #ffffff;
  animation: shake-it 0.8s reverse infinite cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

@keyframes shake-it {
  0% {
    text-shadow:
      0 0 rgba(0, 255, 255, 0.5),
      0 0 rgba(255, 0, 0, 0.5);
  }
  25% {
    text-shadow:
      -2px 0 rgba(0, 255, 255, 0.5),
      2px 0 rgba(255, 0, 0, 0.5);
  }
  50% {
    text-shadow:
      -5px 0 rgba(0, 255, 255, 0.5),
      3px 0 rgba(255, 0, 0, 0.5);
  }
  100% {
    text-shadow:
      3px 0 rgba(0, 255, 255, 0.5),
      5px 0 rgba(255, 0, 0, 0.5);
  }
}

body:not(.dark-theme) .bio-quote,
body:not(.dark-theme) .description {
  color: #1e293b;
  text-shadow: none;
  animation: none;
  font-weight: 700;
}

/* Location & Switch Bar */
.location-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.location-row i {
  color: #28df99;
  margin-right: 4px;
}

body:not(.dark-theme) .location-row i {
  color: #059669;
}

.sub-slogan {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 8px;
  letter-spacing: 0.5px;
}

/* Social Icon Badges */
.social-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

body:not(.dark-theme) .social-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.social-btn:hover {
  background: #28df99;
  color: #121318;
  border-color: #28df99;
  box-shadow: 0 0 12px rgba(40, 223, 153, 0.5);
  transform: translateY(-2px);
}

/* =========================================================
   2. MUSIC PLAYER
   ========================================================= */
.music-player-card {
  background: transparent;
  padding: 10px 0 20px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 20px;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0 8px;
}

.ctrl-btn.play-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  color: var(--text-primary);
  border: none;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.ctrl-btn.play-btn:hover {
  color: #28df99;
  transform: scale(1.15);
}

.song-title-row {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.song-artist-sub {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 400;
  margin-left: 6px;
}

.lyrics-box {
  height: 60px;
  overflow: hidden;
  position: relative;
  margin: 10px auto;
  text-align: center;
}

.lyrics-list {
  transition: transform 0.35s ease-out;
}

.lyric-line {
  padding: 4px 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  transition: all 0.25s ease;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lyric-line.active {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.92rem;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

body:not(.dark-theme) .lyric-line.active {
  color: #0f172a;
  font-weight: 700;
  text-shadow: none;
}

.progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto 6px;
  font-size: 0.75rem;
  font-family: var(--font-code);
  color: var(--text-muted);
  width: 100%;
  max-width: 520px;
}

.progress-bar-wrap {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  cursor: pointer !important;
  position: relative;
}

body:not(.dark-theme) .progress-bar-wrap {
  background: #cbd5e1;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  border-radius: 4px;
  position: relative;
}

body:not(.dark-theme) .progress-bar-fill {
  background: #059669;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
}

body:not(.dark-theme) .progress-bar-fill::after {
  background: #059669;
}

/* =========================================================
   3. SHOOTING STARS / METEORS
   ========================================================= */
.stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 120vh;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 1;
}

.star {
  --star-color: #ff9e53;
  --star-tail-length: 6em;
  --star-tail-height: 2px;
  --star-width: calc(var(--star-tail-length) / 6);
  --fall-duration: 9s;
  --tail-fade-duration: var(--fall-duration);

  position: absolute;
  top: var(--top-offset, 0);
  left: 0;
  width: var(--star-tail-length);
  height: var(--star-tail-height);
  color: var(--star-color);
  background: linear-gradient(45deg, currentColor, transparent);
  border-radius: 50%;
  filter: drop-shadow(0 0 6px currentColor);
  transform: translate3d(104em, 0, 0);
  animation: fall var(--fall-duration) var(--fall-delay) linear infinite, tail-fade var(--tail-fade-duration) var(--fall-delay) ease-out infinite;
}

.star::before, .star::after {
  position: absolute;
  content: '';
  top: 0;
  left: calc(var(--star-width) / -2);
  width: var(--star-width);
  height: 100%;
  background: linear-gradient(45deg, transparent, currentColor, transparent);
  border-radius: inherit;
  animation: blink 2s linear infinite;
}

.star::before {
  transform: rotate(45deg);
}

.star::after {
  transform: rotate(-45deg);
}

@keyframes fall {
  to {
    transform: translate3d(-30em, 0, 0);
  }
}

@keyframes tail-fade {
  0%, 50% {
    width: var(--star-tail-length);
    opacity: 1;
  }
  70%, 80% {
    width: 0;
    opacity: 0.4;
  }
  100% {
    width: 0;
    opacity: 0;
  }
}

@keyframes blink {
  50% {
    opacity: 0.6;
  }
}

/* =========================================================
   4. DONATE SECTION & CLEAN BUTTONS
   ========================================================= */
.donate-section-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.donate-buttons-list {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.donate-trigger-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.donate-trigger-btn.momo {
  color: #ff007f;
  background: rgba(255, 0, 127, 0.1);
  border-color: rgba(255, 0, 127, 0.3);
}

.donate-trigger-btn.momo:hover {
  background: #d82d8b;
  color: #fff;
}

.donate-trigger-btn.bank {
  color: #28df99;
  background: rgba(40, 223, 153, 0.1);
  border-color: rgba(40, 223, 153, 0.3);
}

.donate-trigger-btn.bank:hover {
  background: #0052cc;
  color: #fff;
}

/* =========================================================
   5. REDESIGNED LUXURY AUTH & STUDIO MODALS
   ========================================================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: #1a1b1e;
  border: 1px solid rgba(40, 223, 153, 0.3);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  padding: 30px 26px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(40, 223, 153, 0.15);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalPopIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

body:not(.dark-theme) .modal-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}

.modal-card.wide-modal {
  max-width: 620px;
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid rgba(255, 107, 107, 0.4);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff6b6b;
  font-size: 0.95rem;
  z-index: 1000;
  cursor: pointer !important;
  transition: all var(--transition-fast);
}

body:not(.dark-theme) .modal-close-btn {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.modal-close-btn:hover {
  color: #fff;
  background: #ff6b6b;
  transform: scale(1.1);
}

/* =========================================================
   MODERN SOCIAL AUTH BUTTONS (GOOGLE & DISCORD LIKE IMAGE)
   ========================================================= */
.social-auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

.social-auth-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.social-auth-card.google-card {
  background: rgba(234, 67, 53, 0.08);
  border: 1px solid rgba(234, 67, 53, 0.35);
  color: #ff6b6b;
}

.social-auth-card.google-card i {
  color: #ea4335;
  font-size: 1.15rem;
}

.social-auth-card.google-card:hover {
  background: rgba(234, 67, 53, 0.18);
  border-color: #ea4335;
  box-shadow: 0 0 16px rgba(234, 67, 53, 0.35);
  transform: translateY(-2px);
}

.social-auth-card.discord-card {
  background: rgba(88, 101, 242, 0.08);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #8fa0ff;
}

.social-auth-card.discord-card i {
  color: #5865f2;
  font-size: 1.15rem;
}

.social-auth-card.discord-card:hover {
  background: rgba(88, 101, 242, 0.18);
  border-color: #5865f2;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.35);
  transform: translateY(-2px);
}

body:not(.dark-theme) .social-auth-card.google-card {
  background: #fff;
  border-color: #fca5a5;
  color: #dc2626;
  box-shadow: 0 2px 8px rgba(234, 67, 53, 0.08);
}

body:not(.dark-theme) .social-auth-card.discord-card {
  background: #fff;
  border-color: #a5b4fc;
  color: #4f46e5;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.08);
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0 16px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-divider span {
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
}

body:not(.dark-theme) .auth-divider span {
  color: #64748b;
}

body:not(.dark-theme) .auth-divider::before,
body:not(.dark-theme) .auth-divider::after {
  border-bottom-color: #cbd5e1;
}

/* Forms inside modal */
.form-group {
  margin-bottom: 14px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition-fast);
}

body:not(.dark-theme) .form-control {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.form-control:focus {
  border-color: #28df99;
  box-shadow: 0 0 10px rgba(40, 223, 153, 0.2);
}

textarea.form-control {
  min-height: 80px;
  resize: vertical;
}

textarea.code-editor {
  min-height: 140px;
  font-family: var(--font-code);
  font-size: 0.82rem;
  background: #121316;
  color: #00f2fe;
}

.code-viewer-frame {
  background: #121316;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  max-height: 380px;
  overflow-y: auto;
  text-align: left;
}

.code-viewer-frame pre {
  font-family: var(--font-code);
  font-size: 0.82rem;
  color: #e2e8f0;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

.qr-display-frame {
  width: 220px;
  height: 220px;
  margin: 16px auto;
  padding: 10px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-display-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.copy-bank-info {
  background: rgba(0, 0, 0, 0.3);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 14px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

body:not(.dark-theme) .copy-bank-info {
  background: #f1f5f9;
}

.copy-btn {
  background: #28df99;
  color: #121318;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  transition: opacity var(--transition-fast);
}

.copy-btn:hover {
  opacity: 0.9;
}

/* =========================================================
   6. ANTI-F12 BONK MEME MODAL ("F12 cái l")
   ========================================================= */
.security-meme-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.security-meme-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.security-meme-card {
  background: #1e1f23;
  border: 2px solid #ff0055;
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 0 40px rgba(255, 0, 85, 0.6);
  animation: bonkPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.4);
}

@keyframes bonkPop {
  0% { transform: scale(0.6) rotate(-10deg); opacity: 0; }
  70% { transform: scale(1.08) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.bonk-img-wrap {
  width: 220px;
  height: 220px;
  margin: 0 auto 14px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.bonk-meme-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.meme-vibrate-text {
  font-size: 1.8rem;
  font-weight: 900;
  color: #ff0055;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 12px rgba(255, 0, 85, 0.8);
  animation: textVibrate 0.4s infinite alternate;
}

@keyframes textVibrate {
  0% { transform: scale(1) rotate(-1deg); text-shadow: 0 0 10px #ff0055, 0 0 20px #00f2fe; }
  100% { transform: scale(1.08) rotate(1deg); text-shadow: 0 0 16px #ff007f, 0 0 24px #ff6b6b; }
}
