/* ============================================================
   TNT STUDIO — FUTURISTIC v2.0
   Advanced cyberpunk-inspired enhancement layer.
   Loads AFTER design-system.css and animations.css.
   Amplifies colors, adds neon glows, holographic surfaces,
   scan lines, animated borders, and depth.
   ============================================================ */

/* ── 0. EXTRA FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── 1. AMPLIFIED TOKENS ── */
:root {
  /* Enhanced brand palette — more electric */
  --tnt-violet:     #ff6b1a;
  --tnt-violet-hi:  #b89aff;
  --tnt-cyan:       #ffb84d;
  --tnt-cyan-hi:    #ffb84d;
  --tnt-magenta:    #ff4526;
  --tnt-magenta-hi: #ff7ac4;
  --tnt-lime:       #b6ff3a;
  --tnt-amber:      #ffb648;
  --tnt-red:        #ff4d6d;

  /* New gradients */
  --grad-neon:      linear-gradient(135deg, #ff6b1a 0%, #ffb84d 55%, #ffa94d 100%);
  --grad-plasma:    linear-gradient(120deg, #ff6b1a 0%, #ff4526 50%, #ffb84d 100%);
  --grad-holo:      linear-gradient(110deg,
                      rgba(0,229,255,0.35) 0%,
                      rgba(138,99,240,0.35) 30%,
                      rgba(255,62,165,0.3) 55%,
                      rgba(0,229,255,0.3) 80%,
                      rgba(138,99,240,0.35) 100%);
  --grad-aurora:    radial-gradient(ellipse 120% 80% at 50% -10%,
                      rgba(138,99,240,0.35) 0%,
                      rgba(0,229,255,0.15) 35%,
                      rgba(255,62,165,0.1) 55%,
                      transparent 75%);
  --grad-grid:      linear-gradient(rgba(138,99,240,0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(138,99,240,0.07) 1px, transparent 1px);

  /* Glows */
  --glow-neon-violet:  0 0 18px rgba(138,99,240,0.75),  0 0 44px rgba(138,99,240,0.38);
  --glow-neon-cyan:    0 0 18px rgba(0,229,255,0.7),    0 0 44px rgba(0,229,255,0.35);
  --glow-neon-magenta: 0 0 18px rgba(255,62,165,0.7),   0 0 40px rgba(255,62,165,0.3);

  /* Font additions */
  --font-grotesk: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* Panel tokens */
  --panel-bg: linear-gradient(150deg, rgba(16,16,30,0.82) 0%, rgba(6,6,15,0.92) 100%);
  --panel-border: 1px solid rgba(138,99,240,0.18);
}

/* ── 2. DEEP BACKGROUND FX ── */
html { background: #05060e; }

body {
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(138,99,240,0.22) 0%, transparent 60%),
    radial-gradient(1000px 600px at 90% 0%, rgba(0,229,255,0.18) 0%, transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(255,62,165,0.10) 0%, transparent 70%),
    #04040b;
  position: relative;
}

/* Animated subtle grid that spans full background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: var(--grad-grid);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 0%, transparent 75%);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: tntGridDrift 30s linear infinite;
}

/* Floating scan line */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(0,229,255,0.07) 0%, transparent 100%);
  mix-blend-mode: screen;
  animation: tntScan 7s linear infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

@keyframes tntGridDrift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 48px 48px, 48px 48px; }
}

@keyframes tntScan {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(130vh); }
}

/* Ensure site content is above background fx */
header, nav, main, section, footer, .container, .panel, .card { position: relative; z-index: 2; }

/* ── 3. NAVIGATION GLASS UPGRADE ── */
header,
.site-header {
  background: linear-gradient(180deg, rgba(6,6,14,0.82) 0%, rgba(6,6,14,0.55) 100%) !important;
  backdrop-filter: blur(24px) saturate(200%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
  border-bottom: 1px solid rgba(138,99,240,0.22) !important;
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
}

header::after,
.site-header::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: var(--grad-neon);
  opacity: 0.85;
  filter: blur(0.3px);
  box-shadow: 0 0 12px rgba(138,99,240,0.6);
}

header.scrolled,
.site-header.scrolled {
  background: rgba(4,4,10,0.92) !important;
  border-bottom-color: rgba(0,229,255,0.25) !important;
}

nav a {
  font-family: var(--font-grotesk) !important;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.14em;
  transition: color .25s ease, text-shadow .25s ease;
}

nav a:hover {
  color: var(--tnt-cyan-hi) !important;
  text-shadow: 0 0 12px rgba(0,229,255,0.8);
}

nav a::after {
  background: var(--grad-neon) !important;
  box-shadow: 0 0 10px rgba(138,99,240,0.8), 0 0 20px rgba(0,229,255,0.55) !important;
}

/* ── 4. LOGO POP ── */
.logo img {
  filter: drop-shadow(0 0 10px rgba(138,99,240,0.55)) drop-shadow(0 0 22px rgba(0,229,255,0.25));
  transition: filter .35s ease, transform .5s cubic-bezier(.34,1.56,.64,1);
}
.logo:hover img {
  filter: drop-shadow(0 0 18px rgba(138,99,240,0.9)) drop-shadow(0 0 32px rgba(0,229,255,0.55));
  transform: scale(1.06) rotate(-1deg);
}

/* ── 5. BUTTON SYSTEM ── */
.btn, .cta-btn, button.btn-primary, button.btn-secondary, .btn-login, .login-btn {
  font-family: var(--font-grotesk) !important;
  letter-spacing: 0.12em;
  position: relative;
  isolation: isolate;
}

/* Primary — plasma gradient with inner highlight and moving sheen */
.btn-primary,
.cta-btn.primary,
button.primary,
.btn.primary {
  background: var(--grad-neon) !important;
  background-size: 200% 200% !important;
  color: #05060e !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow:
    0 6px 24px rgba(138,99,240,0.55),
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 1px 0 rgba(255,255,255,0.35) inset !important;
  animation: tntBtnShift 6s ease infinite;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), box-shadow .35s ease;
}

.btn-primary::after,
.cta-btn.primary::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,0.55) 50%, transparent 80%);
  transform: skewX(-20deg);
  transition: left .9s ease;
  pointer-events: none;
  z-index: 1;
}

.btn-primary:hover::after,
.cta-btn.primary:hover::after { left: 130%; }

.btn-primary:hover,
.cta-btn.primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 14px 44px rgba(138,99,240,0.7),
    0 0 24px rgba(0,229,255,0.55),
    0 0 0 1px rgba(255,255,255,0.15) inset;
}

@keyframes tntBtnShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* Secondary — glass with neon border */
.btn-secondary, .btn-ghost {
  background: rgba(10,10,22,0.55) !important;
  border: 1px solid rgba(138,99,240,0.35) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 4px 20px rgba(0,0,0,0.35);
  transition: all .3s ease;
}

.btn-secondary:hover, .btn-ghost:hover {
  border-color: var(--tnt-cyan) !important;
  color: var(--tnt-cyan-hi) !important;
  box-shadow:
    0 0 0 1px rgba(0,229,255,0.35) inset,
    0 0 24px rgba(0,229,255,0.35),
    0 10px 30px rgba(0,0,0,0.45);
  transform: translateY(-3px);
}

/* ── 6. CARD UPGRADE — holographic border on hover ── */
.card,
.feature-card,
.stat-item,
.step,
.program-card,
.partner-card,
.team-member {
  background: var(--panel-bg) !important;
  border: 1px solid rgba(138,99,240,0.12) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 50px rgba(0,0,0,0.55);
  transition: transform .5s cubic-bezier(.34,1.56,.64,1), border-color .35s ease, box-shadow .35s ease;
}

.card::before,
.feature-card::before,
.step::before,
.program-card::before,
.partner-card::before,
.team-member::before {
  background: var(--grad-neon) !important;
  height: 2px !important;
  filter: blur(0.4px);
  box-shadow: 0 0 10px rgba(138,99,240,0.6);
}

.card:hover,
.feature-card:hover,
.step:hover,
.program-card:hover,
.partner-card:hover,
.team-member:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(0,229,255,0.35) !important;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.7),
    0 0 0 1px rgba(0,229,255,0.2) inset,
    0 0 30px rgba(138,99,240,0.18);
}

/* Animated holographic glow behind cards */
.feature-card::after,
.program-card::after,
.partner-card::after,
.step::after,
.card::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: var(--grad-holo);
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  animation: tntBtnShift 8s ease infinite;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: 1;
}

.feature-card:hover::after,
.program-card:hover::after,
.partner-card:hover::after,
.step:hover::after,
.card:hover::after { opacity: 1; }

/* Icon boxes — magnetic glow */
.feature-icon {
  background: radial-gradient(ellipse at 30% 30%, rgba(138,99,240,0.35), rgba(0,229,255,0.08) 60%, transparent 100%) !important;
  border: 1px solid rgba(138,99,240,0.35) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 0 22px rgba(138,99,240,0.25);
}

.feature-icon i {
  background: var(--grad-neon) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 0 6px rgba(138,99,240,0.45));
}

.feature-card:hover .feature-icon {
  box-shadow: var(--glow-neon-cyan), inset 0 1px 0 rgba(255,255,255,0.12) !important;
  transform: scale(1.12) rotate(-4deg);
}

/* ── 7. TYPOGRAPHY BOOST ── */
h1, h2, h3, h4 {
  font-family: var(--font-display) !important;
  letter-spacing: 0.03em;
}

h1 span,
.hero h1 span,
.gradient-text,
.text-gradient {
  background: var(--grad-neon) !important;
  background-size: 200% 200% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  animation: tntBtnShift 8s ease infinite;
  filter: drop-shadow(0 0 12px rgba(138,99,240,0.35));
}

.hero h1 {
  text-shadow: 0 2px 18px rgba(0,0,0,0.7);
  line-height: 1.08 !important;
}

/* Eyebrow chip */
.hero-eyebrow,
.eyebrow,
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px !important;
  border-radius: 999px;
  background: rgba(138,99,240,0.10);
  border: 1px solid rgba(138,99,240,0.35) !important;
  color: var(--tnt-cyan-hi) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 22px rgba(138,99,240,0.18);
  animation: tntChipPulse 3s ease-in-out infinite;
}

@keyframes tntChipPulse {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 22px rgba(138,99,240,0.18); }
  50%      { box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 30px rgba(0,229,255,0.28); }
}

.hero-eyebrow i,
.eyebrow i { color: var(--tnt-cyan); text-shadow: 0 0 10px rgba(0,229,255,0.8); }

/* ── 8. HERO DEPTH ── */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(138,99,240,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 70% 30%, rgba(0,229,255,0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(255,62,165,0.12) 0%, transparent 60%),
    #04040b;
}

.hero-content { position: relative; z-index: 3; }

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-grid);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, #000 0%, transparent 80%);
  opacity: 0.5;
  animation: tntGridDrift 40s linear infinite;
}

/* Floating accent orbs */
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 480px; height: 480px;
  background: radial-gradient(circle at 50%, rgba(138,99,240,0.45) 0%, rgba(0,229,255,0.20) 40%, transparent 70%);
  filter: blur(60px);
  animation: tntOrbFloat 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes tntOrbFloat {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(-60px, 40px) scale(1.08); }
  66%      { transform: translate(40px, 80px) scale(0.95); }
}

/* ── 9. SECTION TITLE ── */
.section-title h2::after {
  background: var(--grad-neon) !important;
  height: 3px !important;
  box-shadow: 0 0 12px rgba(138,99,240,0.75), 0 0 28px rgba(0,229,255,0.5) !important;
}

/* ── 10. PANELS / FORMS / INPUTS ── */
input, textarea, select,
.form-control, .input, .search-input {
  background: rgba(8,8,18,0.75) !important;
  border: 1px solid rgba(138,99,240,0.22) !important;
  color: #eaeafc !important;
  font-family: var(--font-grotesk) !important;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  caret-color: var(--tnt-cyan);
}

input::placeholder, textarea::placeholder { color: rgba(200,200,230,0.45); }

input:focus, textarea:focus, select:focus,
.form-control:focus, .input:focus, .search-input:focus {
  outline: none !important;
  border-color: rgba(0,229,255,0.55) !important;
  box-shadow:
    0 0 0 3px rgba(0,229,255,0.15),
    0 0 24px rgba(0,229,255,0.2) !important;
  background: rgba(10,10,22,0.92) !important;
}

/* ── 11. LINK POLISH ── */
a { transition: color .2s ease, text-shadow .2s ease; }
a:hover { text-shadow: 0 0 10px rgba(0,229,255,0.45); }

/* ── 12. BADGES / TAGS / PILLS ── */
.badge, .tag, .pill {
  font-family: var(--font-mono) !important;
  letter-spacing: 0.1em;
  font-size: 0.72rem !important;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(138,99,240,0.12);
  border: 1px solid rgba(138,99,240,0.3);
  color: var(--tnt-cyan-hi);
  text-transform: uppercase;
}

/* ── 13. STAT ITEMS NUMBER GRADIENT ── */
.stat-item h2,
.stat-item .number,
.stat-number,
.big-number {
  background: var(--grad-neon) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  filter: drop-shadow(0 0 12px rgba(138,99,240,0.4));
}

/* ── 14. FOOTER ── */
footer,
.site-footer {
  background: linear-gradient(180deg, rgba(4,4,10,0) 0%, rgba(10,6,24,0.95) 50%, #02020a 100%) !important;
  border-top: 1px solid rgba(138,99,240,0.2);
  position: relative;
}

footer::before,
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--grad-neon);
  opacity: 0.65;
  box-shadow: 0 0 12px rgba(138,99,240,0.55);
}

/* ── 15. SCROLLBAR UPGRADE ── */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #05050c; }
::-webkit-scrollbar-thumb {
  background: var(--grad-neon);
  border-radius: 999px;
  border: 2px solid #05050c;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(135deg, #b89aff, #ffb84d); }

/* ── 16. SIDEBAR / SECONDARY PANELS ── */
.sidebar, .left-sidebar, .right-sidebar,
.panel, .side-panel {
  background: var(--panel-bg) !important;
  border: 1px solid rgba(138,99,240,0.15) !important;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.04);
  border-radius: 20px;
}

/* ── 17. MESSAGE BUBBLES / CHAT UI ── */
.message-bubble, .chat-message, .msg {
  border: 1px solid rgba(138,99,240,0.15);
  background: rgba(16,14,30,0.78);
  backdrop-filter: blur(8px);
}

.message-bubble.me, .chat-message.me, .msg.me {
  background: var(--grad-neon);
  background-size: 200% 200%;
  animation: tntBtnShift 10s ease infinite;
  color: #04040b;
  border: none;
  box-shadow: 0 4px 18px rgba(138,99,240,0.4);
}

/* ── 18. AVATAR RINGS ── */
.avatar, .user-avatar, .profile-avatar {
  position: relative;
}

.avatar.online::after,
.user-avatar.online::after,
.profile-avatar.online::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--tnt-cyan), var(--tnt-violet), var(--tnt-magenta), var(--tnt-cyan));
  filter: blur(2px);
  opacity: 0.9;
  z-index: -1;
  animation: tntAvatarSpin 6s linear infinite;
}

@keyframes tntAvatarSpin {
  to { transform: rotate(360deg); }
}

/* ── 19. TABLES ── */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  background: rgba(10,10,22,0.55);
  border: 1px solid rgba(138,99,240,0.15);
  border-radius: 12px;
  overflow: hidden;
}

table th {
  background: linear-gradient(180deg, rgba(138,99,240,0.12), rgba(138,99,240,0));
  color: var(--tnt-cyan-hi);
  font-family: var(--font-grotesk);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(138,99,240,0.2);
}

table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(138,99,240,0.08);
  color: #e6e6f3;
}

table tr:last-child td { border-bottom: none; }

table tbody tr:hover td { background: rgba(138,99,240,0.06); }

/* ── 20. LIST ITEMS (friends, updates, threads) ── */
.list-item, .friend-item, .update-item, .thread-item {
  border: 1px solid rgba(138,99,240,0.08);
  background: rgba(12,12,24,0.7);
  transition: border-color .25s ease, background .25s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}

.list-item:hover, .friend-item:hover, .update-item:hover, .thread-item:hover {
  border-color: rgba(0,229,255,0.28);
  background: rgba(18,18,36,0.85);
  transform: translateX(4px);
}

/* ── 21. FEED / REELS CARD ── */
.post, .feed-post, .reel-card {
  background: var(--panel-bg);
  border: 1px solid rgba(138,99,240,0.12);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .4s ease, border-color .3s ease, box-shadow .3s ease;
}

.post:hover, .feed-post:hover, .reel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,0.3);
  box-shadow: 0 24px 50px rgba(0,0,0,0.55), 0 0 24px rgba(138,99,240,0.12);
}

/* ── 22. WALLET CARD SHINE ── */
.wallet-card, .balance-card {
  background: var(--grad-plasma);
  background-size: 200% 200%;
  animation: tntBtnShift 8s ease infinite;
  box-shadow: 0 20px 60px rgba(138,99,240,0.35), 0 0 40px rgba(0,229,255,0.18);
  position: relative;
  overflow: hidden;
}

.wallet-card::before, .balance-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35) 0%, transparent 50%);
  pointer-events: none;
}

/* ── 23. 404 PAGE POP ── */
.error-page .error-code, .error-404 h1 {
  font-size: clamp(6rem, 20vw, 14rem);
  background: var(--grad-plasma);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: tntBtnShift 6s ease infinite;
  filter: drop-shadow(0 0 24px rgba(138,99,240,0.5));
  letter-spacing: -0.05em;
}

/* ── 24. TOAST / NOTIFICATION ── */
.toast, .notification-toast, .alert {
  background: var(--panel-bg);
  border: 1px solid rgba(0,229,255,0.3);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 24px rgba(0,229,255,0.2);
  backdrop-filter: blur(14px);
  border-radius: 14px;
}

/* ── 25. MODAL ── */
.modal, .modal-content, .dialog {
  background: linear-gradient(150deg, rgba(14,14,28,0.95), rgba(4,4,12,0.98));
  border: 1px solid rgba(138,99,240,0.3);
  box-shadow: 0 30px 90px rgba(0,0,0,0.7), 0 0 60px rgba(138,99,240,0.25);
  backdrop-filter: blur(24px);
}

.modal-overlay, .overlay-bg {
  background: radial-gradient(ellipse at center, rgba(10,0,30,0.6), rgba(0,0,0,0.88));
  backdrop-filter: blur(12px);
}

/* ── 26. LOADING SPINNER UPGRADE ── */
.spinner, .loader, .loading {
  border: 3px solid rgba(138,99,240,0.18);
  border-top-color: var(--tnt-cyan);
  border-right-color: var(--tnt-violet);
  box-shadow: 0 0 14px rgba(0,229,255,0.4);
}

/* ── 27. PAGE REVEAL FADE ── */
@keyframes tntPageFade {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

main, .page-content, .container {
  animation: tntPageFade 0.7s cubic-bezier(.16,1,.3,1) both;
}

/* ── 28. FLOATING AMBIENT ORBS (auto-inserted by JS on pages without particles) ── */
.tnt-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  opacity: 0.55;
  z-index: 0;
  animation: tntOrbFloat 18s ease-in-out infinite;
}

.tnt-orb.violet { background: radial-gradient(circle, rgba(138,99,240,0.55), transparent 70%); }
.tnt-orb.cyan   { background: radial-gradient(circle, rgba(0,229,255,0.45), transparent 70%); animation-delay: -6s; }
.tnt-orb.magenta{ background: radial-gradient(circle, rgba(255,62,165,0.35), transparent 70%); animation-delay: -12s; }

/* ── 29. SECTION TRANSITIONS (subtle diagonal line dividers) ── */
section + section::before {
  content: "";
  position: absolute;
  inset: 0 20% auto 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138,99,240,0.5), rgba(0,229,255,0.5), transparent);
  opacity: 0.5;
}

/* ── 30. HIGHLIGHT SELECTION ── */
::selection {
  background: rgba(0,229,255,0.35);
  color: #fff;
  text-shadow: 0 0 12px rgba(0,229,255,0.6);
}

/* ── 31. HERO BUTTONS SIZE TWEAK ── */
.hero .btn, .hero .cta-btn, .cta-buttons .btn {
  padding: 16px 34px;
  font-size: 0.88rem;
}

/* ── 32. PLATFORM ICONS GLOW ── */
.platform-item, .platforms img {
  filter: grayscale(0.2) brightness(0.9);
  transition: filter .3s ease, transform .3s ease;
}

.platform-item:hover, .platforms img:hover {
  filter: grayscale(0) brightness(1.2) drop-shadow(0 0 10px rgba(0,229,255,0.55));
  transform: translateY(-3px) scale(1.06);
}

/* ── 33. BUTTON ICON SPACING ── */
.btn i, .cta-btn i { filter: drop-shadow(0 0 6px currentColor); }

/* ── 34. MOBILE TWEAKS ── */
@media (max-width: 768px) {
  body::before { background-size: 32px 32px; opacity: 0.35; }
  .hero::after { width: 300px; height: 300px; right: -80px; top: -80px; }
  header, .site-header { padding: 10px 16px !important; }
}

/* ── 35. REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.1ms !important;
  }
  body::before, body::after, .hero::before, .hero::after { animation: none !important; }
}

/* ── 36. UTILITIES ── */
.tnt-glow-violet  { box-shadow: var(--glow-neon-violet); }
.tnt-glow-cyan    { box-shadow: var(--glow-neon-cyan); }
.tnt-glow-magenta { box-shadow: var(--glow-neon-magenta); }

.tnt-text-neon { background: var(--grad-neon); -webkit-background-clip: text; background-clip: text; color: transparent; }

.tnt-mono { font-family: var(--font-mono) !important; }

/* ── 37. LAYOUT ENHANCEMENTS FOR CONTENT PAGES ── */
.page-hero,
.page-header,
.about-hero,
.contact-hero {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(138,99,240,0.25), transparent 65%),
    radial-gradient(ellipse 70% 50% at 80% 40%, rgba(0,229,255,0.15), transparent 65%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(255,62,165,0.1), transparent 65%),
    #04040b;
  border-bottom: 1px solid rgba(138,99,240,0.2);
  position: relative;
  overflow: hidden;
}

.page-hero::before,
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-grid);
  background-size: 56px 56px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 0%, transparent 75%);
  pointer-events: none;
}
