/* ==========================================================================
   DESIGN SYSTEM & THEME TOKENS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Color Palette - Dark Mode (Default) */
  --bg-primary: #0a0d14;
  --bg-secondary: #121824;
  --bg-card: rgba(22, 30, 46, 0.7);
  --bg-card-hover: rgba(30, 41, 62, 0.85);
  --bg-card-solid: #161e2e;
  --bg-input: rgba(18, 24, 36, 0.9);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-highlight: rgba(129, 140, 248, 0.3);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --accent-primary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --accent-cyan-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  --accent-glow: rgba(99, 102, 241, 0.25);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  
  --badge-orange-bg: rgba(249, 115, 22, 0.15);
  --badge-orange-text: #fb923c;
  --badge-green-bg: rgba(16, 185, 129, 0.15);
  --badge-green-text: #34d399;
  --badge-blue-bg: rgba(59, 130, 246, 0.15);
  --badge-blue-text: #60a5fa;
  --badge-purple-bg: rgba(168, 85, 247, 0.15);
  --badge-purple-text: #c084fc;
  --badge-indigo-bg: rgba(99, 102, 241, 0.15);
  --badge-indigo-text: #818cf8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 35px var(--accent-glow);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ==========================================================================
   ACCENT PALETTES [data-accent]
   ========================================================================== */
[data-accent="purple"], :root {
  --accent-primary: #6366f1;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --accent-glow: rgba(99, 102, 241, 0.25);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-highlight: rgba(129, 140, 248, 0.3);
}

[data-accent="cyan"] {
  --accent-primary: #06b6d4;
  --accent-gradient: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  --accent-glow: rgba(6, 182, 212, 0.25);
  --border-focus: rgba(6, 182, 212, 0.5);
  --border-highlight: rgba(56, 189, 248, 0.35);
}

[data-accent="sunset"] {
  --accent-primary: #f43f5e;
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #f97316 50%, #eab308 100%);
  --accent-glow: rgba(244, 63, 94, 0.25);
  --border-focus: rgba(244, 63, 94, 0.5);
  --border-highlight: rgba(251, 113, 133, 0.35);
}

[data-accent="emerald"] {
  --accent-primary: #10b981;
  --accent-gradient: linear-gradient(135deg, #10b981 0%, #059669 50%, #06b6d4 100%);
  --accent-glow: rgba(16, 185, 129, 0.25);
  --border-focus: rgba(16, 185, 129, 0.5);
  --border-highlight: rgba(52, 211, 153, 0.35);
}

[data-accent="sakura"] {
  --accent-primary: #f472b6;
  --accent-gradient: linear-gradient(135deg, #f472b6 0%, #ec4899 50%, #c084fc 100%);
  --accent-glow: rgba(244, 114, 182, 0.25);
  --border-focus: rgba(244, 114, 182, 0.5);
  --border-highlight: rgba(249, 168, 212, 0.35);
}

[data-accent="gold"] {
  --accent-primary: #f59e0b;
  --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #b45309 100%);
  --accent-glow: rgba(245, 158, 11, 0.25);
  --border-focus: rgba(245, 158, 11, 0.5);
  --border-highlight: rgba(252, 211, 77, 0.35);
}

/* ==========================================================================
   CORNER RADIUS [data-radius]
   ========================================================================== */
[data-radius="sharp"] {
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
}

[data-radius="modern"] {
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

[data-radius="round"] {
  --radius-sm: 16px;
  --radius-md: 26px;
  --radius-lg: 36px;
}

/* ==========================================================================
   VISUAL STYLE PRESETS [data-style]
   ========================================================================== */

/* 1. ANIME / SAKURA DREAM */
[data-style="anime"] {
  --bg-primary: #0f0c1b;
  --bg-secondary: #1a162b;
  --bg-card: rgba(30, 24, 52, 0.75);
  --bg-card-hover: rgba(42, 33, 73, 0.88);
  --border-subtle: rgba(244, 114, 182, 0.18);
  --border-highlight: rgba(244, 114, 182, 0.4);
  --text-primary: #fff0f5;
  --text-secondary: #d8b4e2;
  --accent-primary: #f472b6;
  --accent-gradient: linear-gradient(135deg, #ff758c 0%, #ff7eb3 50%, #b185db 100%);
  --accent-glow: rgba(255, 117, 140, 0.3);
  --shadow-glow: 0 0 35px rgba(255, 117, 140, 0.25);
}

[data-style="anime"][data-theme="light"] {
  --bg-primary: #fff5f8;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #ffffff;
  --border-subtle: rgba(244, 114, 182, 0.25);
  --border-highlight: rgba(244, 114, 182, 0.5);
  --text-primary: #4a154b;
  --text-secondary: #7e3b70;
}

/* 2. MANGA / COMIC EDITION (REFINED & CRISP) */
[data-style="manga"] {
  --bg-primary: #121216;
  --bg-secondary: #1a1a22;
  --bg-card: rgba(26, 26, 34, 0.88);
  --bg-card-hover: rgba(36, 36, 48, 0.95);
  --border-subtle: rgba(255, 255, 255, 0.15);
  --border-highlight: #ffffff;
  --border-focus: #ffffff;
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --accent-primary: #f8fafc;
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  --accent-glow: rgba(255, 255, 255, 0.15);
  --shadow-md: 4px 4px 0px rgba(0, 0, 0, 0.4);
}

[data-style="manga"] .bento-card,
[data-style="manga"] .post-tile-card,
[data-style="manga"] .profile-card-inner {
  border: 2px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5) !important;
}

[data-style="manga"][data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-subtle: #0f172a;
  --border-highlight: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --accent-primary: #0f172a;
  --accent-gradient: linear-gradient(135deg, #0f172a 0%, #334155 100%);
}

[data-style="manga"][data-theme="light"] .bento-card,
[data-style="manga"][data-theme="light"] .post-tile-card,
[data-style="manga"][data-theme="light"] .profile-card-inner {
  border: 2px solid #0f172a !important;
  box-shadow: 4px 4px 0px #0f172a !important;
}

/* 3. CYBERPUNK / NEON 2077 */
[data-style="cyberpunk"] {
  --bg-primary: #05050a;
  --bg-secondary: #0d0d1a;
  --bg-card: rgba(13, 13, 26, 0.85);
  --bg-card-hover: rgba(22, 22, 44, 0.95);
  --border-subtle: rgba(0, 242, 254, 0.2);
  --border-highlight: #ff007f;
  --border-focus: #00f2fe;
  --text-primary: #00f2fe;
  --text-secondary: #ff77bc;
  --accent-primary: #ff007f;
  --accent-gradient: linear-gradient(135deg, #ff007f 0%, #9d00ff 50%, #00f2fe 100%);
  --accent-glow: rgba(255, 0, 127, 0.35);
  --shadow-glow: 0 0 35px rgba(0, 242, 254, 0.3), 0 0 15px rgba(255, 0, 127, 0.3);
}

/* 4. MINIMAL LUXURY */
[data-style="minimal"] {
  --bg-primary: #0c0d0e;
  --bg-secondary: #16181a;
  --bg-card: rgba(22, 24, 26, 0.7);
  --bg-card-hover: rgba(30, 33, 36, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-highlight: rgba(212, 175, 55, 0.4);
  --accent-primary: #d4af37;
  --accent-gradient: linear-gradient(135deg, #f5d77f 0%, #d4af37 50%, #aa820a 100%);
  --accent-glow: rgba(212, 175, 55, 0.2);
}

[data-style="minimal"][data-theme="light"] {
  --bg-primary: #faf9f6;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --border-subtle: rgba(0, 0, 0, 0.06);
  --border-highlight: rgba(212, 175, 55, 0.5);
  --text-primary: #1a1a1a;
  --text-secondary: #5a5a5a;
}

/* 5. OCEAN DEEP */
[data-style="ocean"] {
  --bg-primary: #020b14;
  --bg-secondary: #041728;
  --bg-card: rgba(4, 23, 40, 0.75);
  --bg-card-hover: rgba(7, 36, 62, 0.88);
  --border-subtle: rgba(0, 245, 212, 0.15);
  --border-highlight: rgba(0, 245, 212, 0.4);
  --accent-primary: #00f5d4;
  --accent-gradient: linear-gradient(135deg, #00f5d4 0%, #00bbf9 50%, #0077b6 100%);
  --accent-glow: rgba(0, 245, 212, 0.25);
}

/* 6. GALAXY / COSMIC NEBULA */
[data-style="galaxy"] {
  --bg-primary: #080517;
  --bg-secondary: #120b2e;
  --bg-card: rgba(22, 14, 52, 0.75);
  --bg-card-hover: rgba(35, 22, 80, 0.88);
  --border-subtle: rgba(168, 85, 247, 0.2);
  --border-highlight: rgba(236, 72, 153, 0.45);
  --text-primary: #f8fafc;
  --text-secondary: #c084fc;
  --accent-primary: #c084fc;
  --accent-gradient: linear-gradient(135deg, #a855f7 0%, #ec4899 50%, #6366f1 100%);
  --accent-glow: rgba(168, 85, 247, 0.35);
  --shadow-glow: 0 0 35px rgba(168, 85, 247, 0.3);
}

/* 7. VAPORWAVE / SUNSET 80S */
[data-style="vaporwave"] {
  --bg-primary: #120826;
  --bg-secondary: #1d0f3a;
  --bg-card: rgba(33, 17, 66, 0.8);
  --bg-card-hover: rgba(48, 25, 94, 0.9);
  --border-subtle: rgba(244, 63, 94, 0.25);
  --border-highlight: #ff007f;
  --text-primary: #fff1f2;
  --text-secondary: #fda4af;
  --accent-primary: #f43f5e;
  --accent-gradient: linear-gradient(135deg, #f43f5e 0%, #fb923c 50%, #facc15 100%);
  --accent-glow: rgba(244, 63, 94, 0.35);
}

/* 8. EMERALD ZEN / FOREST MOSS */
[data-style="forest"] {
  --bg-primary: #05140d;
  --bg-secondary: #0b2419;
  --bg-card: rgba(11, 38, 26, 0.78);
  --bg-card-hover: rgba(16, 56, 38, 0.9);
  --border-subtle: rgba(16, 185, 129, 0.2);
  --border-highlight: rgba(52, 211, 153, 0.45);
  --text-primary: #ecfdf5;
  --text-secondary: #6ee7b7;
  --accent-primary: #10b981;
  --accent-gradient: linear-gradient(135deg, #34d399 0%, #10b981 50%, #047857 100%);
  --accent-glow: rgba(16, 185, 129, 0.3);
}

/* 9. WARM COFFEE / RETRO VINTAGE */
[data-style="retro"] {
  --bg-primary: #17110c;
  --bg-secondary: #261c14;
  --bg-card: rgba(44, 33, 24, 0.8);
  --bg-card-hover: rgba(61, 46, 34, 0.92);
  --border-subtle: rgba(217, 119, 6, 0.2);
  --border-highlight: rgba(245, 158, 11, 0.4);
  --text-primary: #fef3c7;
  --text-secondary: #d97706;
  --accent-primary: #d97706;
  --accent-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #92400e 100%);
  --accent-glow: rgba(217, 119, 6, 0.25);
}

[data-style="retro"][data-theme="light"] {
  --bg-primary: #fdfbf7;
  --bg-secondary: #fef3c7;
  --bg-card: #ffffff;
  --bg-card-hover: #fffbeb;
  --border-subtle: rgba(180, 83, 9, 0.15);
  --border-highlight: #b45309;
  --text-primary: #451a03;
  --text-secondary: #78350f;
}

/* 10. AURORA CRYSTAL / IRIDESCENT */
[data-style="aurora"] {
  --bg-primary: #060c18;
  --bg-secondary: #0d172c;
  --bg-card: rgba(15, 27, 52, 0.75);
  --bg-card-hover: rgba(24, 42, 80, 0.88);
  --border-subtle: rgba(56, 189, 248, 0.2);
  --border-highlight: rgba(168, 85, 247, 0.45);
  --text-primary: #f0f9ff;
  --text-secondary: #7dd3fc;
  --accent-primary: #38bdf8;
  --accent-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --accent-glow: rgba(56, 189, 248, 0.3);
}

/* 11. MIDNIGHT STEALTH / MATTE BLACK */
[data-style="stealth"] {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: rgba(16, 16, 16, 0.9);
  --bg-card-hover: rgba(28, 28, 28, 0.98);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.3);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --accent-primary: #e2e8f0;
  --accent-gradient: linear-gradient(135deg, #f8fafc 0%, #94a3b8 100%);
  --accent-glow: rgba(255, 255, 255, 0.15);
}

/* 12. NEO-BRUTALIST / POP ART */
[data-style="brutalism"] {
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --bg-card: #ffe600;
  --bg-card-hover: #ffea2e;
  --border-subtle: #000000;
  --border-highlight: #ffffff;
  --text-primary: #000000;
  --text-secondary: #222222;
  --accent-primary: #ff0055;
  --accent-gradient: linear-gradient(135deg, #ff0055 0%, #ff5500 100%);
  --accent-glow: rgba(255, 0, 85, 0.35);
}

[data-style="brutalism"] .bento-card,
[data-style="brutalism"] .post-tile-card,
[data-style="brutalism"] .profile-card-inner,
[data-style="brutalism"] .btn-primary {
  border: 3px solid #000000 !important;
  box-shadow: 5px 5px 0px #000000 !important;
  color: #000000 !important;
}

[data-style="brutalism"] .post-title,
[data-style="brutalism"] .link-title,
[data-style="brutalism"] .profile-name {
  color: #000000 !important;
}

/* ==========================================================================
   BACKGROUND EFFECTS [data-bg-effect]
   ========================================================================== */
[data-bg-effect="grid"] .bg-ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 40%, transparent 80%);
}

[data-bg-effect="manga-dots"] .bg-ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  mask-image: radial-gradient(circle at 50% 40%, black 50%, transparent 90%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black 50%, transparent 90%);
}

[data-theme="light"][data-bg-effect="manga-dots"] .bg-ambient::before {
  background-image: radial-gradient(rgba(0, 0, 0, 0.12) 1.2px, transparent 1.2px);
}

[data-bg-effect="clean"] .ambient-blob-1,
[data-bg-effect="clean"] .ambient-blob-2,
[data-bg-effect="clean"] .ambient-blob-3 {
  opacity: 0.15;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f1f5f9;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.85);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-solid: #ffffff;
  --bg-input: #ffffff;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(99, 102, 241, 0.6);
  --border-highlight: rgba(99, 102, 241, 0.2);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 25px rgba(99, 102, 241, 0.18);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 4rem;
}

/* Ambient Background Glow Effect */
.bg-ambient {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-blob-1 {
  position: absolute;
  top: -150px;
  left: 20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 70%);
  filter: blur(60px);
  border-radius: 50%;
  animation: floatSlow 12s ease-in-out infinite alternate;
}

.ambient-blob-2 {
  position: absolute;
  top: 15%;
  right: 15%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.12) 0%, rgba(236, 72, 153, 0) 70%);
  filter: blur(70px);
  border-radius: 50%;
  animation: floatSlow 15s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.1); }
}

/* ==========================================================================
   LAYOUT CONTAINER
   ========================================================================== */
.bio-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ==========================================================================
   TOP FLOATING ACTION CONTROLS
   ========================================================================== */
.top-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.icon-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* ==========================================================================
   PROFILE HERO CARD (BENTO TOP)
   ========================================================================== */
.profile-card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.profile-card:hover {
  border-color: var(--border-highlight);
}

.profile-cover {
  width: 100%;
  height: 130px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.profile-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10, 13, 20, 0.1) 0%, var(--bg-card-solid) 100%);
}

.profile-content {
  padding: 0 1.5rem 1.75rem;
  margin-top: -55px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrapper {
  position: relative;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  padding: 4px;
  background: var(--accent-gradient);
  box-shadow: var(--shadow-glow);
  margin-bottom: 0.9rem;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--bg-secondary);
  border: 3px solid var(--bg-card-solid);
}

.status-indicator-dot {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 16px;
  height: 16px;
  background-color: var(--success);
  border: 3px solid var(--bg-card-solid);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}

.profile-name-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.profile-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.verified-icon {
  width: 20px;
  height: 20px;
  color: #38bdf8;
  display: inline-flex;
}

.profile-handle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.profile-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.profile-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 1.1rem;
  line-height: 1.55;
}

.profile-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 500;
  color: #a5b4fc;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.profile-stats-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.profile-stats-row:empty,
.profile-stats-row[style*="display: none"] {
  display: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.profile-status-pill:last-child {
  margin-bottom: 0.25rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   SOCIAL QUICK BAR
   ========================================================================== */
.social-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.5rem 0;
}

.social-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  transition: all var(--transition-spring);
  position: relative;
}

.social-link-btn:hover {
  transform: translateY(-4px) scale(1.1);
  border-color: var(--brand-hover-color, var(--border-highlight));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--brand-hover-color, rgba(99, 102, 241, 0.3));
}

.social-link-btn svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
  transition: transform var(--transition-spring);
}

.social-link-btn:hover svg {
  transform: scale(1.12);
}

/* ==========================================================================
   FILTER TABS & SEARCH BAR
   ========================================================================== */
.filter-search-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-box-wrapper {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  pointer-events: none;
}

.clear-search-btn {
  position: absolute;
  right: 0.8rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}

.clear-search-btn:hover {
  color: var(--text-primary);
}

.tabs-scroll-wrapper {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tabs-scroll-wrapper::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.tab-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-primary);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.tab-btn svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   CONTENT SECTION & BENTO GRID
   ========================================================================== */
.content-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-left: 0.2rem;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
}

.section-badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: var(--border-subtle);
  color: var(--text-muted);
}

/* ----------------- LINK CARDS ----------------- */
.links-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

.link-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 0;
}

.link-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.link-card.highlight {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(22, 30, 46, 0.8) 100%);
}

.link-card-left {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.link-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-spring), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.link-card:hover .link-icon-box {
  transform: scale(1.08);
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.link-icon-box svg {
  width: 30px;
  height: 30px;
  display: block;
}

.link-text-group {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.link-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.link-title {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-primary);
}

.link-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-orange { background: var(--badge-orange-bg); color: var(--badge-orange-text); border: 1px solid rgba(249, 115, 22, 0.3); }
.badge-green { background: var(--badge-green-bg); color: var(--badge-green-text); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-blue { background: var(--badge-blue-bg); color: var(--badge-blue-text); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-purple { background: var(--badge-purple-bg); color: var(--badge-purple-text); border: 1px solid rgba(168, 85, 247, 0.3); }
.badge-indigo { background: var(--badge-indigo-bg); color: var(--badge-indigo-text); border: 1px solid rgba(99, 102, 241, 0.3); }

.link-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow-btn {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.link-card:hover .link-arrow-btn {
  background: var(--text-primary);
  color: var(--bg-primary);
  transform: translateX(3px);
}

.link-arrow-btn svg {
  width: 16px;
  height: 16px;
}

/* ----------------- LINKS GRID (2 KHỐI 1 HÀNG - HÌNH LÀ ICON) ----------------- */
.links-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.link-grid-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-spring);
  box-shadow: var(--shadow-sm);
  min-height: 165px;
}

.link-grid-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.link-grid-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.35), var(--shadow-glow);
}

.link-grid-card:hover::before {
  opacity: 1;
}

.link-grid-card.highlight {
  border-color: rgba(245, 158, 11, 0.4);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 100%);
}

.link-grid-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.link-grid-icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-spring), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.link-grid-card:hover .link-grid-icon-tile {
  transform: scale(1.08);
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.35);
}

.link-grid-icon-tile svg {
  width: 34px;
  height: 34px;
  display: block;
}

.link-grid-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  margin-bottom: 0.75rem;
}

.link-grid-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-grid-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-grid-card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-primary);
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition-fast);
}

.link-grid-card-action svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition-fast);
}

.link-grid-card:hover .link-grid-card-action svg {
  transform: translate(2px, -2px);
}

/* ----------------- POST CARDS (BLOG / TIPS) - 2 COLUMNS SQUARE TILES ----------------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.post-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.post-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
}

.post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.post-card:hover .post-thumb {
  transform: scale(1.08);
}

.post-read-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 13, 20, 0.8);
  backdrop-filter: blur(8px);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 600;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  z-index: 2;
}

.post-body {
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.post-tags {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

.post-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.post-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-summary {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ----------------- PROMPT & WORKFLOW CARDS ----------------- */
.prompt-card {
  cursor: pointer;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.prompt-preview-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.prompt-card:hover .prompt-preview-box {
  border-color: rgba(99, 102, 241, 0.45);
  background: rgba(0, 0, 0, 0.4);
}

.prompt-preview-header {
  background: rgba(15, 23, 42, 0.9);
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.prompt-preview-content {
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.prompt-text-snippet {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  margin: 0;
}

.prompt-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}

.btn-copy-prompt {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: var(--accent-gradient);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
  transition: transform var(--transition-fast), filter var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-copy-prompt:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.42);
}

.btn-copy-prompt:active {
  transform: scale(0.96);
}

.btn-share-prompt {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.btn-share-prompt:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: var(--border-highlight);
}

/* ----------------- AI MODEL BADGES & OVERLAYS ----------------- */
.media-video-wrapper {
  position: relative;
}

.ai-models-container {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  max-width: calc(100% - 16px);
  z-index: 3;
  pointer-events: none;
}

.ai-model-badge {
  background: rgba(10, 15, 29, 0.88);
  backdrop-filter: blur(12px);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.prompt-card:hover .ai-model-badge {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.modal-ai-model-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.media-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
  z-index: 2;
  transition: background 0.3s ease;
}

.media-play-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease;
}

.prompt-card:hover .media-play-overlay {
  background: rgba(0, 0, 0, 0.1);
}

.prompt-card:hover .media-play-icon {
  transform: scale(1.15);
  background: var(--accent-gradient);
  border-color: #ffffff;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.post-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.post-read-action {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

/* ----------------- PROJECTS & SHOWCASE ----------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: var(--text-primary);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-md);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
}

.project-status {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.project-tech-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.project-tag {
  font-size: 0.68rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: var(--border-subtle);
  color: var(--text-muted);
}

/* ----------------- CONTACT & BOOKING CARD ----------------- */
.contact-card {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(22, 30, 46, 0.85) 100%);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: var(--shadow-md);
}

.contact-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.contact-actions-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.4rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  background: var(--accent-gradient);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 14px var(--accent-glow);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.bio-footer {
  text-align: center;
  padding: 2rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.footer-copy-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   MODAL: ARTICLE / POST READER
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.modal-sheet {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-sheet {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card-solid);
}

.modal-header-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--border-subtle);
  border: none;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-primary);
  color: #ffffff;
}

.modal-content-body {
  padding: 1.5rem;
  overflow-y: auto;
  line-height: 1.7;
}

.modal-cover-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 1.2rem;
}

.modal-article-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

/* Article Markdown Content Typography */
.article-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.2rem 0 0.5rem;
  color: var(--text-primary);
}

.article-text p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.article-text ul, .article-text ol {
  margin: 0.5rem 0 1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.article-text li {
  margin-bottom: 0.4rem;
}

.article-text blockquote {
  border-left: 3px solid var(--accent-primary);
  background: rgba(99, 102, 241, 0.08);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: #cbd5e1;
}

.article-text hr {
  border: none;
  height: 1px;
  background: var(--border-subtle);
  margin: 1.25rem 0;
}

/* Video Embeds in Article */
.video-embed-card {
  margin: 1.25rem 0;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-embed-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.video-embed-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-embed-container.vertical {
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
  min-height: 480px;
}

.video-embed-iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.video-embed-direct {
  width: 100%;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  display: block;
  background: #000000;
}

/* ==========================================================================
   MODAL: QR CODE POPUP
   ========================================================================== */
.qr-modal-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.qr-box {
  padding: 1rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: inline-flex;
}

.qr-box canvas, .qr-box svg {
  display: block;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-popup {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card-solid);
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-spring);
}

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

.toast-icon {
  width: 18px;
  height: 18px;
  color: var(--success);
}

/* ==========================================================================
   ANIMATIONS & EMPTY STATES
   ========================================================================== */
.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-subtle);
}

.empty-state svg {
  width: 36px;
  height: 36px;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

@media (max-width: 480px) {
  body {
    padding: 1rem 0.75rem 3rem;
  }
  
  .profile-card {
    border-radius: var(--radius-md);
  }
  
  .profile-content {
    padding: 0 1rem 1.25rem;
  }
  
  .avatar-wrapper {
    width: 90px;
    height: 90px;
  }

  .profile-name {
    font-size: 1.35rem;
  }

  /* 2 Columns Square Links / Nhóm on Mobile */
  .links-grid-2col {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }
  
  .link-grid-card {
    padding: 0.85rem 0.7rem 0.75rem;
    min-height: 145px;
  }

  .link-grid-icon-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .link-grid-icon-tile svg {
    width: 28px;
    height: 28px;
  }

  .link-grid-title {
    font-size: 0.84rem;
  }

  .link-grid-desc {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
  }

  .link-grid-card-action {
    font-size: 0.7rem;
    padding-top: 0.45rem;
  }

  .link-grid-card-action svg {
    width: 13px;
    height: 13px;
  }

  /* 2 Columns Square Posts on Mobile */
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }

  .post-body {
    padding: 0.65rem 0.7rem;
    gap: 0.3rem;
  }

  .post-title {
    font-size: 0.82rem;
  }

  .post-summary {
    display: none;
  }

  .post-footer {
    padding-top: 0.35rem;
  }
}
