@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&family=Inter:wght@300;400;500;600;700;800&family=Orbitron:wght@500;600;700;900&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --neon-white: rgba(255, 255, 255, 0.9);
  --neon-cyan: #00f0ff;
  --neon-pink: #ec4899;
  --card-bg: rgba(12, 18, 30, 0.55);
  --card-border: rgba(255, 255, 255, 0.75);
  --glow-shadow: 0 0 25px rgba(255, 255, 255, 0.65), 0 0 50px rgba(0, 240, 255, 0.25);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
}

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

body.kochehe-body {
  font-family: 'Comic Neue', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #050811;
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 30px 15px 60px;
}

/* ==================== INTRO TERMINAL GATE ==================== */
#terminal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 90%;
  max-width: 580px;
  background-color: rgba(26, 26, 32, 0.95);
  color: #00ffcc;
  border-radius: 12px;
  z-index: 9999;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 255, 204, 0.2);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
  user-select: none;
}

#terminal.dismissed {
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  pointer-events: none;
}

#terminal-header {
  background-color: #26262e;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#terminal-buttons {
  display: flex;
  gap: 8px;
}

.terminal-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

#close-button { background-color: #ff5f57; }
#minimize-button { background-color: #ffbd2e; }
#maximize-button { background-color: #28ca42; }

.terminal-title {
  font-family: 'Inter', monospace;
  font-size: 11px;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

#terminal-content {
  padding: 18px 20px;
  min-height: 240px;
  max-height: 80vh;
  overflow-y: auto;
}

#terminal-text {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.25;
  color: #38bdf8;
  text-align: center;
  white-space: pre;
  margin: 0 auto;
  overflow-x: auto;
  display: block;
}

.terminal-pulse-hint {
  display: block;
  margin-top: 15px;
  font-size: 13.5px;
  font-weight: 700;
  color: #f43f5e;
  letter-spacing: 0.5px;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.7);
  animation: pulseHint 1.2s infinite;
}

@keyframes pulseHint {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.98); }
}

/* ==================== VIDEO BACKGROUND ==================== */
#video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
  background-color: #050811;
}

#video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

#video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 15, 25, 0.4) 0%, rgba(5, 8, 17, 0.85) 100%);
  pointer-events: none;
  z-index: -1;
}

/* ==================== MAIN GLASSMORPHIC CARD (#blurred-box) ==================== */
#blurred-box {
  width: 100%;
  max-width: 480px;
  background: var(--card-bg);
  border-radius: 26px;
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 50px rgba(0, 240, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 26px 20px 24px;
  text-align: center;
  position: relative;
  z-index: 10;
  margin: 10px auto;
  transition: box-shadow 0.25s ease, transform 0.15s ease-out;
  transform-style: preserve-3d;
  opacity: 0;
  visibility: hidden;
}

#blurred-box.visible {
  opacity: 1;
  visibility: visible;
  animation: cardFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Pulsing Neon Glow Border */
#blurred-box.active-border, #blurred-box:hover {
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.85), 0 0 65px rgba(56, 189, 248, 0.45);
}

/* Card Top Actions (Admin & Share) */
.card-top-actions {
  position: absolute;
  top: 14px;
  right: 16px;
  display: flex;
  gap: 8px;
  z-index: 20;
}

.top-action-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.top-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
  color: #38bdf8;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

/* ==================== AVATAR & DECORATION FRAME ==================== */
.avatar-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
}

#profile-picture {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  object-fit: cover;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
  z-index: 1;
}

#avatar-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.22);
  width: 135px;
  height: 135px;
  z-index: 2;
  pointer-events: none;
  animation: floatFrame 3s ease-in-out infinite;
}

@keyframes floatFrame {
  0%, 100% { transform: translate(-50%, -50%) scale(1.22) rotate(0deg); }
  50% { transform: translate(-50%, -53%) scale(1.24) rotate(1deg); }
}

/* ==================== USERNAME CONTAINER ==================== */
#username-container {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: 'Comic Neue', 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 8px;
  min-height: 38px;
}

#username {
  letter-spacing: 0.5px;
}

#typing-cursor {
  display: inline-block;
  margin-left: 4px;
  animation: blinkCursor 1s infinite;
  color: #38bdf8;
  font-weight: 400;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==================== BADGES CONTAINER ==================== */
.badges-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.badges-container img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease;
  cursor: pointer;
}

.badges-container img:hover {
  transform: translateY(-3px) scale(1.2);
}

/* ==================== TECH / SKILL LOGOS ==================== */
.lang-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lang-container img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  transition: transform 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}

.lang-container img:hover {
  transform: translateY(-4px) scale(1.18);
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.8));
}

/* ==================== USER DESCRIPTION BOX ==================== */
.user-description {
  margin: 0 auto 16px;
  width: 100%;
}

.user-description p {
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
}

.user-description p strong {
  font-size: 16px;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

#descLocation {
  font-size: 13px;
  color: #cbd5e1;
}

#descBio {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: #f1f5f9;
}

/* ==================== DISCORD WIDGET ==================== */
.discord-widget {
  background-color: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 18px;
  backdrop-filter: blur(10px);
  text-align: left;
  transition: all 0.3s ease;
}

.discord-widget:hover {
  border-color: rgba(88, 101, 242, 0.5);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.25);
}

.discord-content {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.discord-icon img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #5865F2;
  box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
  object-fit: cover;
}

.discord-meta b {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.discord-status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}

#discord-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.status-online { background-color: #22c55e; }
.status-idle { background-color: #faa81a; }
.status-dnd { background-color: #ed4245; }
.status-offline { background-color: #747f8d; }

.discord-activity {
  background-color: rgba(0, 0, 0, 0.35);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.discord-activity-icon {
  font-size: 18px;
  color: #5865F2;
}

.discord-activity-content {
  overflow: hidden;
}

#discord-activity-name {
  font-weight: 700;
  color: #e2e8f0;
  font-size: 13px;
}

#discord-activity-details {
  color: #94a3b8;
  font-size: 11.5px;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==================== FEATURED ACTION LINKS ==================== */
.featured-links-wrap {
  width: 100%;
  margin-bottom: 16px;
  text-align: left;
}

.links-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94a3b8;
  margin-bottom: 8px;
  padding: 0 4px;
}

.links-count {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
}

.links-list-kochehe {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kochehe-link-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.kochehe-link-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.6s ease;
}

.kochehe-link-card:hover {
  transform: translateY(-3px) scale(1.01);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(56, 189, 248, 0.7);
  box-shadow: 0 6px 20px rgba(56, 189, 248, 0.25);
}

.kochehe-link-card:hover::before {
  left: 100%;
}

.kochehe-link-card.highlight {
  border-color: rgba(236, 72, 153, 0.6);
  background: rgba(236, 72, 153, 0.12);
}

.link-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #38bdf8;
  margin-right: 12px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.kochehe-link-card:hover .link-icon-box {
  transform: scale(1.1) rotate(5deg);
  background: rgba(56, 189, 248, 0.25);
  color: #ffffff;
}

.link-custom-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.2s ease;
  filter: drop-shadow(0 0 6px rgba(0, 104, 255, 0.6));
}

.kochehe-link-card:hover .link-custom-icon {
  transform: scale(1.15) rotate(5deg);
}

.social-custom-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 104, 255, 0.5));
}

.link-text-box {
  flex-grow: 1;
  text-align: left;
}

.link-main-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  display: block;
}

.link-sub-title {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 2px;
  display: block;
}

.link-arrow-icon {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease, color 0.2s ease;
  margin-left: 8px;
}

.kochehe-link-card:hover .link-arrow-icon {
  transform: translateX(4px);
  color: #38bdf8;
}

/* ==================== DONATE BUTTON ==================== */
.donate-btn-glow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.3) 0%, rgba(99, 102, 241, 0.3) 100%);
  border: 1px solid rgba(236, 72, 153, 0.5);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.donate-btn-glow:hover {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.5) 0%, rgba(99, 102, 241, 0.5) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.4);
}

/* ==================== SOCIAL LINKS ROW ==================== */
.links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.social-decor-item, .links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 19px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(6px);
  cursor: default;
  user-select: none;
}

.social-decor-item:hover, .links a:hover {
  color: #ffffff;
  background: rgba(214, 109, 255, 0.4);
  border-color: rgba(214, 109, 255, 0.8);
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 0 15px rgba(214, 109, 255, 0.6);
}

/* Footer */
.card-footer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 10px;
}

/* ==================== VIETQR MODAL ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}

.modal-overlay.active {
  display: flex;
  animation: fadeInModal 0.25s ease forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: rgba(18, 24, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 24px 20px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 30px rgba(56, 189, 248, 0.2);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 22px;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #fff;
}

.qr-code-img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
  margin: 0 auto 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.copy-bank-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s;
}

.copy-bank-box:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
}

/* ==================== FLOATING MUSIC PLAYER ==================== */
.floating-music-circle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.4);
  backdrop-filter: blur(10px);
  padding: 6px 10px 6px 6px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.floating-music-circle:hover {
  transform: scale(1.08);
  border-color: #38bdf8;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
}

.vinyl-disc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle, #38bdf8 0%, #0f172a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.vinyl-disc.spinning {
  animation: spinRecord 3s linear infinite;
}

@keyframes spinRecord {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.music-wave-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 16px;
}

.music-wave-bars span {
  width: 3px;
  height: 4px;
  background: #38bdf8;
  border-radius: 2px;
  transition: height 0.2s ease;
}

.floating-music-circle.playing .music-wave-bars span:nth-child(1) {
  animation: bounceBar 0.8s ease-in-out infinite;
}
.floating-music-circle.playing .music-wave-bars span:nth-child(2) {
  animation: bounceBar 0.8s 0.2s ease-in-out infinite;
}
.floating-music-circle.playing .music-wave-bars span:nth-child(3) {
  animation: bounceBar 0.8s 0.4s ease-in-out infinite;
}
.floating-music-circle.playing .music-wave-bars span:nth-child(4) {
  animation: bounceBar 0.8s 0.1s ease-in-out infinite;
}

@keyframes bounceBar {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.5);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 13.5px;
  z-index: 10000;
  opacity: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==================== RESPONSIVE ADJUSTMENTS ==================== */
@media screen and (max-width: 480px) {
  body.kochehe-body {
    padding: 15px 10px 60px;
  }

  #terminal {
    width: 95%;
  }

  #terminal-text {
    font-size: 11.5px;
  }

  #blurred-box {
    padding: 20px 14px 18px;
    border-radius: 20px;
    border-width: 2.5px;
  }

  .avatar-wrap {
    width: 105px;
    height: 105px;
  }

  #profile-picture {
    width: 90px;
    height: 90px;
  }

  #avatar-frame {
    width: 115px;
    height: 115px;
  }

  #username-container {
    font-size: 22px;
  }

  .lang-container img {
    width: 26px;
    height: 26px;
  }

  .links a {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }

  .floating-music-circle {
    bottom: 16px;
    right: 16px;
  }
}
