/* ==========================================================================
   TIENXPRO HUB - CYBER NEON SPOTLIGHT DESIGN SYSTEM
   Phong cách viền phát sáng Spotlight chuẩn ảnh mẫu, Siêu mượt trên Windows
   ========================================================================== */

:root {
  --bg-primary: #070811;
  --bg-secondary: #0d0f1f;
  --card-bg: rgba(14, 16, 32, 0.78);
  --card-border: rgba(138, 92, 246, 0.22);
  --card-hover-border: rgba(168, 85, 247, 0.6);
  --glow-purple: rgba(147, 51, 234, 0.35);
  --glow-cyan: rgba(6, 182, 212, 0.35);
  --glow-emerald: rgba(16, 185, 129, 0.35);

  --accent-purple: #a855f7;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-pink: #ec4899;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --radius-card: 20px;
  --radius-pill: 9999px;
  --radius-sm: 8px;
  --radius-md: 12px;

  --transition-fast: 0.15s ease-out;
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  cursor: default;
}

a, button, .project-card, .btn-open-project, .btn-copy-id, .btn-profile-link, .btn-contact-action {
  cursor: pointer !important;
}

.btn-open-project {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(168, 85, 247, 0.18);
  border: 1px solid rgba(168, 85, 247, 0.45);
  color: #d8b4fe;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-open-project:hover {
  background: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
  transform: translateY(-1px);
}

/* ==========================================================================
   AMBIENT BACKGROUND GLOW & CYBER GRID
   ========================================================================== */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  animation: pulseAmbient 14s infinite alternate ease-in-out;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #7e22ce, transparent 70%);
  top: -80px;
  left: -120px;
}

.glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #1d4ed8, transparent 70%);
  top: 40%;
  right: -150px;
  animation-delay: -4s;
}

.glow-3 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #059669, transparent 70%);
  bottom: -100px;
  left: 25%;
  animation-delay: -8s;
}

@keyframes pulseAmbient {
  0% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 0.3; }
}

.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  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);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================================================
   THE SIGNATURE SPOTLIGHT CARD EFFECT (ÁP DỤNG ĐỒNG BỘ CHO TẤT CẢ)
   ========================================================================== */
.spotlight-card {
  position: relative;
  background: var(--card-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 40px -15px rgba(0, 0, 0, 0.7),
              0 0 25px -8px rgba(138, 92, 246, 0.25);
  overflow: hidden;
  transition: transform var(--transition-smooth),
              box-shadow var(--transition-smooth),
              border-color var(--transition-smooth);
  z-index: 2;
}

/* Dynamic mouse spotlight border */
.spotlight-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: radial-gradient(
    380px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(192, 132, 252, 0.85),
    rgba(56, 189, 248, 0.5) 40%,
    transparent 80%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 3;
}

/* Surface highlight */
.spotlight-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(
    450px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(168, 85, 247, 0.08),
    transparent 65%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.spotlight-card:hover::before,
.spotlight-card:hover::after {
  opacity: 1;
}

.spotlight-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8),
              0 0 35px -5px rgba(168, 85, 247, 0.4);
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 16px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 22px;
  border-radius: 9999px;
  background: rgba(13, 15, 31, 0.88);
  border: 1px solid rgba(138, 92, 246, 0.3);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.5);
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  background: linear-gradient(to right, #fff, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-cyan);
  display: block;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-discord-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #5865f2;
  color: #fff;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-discord-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(88, 101, 242, 0.7);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 60px 20px 30px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  z-index: 2;
}

.hero-badge-wrapper {
  margin-bottom: 20px;
  display: inline-block;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #d8b4fe;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.hero-server-icon-wrap {
  margin-bottom: 18px;
}

.hero-server-icon {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(168, 85, 247, 0.8);
  box-shadow: 0 0 35px rgba(168, 85, 247, 0.6), 0 0 15px rgba(6, 182, 212, 0.4);
  transition: transform var(--transition-smooth);
}

.hero-server-icon:hover {
  transform: scale(1.05);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -1px;
}

.text-gradient-neon {
  background: linear-gradient(135deg, #a855f7 0%, #38bdf8 50%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(168, 85, 247, 0.5);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 34px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  background: linear-gradient(135deg, #5865f2, #7c3aed);
  border: none;
  box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.8);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-secondary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(138, 92, 246, 0.35);
  transition: all var(--transition-fast);
}

.btn-secondary-glow:hover {
  background: rgba(168, 85, 247, 0.15);
  border-color: var(--accent-purple);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
  transform: translateY(-2px);
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 55px 20px;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 35px;
}

.section-pill {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 9999px;
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.text-neon-cyan {
  color: var(--accent-cyan);
  text-shadow: 0 0 25px rgba(6, 182, 212, 0.5);
}

.text-neon-purple {
  color: var(--accent-purple);
  text-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
}

/* ==========================================================================
   OWNER LIVE PROFILE CARD (LANYARD INTEGRATION)
   ========================================================================== */
.owner-showcase-wrapper {
  display: flex;
  justify-content: center;
}

.owner-card {
  width: 100%;
  max-width: 600px;
  border-radius: 24px;
}

.owner-card-banner {
  height: 120px;
  background: linear-gradient(135deg, #3b0764, #1e1b4b, #0f172a);
  position: relative;
}

.owner-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 12px 12px;
  opacity: 0.3;
}

.owner-badge-top {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}

.badge-role, .badge-verified {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  letter-spacing: 0.5px;
}

.badge-role {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
}

.badge-verified {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.owner-card-body {
  padding: 0 26px 26px;
  position: relative;
  margin-top: -50px;
}

.owner-avatar-container {
  display: inline-block;
  position: relative;
  margin-bottom: 16px;
}

.avatar-ring-glow {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
}

.owner-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #0d0f1f;
  display: block;
}

.avatar-decoration {
  position: absolute;
  top: -12%;
  left: -12%;
  width: 124%;
  height: 124%;
  pointer-events: none;
}

.avatar-decoration.hidden {
  display: none;
}

.status-indicator-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3.5px solid #0e1020;
}

.status-indicator-badge.online {
  background-color: #22c55e;
  box-shadow: 0 0 10px #22c55e;
}

.status-indicator-badge.idle {
  background-color: #eab308;
  box-shadow: 0 0 10px #eab308;
}

.status-indicator-badge.dnd {
  background-color: #ef4444;
  box-shadow: 0 0 10px #ef4444;
}

.status-indicator-badge.offline {
  background-color: #64748b;
}

.owner-names-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.owner-display-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
}

.owner-tag {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.owner-custom-status {
  font-size: 0.95rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

/* Activity Component */
.activity-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
}

.activity-icon-col {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.activity-pulse-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
}

.activity-content {
  flex: 1;
  min-width: 0;
}

.activity-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}

.activity-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
}

.activity-badge {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(88, 101, 242, 0.2);
  color: #818cf8;
}

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

.activity-subdetail {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.owner-footer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-copy-id, .btn-profile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
}

.btn-copy-id {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-copy-id:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-purple);
}

.btn-profile-link {
  background: rgba(88, 101, 242, 0.18);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #a5b4fc;
}

.btn-profile-link:hover {
  background: rgba(88, 101, 242, 0.3);
  color: #fff;
}

/* ==========================================================================
   PROJECT CARDS (CHUẨN 2 DỰ ÁN CỦA USER, HIỆU ỨNG NHƯ ẢNH MẪU)
   ========================================================================== */
.projects-grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.project-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}

.project-card:hover {
  transform: translateY(-4px);
}

.card-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 190px;
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  overflow: hidden;
}

.badge-keyless-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(6, 78, 59, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid #10b981;
  color: #34d399;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  z-index: 5;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.card-badge-status {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  z-index: 5;
}

.pulse-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
}

.pulse-red {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

.card-thumb-img-wrapper {
  width: 100%;
  height: 100%;
}

.cyber-thumb-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.thumb-discord-quest {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
}

.thumb-selfbot {
  background: linear-gradient(135deg, #4a044e 0%, #701a75 50%, #86198f 100%);
}

.thumb-watermark {
  position: absolute;
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.05);
  user-select: none;
}

.thumb-floating-icon {
  font-size: 3.2rem;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.4));
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c084fc;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 8px;
}

.card-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.tag-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.14);
  border: 1px solid rgba(168, 85, 247, 0.28);
  padding: 3px 10px;
  border-radius: 6px;
}

.card-divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 14px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.card-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.author-avatar-mini {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.card-stats {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

.btn-card-primary {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(168, 85, 247, 0.4);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(59, 130, 246, 0.25));
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-card-primary:hover {
  background: linear-gradient(135deg, #a855f7, #3b82f6);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
  border-color: transparent;
}

/* ==========================================================================
   CONTACT SECTION (1: DISCORD, 2: EMAIL thanhtien182023@gmail.com)
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.contact-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.discord-bg {
  background: rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(88, 101, 242, 0.4);
  color: #5865f2;
}

.mail-bg {
  background: rgba(6, 182, 212, 0.2);
  border: 1px solid rgba(6, 182, 212, 0.4);
  font-size: 28px;
}

.contact-num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 4px;
}

.contact-card-info h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.contact-highlight {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.95rem;
  color: #60a5fa;
  font-weight: 700;
  margin-bottom: 4px;
}

.mail-highlight {
  color: #38bdf8;
  word-break: break-all;
}

.contact-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.contact-card-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.btn-contact-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.discord-btn {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
}

.discord-btn:hover {
  background: #4752c4;
}

.copy-mail-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.copy-mail-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--accent-cyan);
}

.mail-btn {
  background: linear-gradient(135deg, #0284c7, #06b6d4);
  color: #fff;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.mail-btn:hover {
  filter: brightness(1.15);
}

/* ==========================================================================
   MODAL DETAIL (POPUP SCRIPT & INSTRUCTIONS)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  width: 100%;
  max-width: 620px;
  border-radius: 24px;
  padding: 30px;
  position: relative;
  background: rgba(14, 16, 32, 0.95);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.code-box-wrapper {
  background: #090a14;
  border: 1px solid rgba(138, 92, 246, 0.3);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  overflow: hidden;
}

.code-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.code-lang {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.btn-copy-code {
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy-code:hover {
  background: var(--accent-purple);
  color: #fff;
}

.code-content {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 180px;
  overflow-y: auto;
}

.modal-guide h4 {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.modal-guide ol {
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   TOAST NOTIFICATION SYSTEM
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999999;
  pointer-events: none;
}

.toast {
  background: rgba(15, 17, 34, 0.95);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(168, 85, 247, 0.5);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(168, 85, 247, 0.4);
  transform: translateX(100px);
  opacity: 0;
  transition: all 0.25s ease-out;
  pointer-events: auto;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: #05060d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 45px 20px 30px;
  position: relative;
  z-index: 2;
  margin-top: 50px;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.footer-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand .footer-logo {
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(to right, #fff, #a855f7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  max-width: 500px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.owner-tag-footer code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .owner-footer-actions {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}
