/* ==============================================================================
   TRIỆU VĂN DŨNG - STYLE.CSS (CODED FROM SCRATCH)
   HACKGAMEVIET.CLICK // CYBERNETIC DEVELOPER PORTFOLIO
   ============================================================================== */

:root {
  /* Obsidian Cyber Palette */
  --bg-deep: #05070c;
  --bg-card: rgba(11, 16, 27, 0.72);
  --bg-card-hover: rgba(16, 23, 38, 0.9);
  --bg-surface: #0b0f19;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-active: rgba(0, 242, 254, 0.5);
  --border-glow: rgba(0, 242, 254, 0.25);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Neon Spectral Highlights */
  --cyan-bright: #00f2fe;
  --cyan-glow: rgba(0, 242, 254, 0.35);
  --violet-bright: #7928ca;
  --violet-glow: rgba(121, 40, 202, 0.3);
  --emerald-bright: #10b981;
  --pink-bright: #ff007a;

  --accent-holo: linear-gradient(135deg, #00f2fe 0%, #7928ca 50%, #ff007a 100%);
  --tele-blue: #229ed9;
  --zalo-blue: #0068ff;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-head: 'Space Grotesk', var(--font-sans);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;

  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-deep: #f8fafc;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-surface: #ffffff;

  --border-subtle: rgba(226, 232, 240, 0.9);
  --border-active: rgba(0, 180, 216, 0.6);
  --border-glow: rgba(0, 180, 216, 0.2);

  --text-main: #07090e;
  --text-muted: #475569;
  --text-dim: #8292a4;

  --cyan-bright: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.2);
  --violet-bright: #7c3aed;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==============================================================================
   1. SCROLL PROGRESS INDICATOR (MODERN WEB GUIDANCE)
   ============================================================================== */
.scroll-progress-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent-holo);
  z-index: 999999;
  transform-origin: 0 50%;
  transform: scaleX(0);
  box-shadow: 0 0 12px var(--cyan-bright), 0 0 24px var(--violet-bright);
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    @keyframes grow-scroll-line {
      from { transform: scaleX(0); }
      to { transform: scaleX(1); }
    }
    .scroll-progress-line {
      animation: grow-scroll-line auto linear;
      animation-timeline: scroll();
    }
  }
}

/* ==============================================================================
   2. CUSTOM PRECISION DUAL CURSOR
   ============================================================================== */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  background-color: var(--cyan-bright);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000000;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--cyan-bright);
}

.custom-cursor-aura {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(0, 242, 254, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  transform: translate(-50%, -50%);
  transition: width 0.22s ease, height 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.custom-cursor-aura.cursor-expanded {
  width: 56px;
  height: 56px;
  border-color: var(--cyan-bright);
  background-color: rgba(0, 242, 254, 0.08);
  box-shadow: 0 0 20px var(--cyan-glow);
}

.custom-cursor-aura.cursor-pressed {
  transform: translate(-50%, -50%) scale(0.85);
  border-color: var(--pink-bright);
}

@media (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-aura {
    display: none !important;
  }
}

/* ==============================================================================
   3. BACKGROUND CANVAS & ATMOSPHERIC LAYERS
   ============================================================================== */
.background-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.grid-mesh-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background-size: 44px 44px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 80%);
}

.spotlight-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(600px circle at var(--spot-x, 50%) var(--spot-y, 30%), rgba(0, 242, 254, 0.06), transparent 80%);
}

/* ==============================================================================
   4. NAVIGATION HEADER
   ============================================================================== */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(5, 7, 12, 0.8);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-fast);
}

[data-theme="light"] .app-header {
  background: rgba(248, 250, 252, 0.88);
}

.app-header.scrolled {
  border-bottom-color: rgba(0, 242, 254, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
}

.terminal-prefix {
  color: var(--cyan-bright);
}

.brand-title {
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.15);
  color: var(--cyan-bright);
  border: 1px solid rgba(0, 242, 254, 0.3);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.header-nav-link:hover {
  color: var(--cyan-bright);
}

.nav-donate-pill {
  color: #fb7185;
  font-weight: 700;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ping-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #10b981;
}

.ping-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: beaconPulse 2s infinite;
}

@keyframes beaconPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.btn-icon-control {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon-control:hover {
  border-color: var(--cyan-bright);
  background: var(--bg-card-hover);
  box-shadow: 0 0 12px var(--cyan-glow);
  transform: translateY(-2px);
}

.theme-icon {
  width: 17px;
  height: 17px;
}

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ==============================================================================
   5. MAIN WRAPPER & SCROLL REVEAL
   ============================================================================== */
.main-wrapper {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.65s ease;
  will-change: opacity, transform, filter;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ==============================================================================
   6. HERO SECTION: BENTO GRID IDENTITY
   ============================================================================== */
.hero-bento-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.bento-profile-hero {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-profile-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-holo);
}

.terminal-header-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
}

.mac-buttons {
  display: flex;
  gap: 6px;
}

.btn-circle {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.btn-circle.c-red { background: #ef4444; }
.btn-circle.c-yellow { background: #eab308; }
.btn-circle.c-green { background: #22c55e; }

.terminal-shell-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.terminal-status-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--cyan-bright);
  font-weight: 700;
}

.profile-main-layout {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

.avatar-cyber-frame {
  position: relative;
  flex-shrink: 0;
}

.radar-sweep-effect {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 1.5px dashed rgba(0, 242, 254, 0.4);
  animation: radarSpin 18s linear infinite;
}

@keyframes radarSpin {
  100% { transform: rotate(360deg); }
}

.avatar-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(0, 242, 254, 0.5);
  box-shadow: 0 0 25px var(--cyan-glow);
  background: var(--bg-surface);
  transition: var(--transition-fast);
}

.avatar-cyber-frame:hover .avatar-photo {
  transform: scale(1.05);
  border-color: var(--cyan-bright);
}

.avatar-online-flag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--emerald-bright);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 10px var(--emerald-bright);
}

.profile-details-column {
  flex: 1;
}

.hero-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-name {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 40%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, #090d16 40%, var(--cyan-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-verified-mark {
  color: var(--cyan-bright);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px var(--cyan-glow));
}

.role-tagline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--cyan-bright);
  font-weight: 700;
}

.role-arrow {
  color: var(--pink-bright);
}

.profile-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 12px;
  line-height: 1.65;
}

.hero-badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-chip {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.22);
  color: var(--cyan-bright);
  transition: var(--transition-fast);
}

.hero-chip:hover {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--cyan-bright);
  transform: translateY(-2px);
}

.hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.social-links-deck {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.deck-social-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.deck-social-btn:hover {
  color: #ffffff;
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
  box-shadow: 0 0 16px var(--cyan-glow);
  transform: translateY(-3px);
}

.deck-social-btn svg {
  width: 19px;
  height: 19px;
}

.hero-action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-cyber-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: var(--cyan-bright);
  color: #05070c;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px var(--cyan-glow);
  transition: var(--transition-fast);
}

.btn-cyber-primary:hover {
  background: #38bdf8;
  box-shadow: 0 0 25px var(--cyan-glow);
  transform: translateY(-2px);
}

.btn-cyber-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-cyber-outline:hover {
  border-color: var(--cyan-bright);
  background: rgba(0, 242, 254, 0.08);
}

/* Side Column Bento Metrics */
.bento-side-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bento-metric-card {
  padding: 18px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.metric-accent-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 24px;
  height: 24px;
  border-top: 2px solid var(--cyan-bright);
  border-right: 2px solid var(--cyan-bright);
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.metric-number {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--cyan-bright);
  text-shadow: 0 0 15px var(--cyan-glow);
  margin: 2px 0;
}

.metric-note {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.bento-hotkey-helper {
  padding: 16px;
  background: rgba(0, 0, 0, 0.35);
}

.hotkey-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan-bright);
  font-weight: 700;
  margin-bottom: 8px;
}

.hotkey-items {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

kbd {
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  color: var(--cyan-bright);
  font-weight: 700;
}

/* ==============================================================================
   7. SECTION HEADERS & CATEGORY TABS
   ============================================================================== */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan-bright);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.section-chip.chip-pink {
  color: var(--pink-bright);
}

.section-main-heading {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-subtext {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.category-filter-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-tab-btn {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.cat-tab-btn:hover {
  color: var(--text-main);
  border-color: rgba(0, 242, 254, 0.3);
}

.cat-tab-btn.active {
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
  color: #05070c;
  font-weight: 700;
  box-shadow: 0 0 12px var(--cyan-glow);
}

/* ==============================================================================
   8. SKILLS MATRIX: CIRCUITS & RADAR
   ============================================================================== */
.skills-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  perspective: 1000px;
}

.skill-circuit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-circuit-card:hover {
  border-color: var(--cyan-bright);
  box-shadow: 0 14px 35px -10px rgba(0, 242, 254, 0.25);
  transform: translateY(-5px);
}

.circuit-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.circuit-gauge-box {
  width: 52px;
  height: 52px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gauge-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4;
}

.gauge-bar {
  fill: none;
  stroke: var(--cyan-bright);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dasharray 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 0 4px var(--cyan-bright));
}

.gauge-score-text {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--cyan-bright);
}

.circuit-meta-col {
  flex: 1;
}

.circuit-tier-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(121, 40, 202, 0.2);
  color: #c4b5fd;
  border: 1px solid rgba(121, 40, 202, 0.35);
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 4px;
}

.circuit-title {
  font-family: var(--font-head);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.circuit-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.circuit-stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.stack-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* ==============================================================================
   9. UPLINK STATIONS: TELEGRAM & ZALO
   ============================================================================== */
.uplink-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 20px;
}

.uplink-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.uplink-card:hover {
  transform: translateY(-5px);
}

.tele-uplink-card {
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.18) 0%, rgba(34, 158, 217, 0.02) 100%);
}
.tele-uplink-card:hover {
  border-color: rgba(34, 158, 217, 0.6);
  box-shadow: 0 14px 35px -10px rgba(34, 158, 217, 0.35);
}

.zalo-uplink-card {
  background: linear-gradient(135deg, rgba(0, 104, 255, 0.18) 0%, rgba(0, 104, 255, 0.02) 100%);
}
.zalo-uplink-card:hover {
  border-color: rgba(0, 104, 255, 0.6);
  box-shadow: 0 14px 35px -10px rgba(0, 104, 255, 0.35);
}

.uplink-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.uplink-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.tele-chip {
  background: rgba(34, 158, 217, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(34, 158, 217, 0.4);
}

.zalo-chip {
  background: rgba(0, 104, 255, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(0, 104, 255, 0.4);
}

.uplink-status-ping {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ping-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.ping-dot.green { background: #10b981; box-shadow: 0 0 6px #10b981; }
.ping-dot.blue { background: #38bdf8; box-shadow: 0 0 6px #38bdf8; }

.uplink-body {
  display: flex;
  align-items: center;
  gap: 16px;
}

.uplink-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.tele-color-box {
  background: linear-gradient(135deg, #229ed9 0%, #15719e 100%);
}

.zalo-color-box {
  background: linear-gradient(135deg, #0068ff 0%, #0044ab 100%);
}

.uplink-icon-box svg {
  width: 30px;
  height: 30px;
}

.uplink-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.uplink-subname {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.uplink-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 16px 0 20px;
}

.uplink-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-uplink {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-tele-join {
  background: var(--tele-blue);
}
.btn-tele-join:hover {
  background: #1b86ba;
  box-shadow: 0 0 20px rgba(34, 158, 217, 0.45);
}

.btn-zalo-join {
  background: var(--zalo-blue);
}
.btn-zalo-join:hover {
  background: #0052cc;
  box-shadow: 0 0 20px rgba(0, 104, 255, 0.45);
}

.arrow-svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-uplink:hover .arrow-svg {
  transform: translateX(4px);
}

.btn-copy-chip {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-copy-chip svg {
  width: 18px;
  height: 18px;
}

/* ==============================================================================
   10. PROJECTS & SYSTEMS BENTO
   ============================================================================== */
.projects-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

.project-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.project-item-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 242, 254, 0.4);
  box-shadow: 0 16px 35px -10px rgba(0, 0, 0, 0.5);
}

.project-cover-wrap {
  position: relative;
  height: 165px;
  overflow: hidden;
  background: var(--bg-surface);
}

.project-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-item-card:hover .project-cover-img {
  transform: scale(1.08);
}

.project-status-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--cyan-bright);
}

.project-info-block {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-heading {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.project-summary {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.55;
  flex: 1;
}

.project-tags-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 18px;
}

.p-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-dim);
}

.project-buttons-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.btn-open-proj {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan-bright);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.btn-open-proj:hover {
  background: var(--cyan-bright);
  color: #05070c;
  box-shadow: 0 0 15px var(--cyan-glow);
}

.btn-open-code {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition-fast);
}

.btn-open-code:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.btn-open-code svg {
  width: 17px;
  height: 17px;
}

/* ==============================================================================
   11. SUPPORT TERMINAL & VIETQR
   ============================================================================== */
.donate-terminal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-top: 2px solid var(--pink-bright);
}

.terminal-tab-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 18px;
  margin-bottom: 26px;
  overflow-x: auto;
}

.term-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.term-tab:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
}

.term-tab.active {
  background: rgba(255, 0, 122, 0.12);
  border-color: rgba(255, 0, 122, 0.4);
  color: var(--pink-bright);
  font-weight: 700;
}

.momo-m {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: #d82d8b;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
}

.term-panel {
  display: none;
}
.term-panel.active {
  display: block;
}

.terminal-two-col {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: start;
}

.terminal-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.napas-qr-holder {
  position: relative;
  width: 230px;
  height: 230px;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.momo-tint-border {
  border: 3px solid #d82d8b;
}

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

.laser-scanner-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--cyan-bright);
  box-shadow: 0 0 10px var(--cyan-bright);
  animation: scanLaser 3.5s ease-in-out infinite alternate;
}

@keyframes scanLaser {
  0% { top: 5%; opacity: 0.8; }
  100% { top: 95%; opacity: 0.8; }
}

.qr-target-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 3px solid var(--cyan-bright);
  pointer-events: none;
}
.qr-target-corner.t-l { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.qr-target-corner.t-r { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.qr-target-corner.b-l { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.qr-target-corner.b-r { bottom: -2px; right: -2px; border-left: none; border-top: none; }

.amount-picker-row {
  width: 100%;
  text-align: center;
}

.picker-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 6px;
}

.chip-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.amount-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 6px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.amount-chip:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.amount-chip.active {
  background: var(--cyan-bright);
  border-color: var(--cyan-bright);
  color: #05070c;
  font-weight: 800;
  box-shadow: 0 0 12px var(--cyan-glow);
}

.btn-enlarge-qr {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-enlarge-qr:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan-bright);
  color: var(--text-main);
}

.terminal-credentials-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cred-row {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
}

.cred-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.cred-val-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bank-pill-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  background: #002d72;
  color: #ffffff;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.cred-highlight {
  font-weight: 700;
  color: var(--cyan-bright);
  font-size: 1.05rem;
}

.cred-mono-code {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.03em;
}

.cred-val-caps {
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
}

.btn-copy-field {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--cyan-bright);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-copy-field:hover {
  background: var(--cyan-bright);
  color: #05070c;
  box-shadow: 0 0 10px var(--cyan-glow);
}

.napas-system-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.notice-svg {
  color: var(--cyan-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

.crypto-card-deck {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.crypto-sub-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.crypto-sub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.crypto-symbol-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.crypto-net-name {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.crypto-address {
  font-size: 0.95rem;
  word-break: break-all;
}

/* ==============================================================================
   12. APP FOOTER & CIRCULAR PROGRESS BUTTON
   ============================================================================== */
.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-meta {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-host {
  color: var(--cyan-bright);
  font-weight: 700;
  font-family: var(--font-mono);
}

.footer-tagline {
  color: var(--text-dim);
  font-size: 0.78rem;
  margin-top: 4px;
}

.btn-scroll-top {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.btn-scroll-top:hover {
  border-color: var(--cyan-bright);
  box-shadow: 0 0 15px var(--cyan-glow);
  transform: translateY(-3px);
}

.top-progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3;
}

.ring-fg-path {
  fill: none;
  stroke: var(--cyan-bright);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.15s ease;
}

.chevron-up-icon {
  width: 18px;
  height: 18px;
  z-index: 1;
}

/* ==============================================================================
   13. NATIVE MODAL DIALOG (MODERN WEB GUIDANCE: closedby="any")
   ============================================================================== */
.native-qr-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  background: transparent;
  color: var(--text-main);
  max-width: 460px;
  width: 90vw;
  margin: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.native-qr-dialog[open] {
  opacity: 1;
  transform: scale(1);
}

dialog::backdrop {
  background-color: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.dialog-shell {
  background: #0d121c;
  border: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

[data-theme="light"] .dialog-shell {
  background: #ffffff;
}

.dialog-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.dialog-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dialog-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 8px var(--cyan-bright);
}

.dialog-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan-bright);
}

.btn-dialog-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.btn-dialog-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.btn-dialog-close svg {
  width: 20px;
  height: 20px;
}

.dialog-main-stage {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dialog-qr-view {
  width: 260px;
  height: 260px;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog-large-qr {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.dialog-creds-preview {
  margin-top: 18px;
}

.dialog-bank-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--cyan-bright);
}

.dialog-acc-title {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-main);
  margin-top: 4px;
}

.dialog-instruction {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.dialog-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}

/* ==============================================================================
   14. HUD TOAST NOTIFICATION
   ============================================================================== */
.hud-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: rgba(11, 16, 27, 0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--cyan-bright);
  color: #ffffff;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 20px var(--cyan-glow);
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

[data-theme="light"] .hud-toast {
  background: #ffffff;
  color: #07090e;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.hud-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast-indicator-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.18);
  color: var(--cyan-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-indicator-icon svg {
  width: 15px;
  height: 15px;
}

.toast-content-col {
  display: flex;
  flex-direction: column;
}

.toast-status-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--cyan-bright);
  font-weight: 800;
}

.toast-message-body {
  font-size: 0.88rem;
  font-weight: 600;
}

/* ==============================================================================
   15. RESPONSIVE BREAKPOINTS
   ============================================================================== */
@media (max-width: 860px) {
  .header-nav {
    display: none;
  }

  .hero-bento-grid {
    grid-template-columns: 1fr;
  }

  .main-wrapper {
    padding: 16px 14px 60px;
    gap: 44px;
  }

  .profile-main-layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-name-row {
    justify-content: center;
  }

  .role-tagline {
    justify-content: center;
  }

  .hero-badge-cloud {
    justify-content: center;
  }

  .hero-card-footer {
    flex-direction: column;
    align-items: center;
  }

  .terminal-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .terminal-qr-box {
    margin: 0 auto;
  }

  .app-footer {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }
}
