@font-face {
  font-family: 'Sofia';
  src: url('sofa.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.header-title[data-logo] {
  font-family: 'Sofia', cursive;
  font-size: 24px;
  letter-spacing: 0.4px;
}

/* ================================
   PREMIUM MINIMAL BLACK THEME
   (IPHONE GLASS UI)
================================ */
 
/* Strip container */
.prime-story-strip {
  width: 100%;
  padding: 12px 12px 12px 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  display: block;
  background: rgba(10,10,10,0.55);  /* subtle glass */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06); /* Divider Line */
}

/* The row of pods */
.prime-story-inner {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* Minimalistic pod */
.prime-story-pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  width: 62px;
  min-width: 62px;
  -webkit-tap-highlight-color: transparent;
}

/* Modern minimal ring (NO glow, NO colors) */
.prime-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  background: rgba(255,255,255,0.03);

  /* Thin IG-like gradient ring */
  border: 2px solid transparent;
  background-image:
    linear-gradient(black, black),
    conic-gradient(#00ff66, #00ffd5, #00ff66);
  background-origin: border-box;
  background-clip: content-box, border-box;

  transition: 
    transform .18s ease,
    background-image .28s ease,
    border .28s ease;
}

.prime-ring::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
}

/* ON CLICK */
.prime-ring.active {
  transform: scale(0.92) rotate(35deg);
  background-image:
    linear-gradient(black, black),
    linear-gradient(rgba(255,255,255,0.08), rgba(255,255,255,0.08));
}

/* PRIME IFRAME VIEWER (center card style) */
.prime-iframe-viewer {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;             /* toggled by JS */
  align-items: center;
  justify-content: center;
  pointer-events: none;
  -webkit-font-smoothing: antialiased;
}

/* dark blurred backdrop */
.prime-iframe-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.64);
  backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  transition: opacity 300ms cubic-bezier(.22,.9,.2,1);
  pointer-events: none;
  will-change: opacity;
}

/* card that holds the iframe */
.prime-iframe-card {
  position: relative;
  width: 92vw;
  max-width: 980px;
  height: 86vh;
  max-height: 820px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10,10,10,0.95), rgba(8,8,8,0.98));
  box-shadow: 0 30px 60px rgba(0,0,0,0.6);
  transform-origin: center center;
  opacity: 0;
  transform: scale(0.86) translateY(20px);
  transition:
    opacity 300ms cubic-bezier(.22,.9,.2,1),
    transform 360ms cubic-bezier(.22,.9,.2,1);
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  will-change: transform, opacity;
}

/* visible state */
.prime-iframe-viewer.active { display: flex; pointer-events: auto; }
.prime-iframe-viewer.active .prime-iframe-backdrop { opacity: 1; }
.prime-iframe-viewer.active .prime-iframe-card { opacity: 1; transform: scale(1) translateY(0); }

/* iframe itself */
.prime-iframe-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

/* close button */
.prime-iframe-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 160ms ease;
}
.prime-iframe-close:active { transform: scale(0.94); }

/* swipe dragging visual (temporary translate) */
.prime-iframe-card.dragging {
  transition: none; /* immediate transform while dragging */
}

/* mobile tweaks */
@media (max-width: 600px) {
  .prime-iframe-card { width: 96vw; height: 92vh; border-radius: 12px; }
} 

/* gesture overlay layer (invisible + now edge-restricted) */
.prime-iframe-gestures {
  position: absolute;
  inset: 0;
  z-index: 12015;                  /* above iframe, below close button */
  pointer-events: none;            /* DO NOT capture taps everywhere */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

/* TOP EDGE – pull-down to close */
.prime-iframe-gestures::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 50px;                    /* gesture zone */
  width: 100%;
  pointer-events: auto;            /* captures ONLY here */
}

/* LEFT EDGE – previous */
.prime-iframe-gestures::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 70px;                     /* gesture zone */
  height: 100%;
  pointer-events: auto;
}

/* RIGHT EDGE – next */
.prime-iframe-gestures div.edge-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 70px;                     /* gesture zone */
  height: 100%;
  pointer-events: auto;
  content: "";
}

/* Pod icon */
.prime-pod-icon {
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 3;
  object-fit: contain;

  filter: brightness(0.9) contrast(1.1);
}

/* Label */
.prime-pod-label {
  font-size: 11.5px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* Pressed effect */
.prime-story-pod:active .prime-ring,
.prime-story-pod:focus .prime-ring {
  transform: scale(0.93);
  border-color: rgba(255,255,255,0.18);
}

/* Remove colorful anims */
.prime-ring.unread {
  animation: none;
}

@font-face {
    font-family: 'Shikamaru';
    src: url('cause.ttf') format('truetype');
    font-display: swap;
    font-weight: 500; /* Normal weight - no "px"! */
}

.preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #0f0f23 0%, #000000 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  overflow: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.preloader.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
}

.preloader::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0,255,213,0.1) 0%, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(138,43,226,0.1) 0%, transparent 60%),
    radial-gradient(circle at 40% 40%, rgba(255,20,147,0.05) 0%, transparent 60%);
  animation: bgPulse 8s linear infinite alternate;
  will-change: transform, opacity;
}

.loader-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader-circle {
  width: 80px;
  height: 80px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}

.loader-circle::before,
.loader-circle::after {
  content: '';
  position: absolute;
  border: 2px solid transparent;
  border-radius: 50%;
  will-change: transform;
}

.loader-circle::before {
  width: 100%;
  height: 100%;
  border-top: 2px solid #00ffd5;
  border-right: 2px solid #8a2be2;
  animation: spin 1.6s linear infinite;
}

.loader-circle::after {
  width: 60px;
  height: 60px;
  border-bottom: 2px solid #ff1493;
  border-left: 2px solid #00ff7f;
  animation: spinReverse 2s linear infinite;
}

.loader-inner {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, #00ffd5 0%, #8a2be2 50%, #ff1493 100%);
  border-radius: 50%;
  position: relative;
  z-index: 1;
  will-change: opacity;
  animation: corePulse 2.5s linear infinite;
}

.loader-inner::before {
  content: '';
  position: absolute;
  inset: 5px;
  background: #0a0a0a;
  border-radius: 50%;
  opacity: 0.6;
  animation: innerPulse 3s linear infinite;
}

.loader-inner::after {
  content: '';
  position: absolute;
  inset: 10px;
  background: radial-gradient(circle, #00ffd5 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.5;
  animation: glow 2s linear infinite alternate;
}

/* Floating particles */
.loader-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  will-change: transform, opacity;
  animation: float 6s linear infinite;
}
.loader-particle:nth-child(1){top:20%;left:20%;animation-delay:0s;background:#00ffd5;}
.loader-particle:nth-child(2){top:80%;right:20%;animation-delay:1s;background:#8a2be2;}
.loader-particle:nth-child(3){bottom:20%;left:80%;animation-delay:2s;background:#ff1493;}
.loader-particle:nth-child(4){top:50%;right:80%;animation-delay:3s;background:#00ff7f;}
.loader-particle:nth-child(5){top:30%;left:70%;animation-delay:4s;background:#ffa500;}
.loader-particle:nth-child(6){bottom:60%;right:30%;animation-delay:5s;background:#ff6347;}

/* Loading text */
.loading-text {
  position: absolute;
  bottom: 25%;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Arial', sans-serif;
  font-size: 18px;
  font-weight: 600;
  background: linear-gradient(45deg, #00ffd5, #8a2be2, #ff1493, #00ff7f);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s linear infinite, textGlow 4s linear infinite;
  letter-spacing: 2px;
  will-change: transform, opacity;
}
.loading-dots { display:inline-block; animation:dots 1.5s steps(4,end) infinite; }

/* Keyframes: linear only for smoothness */
@keyframes spin {
  0% {transform:rotate(0deg);}
  100%{transform:rotate(360deg);}
}
@keyframes spinReverse {
  0% {transform:rotate(360deg);}
  100%{transform:rotate(0deg);}
}
@keyframes corePulse {
  0%,100% {opacity: 0.9;}
  50%     {opacity: 0.5;}
}
@keyframes innerPulse {
  0%,100% {opacity: 0.7;}
  50%     {opacity: 0.3;}
}
@keyframes glow {
  0%   {opacity: 0.4;}
  100% {opacity: 0.9;}
}
@keyframes float {
  0%,100%{transform:translateY(0px);opacity:.6;}
  50%{transform:translateY(-12px);opacity:1;}
}
@keyframes bgPulse {
  0%{opacity:.3;transform:scale(1);}
  100%{opacity:.5;transform:scale(1.03);}
}
@keyframes textGlow {
  0%,100%{opacity:0.9;}
  50%{opacity:0.6;}
}
@keyframes gradientShift {
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}
@keyframes dots {
  0%,20%{content:'';}
  40%{content:'.';}
  60%{content:'..';}
  80%,100%{content:'...';}
}

/* Mobile adjustments */
@media (max-width:768px){
  .loader-circle{width:60px;height:60px;}
  .loader-circle::after{width:45px;height:45px;}
  .loader-inner{width:30px;height:30px;}
  .loading-text{font-size:16px;bottom:22%;}
  .loader-particle{width:3px;height:3px;}
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: visible;
  background-size: cover;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-position: center;
}

/* UNIVERSAL SCROLLBAR HIDE â€" works on all scrollable areas */
* {
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;       /* IE and Edge */
}

*::-webkit-scrollbar {
  display: none;                  /* Chrome, Safari, Opera */
}

.page {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 56px; /* Footer height */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 80px; /* Extra breathing room */
}

        /* ==========================================================================
   CSS VARIABLES & ROOT CONFIGURATION
   ========================================================================== */

:root {
            --primex-primary: #00FFAA;
            --primex-dark: #121212;
            --primex-surface: #1E1E1E;
            --primex-error: #CF6679;
            --primex-xp: #FFD700;
            --primex-text: rgba(255, 255, 255, 0.87);
            --primex-text-secondary: rgba(255, 255, 255, 0.6);
            --primex-glass: rgba(30, 30, 30, 0.92);
            --primex-card: rgba(255, 255, 255, 0.05);
            --primex-selected: rgba(0, 255, 170, 0.1);
        }

        /* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
            -webkit-focus-ring-color: rgba(255, 255, 255, 0) !important;
            outline: none !important;
        }

        html, body {
            touch-action: manipulation;
            user-select: none;
            -webkit-user-select: none;
            -ms-user-select: none;
            -webkit-touch-callout: none;
            -webkit-text-size-adjust: 100%;
            overscroll-behavior: none;
        }

        .primex-theme-dark {
            background-color: var(--primex-dark);
            color: var(--primex-text);
            font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
            -webkit-font-smoothing: antialiased;
            line-height: 1.5;
        }

        /* ==========================================================================
   BACKGROUND & APP STRUCTURE
   ========================================================================== */

        body.app-screen {
            background-color: #0a0a0a;
            /* fallback color */
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            display: flex;
            flex-direction: column;
            min-height: 100%;
            position: relative;
        }

        /* Background image loading optimization */
        body.app-screen::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: url('bg.png');
            background-size: cover;
            background-position: center;
            background-attachment: fixed;
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
            z-index: -1;
        }

        body.app-screen.bg-loaded::before {
            opacity: 1;
        }

        /* ==========================================================================
   HEADER STYLES
   ========================================================================== */


        .header-title {
            font-family: 'Shikamaru', Arial, sans-serif;
            font-size: 20px;
            font-weight: 200;
            color: var(--primex-primary);
        }

        /* ==========================================================================
   AI SELECTION SCREEN
   ========================================================================== */

.fixed-chat-input {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  padding: 10px 12px;
  background-color: #111;
  border-top: 1px solid #222;
  z-index: 999;
}

.fixed-chat-input input {
  flex: 1;
  padding: 10px 12px;
  background: #222;
  border: none;
  border-radius: 6px;
  color: white;
  outline: none;
  font-size: 14px;
}

.fixed-chat-input .send-btn {
  margin-left: 8px;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
}

        .ai-selection-screen {
            padding: 24px;
            display: flex;
            background: none;
            flex-direction: column;
            height: calc(100vh - 120px);
        }

        .selection-title {
            font-family: 'Shikamaru', Arial, sans-serif;
            text-align: center;
            margin-bottom: 24px;
            color: var(--primex-primary);
            font-size: 24px;
        }

        .ai-options {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-bottom: 24px;
        }

        .ai-option {
            background: var(--primex-card);
            border-radius: 16px;
            padding: 16px;
            display: flex;
            gap: 16px;
            align-items: center;
            transition: all 0.2s;
            border: 2px solid transparent;
        }

        .ai-option.selected {
            border-color: var(--primex-primary);
            background: var(--primex-selected);
        }

        .ai-option:active {
            transform: scale(0.98);
        }

        .ai-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primex-primary);
        }

        .ai-info h3 {
            font-family: 'Shikamaru', Arial, sans-serif;
            font-size: 18px;
            margin-bottom: 8px;
            color: var(--primex-primary);
        }

        .ai-info p {
            font-size: 14px;
            color: var(--primex-text-secondary);
            margin-bottom: 8px;
        }

        .ai-traits {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
        }

        .trait {
            background: rgba(0, 255, 170, 0.1);
            border-radius: 12px;
            padding: 4px 8px;
            font-size: 12px;
        }

        /* ==========================================================================
   CHAT INTERFACE STRUCTURE
   ========================================================================== */

        /* Hide footer only when chat is active */
        .ai-chat-container[style*="display: flex"] ~ .app-footer {
            display: none;
        }

        .ai-chat-container {
            display: flex;
            flex-direction: column;
            flex: 1;
            position: relative;
            min-height: 0;
            /* helps nested scrollable areas work inside flex */
        }

        /* AI Header (Fixed at top of chat) */
        .ai-header {
            display: flex;
            align-items: center;
            padding: 8px;
            background: var(--primex-glass);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            position: sticky;
            top: 0;
            z-index: 110;
        }

        .current-ai-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--primex-primary);
            margin-right: 6px;
        }

        .ai-status {
            flex: 1;
        }

        .ai-status h2 {
            font-family: 'Shikamaru', Arial, sans-serif;
            font-size: 18px;
            margin-bottom: 2px;
        }

        .status-indicator {
            display: flex;
            align-items: center;
            font-size: 12px;
            color: var(--primex-text-secondary);
        }

        /* ==========================================================================
   CHAT MESSAGES AREA
   ========================================================================== */

        .chat-messages {
            flex: 1;
            overflow-y: auto;
            padding: 16px;
            padding-bottom: 80px;
            scroll-behavior: smooth;
        }

        .chat-messages::-webkit-scrollbar {
            width: 4px;
        }

        .chat-messages::-webkit-scrollbar-track {
            background: transparent;
        }

        .chat-messages::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, 0.2);
            border-radius: 2px;
        }

        /* ==========================================================================
   MESSAGE STYLES
   ========================================================================== */

        .message {
            display: flex;
            max-width: 85%;
            margin-bottom: 12px;
            animation: messageFadeIn 0.3s ease-out;
        }

        @keyframes messageFadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .user-message {
            align-self: flex-end;
            flex-direction: row-reverse;
        }

        .ai-message {
            align-self: flex-start;
        }

        .message-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            object-fit: cover;
            align-self: flex-end;
            margin-bottom: 12px;
        }

        .user-message .message-avatar {
            display: none;
        }

        .message-content {
            max-width: 75%;
            padding: 10px 14px;
            border-radius: 18px;
            margin: 0 8px;
            position: relative;
        }

        .message-content.user {
            background: var(--primex-primary);
            color: #000;
            border-bottom-right-radius: 4px;
        }

        .message-content:not(.user) {
            background: var(--primex-card);
            border-bottom-left-radius: 4px;
        }

        .message-text {
            line-height: 1.4;
        }

        .message-time {
            font-size: 11px;
            color: var(--primex-text-secondary);
            margin-top: 4px;
            display: block;
            text-align: right;
        }

        /* Section Title */
        .selection-title {
            font-family: 'Shikamaru', Arial, sans-serif;
            font-size: 20px;
            font-weight: 100;
            color: #f5f5f5;
            text-align: center;
            text-shadow: 0 0 5px #333;
        }

        /* AI Options */
        .ai-options {
            display: flex;
            flex-direction: column;
            gap: 18px;
        }

        .ai-option {
            display: flex;
            gap: 12px;
            padding: 14px;
            border-radius: 14px;
            background: #1a1a1a;
            transition: all 0.3s ease;
            cursor: pointer;
            box-shadow: 0 0 0 transparent;
        }

        .ai-option:hover {
            background: #222;
        }

        .ai-option.selected {
            border: 2px solid #34f5c5;
            background: linear-gradient(135deg, #103d35, #0a1f1a);
            box-shadow: 0 0 12px #34f5c5aa;
        }

        /* Avatar */
        .ai-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid #333;
        }

        /* AI Info */
        .ai-info h3 {
            font-family: 'Shikamaru', Arial, sans-serif;
            font-size: 18px;
            margin: 0;
            font-weight: 200;
            color: #f0f0f0;
        }

        .ai-info p {
            margin: 6px 0;
            font-size: 14px;
            color: #ccc;
        }

        .ai-traits {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-top: 6px;
        }

        .trait {
            background: #333;
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 12px;
            color: #bbb;
            transition: background 0.3s;
        }

        .ai-option.selected .trait {
            background: none;
            color: white;
            font-weight: bold;
        }

        /* Button */
        .btn-primex-raised {
            font-family: 'Shikamaru', Arial, sans-serif;
            background: #34f5c5;
            color: black;
            border: none;
            border-radius: 12px;
            padding: 20px 60px;
            /* Reduced padding */
            font-size: 16px;
            font-weight: 200;
            text-align: center;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.3s ease;
            box-shadow: 0 0 10px #38bdf8aa, inset 0 0 4px #fff3;
            width: fit-content;
            margin: 0 auto;
            /* Center horizontally */
        }

        .btn-primex-raised:hover {
            background: #0ea5e9;
        }

        /* Ripple Effect */
        .btn-ripple {
            position: absolute;
            border-radius: 50%;
            transform: scale(0);
            animation: ripple 0.6s linear;
            background: rgba(255, 255, 255, 0.5);
            pointer-events: none;
            width: 100px;
            height: 100px;
            opacity: 0;
        }

        /* Ripple Animation */
        @keyframes ripple {
            to {
                transform: scale(4);
                opacity: 0;
            }
        }

        /* Page Fade-in */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ==========================================================================
   FOOTER NAVIGATION
   ========================================================================== */

        /* ðŸŒ' Container for all 3 */
        .search-bar-container {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 16px;
            height: 44px;
        }

        /* ðŸ" Search Bar */
        .top-search-bar {
            flex: 1;
            display: flex;
            align-items: center;
            gap: 10px;
            background: #1c1c1c;
            border-radius: 12px;
            padding: 0 14px;
            height: 100%;
            box-shadow: inset 0 0 4px #111;
            cursor: pointer;
            transition: background 0.3s;
        }

        /* ðŸ"Ž Icon inside search */
        .search-icon svg {
            width: 20px;
            height: 20px;
            stroke: #888;
        }

        /* ðŸ"¤ Placeholder text */
        .search-placeholder-text {
            font-size: 14px;
            color: #aaa;
        }

.lightning-icon-right {
  position: relative; /* needed for absolute dot positioning */
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #222;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer; /* show pointer on hover */
}

.lightning-icon {
  width: 24px;
  height: 24px;
  fill: white;
}

.red-dot {
  position: absolute;
  top: 12px;
  right: 6px;
  width: 10px;
  height: 10px;
  background: #ff3b3b;
  border-radius: 50%;
  box-shadow: 0 0 6px #ff3b3b;
  pointer-events: auto; /* so clicks go through to button */
  transition: opacity 0.3s ease;
}

/* 🧊 Crystal Container */
.crystal-container {
    display: flex;
    align-items: center;
    gap: 0.5px;
    background: #1c1c1c;
    border-radius: 12px;
    padding: 0 4px;
    height: 44px;
}

/* 🧊 Crystal Icon */
.crystal-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 0.4px #00ffff); /* ultra subtle glow */
}

/* 💠 Crystal Count */
.crystal-info {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 200;
    color: #00ffff;
}

/* 🛡 Crystal Popup */
.crystal-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.crystal-popup-inner {
    background: #121212;
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 360px;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    text-align: center;
    animation: fadeIn 0.4s ease forwards;
}

.crystal-popup-inner h2 {
    font-family: 'Shikamaru', Arial, sans-serif;
    font-size: 22px;
    margin-bottom: 12px;
    color: #00ffff;
}

.crystal-popup-inner p {
    font-size: 14.5px;
    line-height: 1.5;
    color: #ddd;
}

.glow {
    color: #00ffff;
    font-weight: 600;
}

.crystal-tagline {
    font-size: 13px;
    margin-top: 14px;
    font-style: italic;
    color: #999;
}

.crystal-close-btn {
    font-family: 'Shikamaru', Arial, sans-serif;
    margin-top: 18px;
    padding: 8px 16px;
    border: none;
    background: #00ffff;
    color: #000;
    font-weight: 200;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.crystal-close-btn:hover {
    background: #66ffff;
}

        /* ðŸ§¿ Aura Container */
        .aura-container {
            display: flex;
            align-items: center;
            gap: 6px;
            background: #1c1c1c;
            border-radius: 12px;
            padding: 0 10px;
            height: 44px;
        }

        /* ðŸ§¿ Aura Icon */
        .aura-icon {
            width: 22px;
            height: 22px;
            object-fit: contain;
            filter: drop-shadow(0 0 3px #facc15);
        }

        /* ðŸ"¢ Aura Count */
        .aura-info {
            display: flex;
            align-items: center;
            font-size: 13px;
            font-weight: 200;
            color: #facc15;
        }

        /* ðŸ"® Aura Popup */
        .aura-popup {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.75);
            backdrop-filter: blur(6px);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 9999;
        }

        .aura-popup-inner {
            background: #121212;
            border-radius: 16px;
            padding: 24px;
            width: 90%;
            max-width: 360px;
            color: #fff;
            box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
            text-align: center;
            animation: fadeIn 0.4s ease forwards;
        }

        .aura-popup-inner h2 {
            font-family: 'Shikamaru', Arial, sans-serif;
            font-size: 22px;
            margin-bottom: 12px;
            color: #facc15;
        }

        .aura-popup-inner p {
            font-size: 14.5px;
            line-height: 1.5;
            color: #ddd;
        }

        .glow {
            color: #facc15;
            font-weight: 600;
        }

        .aura-tagline {
            font-size: 13px;
            margin-top: 14px;
            font-style: italic;
            color: #999;
        }

        .aura-close-btn {
            font-family: 'Shikamaru', Arial, sans-serif;
            margin-top: 18px;
            padding: 8px 16px;
            border: none;
            background: #facc15;
            color: #000;
            font-weight: 200;
            border-radius: 8px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .aura-close-btn:hover {
            background: #ffe267;
        }

        @keyframes fadeIn {
            from {
                transform: scale(0.95);
                opacity: 0;
            }
            to {
                transform: scale(1);
                opacity: 1;
            }
        }

/*////////// PRIME /////////*/

:root {
  --primex-bg: #050505;
  --primex-card: rgba(255, 255, 255, 0.04);
  --primex-glass: rgba(255, 255, 255, 0.03);
  --primex-accent: #93F600;
  --primex-border: rgba(255, 255, 255, 0.08);
  --primex-text: rgba(255, 255, 255, 0.95);
  --primex-text-muted: rgba(255, 255, 255, 0.65);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  width: 100%;
}

.prime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  max-width: 100vw;
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
}

.arcs-header,
.events-header {
  font-family: 'Shikamaru', system-ui, -apple-system, 'SF Pro Text', Roboto, sans-serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.8px;
  color: var(--primex-text);
  text-align: center;
  margin-bottom: 1px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.prime-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--primex-border);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primex-text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 
              inset 0 1px 0 rgba(255, 255, 255, 0.02);
  transition: transform 300ms cubic-bezier(0.22, 0.9, 0.38, 1),
              box-shadow 300ms cubic-bezier(0.22, 0.9, 0.38, 1);
  will-change: transform;
  transform: translateZ(0);
}

@media (hover: hover) {
  .prime-card:hover {
    transform: translateY(-3px) translateZ(0);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), 
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
    cursor: pointer;
  }
}

.prime-card:active {
  transform: translateZ(0) scale(0.98);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 
              inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.card-icon {
  background: rgba(255, 255, 255, 0.02);
  padding: 8px;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02),
              0 2px 6px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon img,
.card-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.card-title {
  font-family: 'Shikamaru', system-ui, -apple-system, 'SF Pro Text', Roboto, sans-serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.4px;
  color: var(--primex-text);
  text-decoration: none;
}

a.prime-card {
  text-decoration: none;
  color: inherit;
}

/* LEFT COLUMN: ARCS */
.arcs-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 120px;
}

.arcs-stack-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--primex-border);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.arcs-stack-card {
  min-height: 80px;
  border-radius: 12px;
}

.arcs-pods-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  position: relative;
  align-items: start; /* Added */
}

.arcs-pod {
  width: 100%;
  aspect-ratio: 1;
  min-height: 0;
  border-radius: 50%;
  padding: 12px;
}

/* Position the pods in iPhone camera style */
.arcs-pod:nth-child(1) {
  justify-self: end;
  grid-row: 1;
}

.arcs-pod:nth-child(2) {
  justify-self: start;
  grid-column: 2;
  grid-row: 1;
  transform: translate(-5px, 33px); /* -10px moves it left, adjust as needed */
}

.arcs-pod:nth-child(3) {
  justify-self: end;
  grid-column: 1;
  grid-row: 2;
}

.arcs-pod .card-icon {
  padding: 6px;
}

.arcs-pod .card-icon img {
  width: 20px;
  height: 20px;
}

.arcs-pill {
  width: 100%;
  height: 48px;
  border-radius: 12px;
  flex-direction: row;
  padding: 8px 14px;
  gap: 8px;
}

.arcs-pill .card-icon {
  padding: 6px;
}

.arcs-pill .card-icon img,
.arcs-pill .card-icon svg {
  width: 22px;
  height: 22px;
}

/* RIGHT COLUMN: EVENTS */
.events-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 200px;
}

.prime-card.events {
  position: relative;
  height: 100%;
  min-height: 350px;
  border-radius: 20px;
  padding: 14px 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 300px;
  overflow: hidden;
}

.events-scroll-container {
  flex: 1;
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0;
  margin: 0;
}

.events-scroll-container::-webkit-scrollbar {
  display: none;
}

.event-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px;
  transition: transform 150ms cubic-bezier(0.22, 0.9, 0.38, 1);
  will-change: transform;
  transform: translateZ(0);
}

.event-slide:active {
  transform: translateZ(0) scale(0.99);
}

.event-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.01);
  padding: 12px;
}

.event-content img {
  max-width: 140%;
  max-height: 400%;
  object-fit: contain;
  border-radius: 8px;
}

.events-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: 14px;
  position: relative;
  z-index: 10;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  cursor: pointer;
  transition: all 280ms cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  outline: none;
  will-change: transform, background-color;
  flex-shrink: 0;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
}

.dot:focus-visible {
  outline: 2px solid var(--primex-accent);
  outline-offset: 3px;
}

.dot.active {
  width: 6px;
  height: 6px;
  background: var(--primex-accent);
  border: none;
  box-shadow: 0 0 10px rgba(147, 246, 0, 0.5),
              0 0 16px rgba(147, 246, 0, 0.25);
  transform: scale(1.2);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 380px) {
  .prime-grid {
    gap: 10px;
    padding: 10px;
  }
  
  .arcs-header,
  .events-header {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  .arcs-stack-card {
    min-height: 70px;
  }
  
  .arcs-pill {
    height: 44px;
  }
  
  .card-title {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .prime-card:hover {
    transform: none;
  }
  
  .prime-card:active {
    transform: scale(0.99);
  }
  
  .events-scroll-container {
    scroll-behavior: auto;
  }
} 

/* Legacy class support */
.prime-cards {
  background: none;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  height: 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.3s;
  text-decoration: none;
  margin-top: 25px;
}

.quest-preview {
  background: var(--primex-selected, rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
}

.section-title {
  font-family: 'Shikamaru', Arial, sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primex-primary, var(--primex-text));
}

.quest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quest-item:last-child {
  border-bottom: none;
}

.quest-icon {
  font-size: 16px;
  font-weight: 600;
}

.quest-status {
  font-size: 20px;
}

/* Leaderboard Specific Styles */
.leaderboard-container {
    padding: 16px;
    padding-bottom: 80px;
}

.time-selector {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.time-btn {
    font-family: 'Shikamaru', Arial, sans-serif;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--primex-card);
    border: none;
    color: var(--primex-text-secondary);
    font-size: 14px;
    font-weight: 200;
    cursor: pointer;
    transition: all 0.2s;
}

.time-btn.active {
    background: var(--primex-primary);
    color: #000;
}

.category-tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 24px;
}

.category-tab {
    font-family: 'Shikamaru', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: none;
    border: none;
    color: var(--primex-text-secondary);
    cursor: pointer;
    padding: 8px;
    transition: all 0.2s;
}

.category-tab.active {
    color: var(--primex-primary);
}

.category-tab img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
}

.category-tab span {
    font-size: 12px;
}

    body {
      overflow: hidden;
      height: 100vh;
      display: flex;
      flex-direction: column;
    }

.app-header {
    padding: 10px;
    background: rgb(10, 10, 8); /* fully opaque, zero transparency */
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #EDEDED;
} 

    .prime-container {
      flex: 1;
      overflow-y: auto;
      position: relative;
      -webkit-overflow-scrolling: touch;
      padding-bottom: 70px;
    }

    body.app-screen {
      background-color: #0a0a0a;
      background-image: url('bg.png');
      background-size: cover;
      background-position: center;
    }

    .header-title { padding-left: 10px; }

    .quest-item {
      display: flex;
      align-items: center;
      margin-bottom: 15px;
      padding: 12px;
      background: rgba(30, 30, 40, 0.7);
      border-radius: 10px;
      transition: all 0.3s ease;
      cursor: pointer;
    }

    .quest-item:hover {
      background: rgba(40, 40, 60, 0.8);
      transform: translateY(-2px);
    }

    .quest-icon {
      width: 30px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-weight: bold;
      font-size: 16px;
      color: #aaa;
    }

    .quest-content {
      flex: 1;
      margin-left: 10px;
      font-size: 14px;
      color: #fff;
    }

    .quest-status {
      width: 24px;
      height: 24px;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 18px;
    }

    .quest-item.completed {
      background: rgba(30, 60, 40, 0.7);
    }

    .quest-item.completed .quest-content {
      text-decoration: line-through;
      color: #aaa;
    }

    .loading-quests {
      text-align: center;
      padding: 20px;
      color: #aaa;
    }

    .refresh-quests {
      font-family: 'Shikamaru', Arial, sans-serif;
      display: block;
      margin: 10px auto;
      padding: 8px 15px;
      background: #2a2a3a;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .refresh-quests:hover {
      background: #3a3a4a;
    }

    :root {
      --primex-eye: #ff2a2a;
    }

    .nav-item.activeee {
      color: var(--primex-eye);
    }

    .nav-item.activeee img {
      transform: scale(1.15);
      filter: brightness(1.3) opacity(1) drop-shadow(0 0 6px #ff2a2a);
      transition: transform 0.3s ease, filter 0.3s ease;
    }

/* âš¡ï¸ Profile Header */
.profile-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(to right, #111111, #0f0f0f);
  border-radius: 20px;
  box-shadow:
    0 0 4px #00ff9d44,
    0 0 12px #00ff9d33,
    0 0 32px #00ff9d22;
  transition: transform 0.3s ease;
  color: #ffffff;
}
.profile-header:hover {
  transform: scale(1.01);
}

/* ðŸŒ€ Avatar */
.profile-avatar-container {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  box-shadow: 0 0 5px var(--primex-primary);
  overflow: hidden; /* Ensure image is masked in circle */
}

.profile-avatar-container:hover {
  transform: rotate(1deg) scale(1.03);
}

.profile-avatar {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);   /* Expand into the border area */
  height: calc(100% + 2px);
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* âœï¸ Edit Avatar Button */
.edit-avatar-btn {
  font-family: 'Shikamaru', Arial, sans-serif;
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 28px;
  height: 28px;
  background: var(--primex-primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 8px var(--primex-primary);
}
.edit-avatar-btn img {
  width: 14px;
  height: 14px;
}

/* ðŸ§  Profile Info */
.profile-info {
  flex: 1;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 255, 157, 0.4);
}
.profile-name {
  font-family: 'Shikamaru', Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.profile-level {
  font-size: 13px;
  color: #ffffffcc;
  margin-bottom: 6px;
}
.profile-xp {
  font-size: 16px;
  color: var(--primex-xp);
  font-weight: 600;
}

/* ðŸš€ XP Bar */
.xp-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 6px;
}
.xp-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #00ff9d, #00d0ff);
  transition: width 0.4s ease-in-out;
  box-shadow: 0 0 10px #00ff9d88;
}
.xp-text {
  font-size: 12px;
  color: #ffffff99;
}

/* ðŸ§¬ Stats Block */
.profile-stats {
  display: flex;
  justify-content: space-around;
  background: #121212;
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #00ff9d;
}
.stat-label {
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}

/* ðŸŽ¯ Actions */
.profile-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.btn-primex-outline {
  font-family: 'Shikamaru', Arial, sans-serif;
  flex: 1;
  height: 40px;
  background: transparent;
  border: 1px solid var(--primex-primary);
  border-radius: 20px;
  color: var(--primex-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-primex-outline:active {
  background: var(--primex-selected);
}

/* ðŸ" Content Tabs */
.content-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}
.content-tabs .tab-btn {
  font-family: 'Shikamaru', Arial, sans-serif;
  flex: 1;
  padding: 12px 0;
  font-size: 16px;
  color: var(--primex-text-secondary);
  background: none;
  border: none;
  position: relative;
  cursor: pointer;
}
.content-tabs .tab-btn.active {
  color: var(--primex-primary);
  font-weight: 500;
}
.content-tabs .tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primex-primary);
}

/* ðŸ—‚ï¸ Tab Content */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* ðŸ–¼ï¸ Posts Grid */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.post-thumbnail {
  aspect-ratio: 1;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.post-thumbnail:active {
  transform: scale(0.98);
}

/* Dark Theme Profile Block Styles */
.core-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-label {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.profile-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.profile-label:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color, #00ffd5);
    box-shadow: 0 8px 32px rgba(0, 255, 213, 0.15);
}

.profile-label:hover::before {
    opacity: 0.1;
}

.label-icon-container {
    flex-shrink: 0;
}

.label-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 255, 213, 0.1);
    border: 1px solid rgba(0, 255, 213, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.label-icon.core-text {
    font-family: 'Shikamaru', Arial, sans-serif;
    font-size: 10px;
    font-weight: 200;
    color: #00ffd5;
    letter-spacing: 1px;
}

.profile-label:hover .label-icon {
    background: rgba(0, 255, 213, 0.2);
    border-color: #00ffd5;
    transform: scale(1.05);
}

.label-content {
    flex: 1;
}

.label-content h3,
.label-content h4 {
    font-family: 'Shikamaru', Arial, sans-serif;
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 200;
    line-height: 1.3;
}

.label-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
}

.interest-tag {
    display: inline-block;
    color: #00ffd5;
    font-size: 12px;
    font-weight: 400;
    margin: 2px 6px 2px 0;
    position: relative;
    padding-left: 12px;
    opacity: 0.9;
}

.interest-tag::before {
    content: "â€¢";
    position: absolute;
    left: 0;
    color: #00ffd5;
    opacity: 0.7;
}

.interest-tag:hover {
    opacity: 1;
    text-shadow: 0 0 8px rgba(0, 255, 213, 0.3);
}

/* Bio Label - Neon Purple */
.bio-label {
    --gradient-bg: linear-gradient(135deg, #8A2BE2 0%, #4B0082 100%);
    --accent-color: #9d4edd;
}

/* Core Label - Neon Cyan */
.core-label {
    --gradient-bg: linear-gradient(135deg, #00B4DB 0%, #0083B0 100%);
    --accent-color: #00ffd5;
}

/* Interest Colors - Neon Theme */

.interest-3 {
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #7c3aed;
}

.interest-4 {
    --gradient-bg: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-color: #ff6b9d;
}

.interest-5 {
    --gradient-bg: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --accent-color: #00d4ff;
}

/* Interests Section */
.interests-section {
    margin-top: 8px;
}

.section-title {
    font-family: 'Shikamaru', Arial, sans-serif;
    position: relative;
    color: #ffffff;
    font-size: 20px;
    font-weight: 200;
    margin: 24px 0 20px 0;
    padding-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    border-radius: 3px;
}

.section-title::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* Optional animation on hover */
.section-title:hover::after {
    width: 100px;
    transition: width 0.3s ease-out;
}

/* For dark backgrounds - add subtle glow */
.section-title {
    text-shadow: 0 0 10px rgba(0, 255, 213, 0.2);
}

.interests-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.interest-card {
    min-height: auto;
}

.interest-card .label-content h4 {
    font-family: 'Shikamaru', Arial, sans-serif;
    font-size: 15px;
    margin-bottom: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .interests-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .core-container {
        padding: 12px;
        gap: 12px;
    }
    
    .profile-label {
        padding: 16px;
        gap: 12px;
    }
    
    .label-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .label-content h3,
    .label-content h4 {
        font-size: 15px;
    }
    
    .label-content p {
        font-size: 13px;
    }
}

/* Animation for loading */
@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.profile-label {
    animation: slideInUp 0.5s ease-out forwards;
}

.back-btn {
  font-family: 'Shikamaru', Arial, sans-serif;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff; /* Or any premium color */
  transition: transform 0.2s, color 0.2s;
}

.back-btn:hover {
  transform: scale(1.1);
  color: #FFD700; /* Gold accent on hover for premium feel */
}

.profile-label:nth-child(1) { animation-delay: 0.1s; }
.profile-label:nth-child(2) { animation-delay: 0.2s; }
.interest-card:nth-child(3) { animation-delay: 0.5s; }
.interest-card:nth-child(4) { animation-delay: 0.6s; }
.interest-card:nth-child(5) { animation-delay: 0.7s; }

/* Glow effect for active states */
.profile-label:hover {
    box-shadow: 
        0 8px 32px rgba(0, 255, 213, 0.15),
        0 0 0 1px var(--accent-color, #00ffd5);
}

/* Ensure compatibility with existing dark theme */
.primex-theme-dark .profile-label {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.primex-theme-dark .label-content h3,
.primex-theme-dark .label-content h4 {
    color: #ffffff;
}

.primex-theme-dark .label-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* Error states */
.error-state {
    color: #ff6b6b;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

.hidden-interest {
    display: none;
}

/* Profile Page Specific Styles */
.profile-container {
    padding: 16px;
    padding-bottom: 80px;
}

.profile-header {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

/* Standardized Footer Styles */
.app-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background-color: #080808;
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    display: flex;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 7px;
}

.main-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 0 10px;
}

.nav-item {
    display: flex;
    flex-direction: column;
  font-family: 'Shikamaru', Arial, sans-serif;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--primex-text-secondary);
    font-size: 10px;
    padding: 5px 6px;
    min-width: 50px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

/* CIRCULAR RIPPLE EFFECT - IMPROVED */
.nav-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    opacity: 0;
}

.nav-item:active::before {
    width: 55px;
    height: 55px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.18);
    transition: all 0.1s ease-out;
}

.nav-item img {
    width: 24px;
    height: 24px;
    margin-bottom: 4px;
    opacity: 0.8;
    transition: all 0.2s ease;
    transform-origin: center;
}

.nav-item span {
    transition: all 0.2s ease;
    transform-origin: center;
  font-family: 'Shikamaru', Arial, sans-serif;
}

/* Premium active states - clean medium glow */
.nav-item.active {
    color: #00FFAA !important;
}

.nav-item.active img {
    opacity: 1;
    color: #00FFAA !important;
    filter: drop-shadow(0 0 8px rgba(0, 255, 170, 0.8)) 
            drop-shadow(0 0 4px rgba(0, 255, 170, 0.6));
    border-radius: 4px;
}

.nav-item.active span {
    color: var(--active-color, #00FFAA) !important; /* fallback to green if not set */
    font-weight: 600;
}

.nav-item.no-active span {
    color: #FFFFFF99 !important;  /* light grayish white */
    font-weight: 500 !important;
}

.nav-item.no-active.active span {
    color: #FFFFFF99 !important;  /* stays same even when active */
    font-weight: 500 !important;
}

.nav-item.no-active.active img {
    filter: none !important;
    opacity: 0.8 !important;
}


/* ENHANCED HOVER EFFECTS (for desktop) */
@media (hover: hover) {
    .nav-item:hover {
        background: rgba(0,255,255,0.05);
        border-radius: 8px;
        transform: translateY(-1px);
    }
    
    .nav-item:hover img {
        transform: scale(1.05);
        filter: drop-shadow(0 0 6px rgba(0,255,255,0.4));
    }
    
    .nav-item:hover span {
        color: #40e0d0;
    }
    
    /* Remove background for active items on hover */
    .nav-item.active:hover {
        background: transparent;
    }
}

/* Remove background for active items on all states */

#home.page {
  position: absolute;
  inset: 0; /* shorthand for top: 0; right: 0; bottom: 0; left: 0 */
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  background-color: #000; /* optional based on your theme */
  -webkit-overflow-scrolling: touch;
}

/* AURA ANIMATION CONTAINER */
.aura-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    background: radial-gradient(circle at center, rgba(0,255,255,0.08), rgba(64,224,208,0.04), transparent);
}

.aura-overlay.active {
    opacity: 1;
    animation: auraExpansion 2.5s ease-out;
}

/* MAIN AURA EXPLOSION */
.aura-core {
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,255,255,0.9) 0%, rgba(64,224,208,0.7) 30%, rgba(173,216,230,0.5) 60%, transparent 100%);
    transform: scale(0);
    filter: blur(2px);
    animation: coreExplosion 2.5s ease-out;
}

/* ENERGY RINGS */
.energy-ring {
    position: absolute;
    border: 2px solid;
    border-radius: 50%;
    animation: ringExpansion 2s ease-out infinite;
}

.ring-1 { 
    border-color: #00ffff; 
    animation-delay: 0s;
}
.ring-2 { 
    border-color: #40e0d0; 
    animation-delay: 0.3s;
}
.ring-3 { 
    border-color: #afeeee; 
    animation-delay: 0.6s;
}

/* LIGHTNING BOLTS */
.lightning {
    position: absolute;
    width: 3px;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0,255,255,0.8), transparent);
    transform-origin: top;
    opacity: 0;
    animation: lightningStrike 0.8s ease-out;
}

.lightning:nth-child(2) { animation-delay: 0.2s; background: linear-gradient(to bottom, rgba(64,224,208,0.8), transparent); }
.lightning:nth-child(3) { animation-delay: 0.4s; background: linear-gradient(to bottom, rgba(173,216,230,0.8), transparent); }
.lightning:nth-child(4) { animation-delay: 0.6s; background: linear-gradient(to bottom, rgba(0,206,209,0.8), transparent); }

/* PARTICLE SYSTEM */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    opacity: 0;
    animation: particleBurst 1.5s ease-out;
}

.particle:nth-child(odd) { background: #40e0d0; }
.particle:nth-child(3n) { background: #afeeee; }
.particle:nth-child(4n) { background: #00ced1; }
.particle:nth-child(5n) { background: rgba(255,255,255,0.9); }

/* POWER WAVES */
.power-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: waveExpansion 2s ease-out;
}

.wave-1 { animation-delay: 0s; border-color: rgba(0, 255, 255, 0.4); }
.wave-2 { animation-delay: 0.5s; border-color: rgba(64, 224, 208, 0.4); }
.wave-3 { animation-delay: 1s; border-color: rgba(173, 238, 238, 0.4); }

/* SCREEN FLASH */
.screen-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.6), rgba(0,255,255,0.2), transparent);
    opacity: 0;
    animation: screenFlash 0.3s ease-out;
}

/* ANIMATIONS */
@keyframes auraExpansion {
    0% { opacity: 0; transform: scale(0); }
    10% { opacity: 1; transform: scale(0.1); }
    50% { opacity: 0.8; transform: scale(1.5); }
    100% { opacity: 0; transform: scale(3); }
}

@keyframes coreExplosion {
    0% { transform: scale(0); opacity: 1; }
    20% { transform: scale(1); opacity: 1; }
    70% { transform: scale(8); opacity: 0.5; }
    100% { transform: scale(15); opacity: 0; }
}

@keyframes ringExpansion {
    0% { 
        width: 50px; 
        height: 50px; 
        opacity: 1; 
        transform: scale(0);
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1);
    }
    100% { 
        width: 800px; 
        height: 800px; 
        opacity: 0; 
        transform: scale(2);
    }
}

@keyframes lightningStrike {
    0% { 
        opacity: 0; 
        transform: scaleY(0) rotate(0deg);
    }
    10% { 
        opacity: 1; 
        transform: scaleY(1) rotate(var(--rotation, 0deg));
    }
    30% { 
        opacity: 1; 
        transform: scaleY(1.2) rotate(var(--rotation, 0deg));
    }
    100% { 
        opacity: 0; 
        transform: scaleY(0) rotate(var(--rotation, 0deg));
    }
}

@keyframes particleBurst {
    0% { 
        opacity: 1; 
        transform: scale(0) translate(0, 0);
    }
    50% { 
        opacity: 1; 
        transform: scale(1) translate(var(--tx), var(--ty));
    }
    100% { 
        opacity: 0; 
        transform: scale(0) translate(calc(var(--tx) * 2), calc(var(--ty) * 2));
    }
}

@keyframes waveExpansion {
    0% { transform: scale(0); opacity: 0.8; }
    100% { transform: scale(10); opacity: 0; }
}

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

/* MOBILE OPTIMIZATION */
@media (max-width: 768px) {
    /* Reduce particle count on mobile */
    .particle:nth-child(n+10) { display: none; }
}

/* PERFORMANCE OPTIMIZATIONS */
.aura-overlay * {
    will-change: transform, opacity;
    backface-visibility: hidden;
    perspective: 1000px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

.quests-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 30px;
}

.quest-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  padding: 24px;
  color: white;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
  overflow: hidden;
}

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

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

.quest-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.quest-card.share { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.quest-card.create { 
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.quest-card.connect { 
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.quest-card.reflect { 
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.quest-card.explore { 
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.quest-card.completing {
  animation: pulse 0.5s ease-in-out;
}

.quest-card.completed {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%) !important;
  transform: scale(0.98);
}

.quest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.quest-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.quest-type {
  font-family: 'Shikamaru', Arial, sans-serif;
  text-transform: uppercase;
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 1.5px;
  opacity: 0.9;
}

.quest-difficulty {
  font-family: 'Shikamaru', Arial, sans-serif;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.2);
  text-transform: capitalize;
  font-weight: 200;
}

.quest-difficulty.easy { background: rgba(40, 167, 69, 0.3); }
.quest-difficulty.medium { background: rgba(255, 193, 7, 0.3); }
.quest-difficulty.hard { background: rgba(220, 53, 69, 0.3); }

.quest-rewards {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.quest-points {
  font-family: 'Shikamaru', Arial, sans-serif;
  background: rgba(255,255,255,0.25);
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 200;
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.quest-time {
  font-size: 10px;
  opacity: 0.8;
  font-weight: 500;
}

.quest-text {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.quest-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.tag {
  background: rgba(255,255,255,0.15);
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 500;
  backdrop-filter: blur(5px);
}

.quest-actions {
  display: flex;
  gap: 8px;
}

.quest-btn {
  font-family: 'Shikamaru', Arial, sans-serif;
  border: none;
  padding: 10px 18px;
  border-radius: 25px;
  font-weight: 200;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.quest-btn.primary {
  background: rgba(255,255,255,0.25);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
  flex: 1;
}

.quest-btn.primary:hover {
  background: rgba(255,255,255,0.35);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.quest-btn.secondary {
  background: rgba(0,0,0,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
}

.quest-btn.secondary:hover {
  background: rgba(0,0,0,0.2);
}

.quest-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.quest-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-top: 2px solid #f0f0f0;
  margin-top: 10px;
}

.user-stats {
  display: flex;
  gap: 20px;
  align-items: center;
}

.stat {
  text-align: center;
}

.stat-value {
  font-family: 'Shikamaru', Arial, sans-serif;
  display: block;
  font-size: 20px;
  font-weight: 400;
  color: #333;
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 11px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.vibe-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vibe-tag {
  font-family: 'Shikamaru', Arial, sans-serif;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 400;
  text-transform: capitalize;
  font-size: 12px;
  color: white;
}

.vibe-tag.chill { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.vibe-tag.brave { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.vibe-tag.deep { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.vibe-tag.wild { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

.mood-indicator {
  font-size: 10px;
  color: #888;
  text-transform: capitalize;
}

.quest-refresh {
  display: flex;
  align-items: center;
  gap: 10px;
}

.refresh-timer {
  font-size: 12px;
  color: #666;
  opacity: 0.8;
}

.refresh-btn {
  font-family: 'Shikamaru', Arial, sans-serif;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.refresh-btn:hover {
  background: #e9ecef;
  transform: rotate(180deg);
}

.loading-quests {
  text-align: center;
  padding: 60px 20px;
  color: #666;
  font-size: 16px;
  font-weight: 500;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes sparkle {
  0% { transform: scale(0) rotate(0deg); opacity: 1; }
  100% { transform: scale(1.5) rotate(180deg); opacity: 0; }
}

.sparkle {
  pointer-events: none;
  z-index: 100;
}

/* Responsive Design */
@media (max-width: 768px) {
  .quest-card {
    padding: 20px;
    margin-bottom: 16px;
  }
  
  .quest-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  
  .quest-rewards {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  
  .quest-actions {
    flex-direction: column;
  }
  
  .quest-footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .user-stats {
    justify-content: center;
  }
}

/* Vibe Selection Buttons */
.vibe-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.vibe-btn {
  font-family: 'Shikamaru', Arial, sans-serif;
  padding: 8px 16px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 12px;
  text-transform: capitalize;
}

.vibe-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.vibe-btn.active.chill {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  color: white;
}

.vibe-btn.active.brave {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-color: #f093fb;
  color: white;
}

.vibe-btn.active.deep {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  border-color: #43e97b;
  color: white;
}

.vibe-btn.active.wild {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  border-color: #fa709a;
  color: white;
}

/* Loading Animation */
.loading-quests::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-top: 2px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

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

/* Advanced Hover Effects */
.quest-card {
  position: relative;
  overflow: hidden;
}

.quest-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.quest-card:hover::after {
  opacity: 1;
}

/* Achievement Badges */
.achievement-popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  z-index: 1000;
  animation: slideInRight 0.5s ease-out;
  backdrop-filter: blur(10px);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .quest-footer {
    border-color: #333;
  }
  
  .stat-value {
    color: #fff;
  }
  
  .stat-label, .refresh-timer {
    color: #aaa;
  }
  
  .refresh-btn {
    background: #333;
    border-color: #555;
    color: #fff;
  }
  
  .vibe-btn {
    background: #333;
    color: #fff;
    border-color: #555;
  }
}
