﻿:root {
       /* Colors */
       --color-bg: #0a0a16;
       --color-bg-light: #121225;
       --color-primary: #bd00ff;
       /* Purple */
       --color-primary-glow: rgba(189, 0, 255, 0.6);
       --color-secondary: #00f3ff;
       /* Cyan/Blue */
       --color-secondary-glow: rgba(0, 243, 255, 0.6);
       --color-text: #ffffff;
       --color-text-muted: #8b8b9e;
       --color-accent: #ff0055;
}

/* Success Modal Specifics */
.success-content {
       text-align: center;
       border: 2px solid #2ecc71 !important;
       background: linear-gradient(145deg, #1a1a1a, #0f2b1d) !important;
}

.success-animation img {
       width: 120px;
       height: 120px;
       object-fit: contain;
       border-radius: 50%;
       box-shadow: 0 0 30px rgba(46, 204, 113, 0.6);
       margin-bottom: 20px;
       animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
       0% {
              transform: scale(0);
              opacity: 0;
       }

       100% {
              transform: scale(1);
              opacity: 1;
       }
}


/* Fonts and Spacing Variables are already defined or should be in :root */


/* ========================================= */
/*      ULTIMATE GAME SHOP UI RE-DESIGN      */
/* ========================================= */

:root {
       --shop-bg: #0f111a;
       --card-bg: #161922;
       --primary: #bd00ff;
       /* Neon Purple */
       --accent: #00f3ff;
       /* Neon Cyan */
       --text-main: #ffffff;
       --text-muted: #8b9bb4;

       /* Rarities */
       --rarity-common: #9e9e9e;
       --rarity-uncommon: #2ecc71;
       --rarity-rare: #3498db;
       --rarity-epic: #9b59b6;
       --rarity-legendary: #f1c40f;
}

/* --- TIERED NAME COLORS --- */
.text-bronze {
       color: #cd7f32 !important;
       text-shadow: 0 0 10px rgba(205, 127, 50, 0.4);
}

.text-silver {
       color: #9e9e9e !important;
       text-shadow: 0 0 5px rgba(158, 158, 158, 0.3);
}

.text-gold {
       color: #ffd700 !important;
       text-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

/* --- Page Background Wrapper --- */
/* --- FIXED NAVIGATION STYLES (PREPENDED) --- */
/* Fix: Ensure shop page is scrollable and has visual feedback */
body.shop-page {
       overflow-y: auto !important;
       overflow-x: hidden !important;
       height: auto !important;
       position: static !important;
}

/* Re-enable scrollbar for shop page only */
body.shop-page::-webkit-scrollbar {
       display: block !important;
       width: 8px;
}

body.shop-page::-webkit-scrollbar-thumb {
       background: var(--primary);
       border-radius: 4px;
}

.navbar {
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       z-index: 9999;
       padding: 0.8rem 0;
       transition: all 0.3s ease;
       background: rgba(10, 10, 22, 0.9);
       backdrop-filter: blur(15px);
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
       display: flex;
       justify-content: center;
}

.nav-container {
       width: 100%;
       max-width: 1400px;
       margin: 0 auto;
       padding: 0 1.5rem;
       display: flex;
       justify-content: center;
       /* Center the active container */
}

/* Ensure this is flex to align links and auth */
.nav-active-container {
       display: flex;
       justify-content: space-between;
       align-items: center;
       width: 100%;
}

.nav-links {
       display: flex;
       gap: 2rem;
       align-items: center;
}

.nav-links a {
       color: var(--text-muted, #8b9bb4);
       text-decoration: none;
       font-weight: 600;
       font-size: 1rem;
       transition: all 0.3s;
       position: relative;
       padding: 5px 0;
}

.nav-links a:hover,
.nav-links a.active {
       color: var(--text-main, #fff);
       text-shadow: 0 0 10px rgba(189, 0, 255, 0.5);
}

.nav-links a.active::after {
       content: '';
       position: absolute;
       bottom: 0;
       left: 0;
       width: 100%;
       height: 2px;
       background: var(--primary, #bd00ff);
       box-shadow: 0 0 10px var(--primary, #bd00ff);
}

/* AUTH & PROFILE ELEMENTS */
.auth-container {
       display: flex;
       align-items: center;
       gap: 1rem;
}

/* Subscription Crown Button */
#subscription-btn,
.subscription-btn {
       background: transparent;
       border: none;
       font-size: 1.8rem;
       cursor: pointer;
       transition: transform 0.3s;
       padding: 5px;
       display: flex !important;
       /* Force Visible */
       align-items: center;
       justify-content: center;
       color: gold;
}

#subscription-btn:hover {
       transform: rotate(15deg) scale(1.1);
       filter: drop-shadow(0 0 10px gold);
}

/* Google Login Button */
.google-btn {
       background: white;
       color: #333;
       border: none;
       padding: 8px 16px;
       border-radius: 50px;
       font-weight: bold;
       display: flex;
       align-items: center;
       gap: 8px;
       cursor: pointer;
       transition: all 0.3s;
       font-size: 0.9rem;
}

.google-btn:hover {
       transform: translateY(-2px);
       box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.google-btn img {
       width: 18px;
       height: 18px;
}

/* User Avatar & Menu */
.user-menu {
       position: relative;
       cursor: pointer;
       display: block;
}

.user-avatar {
       width: 40px;
       height: 40px;
       border-radius: 50%;
       border: 2px solid var(--primary, #bd00ff);
       object-fit: cover;
       display: block;
       /* Ensure it has layout */
       background: #000;
       /* Fallback */
}

/* Mobile Menu Button */
.mobile-menu-btn {
       display: none;
       flex-direction: column;
       gap: 5px;
       cursor: pointer;
       margin-right: 15px;
}

.mobile-menu-btn span {
       width: 25px;
       height: 3px;
       background: #fff;
       border-radius: 2px;
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
       .nav-links {
              display: none;
              /* Hidden by default on mobile */
       }

       .mobile-menu-btn {
              display: flex;
       }
}

/* --- Page Background Wrapper --- */
body.shop-page,
body.inventory-page {
       background-color: var(--shop-bg) !important;
       background-image: radial-gradient(circle at 50% 0%, rgba(189, 0, 255, 0.05), transparent 70%);
       color: var(--text-main);
}

/* --- HUD Header --- */
.dashboard-header {
       background: rgba(22, 25, 34, 0.9) !important;
       backdrop-filter: blur(15px);
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
       padding: 1.5rem 0;
       margin-bottom: 2rem;
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.currency-bar {
       display: flex;
       justify-content: center;
       gap: 3rem;
       margin-bottom: 1.5rem;
}

.currency-item {
       background: rgba(0, 0, 0, 0.5);
       border: 1px solid rgba(255, 255, 255, 0.08);
       padding: 0.6rem 1.8rem;
       border-radius: 100px;
       display: flex;
       align-items: center;
       gap: 1rem;
       box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5);
}

.currency-icon-img {
       width: 32px;
       height: 32px;
       /* Magic fix for black backgrounds */
       /* Circular clip just in case */
       filter: drop-shadow(0 0 5px currentColor);
       /* Unified Glow */
       object-fit: contain;
}

/* Clean Currency Icons */
.currency-icon-img {
       width: 32px;
       height: 32px;
       filter: drop-shadow(0 0 5px currentColor);
       object-fit: contain;
}

/* Global Fix for Currency Icons (Black Backgrounds) */
.currency-icon-img,
.price-icon,
.modal-price-tag img {
       mix-blend-mode: screen !important;
       border-radius: 50%;
}

.currency-value {
       font-family: 'Segoe UI', sans-serif;
       font-weight: 800;
       font-size: 1.4rem;
       color: #fff;
       letter-spacing: 1px;
}

.header-actions {
       display: flex;
       justify-content: center;
       gap: 1.5rem;
}

.shop-link-btn,
.inventory-btn,
.back-btn {
       background: transparent;
       border: 1px solid rgba(255, 255, 255, 0.15);
       color: var(--text-muted);
       padding: 0.7rem 1.8rem;
       border-radius: 8px;
       font-weight: 700;
       transition: all 0.2s ease;
       text-transform: uppercase;
       letter-spacing: 1px;
       display: inline-flex;
       align-items: center;
       gap: 8px;
}

.shop-link-btn:hover,
.inventory-btn:hover,
.back-btn:hover {
       background: var(--primary);
       color: #fff;
       border-color: var(--primary);
       box-shadow: 0 0 25px rgba(189, 0, 255, 0.5);
       transform: translateY(-2px);
}

/* --- Filters --- */
.shop-filters {
       display: flex;
       justify-content: center;
       gap: 1rem;
       margin-bottom: 3rem;
       flex-wrap: wrap;
}

.filter-btn {
       background: var(--card-bg);
       border: 1px solid rgba(255, 255, 255, 0.1);
       color: var(--text-muted);
       padding: 0.8rem 2rem;
       border-radius: 50px;
       cursor: pointer;
       font-weight: 600;
       transition: 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
       background: var(--text-main);
       color: var(--shop-bg);
       box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* --- GRID LAYOUT --- */
.shop-grid {
       display: grid;
       /* Desktop: 3-4 items/row approx */
       grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
       gap: 2rem;
       padding: 0 2rem 6rem 2rem;
       max-width: 1400px;
       margin: 0 auto;
}

/* --- CARD DESIGN --- */
.shop-card {
       background: var(--card-bg);
       border: 1px solid rgba(255, 255, 255, 0.05);
       border-radius: 16px;
       overflow: hidden;
       position: relative;
       transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
       display: flex;
       flex-direction: column;
       /* Rarity Border Bottom */
       border-bottom-width: 4px;
       border-bottom-style: solid;
}

.shop-card:hover {
       transform: translateY(-8px) scale(1.02);
       box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
       z-index: 10;
       border-top-color: rgba(255, 255, 255, 0.2);
}

/* Thumbnail Area */
.card-image-wrapper {
       width: 100%;
       aspect-ratio: 16/10;
       background: radial-gradient(circle at center, rgba(255, 255, 255, 0.05), transparent 70%);
       display: flex;
       align-items: center;
       justify-content: center;
       padding: 1.5rem;
       position: relative;
       overflow: hidden;
}

.item-image {
       max-width: 100%;
       max-height: 100%;
       object-fit: contain;
       /* Ensures image fits like a thumbnail */
       transition: transform 0.4s ease;
       filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.shop-card:hover .item-image {
       transform: scale(1.15) rotate(2deg);
}

/* Content Area */
.card-details {
       padding: 1.5rem;
       flex-grow: 1;
       display: flex;
       flex-direction: column;
       background: linear-gradient(to bottom, var(--card-bg), #11131a);
}

.item-name {
       font-size: 1.3rem;
       font-weight: 800;
       color: #fff;
       margin-bottom: 0.3rem;
       text-align: right;
}

.item-type {
       font-size: 0.85rem;
       color: var(--text-muted);
       text-transform: uppercase;
       letter-spacing: 1px;
       margin-bottom: 1.5rem;
       text-align: right;
}

.price-tags {
       display: inline-flex;
       align-items: center;
       gap: 6px;
       font-size: 1.1rem;
}

/* Action Buttons */
.btn-buy,
.btn-equip {
       margin-top: auto;
       width: 100%;
       padding: 0.9rem;
       border: none;
       border-radius: 8px;
       font-weight: 800;
       font-size: 1rem;
       cursor: pointer;
       /* Neon Gradient */
       background: linear-gradient(90deg, var(--primary), #9b00d9);
       color: white;
       box-shadow: 0 4px 15px rgba(189, 0, 255, 0.3);
       transition: 0.2s;
       outline: none;
       display: flex;
       align-items: center;
       justify-content: center;
       gap: 8px;
}

.btn-buy:hover:not(:disabled),
.btn-equip:hover:not(:disabled) {
       filter: brightness(1.2);
       transform: scale(1.03);
       box-shadow: 0 6px 20px rgba(189, 0, 255, 0.5);
}

.btn-buy:disabled {
       background: #2b3040;
       color: #555;
       box-shadow: none;
       cursor: not-allowed;
       border: 1px solid #333;
}

/* Rarity Colors */
.rarity-common {
       border-bottom-color: var(--rarity-common);
}

.rarity-uncommon {
       border-bottom-color: var(--rarity-uncommon);
}

.rarity-rare {
       border-bottom-color: var(--rarity-rare);
}

.rarity-epic {
       border-bottom-color: var(--rarity-epic);
}

.rarity-legendary {
       border-bottom-color: var(--rarity-legendary);
       box-shadow: 0 0 15px rgba(241, 196, 15, 0.1);
}

/* Inventory Styles */
.equipped-card {
       border: 2px solid var(--accent) !important;
       box-shadow: 0 0 30px rgba(0, 243, 255, 0.2) !important;
}

.btn-equip.active {
       background: var(--accent);
       color: #000;
       box-shadow: 0 0 15px var(--accent);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
       .shop-grid {
              /* Force 2 Columns on Mobile */
              grid-template-columns: 1fr 1fr;
              gap: 12px;
              padding: 0 12px 4rem 12px;
       }

       .card-image-wrapper {
              padding: 1rem;
              aspect-ratio: 1/1;
              /* Square thumbnails on mobile */
       }

       .item-name {
              font-size: 1rem;
       }

       .card-details {
              padding: 1rem;
       }

       .btn-buy,
       .btn-equip {
              padding: 0.7rem;
              font-size: 0.9rem;
       }

       .currency-bar {
              gap: 1rem;
       }
}


*,
*::before,
*::after {
       margin: 0;
       padding: 0;
       box-sizing: border-box;
}

html {
       scroll-behavior: smooth;
       font-size: 16px;
}

body {
       background-color: var(--color-bg);
       color: var(--color-text);
       font-family: var(--font-main);
       line-height: 1.6;
       overflow-x: hidden;
       direction: rtl;
       /* Enforce RTL for Arabic */
}

a {
       text-decoration: none;
       color: inherit;
       transition: all 0.3s ease;
}

ul {
       list-style: none;
}

img {
       max-width: 100%;
       height: auto;
       display: block;
}

.container {
       width: 90%;
       max-width: var(--container-width);
       margin: 0 auto;
       padding: 0 var(--spacing-sm);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
       font-family: var(--font-heading);
       font-weight: 800;
       line-height: 1.2;
       margin-bottom: var(--spacing-sm);
}

h1 {
       font-size: 3.5rem;
       /* Fallback */
       font-size: clamp(3rem, 8vw, 6rem);
       background: linear-gradient(to right, var(--color-secondary), var(--color-primary));
       -webkit-background-clip: text;
       background-clip: text;
       color: transparent;
       text-shadow: 0 0 30px var(--color-primary-glow);
}

.hero-logo {
       max-width: 600px;
       width: 90%;
       height: auto;
       display: block;
       margin: 0 auto var(--spacing-sm) auto;
       filter: drop-shadow(0 0 30px rgba(189, 0, 255, 0.4));
       animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {

       0%,
       100% {
              transform: translateY(0);
              filter: drop-shadow(0 0 30px rgba(189, 0, 255, 0.4));
       }

       50% {
              transform: translateY(-15px);
              filter: drop-shadow(0 0 50px rgba(0, 243, 255, 0.4));
       }
}

.subtitle {
       color: var(--color-secondary);
       font-size: 1.2rem;
       letter-spacing: 2px;
       text-transform: uppercase;
       display: block;
       margin-bottom: var(--spacing-xs);
       font-weight: 700;
}

/* Buttons */
.btn {
       display: inline-block;
       padding: 1rem 2.5rem;
       border-radius: 50px;
       font-family: var(--font-heading);
       font-weight: 700;
       font-size: 1rem;
       cursor: pointer;
       position: relative;
       overflow: hidden;
       z-index: 1;
}

.btn-primary {
       background: linear-gradient(45deg, var(--color-primary), var(--color-accent));
       color: white;
       box-shadow: 0 0 20px var(--color-primary-glow);
       border: none;
}

.btn-primary::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background: linear-gradient(45deg, var(--color-accent), var(--color-primary));
       z-index: -1;
       transition: opacity 0.3s ease;
       opacity: 0;
}

.btn-primary:hover::before {
       opacity: 1;
}

.btn-primary:hover {
       box-shadow: 0 0 40px var(--color-primary-glow), 0 0 20px var(--color-accent);
       transform: translateY(-2px);
}

.btn-outline {
       background: transparent;
       border: 2px solid var(--color-secondary);
       color: var(--color-secondary);
       box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

.btn-outline:hover {
       background: var(--color-secondary);
       color: var(--color-bg);
       box-shadow: 0 0 30px var(--color-secondary-glow);
}

.btn-lg {
       font-size: 1.2rem;
       padding: 1.2rem 3rem;
}

/* Navigation */
.navbar {
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       z-index: 1000;
       padding: 1.5rem 0;
       transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
       background: rgba(10, 10, 22, 0.9);
       backdrop-filter: blur(10px);
       padding: 1rem 0;
       border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
       display: flex;
       justify-content: center;
       align-items: center;
       gap: 2rem;
}

.logo {
       font-family: var(--font-heading);
       font-size: 2rem;
       font-weight: 900;
       color: white;
       letter-spacing: 1px;
}

/* Hero Content Centering */
.hero-content {
       position: relative;
       z-index: 2;
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
       text-align: center;
       height: 100%;
}

/* Hall of Fame Button Fix */
.hof-btn {
       box-shadow: none !important;
       animation: none !important;
       background: rgba(255, 255, 255, 0.05);
       border: 1px solid rgba(255, 255, 255, 0.1);
}

/* More Dropdown */
.more-dropdown {
       position: relative;
       display: inline-block;
}

.more-btn {
       background: transparent;
       border: 2px solid var(--color-primary);
       color: white;
       padding: 0.5rem 1.5rem;
       font-family: var(--font-heading);
       font-weight: 700;
       font-size: 1.1rem;
       cursor: pointer;
       border-radius: 8px;
       transition: all 0.3s ease;
       display: flex;
       align-items: center;
       gap: 0.5rem;
}

.more-btn::after {
       content: '\25BC';
       font-size: 0.8rem;
       transition: transform 0.3s ease;
}

.more-btn.active::after {
       transform: rotate(180deg);
}

.more-btn:hover,
.more-btn.active {
       background: rgba(189, 0, 255, 0.1);
       box-shadow: 0 0 15px var(--color-primary-glow);
       border-color: var(--color-secondary);
       color: var(--color-secondary);
}

.more-menu {
       display: none;
       position: absolute;
       top: 100%;
       right: 0;
       min-width: 200px;
       background: rgba(10, 10, 22, 0.95);
       backdrop-filter: blur(15px);
       border: 1px solid rgba(189, 0, 255, 0.3);
       border-radius: 12px;
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
       z-index: 1000;
       margin-top: 15px;
       flex-direction: column;
       overflow: hidden;
       animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
       from {
              opacity: 0;
              transform: translateY(-10px);
       }

       to {
              opacity: 1;
              transform: translateY(0);
       }
}

.more-menu.show {
       display: flex;
}

.more-menu a {
       color: white;
       padding: 15px 20px;
       text-decoration: none;
       transition: all 0.3s;
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
       text-align: right;
       font-weight: 500;
       display: block;
}

.more-menu a:last-child {
       border-bottom: none;
}

.more-menu a:hover {
       background: linear-gradient(90deg, rgba(189, 0, 255, 0.2), transparent);
       color: var(--color-secondary);
       padding-right: 25px;
       /* Slight shift effect */
}

.nav-links {
       display: flex;
       gap: 2rem;
}

.nav-links a {
       font-weight: 500;
       position: relative;
       opacity: 0.8;
}

.nav-links a:hover {
       opacity: 1;
       color: var(--color-secondary);
}

.nav-links a::after {
       content: '';
       position: absolute;
       bottom: -5px;
       right: 0;
       /* RTL origin */
       width: 0;
       height: 2px;
       background: var(--color-secondary);
       transition: width 0.3s ease;
}

.nav-links a:hover::after {
       width: 100%;
}

/* Hero Section */
.hero {
       height: 100vh;
       width: 100%;
       position: relative;
       display: flex;
       align-items: center;
       justify-content: center;
       text-align: center;
       overflow: hidden;
}


/* Hero Video Background */
.video-container {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       overflow: hidden;
       z-index: -1;
}

.hero-video {
       width: 100vw;
       height: 100vh;
       object-fit: cover;
       position: absolute;
       top: 0;
       left: 0;
}

.video-overlay {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background: rgba(10, 10, 22, 0.7);
       background: linear-gradient(to bottom, rgba(10, 10, 22, 0.5) 0%, rgba(10, 10, 22, 0.8) 100%);
       z-index: 1;
}

/* Ensure content is above video */
.hero-content {
       position: relative;
       z-index: 2;
       padding-top: 60px;
}

/* Animated Grid Background */
.hero-bg::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background-image:
              linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
              linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
       background-size: 50px 50px;
       perspective: 1000px;
       transform-origin: top;
       transform: rotateX(60deg) scale(2);
       opacity: 0.5;
}

.hero-content {
       position: relative;
       z-index: 2;
       padding-top: 60px;
}

/* Hero Content - Adjusted for spacing */
.hero-logo {
       max-width: 600px;
       width: 90%;
       height: auto;
       display: block;
       margin: 0 auto var(--spacing-sm) auto;
       filter: drop-shadow(0 0 30px rgba(189, 0, 255, 0.4));
       animation: floatLogo 6s ease-in-out infinite;
}

.hero-description {
       font-size: 1.3rem;
       color: var(--color-text-muted);
       max-width: 600px;
       margin: 0 auto var(--spacing-md);
}

.hero-btns {
       display: flex;
       gap: 1rem;
       justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
       position: absolute;
       bottom: 2rem;
       left: 50%;
       transform: translateX(-50%);
       display: flex;
       flex-direction: column;
       align-items: center;
       gap: 0.5rem;
       opacity: 0.7;
       animation: bounce 2s infinite;
       z-index: 10;
}

.scroll-indicator span {
       font-size: 0.9rem;
       letter-spacing: 1px;
}

.mouse {
       width: 26px;
       height: 40px;
       border: 2px solid white;
       border-radius: 20px;
       position: relative;
}

.mouse::before {
       content: '';
       position: absolute;
       top: 6px;
       left: 50%;
       transform: translateX(-50%);
       width: 4px;
       height: 4px;
       background: white;
       border-radius: 50%;
       animation: scrollMouse 2s infinite;
}

@keyframes scrollMouse {
       0% {
              transform: translate(-50%, 0);
              opacity: 1;
       }

       100% {
              transform: translate(-50%, 15px);
              opacity: 0;
       }
}

@keyframes bounce {

       0%,
       20%,
       50%,
       80%,
       100% {
              transform: translate(-50%, 0);
       }

       40% {
              transform: translate(-50%, -10px);
       }

       60% {
              transform: translate(-50%, -5px);
       }
}

/* Clean Section Spacing */
.section {
       padding: var(--spacing-xl) 0;
       position: relative;
       opacity: 0;
       /* Hidden initially for scroll reveal */
       transform: translateY(30px);
       transition: all 0.8s ease-out;
}

.section.visible {
       opacity: 1;
       transform: translateY(0);
}

.section-header {
       margin-bottom: var(--spacing-lg);
}

.text-center {
       text-align: center;
}

.section-subtitle {
       color: var(--color-primary);
       font-weight: 700;
       letter-spacing: 1px;
       display: block;
       margin-bottom: var(--spacing-xs);
}

.section-title {
       font-size: 2.5rem;
       color: white;
       margin-bottom: 1rem;
}

.section-text {
       font-size: 1.1rem;
       color: var(--color-text-muted);
       margin-bottom: 1.5rem;
       max-width: 600px;
}

/* About Section */
.about-section {
       background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-light) 50%, var(--color-bg) 100%);
}

.about-container {
       display: grid;
       grid-template-columns: 1fr 1fr;
       gap: var(--spacing-lg);
       align-items: center;
}

.about-visual {
       position: relative;
       height: 400px;
       display: flex;
       align-items: center;

       /* --- Premium Game Shop & Inventory Styles --- */
       .header-actions {
              display: flex;
              justify-content: center;
              gap: 1.5rem;
              margin-bottom: 2.5rem;
       }

       .shop-link-btn,
       .inventory-btn,
       .back-btn {
              background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
              border: 1px solid rgba(255, 255, 255, 0.2);
              color: #ddd;
              padding: 12px 24px;
              border-radius: 12px;
              text-decoration: none;
              transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
              font-weight: bold;
              backdrop-filter: blur(10px);
              display: flex;
              align-items: center;
              gap: 8px;
              box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
       }

       .shop-link-btn:hover,
       .inventory-btn:hover,
       .back-btn:hover {
              background: rgba(189, 0, 255, 0.2);
              border-color: var(--primary);
              transform: translateY(-3px);
              box-shadow: 0 8px 25px rgba(189, 0, 255, 0.3);
              color: white;
              text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
       }

       .shop-filters {
              display: flex;
              justify-content: center;
              gap: 12px;
              margin-bottom: 3rem;
              flex-wrap: wrap;
              background: rgba(0, 0, 0, 0.3);
              padding: 10px;
              border-radius: 50px;
              width: fit-content;
              margin-left: auto;
              margin-right: auto;
              border: 1px solid rgba(255, 255, 255, 0.05);
       }

       .filter-btn {
              background: transparent;
              border: none;
              color: #888;
              padding: 10px 24px;
              border-radius: 20px;
              cursor: pointer;
              transition: all 0.3s;
              font-weight: bold;
              font-size: 1rem;
              position: relative;
              overflow: hidden;
       }

       .filter-btn.active {
              background: var(--primary);
              color: white;
              box-shadow: 0 0 20px rgba(189, 0, 255, 0.5);
       }

       .filter-btn:not(.active):hover {
              color: white;
              background: rgba(255, 255, 255, 0.05);
       }

       /* Grid Layout */
       .shop-grid {
              display: grid;
              grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
              gap: 2rem;
              /* Larger gap for premium feel */
              padding-bottom: 4rem;
       }

       /* Card Design */
       .shop-card {
              background: linear-gradient(160deg, #1a1a2e 0%, #161625 100%);
              border: 1px solid rgba(255, 255, 255, 0.08);
              border-radius: 20px;
              overflow: hidden;
              transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
              position: relative;
              display: flex;
              flex-direction: column;
              box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
       }

       .shop-card:hover {
              transform: translateY(-10px) scale(1.02);
              border-color: var(--accent);
              box-shadow: 0 20px 50px rgba(0, 243, 255, 0.15);
              z-index: 10;
       }

       .shop-card::before {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              width: 100%;
              height: 100%;
              background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
              transform: translateX(-100%);
              transition: 0.6s;
       }

       .shop-card:hover::before {
              transform: translateX(100%);
       }

       .card-image-wrapper {
              width: 100%;
              height: 220px;
              /* Taller images */
              display: flex;
              align-items: center;
              justify-content: center;
              background: radial-gradient(circle at center, rgba(189, 0, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
              padding: 20px;
              position: relative;
       }

       .item-image {
              max-width: 90%;
              max-height: 90%;
              object-fit: contain;
              filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.6));
              transition: transform 0.4s;
       }

       .shop-card:hover .item-image {
              transform: scale(1.1) rotate(2deg);
              filter: drop-shadow(0 0 25px var(--accent));
       }

       .card-details {
              padding: 1.5rem;
              background: rgba(0, 0, 0, 0.2);
              flex-grow: 1;
              display: flex;
              flex-direction: column;
              gap: 10px;
              border-top: 1px solid rgba(255, 255, 255, 0.05);
       }

       .item-name {
              font-size: 1.3rem;
              font-weight: 800;
              margin: 0;
              color: #fff;
              text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
       }

       .item-type {
              font-size: 0.85rem;
              color: #aaa;
              text-transform: uppercase;
              letter-spacing: 1px;
              margin-bottom: auto;
              /* Push buttons down */
       }

       /* Buy/Equip Buttons */
       .btn-buy,
       .btn-equip {
              background: linear-gradient(90deg, #bd00ff, #7a00ff);
              border: none;
              padding: 12px;
              width: 100%;
              border-radius: 12px;
              color: white;
              font-weight: 900;
              cursor: pointer;
              display: flex;
              align-items: center;
              justify-content: center;
              gap: 10px;
              transition: all 0.2s;
              font-size: 1rem;
              box-shadow: 0 5px 15px rgba(122, 0, 255, 0.3);
              margin-top: 10px;
       }

       .btn-buy:hover,
       .btn-equip:hover {
              filter: brightness(1.2);
              transform: scale(1.05);
              box-shadow: 0 8px 25px rgba(122, 0, 255, 0.5);
       }

       .btn-buy:disabled,
       .btn-equip:disabled {
              background: #2a2a3a;
              box-shadow: none;
              cursor: not-allowed;
              color: #666;
              border: 1px solid #444;
       }

       .btn-equip.active {
              background: linear-gradient(90deg, #00f3ff, #0099ff);
              color: #003366;
              box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
       }

       .price-tags {
              display: flex;
              align-items: center;
              gap: 5px;
              background: rgba(0, 0, 0, 0.4);
              padding: 4px 10px;
              border-radius: 8px;
              font-size: 0.95rem;
              border: 1px solid rgba(255, 255, 255, 0.1);
       }

       .price-icon {
              width: 20px;
              height: 20px;
       }

       /* Rarity Effects */
       .rarity-common {
              border-color: #666;
       }

       .rarity-uncommon {
              border-color: #2ecc71;
              box-shadow: 0 0 10px rgba(46, 204, 113, 0.1);
       }

       .rarity-rare {
              border-color: #3498db;
              box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
       }

       .rarity-epic {
              border-color: #9b59b6;
              box-shadow: 0 0 15px rgba(155, 89, 182, 0.2);
       }

       .rarity-legendary {
              border-color: #f1c40f;
              box-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
              animation: legendaryPulse 4s infinite alternate;
       }

       @keyframes legendaryPulse {
              from {
                     box-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
              }

              to {
                     box-shadow: 0 0 30px rgba(241, 196, 15, 0.6);
                     border-color: #fff;
              }
       }

       /* Equipped State */
       .equipped-card {
              border: 2px solid var(--accent);
              box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
       }

       .equipped-card .item-name {
              color: var(--accent);
       }

       /* --- Profile Frame Overlay --- */
       .profile-frame-overlay {
              position: absolute;
              top: -15%;
              left: -15%;
              width: 130%;
              height: 130%;
              /* Larger than avatar */
              pointer-events: none;
              z-index: 2;
              object-fit: contain;
              filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
       }

       /* Mobile Adjustments */
       @media (max-width: 768px) {
              .shop-grid {
                     grid-template-columns: repeat(2, 1fr);
                     /* 2 Columns on Mobile */
                     gap: 1rem;
              }

              .shop-card .item-name {
                     font-size: 1rem;
              }

              .card-image-wrapper {
                     height: 140px;
                     padding: 10px;
              }

              .btn-buy,
              .btn-equip {
                     padding: 8px;
                     font-size: 0.9rem;
              }

              .section-card {
                     background: var(--bg-glass);
                     border: 1px solid var(--border);
                     border-radius: 20px;
                     padding: 1.5rem;
                     height: auto;
                     /* Allow content to dictate height */
                     margin-bottom: 2rem;
                     /* Add spacing between cards */
              }

              .currency-bar {
                     width: 95%;
                     padding: 6px;
              }
       }

       justify-content: center;
}

.visual-card {
       width: 80%;
       height: 80%;
       background: rgba(255, 255, 255, 0.05);
       border: 1px solid rgba(255, 255, 255, 0.1);
       backdrop-filter: blur(10px);
       border-radius: 20px;
       position: relative;
       transform: rotate(-5deg);
       transition: transform 0.5s ease;
       overflow: hidden;
}

.visual-card:hover {
       transform: rotate(0deg) scale(1.05);
}

.about-img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       display: block;
}

.visual-card::before {
       content: '';
       position: absolute;
       inset: -2px;
       background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
       z-index: -1;
       border-radius: 22px;
       opacity: 0.5;
       filter: blur(10px);
}

.placeholder-icon {
       font-size: 5rem;
       filter: drop-shadow(0 0 20px var(--color-primary));
}

/* Features Section */
.features-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
       gap: 2rem;
}

.feature-card {
       background: rgba(255, 255, 255, 0.03);
       border: 1px solid rgba(255, 255, 255, 0.05);
       padding: 2.5rem;
       border-radius: 15px;
       transition: all 0.4s ease;
       cursor: pointer;
       position: relative;
       overflow: hidden;
}

.feature-card:hover,
.feature-card.active {
       background: rgba(255, 255, 255, 0.08);
       transform: translateY(-10px);
       border-color: var(--color-primary);
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card::after {
       content: '';
       position: absolute;
       bottom: 0;
       left: 0;
       width: 100%;
       height: 3px;
       background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
       transform: scaleX(0);
       transform-origin: right;
       /* RTL origin */
       transition: transform 0.4s ease;
}

.feature-card:hover::after,
.feature-card.active::after {
       transform: scaleX(1);
}

.card-icon {
       font-size: 3rem;
       margin-bottom: 1.5rem;
       display: inline-block;
       padding: 10px;
       background: rgba(189, 0, 255, 0.1);
       border-radius: 50%;
       width: 80px;
       height: 80px;
       display: flex;
       align-items: center;
       justify-content: center;
       transition: all 0.4s ease;
}

.feature-card:hover .card-icon {
       background: var(--color-primary);
       color: white;
       box-shadow: 0 0 20px var(--color-primary-glow);
}

.feature-card h3 {
       font-size: 1.5rem;
       margin-bottom: 1rem;
       color: white;
}

.feature-card p {
       color: var(--color-text-muted);
       font-size: 0.95rem;
}

/* Gallery Section */
.gallery-grid {
       display: grid;
       grid-template-columns: repeat(2, 1fr);
       gap: 1rem;
       height: 600px;
}

.gallery-item {
       background: #222;
       border-radius: 10px;
       overflow: hidden;
       position: relative;
       transition: all 0.5s ease;
       border: 1px solid rgba(255, 255, 255, 0.1);
       height: 100%;
}

.gallery-item img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       transition: transform 0.5s ease;
       display: block;
}

.gallery-item:hover img {
       transform: scale(1.1);
}

/* Remove gradient placeholders */
.item-1,
.item-2,
.item-3,
.item-4 {
       background: none;
}


.gallery-item:hover {
       transform: scale(0.98);
       border-color: var(--color-secondary);
       box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

/* Newsletter Section */
.newsletter-section {
       padding: var(--spacing-lg) 0;
       background: linear-gradient(90deg, rgba(189, 0, 255, 0.1), rgba(0, 243, 255, 0.1));
       text-align: center;
       margin-top: var(--spacing-lg);
       border-top: 1px solid rgba(255, 255, 255, 0.1);
       border-bottom: 1px solid rgba(255, 255, 255, 0.1);
       position: relative;
       overflow: hidden;
}

.newsletter-content h2 {
       margin-bottom: 1rem;
}

.newsletter-content p {
       color: var(--color-text-muted);
       margin-bottom: 2rem;
}

.newsletter-form {
       display: inline-flex;
       gap: 1rem;
       background: rgba(255, 255, 255, 0.05);
       padding: 0.5rem;
       border-radius: 50px;
       border: 1px solid rgba(255, 255, 255, 0.1);
       width: 100%;
       max-width: 500px;
}

.newsletter-form input {
       background: transparent;
       border: none;
       color: white;
       padding: 0 1.5rem;
       flex-grow: 1;
       font-family: var(--font-main);
       outline: none;
}

.newsletter-form button {
       border-radius: 40px;
       padding: 0.8rem 2rem;
}

/* Footer */

/* --- Profile Page Styles --- */
.profile-section {
       padding-top: 120px;
       /* Space for navbar */
       padding-bottom: var(--spacing-lg);
       min-height: 100vh;
       background-image:
              linear-gradient(rgba(10, 10, 22, 0.9), rgba(10, 10, 22, 0.9)),
              url('../assets/images/world-map.jpg');
       /* Reuse existing asset as bg */
       background-size: cover;
       background-position: center;
       background-attachment: fixed;
}

.profile-container {
       max-width: 900px;
       margin: 0 auto;
}

.profile-card {
       background: rgba(20, 20, 35, 0.8);
       backdrop-filter: blur(20px);
       border: 1px solid rgba(189, 0, 255, 0.2);
       border-radius: 20px;
       padding: var(--spacing-md);
       box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
       margin-bottom: var(--spacing-md);
}

.profile-header {
       display: flex;
       align-items: center;
       gap: var(--spacing-md);
       margin-bottom: var(--spacing-md);
       padding-bottom: var(--spacing-md);
       border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-avatar-large {
       width: 120px;
       height: 120px;
       border-radius: 50%;
       border: 3px solid var(--color-primary);
       box-shadow: 0 0 20px var(--color-primary-glow);
       object-fit: cover;
}

.profile-info h1 {
       font-size: 2.5rem;
       margin-bottom: 0.5rem;
       background: none;
       /* Reset gradient for name */
       -webkit-text-fill-color: initial;
       color: white;
       text-shadow: none;
}

.profile-title {
       color: var(--color-secondary);
       font-family: var(--font-heading);
       font-size: 1.2rem;
       letter-spacing: 1px;
       margin-bottom: 0.5rem;
       display: block;
}

.profile-email {
       color: var(--color-text-muted);
       font-size: 0.9rem;
}

.profile-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
       gap: var(--spacing-md);
}

.profile-block {
       margin-bottom: var(--spacing-md);
}

.profile-block h3 {
       color: var(--color-primary);
       margin-bottom: 1rem;
       border-bottom: 1px solid rgba(255, 255, 255, 0.1);
       padding-bottom: 0.5rem;
       display: inline-block;
}

.info-group {
       margin-bottom: 1rem;
}

.info-label {
       display: block;
       color: var(--color-text-muted);
       margin-bottom: 0.5rem;
       font-size: 0.9rem;
}

.info-value {
       font-size: 1.1rem;
       color: white;
       font-weight: 500;
}

/* Form inputs for profile */
.profile-input,
.profile-select,
.profile-textarea {
       width: 100%;
       background: rgba(0, 0, 0, 0.3);
       border: 1px solid rgba(255, 255, 255, 0.1);
       border-radius: 8px;
       padding: 0.8rem;
       color: white;
       font-family: var(--font-main);
       transition: all 0.3s ease;
}

.profile-input:focus,
.profile-select:focus,
.profile-textarea:focus {
       border-color: var(--color-primary);
       box-shadow: 0 0 10px rgba(189, 0, 255, 0.2);
       outline: none;
}

.subscription-display {
       text-align: center;
       padding: 2rem;
       background: rgba(0, 0, 0, 0.3);
       border-radius: 15px;
       border: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-badge {
       font-size: 4rem;
       margin-bottom: 1rem;
       display: block;
}

.sub-name {
       font-size: 1.5rem;
       font-weight: bold;
       color: white;
       margin-bottom: 0.5rem;
}

.sub-status {
       display: inline-block;
       padding: 0.3rem 1rem;
       border-radius: 20px;
       font-size: 0.9rem;
       font-weight: bold;
}

.sub-status.active {
       background: rgba(0, 255, 0, 0.2);
       color: #00ff88;
       border: 1px solid #00ff88;
}

.sub-status.none {
       background: rgba(255, 255, 255, 0.1);
       color: var(--color-text-muted);
}

.profile-actions {
       display: flex;
       justify-content: flex-end;
       gap: 1rem;
       margin-top: 2rem;
}

/* Subscription Specific Styles */
.mini-plan {
       color: #cd7f32;
       text-shadow: 0 0 10px #cd7f32;
}

.persevering-plan {
       color: #c0c0c0;
       text-shadow: 0 0 10px #c0c0c0;
}

.legendary-plan {
       color: #ffd700;
       text-shadow: 0 0 10px #ffd700;
}


footer {
       padding: 2rem 0;
       text-align: center;
       border-top: 1px solid rgba(255, 255, 255, 0.05);
       background: var(--color-bg-light);
}


.footer-logo {
       font-family: var(--font-heading);
       font-weight: 800;
       font-size: 1.5rem;
       color: white;
       margin-bottom: 1rem;
}

.copyright {
       color: var(--color-text-muted);
       font-size: 0.9rem;
}

/* Default: Hide Mobile Menu Button on Desktop */
.mobile-menu-btn {
       display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
       h1 {
              font-size: 3rem;
       }

       .nav-links {
              display: none;
              /* Hide for now, will add JS toggle */
       }

       .hero-btns {
              flex-direction: column;
       }

       .about-container {
              grid-template-columns: 1fr;
       }

       .gallery-grid {
              height: auto;
              grid-template-columns: 1fr;
       }

       .item-1 {
              grid-row: auto;
              height: 250px;
       }

       .gallery-item {
              height: 200px;
       }

       .newsletter-form {
              flex-direction: column;
              border-radius: 20px;
              padding: 1.5rem;
       }
}

/* Story Page Styles */
.page-header {
       padding: 150px 0 80px;
       background: radial-gradient(circle at 50% 0%, rgba(189, 0, 255, 0.2) 0%, transparent 70%);
       text-align: center;
}

.page-header h1 {
       font-size: 4rem;
       margin-bottom: 1rem;
}

.page-header p {
       color: var(--color-text-muted);
       max-width: 600px;
       margin: 0 auto;
       font-size: 1.2rem;
}

.books-section {
       padding-bottom: var(--spacing-xl);
}

.books-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
       gap: 3rem;
       perspective: 1000px;
}

.book-card {
       background: transparent;
       border-radius: 15px;
       transition: transform 0.4s ease;
}

.book-card:hover {
       transform: translateY(-10px);
}

.book-cover {
       height: 400px;
       border-radius: 10px 20px 20px 10px;
       position: relative;
       box-shadow:
              -5px 5px 15px rgba(0, 0, 0, 0.5),
              inset 5px 0 15px rgba(255, 255, 255, 0.1);
       /* Spine effect */
       margin-bottom: 1.5rem;
       transition: all 0.5s ease;
       transform-style: preserve-3d;
       cursor: pointer;
       overflow: hidden;
       display: flex;
       align-items: center;
       justify-content: center;
       text-align: center;
       padding: 2rem;
       border: 1px solid rgba(255, 255, 255, 0.1);
}

.book-cover:hover {
       box-shadow:
              -10px 10px 30px rgba(0, 0, 0, 0.6),
              0 0 30px var(--color-primary-glow);
       transform: rotateY(-10deg);
}

/* Reuse gallery gradients for book covers for now */
.book-cover.item-1 {
       background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.book-cover.item-2 {
       background: linear-gradient(135deg, #2c003e 0%, #533483 100%);
}

.book-cover.item-3 {
       background: linear-gradient(135deg, #0f3460 0%, #1f4068 100%);
}

.book-content {
       z-index: 2;
}

.book-content h3 {
       font-size: 2rem;
       color: white;
       margin-bottom: 0.5rem;
       font-family: var(--font-heading);
       text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.chapter-num {
       display: block;
       color: var(--color-secondary);
       font-weight: 700;
       letter-spacing: 2px;
       text-transform: uppercase;
       font-size: 0.9rem;
}

.book-info h3 {
       font-size: 1.4rem;
       margin-bottom: 0.5rem;
}

.book-info p {
       color: var(--color-text-muted);
       font-size: 0.95rem;
       margin-bottom: 1.5rem;
}

.btn-sm {
       padding: 0.5rem 1.5rem;
       font-size: 0.9rem;
}

.nav-links .active {
       color: var(--color-secondary);
       font-weight: 700;
}

.nav-links .active::after {
       width: 100%;
}

/* World Map Section */
.map-section {
       position: relative;
       overflow: hidden;
}

.map-container {
       position: relative;
       border-radius: 20px;
       overflow: hidden;
       box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
       border: 1px solid rgba(255, 255, 255, 0.1);
       transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.map-container:hover {
       transform: translateY(-5px);
       box-shadow: 0 10px 60px rgba(189, 0, 255, 0.2);
       border-color: var(--color-primary);
}

.world-map-img {
       width: 100%;
       height: auto;
       display: block;
       transition: transform 1s ease;
}

.map-container:hover .world-map-img {
       transform: scale(1.02);
}

.map-overlay {
       position: absolute;
       bottom: 0;
       left: 0;
       width: 100%;
       padding: 3rem;
       background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
       color: white;
       opacity: 0;
       transform: translateY(20px);
       transition: all 0.5s ease;
}

.map-container:hover .map-overlay {
       opacity: 1;
       transform: translateY(0);
}

.map-content h3 {
       font-size: 2rem;
       margin-bottom: 0.5rem;
       color: var(--color-primary);
       font-family: var(--font-heading);
}

.map-content p {
       color: #ddd;
       font-size: 1.1rem;
       max-width: 600px;
}

/* Book Detail Page Styles */
.book-detail-layout {
       display: flex;
       flex-direction: column;
       align-items: center;
       gap: 2rem;
       margin-top: 2rem;
}

.book-cover-large {
       width: 250px;
       box-shadow: 0 0 50px rgba(189, 0, 255, 0.3);
       border-radius: 15px;
       overflow: hidden;
       transform: rotateY(-10deg) rotateX(5deg);
       transition: transform 0.5s ease;
}

.book-cover-large:hover {
       transform: rotateY(0) rotateX(0) scale(1.05);
}

.book-cover-large img {
       width: 100%;
       display: block;
}

.book-intro h1 {
       font-size: 3.5rem;
       margin-bottom: 1rem;
       color: white;
}

.chapters-section {
       padding: 4rem 0;
}

.chapters-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
       gap: 1.5rem;
       max-width: 900px;
       margin: 0 auto;
}

.chapter-btn {
       display: flex;
       align-items: center;
       justify-content: center;
       padding: 1.5rem;
       background: rgba(255, 255, 255, 0.05);
       border: 1px solid rgba(255, 255, 255, 0.1);
       border-radius: 12px;
       color: white;
       font-family: var(--font-heading);
       font-size: 1.2rem;
       text-decoration: none;
       transition: all 0.3s ease;
       backdrop-filter: blur(5px);
}

.chapter-btn:hover {
       background: var(--color-primary);
       /* Use primary color on hover */
       border-color: var(--color-primary-glow);
       box-shadow: 0 0 20px var(--color-primary-glow);
       transform: translateY(-5px);
       color: white;
}

@media (min-width: 768px) {
       .book-detail-layout {
              flex-direction: row;
              text-align: right;
              align-items: flex-start;
              justify-content: center;
       }

       .book-cover-large {
              width: 300px;
       }

       .book-intro {
              max-width: 600px;
              padding-top: 2rem;
       }
}

/* Hero Page Styles */
.heroes-grid {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
       gap: 3rem;
       padding: 2rem 0;
}

.hero-card {
       background: linear-gradient(145deg, rgba(20, 20, 40, 0.8), rgba(10, 10, 22, 0.9));
       border-radius: 20px;
       overflow: hidden;
       border: 1px solid rgba(255, 255, 255, 0.1);
       transition: all 0.4s ease;
       position: relative;
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-card:hover {
       transform: translateY(-10px);
       border-color: var(--color-primary);
       box-shadow: 0 20px 50px rgba(189, 0, 255, 0.2);
}

.hero-image-wrapper {
       position: relative;
       height: 400px;
       overflow: hidden;
}

.hero-image-wrapper img {
       width: 100%;
       height: 100%;
       object-fit: cover;
       transition: transform 0.6s ease;
}

.hero-card:hover .hero-image-wrapper img {
       transform: scale(1.1);
}

.hero-overlay {
       position: absolute;
       bottom: 0;
       left: 0;
       width: 100%;
       height: 50%;
       background: linear-gradient(to top, #0a0a16, transparent);
       z-index: 1;
}

.hero-content {
       position: relative;
       padding: 2rem;
       text-align: center;
       z-index: 2;
       margin-top: -80px;
       /* Pull content up over the image fade */
}

.hero-content h3 {
       font-size: 2.2rem;
       margin-bottom: 0.5rem;
       color: white;
       text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
       font-family: var(--font-heading);
}

.hero-role {
       color: var(--color-primary);
       font-size: 1.1rem;
       font-weight: 700;
       text-transform: uppercase;
       letter-spacing: 1px;
       margin-bottom: 1rem;
       display: inline-block;
       padding: 0.3rem 1rem;
       background: rgba(189, 0, 255, 0.1);
       border-radius: 50px;
       border: 1px solid rgba(189, 0, 255, 0.3);
}

.hero-desc {
       color: #ccc;
       line-height: 1.6;
       font-size: 1rem;
}

/* Modal Base Styles (Generic) */
.modal {
       display: none;
       position: fixed;
       z-index: 2000;
       left: 0;
       top: 0;
       width: 100%;
       height: 100%;
       overflow: auto;
       background-color: rgba(0, 0, 0, 0.8);
       backdrop-filter: blur(5px);
}

.modal-content {
       background-color: #1a1a2e;
       margin: 15% auto;
       padding: 20px;
       border: 1px solid var(--color-primary);
       width: 90%;
       max-width: 600px;
       border-radius: 15px;
       position: relative;
       box-shadow: 0 0 50px rgba(189, 0, 255, 0.3);
       animation: modalFadeIn 0.3s;
}

.close-modal {
       color: #aaa;
       float: left;
       font-size: 28px;
       font-weight: bold;
       cursor: pointer;
       transition: color 0.3s;
}

.close-modal:hover,
.close-modal:focus {
       color: var(--color-primary);
       text-decoration: none;
}

@keyframes modalFadeIn {
       from {
              opacity: 0;
              transform: translateY(-50px);
       }

       to {
              opacity: 1;
              transform: translateY(0);
       }
}

/* Auth Styles */
.auth-container {
       display: flex;
       align-items: center;
       margin-right: 20px;
}

.google-btn {
       display: flex;
       align-items: center;
       gap: 12px;
       background: rgba(255, 255, 255, 0.05);
       color: white;
       border: 1px solid rgba(255, 255, 255, 0.1);
       padding: 8px 20px 8px 8px;
       border-radius: 30px;
       font-family: var(--font-main);
       font-weight: 600;
       cursor: pointer;
       transition: all 0.3s ease;
       backdrop-filter: blur(5px);
       text-decoration: none;
       /* Just in case */
}

.google-btn img {
       width: 28px;
       height: 28px;
       background: white;
       border-radius: 50%;
       padding: 2px;
}

.google-btn:hover {
       background: rgba(255, 255, 255, 0.1);
       border-color: var(--color-primary);
       box-shadow: 0 0 20px rgba(0, 243, 255, 0.2);
       transform: translateY(-2px);
}

.google-btn span {
       font-size: 0.95rem;
       letter-spacing: 0.5px;
}

.user-menu {
       position: relative;
       cursor: pointer;
}

.user-avatar {
       width: 40px;
       height: 40px;
       border-radius: 50%;
       border: 2px solid var(--color-primary);
       object-fit: cover;
       transition: transform 0.3s;
       aspect-ratio: 1/1;
       /* Force square ratio for circle */
}

.user-menu:hover .user-avatar {
       transform: scale(1.1);
       box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Subscription UI - Matched to Profile Size */
/* Subscription UI - Crown Icon */
.subscription-btn {
       background: transparent;
       border: none;
       width: 45px;
       height: 45px;
       cursor: pointer;
       display: flex;
       align-items: center;
       justify-content: center;
       transition: transform 0.3s ease, filter 0.3s ease;
       z-index: 10;
       margin-top: 5px;
       /* Alignment fix */
}

.subscription-btn:hover {
       transform: scale(1.2) rotate(5deg);
       filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.sub-icon {
       font-size: 2rem;
       background: linear-gradient(to bottom, #ffd700, #ffaa00);
       -webkit-background-clip: text;
       background-clip: text;
       color: transparent;
       filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.sub-icon {
       font-size: 1.4rem;
}

/* Shield Icons - Proportional */
.shield-icon {
       width: 35px;
       height: 40px;
       display: none;
       background-size: contain;
       background-repeat: no-repeat;
       background-position: center;
       filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.dropdown-menu {
       display: none;
       position: absolute;
       top: 100%;
       left: 50%;
       transform: translateX(-50%);
       background: #1a1a2e;
       border: 1px solid rgba(255, 255, 255, 0.1);
       border-radius: 10px;
       padding: 0.5rem;
       width: 150px;
       box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
       z-index: 1001;
}

.user-menu:hover .dropdown-menu {
       display: flex;
       flex-direction: column;
}

.dropdown-menu a {
       color: white;
       text-decoration: none;
       padding: 0.5rem 1rem;
       font-size: 0.9rem;
       transition: background 0.3s;
       border-radius: 5px;
       text-align: center;
}

.dropdown-menu a:hover {
       background: rgba(255, 255, 255, 0.1);
       color: var(--color-secondary);
}

/* Profile Modal Specifics */
.profile-modal-content {
       max-width: 500px;
}

/* --- PREMIUM SUBSCRIPTION MODAL STYLES --- */

/* Modal Content Background */
.subscription-modal-content {
       max-width: 950px !important;
       background: #0f0f1a;
       border: 1px solid rgba(255, 255, 255, 0.1);
       background-image: radial-gradient(circle at 50% 0%, rgba(30, 30, 50, 0.5), transparent);
}

.plans-container {
       display: grid;
       grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
       gap: 2rem;
       margin-top: 3rem;
}

/* Card Base */
.plan-card {
       background: rgba(255, 255, 255, 0.03);
       border-radius: 20px;
       padding: 0;
       text-align: center;
       border: 1px solid rgba(255, 255, 255, 0.05);
       transition: all 0.4s ease;
       position: relative;
       overflow: hidden;
       /* Important for badge */
       display: flex;
       flex-direction: column;
}

.plan-card:hover {
       transform: translateY(-10px);
       background: rgba(255, 255, 255, 0.05);
}

/* Plan Colors */
.plan-card.mini {
       border-top: 5px solid #cd7f32;
}

.plan-card.mini:hover {
       box-shadow: 0 10px 30px rgba(205, 127, 50, 0.15);
       border-color: #cd7f32;
}

.plan-card.pro {
       border-top: 5px solid #c0c0c0;
}

.plan-card.pro:hover {
       box-shadow: 0 10px 30px rgba(192, 192, 192, 0.15);
       border-color: #c0c0c0;
}

.plan-card.plus {
       border-top: 5px solid #ffd700;
       background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0));
       border: 1px solid rgba(255, 215, 0, 0.2);
}

.plan-card.plus:hover {
       box-shadow: 0 15px 40px rgba(255, 215, 0, 0.2);
       border-color: #ffd700;
       transform: translateY(-15px) scale(1.02);
}

/* Visuals & Icons */
.plan-visual {
       padding: 2.5rem 0 1rem;
       position: relative;
}

.plan-icon {
       font-size: 4.5rem;
       filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
       transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.plan-card:hover .plan-icon {
       transform: scale(1.2) rotate(5deg);
}

.plan-header h3 {
       font-size: 1.6rem;
       margin: 0.5rem 0;
       color: white;
       font-weight: 800;
       text-transform: uppercase;
       letter-spacing: 0.5px;
}

.price {
       font-size: 2.2rem;
       font-weight: 900;
       color: white;
       margin-bottom: 1rem;
       text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.price span {
       font-size: 1rem;
       color: #888;
       font-weight: 400;
}

.plan-divider {
       height: 1px;
       background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
       width: 80%;
       margin: 1rem auto;
}

/* Feature List */
.plan-features {
       list-style: none;
       padding: 1rem 1.5rem;
       text-align: right;
       flex-grow: 1;
       /* Pushes button down */
}

.plan-features li {
       display: flex;
       align-items: center;
       gap: 1rem;
       margin-bottom: 1.2rem;
       padding-bottom: 1rem;
       border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.plan-features li:last-child {
       border-bottom: none;
}

.feature-icon {
       font-size: 1.4rem;
       min-width: 30px;
       text-align: center;
}

.feature-text {
       display: flex;
       flex-direction: column;
}

.feature-text strong {
       color: #f0f0f0;
       font-size: 0.95rem;
}

.feature-text small {
       color: #888;
       font-size: 0.75rem;
       margin-top: 2px;
}

/* Buttons */
.btn-plan {
       width: 85%;
       margin: 0 auto 2.5rem;
       padding: 1rem;
       border-radius: 12px;
       border: 1px solid rgba(255, 255, 255, 0.1);
       background: rgba(255, 255, 255, 0.05);
       color: white;
       font-weight: bold;
       cursor: pointer;
       transition: all 0.3s;
       font-size: 1rem;
}

.btn-plan:hover {
       background: white;
       color: black;
       transform: scale(1.05);
}

.btn-plan.primary {
       background: linear-gradient(45deg, #ffd700, #ffaa00);
       color: black;
       border: none;
       box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.btn-plan.primary:hover {
       background: linear-gradient(45deg, #ffed4a, #ffc400);
       box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}

/* Badge */
.plan-badge {
       position: absolute;
       top: 20px;
       right: -32px;
       background: #ffd700;
       color: black;
       padding: 5px 40px;
       transform: rotate(45deg);
       font-size: 0.75rem;
       font-weight: 900;
       box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
       z-index: 2;
}



.profile-form {
       display: flex;
       flex-direction: column;
       gap: 1rem;
}

.profile-form label {
       color: var(--color-secondary);
       font-size: 0.9rem;
       margin-bottom: -0.5rem;
}

.profile-form input {
       background: rgba(255, 255, 255, 0.05);
       border: 1px solid rgba(255, 255, 255, 0.1);
       padding: 0.8rem;
       border-radius: 8px;
       color: white;
       font-family: var(--font-main);
       outline: none;
       transition: border-color 0.3s;
}

.profile-form input:focus {
       border-color: var(--color-primary);
}

.profile-form input:disabled {
       opacity: 0.5;
       cursor: not-allowed;
}


/* --- Nav Container Wrapper (Desktop) --- */
.nav-active-container {
       display: flex;
       align-items: center;
       gap: 2rem;
       /* width: 100%; Removed this to fix desktop layout spreading */
       justify-content: flex-start;
       /* Align closer to other items or center if preferred, but not taking full width */
}

.profile-form button {
       margin-top: 1rem;
       align-self: center;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

       /* General Spacing */
       :root {
              --spacing-lg: 2.5rem;
              --spacing-xl: 4rem;
       }

       /* Force Section Visibility on Mobile */
       .section {
              opacity: 1 !important;
              transform: none !important;
       }

       /* Heroes Grid Mobile */
       .heroes-grid {
              grid-template-columns: 1fr;
              gap: 2rem;
              padding: 1rem;
       }

       /* Navbar */
       .navbar {
              padding: 1rem 0;
       }

       .nav-container {
              justify-content: space-between;
              padding: 0 1.5rem;
              align-items: center;
       }

       /* Unpack "More" menu items into the drawer on mobile */
       .more-dropdown {
              display: block !important;
              width: 100%;
       }

       .more-btn {
              display: none !important;
              /* Hide the toggle button */
       }

       .more-menu {
              position: static !important;
              display: flex !important;
              flex-direction: column;
              background: transparent !important;
              box-shadow: none !important;
              opacity: 1 !important;
              visibility: visible !important;
              transform: none !important;
              width: 100% !important;
              padding: 0 !important;
       }

       .more-menu a {
              color: white !important;
              border-bottom: 1px solid rgba(255, 255, 255, 0.1);
              padding: 1rem;
              text-align: center;
              width: 100%;
       }
}

/* Ensure Auth Container is Visible and positioned correctly */
.auth-container {
       display: flex !important;
       /* Force visible */
       align-items: center;
       gap: 10px;
}

/* Adjust elements inside auth-container for mobile to fit better */
.auth-container .google-btn {
       padding: 0.5rem 1rem;
       font-size: 0.8rem;
}

.auth-container .google-btn span {
       display: inline-block;
       font-size: 0.8rem;
}

.auth-container .google-btn img {
       width: 18px;
       height: 18px;
}

.mobile-menu-btn span {
       width: 25px;
       height: 3px;
       background-color: white;
       border-radius: 2px;
       transition: all 0.3s ease;
}

/* Mobile Nav Active State (Hamburger Animation) */
.mobile-menu-btn.active span:nth-child(1) {
       transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
       opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
       transform: rotate(-45deg) translate(5px, -6px);
}

/* Container for the expanded menu */
/* Container for the expanded menu (Mobile Only) */
@media (max-width: 768px) {
       .nav-active-container {
              position: fixed;
              top: 60px;
              left: 0;
              width: 100%;
              height: calc(100vh - 60px);
              background: rgba(10, 10, 22, 0.98);
              backdrop-filter: blur(15px);
              z-index: 1000;
              display: none;
              flex-direction: column;
              align-items: center;
              justify-content: flex-start;
              padding-top: 4rem;
              gap: 2rem;
              animation: fadeIn 0.3s ease-out;
       }

       .navbar.mobile-active .nav-active-container {
              display: flex;
       }
}

/* Re-style dropdown for mobile */
.more-dropdown {
       position: static;
       width: 100%;
       text-align: center;
}

.more-btn {
       width: 80%;
       justify-content: center;
       margin: 0 auto;
}

.more-menu {
       position: static;
       width: 80%;
       margin: 10px auto 0;
       background: transparent;
       box-shadow: none;
       border: none;
}

/* Hero Section */
.hero-content {
       padding-top: 80px;
}

h1 {
       font-size: 2.5rem;
       /* Smaller hero title */
}

.hero-description {
       font-size: 1rem;
       padding: 0 1rem;
}

.hero-btns {
       flex-direction: column;
       width: 100%;
       padding: 0 2rem;
}

.btn-lg {
       width: 100%;
}

/* Grids */
.about-container {
       grid-template-columns: 1fr;
       text-align: center;
}

.about-visual {
       height: 300px;
       margin-top: 2rem;
       order: -1;
       /* Image first on mobile */
}

.features-grid {
       grid-template-columns: 1fr;
       /* Stack cards */
}

.gallery-grid {
       grid-template-columns: 1fr;
       height: auto;
}

.gallery-item {
       height: 250px;
}

/* Subscription Plans */
.plans-container {
       grid-template-columns: 1fr;
       padding: 0 1rem;
}

/* Profile Page */
.profile-header {
       flex-direction: column;
       text-align: center;
}

.profile-grid {
       grid-template-columns: 1fr;
}

.profile-actions {
       justify-content: center;
       flex-direction: column;
}

.profile-actions button {
       width: 100%;
}

/* Footer */
.footer-content {
       flex-direction: column;
       gap: 1rem;
}

.section-title {
       font-size: 2rem;
}

.vault-header {
       flex-direction: column;
       align-items: center;
       gap: 1rem;
       text-align: center;
}


/* Ensure mobile menu button is hidden on desktop */
@media (min-width: 769px) {
       .mobile-menu-btn {
              display: none;
       }
}

/* --- Locked Premium Books Styles --- */
.book-card {
       position: relative;
       /* Ensure overlay stays inside */
       overflow: hidden;
}

/* Locked state modifier */
.book-card.locked {
       cursor: default !important;
}

.book-card.locked .book-cover {
       filter: grayscale(0.8) blur(2px);
       transition: all 0.5s ease;
}

.book-card.locked:hover .book-cover {
       filter: grayscale(0.6) blur(1px);
}

.book-card.locked:hover {
       transform: none;
       box-shadow: none;
}

.locked-overlay {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background: rgba(10, 10, 22, 0.7);
       /* Dark background */
       backdrop-filter: blur(4px);
       /* Glassmorphism */
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
       opacity: 1;
       z-index: 10;
       transition: all 0.3s ease;
       border: 1px solid rgba(255, 215, 0, 0.15);
       /* Subtle gold border */
}

.locked-icon {
       font-size: 3rem;
       margin-bottom: 1rem;
       filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
       animation: lockPulse 3s infinite ease-in-out;
}

.locked-text {
       color: #ffd700;
       /* Gold */
       font-family: var(--font-heading);
       font-weight: 700;
       font-size: 1.2rem;
       text-transform: uppercase;
       letter-spacing: 1px;
       text-align: center;
       padding: 0 1rem;
       text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.locked-subtext {
       color: #e0e0e0;
       font-size: 0.9rem;
       margin-top: 0.5rem;
       background: rgba(0, 0, 0, 0.6);
       padding: 4px 12px;
       border-radius: 20px;
       border: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes lockPulse {
       0% {
              transform: scale(1);
              filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
       }

       50% {
              transform: scale(1.1);
              filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
       }

       100% {
              transform: scale(1);
              filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
       }
}

/* --- Store & Vault Styles --- */
.btn-store {
       background: linear-gradient(135deg, #2b0a3d 0%, #4a1c68 50%, #2b0a3d 100%);
       color: #ffd700;
       /* Gold text */
       border: 2px solid #ffd700;
       font-weight: 800;
       font-family: var(--font-heading);
       letter-spacing: 1px;
       display: flex;
       align-items: center;
       justify-content: center;
       gap: 15px;
       box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), inset 0 0 20px rgba(0, 0, 0, 0.5);
       overflow: hidden;
       position: relative;
       z-index: 1;
       padding: 1.2rem;
       font-size: 1.2rem;
       text-transform: uppercase;
       text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
       transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-store::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background: linear-gradient(45deg, transparent 0%, rgba(255, 215, 0, 0.1) 50%, transparent 100%);
       z-index: -1;
       background-size: 200% 200%;
       animation: shine 3s infinite linear;
}

.btn-store:hover {
       transform: translateY(-5px) scale(1.02);
       box-shadow: 0 0 30px rgba(255, 215, 0, 0.5), inset 0 0 10px rgba(255, 215, 0, 0.3);
       background: linear-gradient(135deg, #3d0e57 0%, #612488 50%, #3d0e57 100%);
       border-color: #fff;
       color: #fff;
       text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
}

.btn-store span {
       font-size: 1.8rem;
       filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
       transition: transform 0.3s ease;
}

.btn-store:hover span {
       transform: scale(1.3) rotate(-10deg);
}

@keyframes shine {
       0% {
              background-position: 200% center;
       }

       100% {
              background-position: -200% center;
       }
}

/* Hall of Fame Button (Game Logo Style) */
.hof-btn-container {
       width: 100%;
       display: flex;
       justify-content: center;
       align-items: center;
       margin: 4rem auto;
       /* ensuring auto margins for centering */
       text-align: center;
       position: relative;
       z-index: 5;
}

/* Background Glow Effect behind the button */
.hof-btn-container::before {
       content: '';
       position: absolute;
       top: 50%;
       left: 50%;
       transform: translate(-50%, -50%);
       /* Centering the glow */
       width: 80vw;
       height: 80vw;
       max-width: 600px;
       max-height: 600px;
       background: radial-gradient(circle, rgba(106, 17, 203, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
       z-index: -1;
       animation: pulseGlow 4s infinite ease-in-out;
       pointer-events: none;
}

.hof-btn {
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
       width: auto;
       /* Let content dictate width or keep fixed if needed */
       max-width: 100%;
       background: transparent;
       border: none;
       /* No border for true transparent look */
       box-shadow: none;
       /* No box shadow */
       padding: 0;
       cursor: pointer;
       transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
       position: relative;
       text-decoration: none;
       -webkit-tap-highlight-color: transparent;
}

.hof-emblem-img {
       width: 450px;
       /* Kept large as requested */
       max-width: 90vw;
       /* Responsive */
       height: auto;
       object-fit: contain;
       filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
       transition: all 0.5s ease;
       animation: float 6s ease-in-out infinite;
       mix-blend-mode: screen;
       /* Magic transparency for black text/bg */
       opacity: 0.9;
       /* Slight transparency to blend better */
       -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 70%);
       mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 70%);
}

.hof-text {
       margin-top: -40px;
       /* Pull text closer/overlay */
       font-size: 2rem;
       font-weight: 900;
       color: #ffd700;
       text-transform: uppercase;
       letter-spacing: 4px;
}

/* Locked State Styles */
.hof-btn.locked {
       pointer-events: none;
       /* Disable clicking */
       filter: grayscale(1);
       /* visual indication of disabled state */
}

.hof-btn.locked .hof-emblem-img {
       animation: none;
       /* Stop floating animation when locked */
       opacity: 0.3;
}

.hof-btn.locked .hof-text {
       opacity: 0.3;
}

.hof-lock {
       position: absolute;
       top: 50%;
       left: 50%;
       transform: translate(-50%, -50%);
       display: none;
       /* Hidden by default */
       flex-direction: column;
       align-items: center;
       justify-content: center;
       z-index: 20;
       width: 100%;
}

.hof-btn.locked .hof-lock {
       display: flex;
       /* Show when locked */
}

.hof-lock-icon {
       font-size: 5rem;
       margin-bottom: 1rem;
       filter: drop-shadow(0 0 10px black);
}

.hof-lock-text {
       font-size: 1.5rem;
       color: #ff4444;
       /* Red warning color */
       font-weight: bold;
       text-shadow: 0 2px 4px black;
       background: rgba(0, 0, 0, 0.7);
       padding: 5px 15px;
       border-radius: 10px;
       white-space: nowrap;
}

.hof-btn:hover {
       transform: scale(1.05);
}

.hof-btn:hover .hof-emblem-img {
       filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.6));
       opacity: 1;
}

.hof-btn:hover .hof-text {
       transform: translateY(-5px) scale(1.1);
       text-shadow: 0 0 20px rgba(255, 215, 0, 1);
}

@keyframes float {

       0%,
       100% {
              transform: translateY(0);
       }

       50% {
              transform: translateY(-15px);
       }
}

@keyframes pulseGlow {

       0%,
       100% {
              opacity: 0.5;
              transform: scale(1);
       }

       50% {
              opacity: 0.8;
              transform: scale(1.2);
       }
}

.profile-actions-card {
       display: flex;
       flex-direction: column;
       gap: 1rem;
       text-align: center;
}

.profile-actions-card .btn {
       width: 100%;
}

.edit-name-btn {
       background: rgba(255, 255, 255, 0.1);
       border: 1px solid rgba(255, 255, 255, 0.2);
       border-radius: 50%;
       width: 32px;
       height: 32px;
       display: flex;
       align-items: center;
       justify-content: center;
       cursor: pointer;
       font-size: 1rem;
       color: #e0e0e0;
       transition: all 0.3s ease;
}

.edit-name-btn:hover {
       background: var(--color-primary);
       color: black;
       transform: scale(1.1) rotate(10deg);
       border-color: var(--color-primary);
       box-shadow: 0 0 10px var(--color-primary-glow);
}

/* Vault Styles */
.vault-section {
       margin-top: 2rem;
       animation: modalFadeIn 0.8s ease-out;
}

.vault-card {
       width: 100%;
       background: rgba(20, 20, 35, 0.6);
       border: 1px solid rgba(255, 255, 255, 0.05);
}

.vault-header {
       display: flex;
       justify-content: space-between;
       align-items: center;
       margin-bottom: 1.5rem;
       padding-bottom: 1rem;
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vault-header h3 {
       margin: 0;
       font-size: 1.5rem;
       color: #e0e0e0;
       display: flex;
       align-items: center;
       gap: 10px;
}

.vault-stats {
       font-size: 0.9rem;
       color: #888;
       background: rgba(255, 255, 255, 0.05);
       padding: 5px 15px;
       border-radius: 20px;
}

.vault-grid {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
       gap: 1.5rem;
       min-height: 150px;
}

.vault-item {
       aspect-ratio: 1;
       background: rgba(255, 255, 255, 0.03);
       border-radius: 12px;
       border: 1px solid rgba(255, 255, 255, 0.05);
       display: flex;
       flex-direction: column;
       align-items: center;
       justify-content: center;
       transition: all 0.3s ease;
       cursor: pointer;
       position: relative;
       padding: 10px;
       text-align: center;
}

.vault-item:hover {
       background: rgba(255, 255, 255, 0.08);
       border-color: var(--color-primary);
       transform: translateY(-5px);
       box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.vault-item.empty {
       grid-column: 1 / -1;
       aspect-ratio: auto;
       height: 150px;
       border: 2px dashed rgba(255, 255, 255, 0.1);
       background: transparent;
       cursor: default;
       color: #666;
}

.vault-item.empty:hover {
       transform: none;
       border-color: rgba(255, 255, 255, 0.1);
       box-shadow: none;
}

.item-icon {
       font-size: 2.5rem;
       margin-bottom: 0.5rem;
       filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.item-name {
       font-size: 0.8rem;
       color: #ccc;
       line-height: 1.2;
}

.item-count {
       position: absolute;
       top: 5px;
       right: 5px;
       background: var(--color-primary);
       color: black;
       font-size: 0.7rem;
       font-weight: bold;
       padding: 2px 6px;
}

/* Hall of Fame Styles */
.supporters-grid {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
       gap: 2rem;
       padding: 2rem 0;
}

.supporter-card {
       background: rgba(20, 20, 35, 0.8);
       border: 1px solid rgba(255, 255, 255, 0.05);
       border-radius: 20px;
       padding: 2rem;
       text-align: center;
       position: relative;
       overflow: hidden;
       transition: all 0.4s ease;
       display: flex;
       flex-direction: column;
       align-items: center;
       gap: 1rem;
}

.supporter-card::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 5px;
       background: var(--card-color, #444);
}

.supporter-card:hover {
       transform: translateY(-10px);
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
       background: rgba(30, 30, 50, 0.9);
}

.supporter-avatar {
       width: 100px;
       height: 100px;
       border-radius: 50%;
       object-fit: cover;
       border: 3px solid var(--card-color, #444);
       box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.supporter-info h3 {
       margin: 0;
       font-size: 1.4rem;
       color: white;
}

.supporter-badge {
       background: rgba(255, 255, 255, 0.1);
       padding: 5px 15px;
       border-radius: 20px;
       font-size: 0.9rem;
       color: var(--card-color, #ccc);
       border: 1px solid var(--card-color, #444);
       display: inline-flex;
       align-items: center;
       gap: 5px;
}

/* Plan Specific Colors */
.supporter-card.legendary {
       --card-color: #ffd700;
       background: linear-gradient(180deg, rgba(255, 215, 0, 0.05), rgba(20, 20, 35, 0.8));
       border: 1px solid rgba(255, 215, 0, 0.2);
}

.supporter-card.persevering {
       --card-color: #c0c0c0;
}

.supporter-card.mini {
       --card-color: #cd7f32;
}

/* --- NEW PREMIUM SUBSCRIPTION STYLES (Overrides) --- */

.subscription-modal-content {
       max-width: 1400px !important;
       /* Even Wider for 4 cards comfortable fit */
       width: 95%;
       background: radial-gradient(circle at center, #151525 0%, #050505 100%) !important;
       border: 1px solid rgba(255, 255, 255, 0.08);
}

.plans-container {
       display: flex;
       flex-wrap: wrap;
       justify-content: center;
       gap: 2rem;
       /* Increased gap */
       padding: 2rem 1rem;
}

/* Card Improvements */
.plan-card {
       flex: 1 1 250px;
       max-width: 300px;
       background: rgba(255, 255, 255, 0.02);
       backdrop-filter: blur(12px);
       border: 1px solid rgba(255, 255, 255, 0.05);
       transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
       border-radius: 16px;
       overflow: hidden;
}

.plan-card:hover {
       transform: translateY(-10px);
       /* Lighter movement */
       box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
       z-index: 10;
}

/* 1. Mini (Bronze) */
.plan-card.mini {
       border-top: 3px solid #cd7f32;
       background: linear-gradient(180deg, rgba(205, 127, 50, 0.03) 0%, transparent 80%);
}

.plan-card.mini:hover {
       border-color: #cd7f32;
       box-shadow: 0 10px 25px rgba(205, 127, 50, 0.15);
}

.plan-card.mini .plan-icon {
       font-size: 3rem;
       filter: drop-shadow(0 0 10px rgba(205, 127, 50, 0.4));
       transition: transform 0.4s ease;
}

.plan-card.mini:hover .plan-icon {
       transform: scale(1.1);
}

/* 2. Future (Silver) */
.plan-card.future {
       border-top: 3px solid #c0c0c0;
       background: linear-gradient(180deg, rgba(192, 192, 192, 0.03) 0%, transparent 80%);
}

.plan-card.future:hover {
       border-color: #c0c0c0;
       box-shadow: 0 10px 25px rgba(192, 192, 192, 0.15);
}

.plan-card.future .plan-icon {
       font-size: 3rem;
       filter: drop-shadow(0 0 10px rgba(192, 192, 192, 0.4));
       transition: transform 0.4s ease;
}

.plan-card.future:hover .plan-icon {
       transform: scale(1.1);
}

/* 3. Super (Gold) */
.plan-card.super {
       border-top: 3px solid #ffd700;
       background: linear-gradient(180deg, rgba(255, 215, 0, 0.03) 0%, transparent 80%);
}

.plan-card.super:hover {
       border-color: #ffd700;
       box-shadow: 0 10px 25px rgba(255, 215, 0, 0.25);
}

.plan-card.super .plan-icon {
       font-size: 3rem;
       filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
       transition: transform 0.4s ease;
}

.plan-card.super:hover .plan-icon {
       transform: scale(1.1) rotate(5deg);
}

/* 4. Legendary (Diamond/Premium) */
.plan-card.legendary {
       border-top: 3px solid #00f3ff;
       background: linear-gradient(180deg, rgba(0, 243, 255, 0.05) 0%, rgba(189, 0, 255, 0.05) 100%);
       border: 1px solid rgba(0, 243, 255, 0.2);
       position: relative;
       transform: scale(1.02);
       /* Slightly emphasized */
       z-index: 5;
}

.plan-card.legendary:hover {
       transform: translateY(-10px) scale(1.05);
       /* Lighter growth */
       box-shadow: 0 10px 40px rgba(189, 0, 255, 0.3), 0 0 20px rgba(0, 243, 255, 0.2);
       border-color: #00f3ff;
}

.plan-card.legendary .plan-icon {
       font-size: 3.5rem;
       animation: floatGem 3s infinite ease-in-out;
       filter: drop-shadow(0 0 15px #00f3ff);
}

.legendary-badge {
       background: linear-gradient(90deg, #bd00ff, #00f3ff);
       color: white;
       box-shadow: 0 4px 15px rgba(189, 0, 255, 0.4);
       font-size: 0.75rem;
       padding: 6px 20px;
       border-radius: 20px;
       top: 15px;
       right: 15px;
}

.legendary-btn {
       background: linear-gradient(90deg, #bd00ff, #00f3ff);
       border: none;
       color: white;
       box-shadow: 0 4px 15px rgba(189, 0, 255, 0.3);
}

.legendary-btn:hover {
       background: linear-gradient(90deg, #d54dff, #4dcbff);
       box-shadow: 0 0 25px rgba(189, 0, 255, 0.5);
       transform: translateY(-2px);
}

@keyframes floatGem {

       0%,
       100% {
              transform: translateY(0);
              filter: drop-shadow(0 0 15px #00f3ff);
       }

       50% {
              transform: translateY(-5px);
              filter: drop-shadow(0 0 25px #bd00ff);
       }
}

/* Mobile Responsiveness for Plans */
@media (max-width: 900px) {}


.plan-card.legendary:hover {
       transform: translateY(-5px);
}

/* --- Game HUD Currency System --- */
.currency-bar {
       display: flex;
       justify-content: center;
       align-items: center;
       gap: 2rem;
       margin-bottom: 2rem;
       background: rgba(0, 0, 0, 0.8);
       /* Darker for HUD feel */
       padding: 10px 25px;
       border-radius: 16px;
       /* Squircles for game UI */
       border: 1px solid rgba(255, 255, 255, 0.1);
       box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
       backdrop-filter: blur(10px);
       width: fit-content;
       margin-left: auto;
       margin-right: auto;
       /* HUD positioning could be fixed, but let's stick to flow first */
}

.currency-item {
       display: flex;
       align-items: center;
       gap: 8px;
       padding: 4px 12px;
       background: rgba(255, 255, 255, 0.03);
       border-radius: 8px;
       border: 1px solid rgba(255, 255, 255, 0.05);
}

.currency-icon-img {
       width: 40px;
       /* Max 40px Desktop */
       height: 40px;
       object-fit: contain;
       /* Ensure full icon is visible */
       filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
       /* If images have background, we can try to mask, but user said "Remove Background" which usually means use transparent PNGs.
       If they are not transparent, border-radius 50% might look better */
       border-radius: 50%;
}

.currency-label {
       display: none;
       /* User requested [Icon] [Number], implying label might be redundant or valid. 
                      User said "[ ðŸª™ 0 ] [ ðŸ’Ž 0 ]". No text label mentioned in the "Shown shape". 
                      I will hide labels for cleaner HUD look as per "Game HUD" instruction */
}

.currency-value {
       font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
       font-size: 1.2rem;
       font-weight: 700;
       color: #fff;
       min-width: 30px;
       text-align: right;
}

/* Specific Colors */
.coin-item .currency-value {
       color: #FFD700;
       text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.energy-item .currency-value {
       color: #bd00ff;
       text-shadow: 0 0 10px rgba(189, 0, 255, 0.4);
}

/* Pulse Animation Wrapper */
.energy-item .currency-wrapper {
       animation: energyPulse 2s infinite ease-in-out;
       display: inline-block;
}

.energy-item .currency-icon-img {
       /* Animation removed from here to fix blend mode */
       /* Blend mode handled by global validator */
}

@keyframes energyPulse {

       0%,
       100% {
              filter: drop-shadow(0 0 5px rgba(189, 0, 255, 0.5));
              transform: scale(1);
       }

       50% {
              filter: drop-shadow(0 0 20px rgba(189, 0, 255, 0.9));
              transform: scale(1.1);
       }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
       .currency-bar {
              width: 90%;
              justify-content: space-around;
              gap: 1rem;
              padding: 8px 10px;
              margin-bottom: 1.5rem;
       }

       .currency-item {
              background: transparent;
              border: none;
              padding: 0;
              gap: 5px;
       }

       .currency-icon-img {
              width: 34px;
              /* 32px-36px Mobile */
              height: 34px;
       }

       .currency-value {
              font-size: 1.1rem;
       }
}

/* --- Premium Game Shop & Inventory Styles --- */
.header-actions {
       display: flex;
       justify-content: center;
       gap: 1.5rem;
       margin-bottom: 2.5rem;
}

.shop-link-btn,
.inventory-btn,
.back-btn {
       background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
       border: 1px solid rgba(255, 255, 255, 0.2);
       color: #ddd;
       padding: 12px 24px;
       border-radius: 12px;
       text-decoration: none;
       transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
       font-weight: bold;
       backdrop-filter: blur(10px);
       display: flex;
       align-items: center;
       gap: 8px;
       box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.shop-link-btn:hover,
.inventory-btn:hover,
.back-btn:hover {
       background: rgba(189, 0, 255, 0.2);
       border-color: var(--primary);
       transform: translateY(-3px);
       box-shadow: 0 8px 25px rgba(189, 0, 255, 0.3);
       color: white;
       text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.shop-filters {
       display: flex;
       justify-content: center;
       gap: 12px;
       margin-bottom: 3rem;
       flex-wrap: wrap;
       background: rgba(0, 0, 0, 0.3);
       padding: 10px;
       border-radius: 50px;
       width: fit-content;
       margin-left: auto;
       margin-right: auto;
       border: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-btn {
       background: transparent;
       border: none;
       color: #888;
       padding: 10px 24px;
       border-radius: 20px;
       cursor: pointer;
       transition: all 0.3s;
       font-weight: bold;
       font-size: 1rem;
       position: relative;
       overflow: hidden;
}

.filter-btn.active {
       background: var(--primary);
       color: white;
       box-shadow: 0 0 20px rgba(189, 0, 255, 0.5);
}

.filter-btn:not(.active):hover {
       color: white;
       background: rgba(255, 255, 255, 0.05);
}

/* Grid Layout */
.shop-grid {
       display: grid;
       grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
       gap: 2rem;
       padding-bottom: 4rem;
}

/* Card Design */
.shop-card {
       background: linear-gradient(160deg, #1a1a2e 0%, #161625 100%);
       border: 1px solid rgba(255, 255, 255, 0.08);
       border-radius: 20px;
       overflow: hidden;
       transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
       position: relative;
       display: flex;
       flex-direction: column;
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.shop-card:hover {
       transform: translateY(-10px) scale(1.02);
       border-color: var(--accent);
       box-shadow: 0 20px 50px rgba(0, 243, 255, 0.15);
       z-index: 10;
}

.shop-card::before {
       content: '';
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.05) 50%, transparent 60%);
       transform: translateX(-100%);
       transition: 0.6s;
}

.shop-card:hover::before {
       transform: translateX(100%);
}

.card-image-wrapper {
       width: 100%;
       height: 220px;
       display: flex;
       align-items: center;
       justify-content: center;
       background: radial-gradient(circle at center, rgba(189, 0, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
       padding: 20px;
       position: relative;
}

.item-image {
       max-width: 90%;
       max-height: 90%;
       object-fit: contain;
       filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.6));
       transition: transform 0.4s;
}

.shop-card:hover .item-image {
       transform: scale(1.1) rotate(2deg);
       filter: drop-shadow(0 0 25px var(--accent));
}

.card-details {
       padding: 1.5rem;
       background: rgba(0, 0, 0, 0.2);
       flex-grow: 1;
       display: flex;
       flex-direction: column;
       gap: 10px;
       border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.item-name {
       font-size: 1.3rem;
       font-weight: 800;
       margin: 0;
       color: #fff;
       text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.item-type {
       font-size: 0.85rem;
       color: #aaa;
       text-transform: uppercase;
       letter-spacing: 1px;
       margin-bottom: auto;
}

/* Buy/Equip Buttons */
.btn-buy,
.btn-equip {
       background: linear-gradient(90deg, #bd00ff, #7a00ff);
       border: none;
       padding: 12px;
       width: 100%;
       border-radius: 12px;
       color: white;
       font-weight: 900;
       cursor: pointer;
       display: flex;
       align-items: center;
       justify-content: center;
       gap: 10px;
       transition: all 0.2s;
       font-size: 1rem;
       box-shadow: 0 5px 15px rgba(122, 0, 255, 0.3);
       margin-top: 10px;
}

.btn-buy:hover,
.btn-equip:hover {
       filter: brightness(1.2);
       transform: scale(1.05);
       box-shadow: 0 8px 25px rgba(122, 0, 255, 0.5);
}

.btn-buy:disabled,
.btn-equip:disabled {
       background: #2a2a3a;
       box-shadow: none;
       cursor: not-allowed;
       color: #666;
       border: 1px solid #444;
}

.btn-equip.active {
       background: linear-gradient(90deg, #00f3ff, #0099ff);
       color: #003366;
       box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.price-tags {
       display: flex;
       align-items: center;
       gap: 5px;
       background: rgba(0, 0, 0, 0.4);
       padding: 4px 10px;
       border-radius: 8px;
       font-size: 0.95rem;
       border: 1px solid rgba(255, 255, 255, 0.1);
}

.price-icon {
       width: 20px;
       height: 20px;
}

/* Rarity Effects */
.rarity-common {
       border-color: #666;
}

.rarity-uncommon {
       border-color: #2ecc71;
       box-shadow: 0 0 10px rgba(46, 204, 113, 0.1);
}

.rarity-rare {
       border-color: #3498db;
       box-shadow: 0 0 10px rgba(52, 152, 219, 0.2);
}

.rarity-epic {
       border-color: #9b59b6;
       box-shadow: 0 0 15px rgba(155, 89, 182, 0.2);
}

.rarity-legendary {
       border-color: #f1c40f;
       box-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
       animation: legendaryPulse 4s infinite alternate;
}

@keyframes legendaryPulse {
       from {
              box-shadow: 0 0 10px rgba(241, 196, 15, 0.2);
       }

       to {
              box-shadow: 0 0 30px rgba(241, 196, 15, 0.6);
              border-color: #fff;
       }
}

/* Equipped State */
.equipped-card {
       border: 2px solid var(--accent);
       box-shadow: 0 0 30px rgba(0, 243, 255, 0.3);
}

.equipped-card .item-name {
       color: var(--accent);
}

/* Mobile Adjustments */

/* --- Purchase Modal Styles --- */
.modal-overlay {
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background: rgba(0, 0, 0, 0.85);
       /* Darker blur overlay */
       backdrop-filter: blur(8px);
       z-index: 1000;
       display: flex;
       justify-content: center;
       align-items: center;
       opacity: 0;
       visibility: hidden;
       transition: all 0.3s ease;
}

.modal-overlay.active {
       opacity: 1;
       visibility: visible;
}

.modal-content {
       background: #161922;
       width: 90%;
       max-width: 450px;
       border-radius: 20px;
       border: 1px solid rgba(189, 0, 255, 0.3);
       box-shadow: 0 0 50px rgba(189, 0, 255, 0.2);
       transform: scale(0.8);
       transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
       overflow: hidden;
       position: relative;
       text-align: center;
}

.modal-overlay.active .modal-content {
       transform: scale(1);
}

.modal-header {
       background: linear-gradient(90deg, rgba(189, 0, 255, 0.1), transparent);
       padding: 1.5rem;
       display: flex;
       justify-content: space-between;
       align-items: center;
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-header h2 {
       margin: 0;
       font-size: 1.5rem;
       color: #fff;
}

.close-modal-btn {
       background: none;
       border: none;
       color: #888;
       font-size: 2rem;
       cursor: pointer;
       line-height: 1;
       padding: 0 10px;
       transition: color 0.2s;
}

.close-modal-btn:hover {
       color: #fff;
}

.modal-body {
       padding: 2rem;
}

.modal-item-preview {
       width: 120px;
       height: 120px;
       margin: 0 auto 1.5rem auto;
       background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 70%);
       border-radius: 50%;
       display: flex;
       align-items: center;
       justify-content: center;
       border: 2px solid rgba(189, 0, 255, 0.3);
       box-shadow: 0 0 30px rgba(189, 0, 255, 0.2);
}

.modal-item-preview img {
       max-width: 80%;
       max-height: 80%;
       object-fit: contain;
       filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.modal-item-info h3 {
       font-size: 1.4rem;
       color: #fff;
       margin-bottom: 0.5rem;
}

.modal-item-info p {
       color: #aaa;
       margin-bottom: 1rem;
}

.modal-price-tag {
       display: inline-flex;
       align-items: center;
       gap: 8px;
       background: rgba(0, 0, 0, 0.3);
       padding: 8px 20px;
       border-radius: 50px;
       border: 1px solid rgba(255, 255, 255, 0.1);
       font-size: 1.2rem;
       color: #ffd700;
       font-weight: bold;
}

.confirmation-text {
       margin-top: 2rem;
       font-size: 1.1rem;
       color: #ddd;
}

.modal-actions {
       padding: 1.5rem;
       display: flex;
       gap: 1rem;
       justify-content: center;
       background: rgba(0, 0, 0, 0.2);
}

.btn-confirm,
.btn-cancel {
       padding: 12px 24px;
       border-radius: 10px;
       font-weight: bold;
       cursor: pointer;
       border: none;
       transition: all 0.2s;
       font-family: inherit;
       font-size: 1rem;
}

.btn-confirm {
       background: linear-gradient(90deg, #bd00ff, #7a00ff);
       color: white;
       flex: 1;
       box-shadow: 0 0 20px rgba(189, 0, 255, 0.4);
}

.btn-confirm:hover {
       transform: scale(1.05);
       box-shadow: 0 0 30px rgba(189, 0, 255, 0.6);
}

.btn-cancel {
       background: transparent;
       border: 1px solid rgba(255, 255, 255, 0.2);
       color: #aaa;
       flex: 0.5;
}

.btn-cancel:hover {
       background: rgba(255, 255, 255, 0.05);
       color: #fff;
}

/* --- More Menu Dropdown --- */
.more-dropdown {
       position: relative;
       display: inline-block;
}

.more-btn {
       background: none;
       border: none;
       color: #e0e0e0;
       font-family: inherit;
       font-weight: 700;
       cursor: pointer;
       font-size: 1rem;
       padding: 10px 15px;
       transition: color 0.3s;
}

.more-btn:hover {
       color: var(--primary-color, #bd00ff);
}

.more-menu {
       display: none;
       position: absolute;
       top: 100%;
       right: 0;
       background: rgba(10, 10, 20, 0.95);
       backdrop-filter: blur(15px);
       min-width: 180px;
       box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
       border: 1px solid rgba(255, 255, 255, 0.1);
       z-index: 2000;
       border-radius: 12px;
       padding: 5px 0;
       flex-direction: column;
       animation: menuFadeIn 0.2s ease-out;
}

.more-menu.show {
       display: flex;
}

@keyframes menuFadeIn {
       from {
              opacity: 0;
              transform: translateY(-10px);
       }

       to {
              opacity: 1;
              transform: translateY(0);
       }
}

.more-menu a {
       color: #ccc;
       padding: 12px 20px;
       text-decoration: none;
       display: block;
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
       transition: all 0.3s;
       text-align: right;
       font-size: 0.95rem;
}

.more-menu a:last-child {
       border-bottom: none;
}

.more-menu a:hover {
       background: rgba(189, 0, 255, 0.1);
       color: #fff;
       padding-right: 25px;
}

/* Hardened Modal Styles */
.modal-overlay {
       z-index: 10000 !important;
       pointer-events: none;
}

.modal-overlay.active {
       pointer-events: auto;
}

/* Fix for button clickability over mythic effects */
.btn-buy,
.btn-equip {
       position: relative;
       z-index: 20;
}

/* --- Desktop Header Spacing Fix --- */
@media (min-width: 769px) {
       .nav-container {
              justify-content: center;
              gap: 2rem;
       }

       /* Force items to center and not spread */
       .nav-active-container,
       .auth-container {
              margin: 0 !important;
              width: auto !important;
              flex: 0 0 auto !important;
       }
}

/* --- Global Mobile Optimizations (Added by Antigravity) --- */
@media (max-width: 768px) {

       /* 1. Heroes Grid & Card Improvements */
       .heroes-grid {
              grid-template-columns: 1fr !important;
              gap: 1.5rem;
              /* Slightly tighter gap */
              padding: 0.5rem 0;
              width: 100%;
       }

       .hero-card {
              width: 100%;
              max-width: 100%;
              margin: 0 auto;
              border-radius: 16px;
              /* Softer corners */
              overflow: hidden;
              /* contain images */
       }

       .hero-image-wrapper {
              width: 100%;
              height: auto;
              aspect-ratio: 16/9;
              /* Wider, less tall */
              object-fit: cover;
       }

       /* 2. Inventory Filters Fix */
       .inventory-filters {
              display: flex;
              flex-wrap: wrap !important;
              width: 100%;
              /* Full width */
              margin: 1rem auto;
              padding: 0.8rem;
              border-radius: 20px;
              gap: 0.5rem;
              justify-content: center;
              height: auto !important;
       }

       .inventory-filters .filter-btn {
              padding: 0.5rem 1rem;
              font-size: 0.85rem;
              flex: 1 1 auto;
              text-align: center;
              white-space: nowrap;
              /* Try to keep them one line if possible */
       }

       /* 3. Shop & Currency Bar Fixes */
       .currency-bar {
              width: 90%;
              left: 5%;
              top: 15px;
              gap: 5px;
              /* Tighter spacing */
       }

       .shop-grid {
              grid-template-columns: 1fr !important;
              padding: 0.5rem;
              gap: 1.5rem;
       }

       /* Fix Search Inputs overflowing */
       input[type="text"],
       input[type="search"] {
              max-width: 100%;
              width: 100%;
              box-sizing: border-box;
       }

       /* Fix text clipping */
       h1,
       h2,
       h3 {
              overflow-wrap: break-word;
       }

       /* Fix Profile/General Header Padding */
       .page-header {
              padding: 4rem 1rem 1.5rem;
              background-position: center;
       }

       /* Force Mobile Menu Button Visibility */
       .mobile-menu-btn {
              display: flex;
       }

       .dashboard-grid {
              display: flex !important;
              flex-direction: column;
              gap: 20px;
       }

       /* Ensure cards stack properly with auto height */
       .section-card {
              height: auto !important;
       }

       /* --- NEW: Elegant Profile Sidebar on Mobile --- */
       .dashboard-sidebar {
              display: grid !important;
              grid-template-columns: 1fr 1fr;
              /* Side by side layout */
              gap: 15px;
              /* Proper gap */
              width: 100%;
              margin-top: 0;
       }

       /* Action Group (Save/Logout) also side by side */
       .action-group {
              margin-top: 10px;
              display: flex;
              gap: 15px;
              width: 100%;
       }

       .btn-dashboard {
              height: 100%;
              display: flex;
              align-items: center;
              justify-content: center;
              font-size: 0.9rem;
              padding: 10px;
              background: rgba(255, 255, 255, 0.15);
              /* Brightened BG */
              border-radius: 12px;
              border: 1px solid rgba(255, 255, 255, 0.2);
              transition: background 0.3s;
       }

       .btn-dashboard:hover {
              background: rgba(255, 255, 255, 0.25);
       }

       /* Adjust giant buttons to match grid */
       .storage-btn-epic,
       .store-btn-animated {
              width: 100%;
              padding: 1rem !important;
              font-size: 1rem !important;
              flex-direction: column;
              gap: 8px;
              height: 100%;
              min-height: 100px;
              /* Fill cell height */
              margin: 0 !important;
              /* Remove negative margins */
              box-sizing: border-box;
       }

       /* Notification button full width */
       #btn-notifications {
              grid-column: span 1 !important;
              /* Take 1 cell */
              margin-bottom: 0 !important;
              width: 100%;
       }

       /* Settings Button mobile adjustment */
       .settings-btn {
              grid-column: span 1 !important;
              /* Take 1 cell */
              margin-top: 0 !important;
       }

       /* Sidebar Logic:
          Row 1: Store | Inventory
          Row 2: Notifications | Settings
       */

       /* UID Styling resizing for mobile */
       .uid-value {
              font-size: 0.75rem !important;
              /* Smaller UID */
              letter-spacing: 0;
              word-break: break-all;
       }

       .uid-badge-container {
              max-width: 90%;
              /* Prevent overflowing screen */
              padding: 5px 15px;
       }
}

/* Enhancing Game Profile Aesthetic */
.dashboard-header {
       background: linear-gradient(180deg, rgba(20, 20, 35, 0.9), rgba(10, 10, 20, 0.95));
       border: 1px solid rgba(189, 0, 255, 0.2);
       box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.profile-avatar {
       border-color: #ffd700;
       /* Gold border for game feel */
       box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.name-input {
       text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.action-btn {
       border: none;
       cursor: pointer;
       font-family: inherit;
       transition: all 0.2s ease;
       display: flex;
       align-items: center;
       justify-content: center;
       gap: 8px;
}

.action-btn:hover {
       transform: translateY(-2px);
       filter: brightness(1.2);
}

.settings-btn {
       background: rgba(255, 255, 255, 0.05);
       border: 1px solid rgba(255, 255, 255, 0.1);
       color: white;
}

.settings-btn:hover {
       background: rgba(255, 255, 255, 0.1);
       border-color: var(--accent);
       box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

@keyframes modalFadeIn {
       from {
              opacity: 0;
              transform: translateY(-20px);
       }

       to {
              opacity: 1;
              transform: translateY(0);
       }
}

/* Ensure modal is above everything */
#settings-modal {}

/* --- Subscription Status Section --- */
.subscription-card {
       text-align: center;
       position: relative;
       overflow: hidden;
       transition: all 0.5s ease;
}

.sub-status-inactive {
       color: #666;
       display: flex;
       flex-direction: column;
       gap: 10px;
       align-items: center;
       padding: 1rem;
}

.sub-status-active {
       display: flex;
       flex-direction: column;
       align-items: center;
       gap: 10px;
       animation: fadeIn 0.5s;
}

.tier-logo {
       width: 60px;
       height: 60px;
       object-fit: contain;
       filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.tier-name {
       font-weight: 800;
       font-size: 1.2rem;
       margin: 5px 0;
}

.tier-timer {
       font-size: 0.9rem;
       color: #aaa;
       background: rgba(0, 0, 0, 0.3);
       padding: 5px 15px;
       border-radius: 20px;
}

/* Tier Specific Effects */
.tier-legendary {
       border: 1px solid #ffd700;
       box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
       background: linear-gradient(135deg, rgba(255, 215, 0, 0.05), rgba(0, 0, 0, 0.4));
}

.tier-legendary .tier-name {
       background: linear-gradient(to right, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
       -webkit-background-clip: text;
       color: transparent;
       text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.tier-persevering {
       border: 1px solid #c0c0c0;
       box-shadow: 0 0 20px rgba(192, 192, 192, 0.2);
       background: linear-gradient(135deg, rgba(192, 192, 192, 0.05), rgba(0, 0, 0, 0.4));
}

.tier-persevering .tier-name {
       background: linear-gradient(to right, #e0e0e0, #ffffff, #a0a0a0);
       -webkit-background-clip: text;
       color: transparent;
}

.tier-mini {
       border: 1px solid #cd7f32;
       box-shadow: 0 0 20px rgba(205, 127, 50, 0.2);
       background: linear-gradient(135deg, rgba(205, 127, 50, 0.05), rgba(0, 0, 0, 0.4));
}

.tier-mini .tier-name {
       color: #cd7f32;
       text-shadow: 0 0 5px rgba(205, 127, 50, 0.5);
}

/* --- Restored Navigation Styles --- */
.navbar {
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       z-index: 1000;
       padding: 1rem 0;
       transition: all 0.3s ease;
       background: rgba(10, 10, 22, 0.8);
       backdrop-filter: blur(10px);
       border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
       max-width: 1400px;
       margin: 0 auto;
       padding: 0 2rem;
       display: flex;
       justify-content: center;
}

.nav-active-container {
       display: flex;
       justify-content: space-between;
       align-items: center;
       width: 100%;
}

.nav-links {
       display: flex;
       gap: 2rem;
       align-items: center;
}

.nav-links a {
       color: var(--text-muted);
       text-decoration: none;
       font-weight: 600;
       font-size: 1.1rem;
       transition: all 0.3s;
       position: relative;
}

.nav-links a:hover,
.nav-links a.active {
       color: var(--text-main);
       text-shadow: 0 0 10px rgba(189, 0, 255, 0.5);
}

.nav-links a.active::after {
       content: '';
       position: absolute;
       bottom: -5px;
       left: 0;
       width: 100%;
       height: 2px;
       background: var(--primary);
       box-shadow: 0 0 10px var(--primary);
}

.auth-container {
       display: flex;
       align-items: center;
       gap: 1.5rem;
}

.subscription-btn {
       background: transparent;
       border: none;
       font-size: 1.8rem;
       cursor: pointer;
       transition: transform 0.3s;
       padding: 5px;
}

.subscription-btn:hover {
       transform: rotate(15deg) scale(1.1);
       filter: drop-shadow(0 0 10px gold);
}

.google-btn {
       background: white;
       color: #333;
       border: none;
       padding: 8px 20px;
       border-radius: 50px;
       font-weight: bold;
       display: flex;
       align-items: center;
       gap: 10px;
       cursor: pointer;
       transition: all 0.3s;
}

.google-btn:hover {
       transform: translateY(-2px);
       box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.google-btn img {
       width: 20px;
       height: 20px;
}

.user-menu {
       position: relative;
       cursor: pointer;
}

.user-avatar {
       width: 45px;
       height: 45px;
       border-radius: 50%;
       border: 2px solid var(--primary);
       object-fit: cover;
       transition: all 0.3s;
}

.user-avatar:hover {
       box-shadow: 0 0 15px var(--primary);
       transform: scale(1.05);
}

.mobile-menu-btn {
       display: none;
       flex-direction: column;
       gap: 6px;
       cursor: pointer;
}

.mobile-menu-btn span {
       width: 30px;
       height: 3px;
       background: white;
       border-radius: 3px;
       transition: 0.3s;
}

@media (max-width: 768px) {
       .nav-links {
              display: none;
       }

       .mobile-menu-btn {
              display: flex;
       }
}

/* --- MOBILE REDESIGN STYLES --- */

/* Header Override */
.nav-container {
       padding: 0 1rem !important;
       /* Tighter padding for mobile */
}

/* More Button */
.more-btn-custom {
       background: transparent;
       border: 1px solid rgba(255, 255, 255, 0.2);
       color: white;
       padding: 8px 15px;
       border-radius: 8px;
       font-size: 0.9rem;
       cursor: pointer;
       display: flex;
       align-items: center;
       gap: 8px;
       transition: all 0.3s ease;
}

.more-btn-custom:hover {
       background: rgba(255, 255, 255, 0.1);
       border-color: var(--primary);
       box-shadow: 0 0 10px rgba(189, 0, 255, 0.3);
}

/* Modal Overlay (Full Screen Glass) */
.modal-overlay {
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background: rgba(10, 10, 22, 0.95);
       backdrop-filter: blur(20px);
       z-index: 10000;
       display: none;
       /* Toggled via JS */
       align-items: center;
       justify-content: center;
       opacity: 0;
       visibility: hidden;
       pointer-events: none;
       transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
       opacity: 1;
       visibility: visible;
       pointer-events: auto;
}

.more-modal-content {
       width: 90%;
       max-width: 400px;
       text-align: center;
       position: relative;
       padding: 2rem;
       border: 1px solid rgba(255, 255, 255, 0.1);
       border-radius: 20px;
       background: radial-gradient(circle at center, rgba(30, 30, 50, 0.5), transparent);
}

.close-more-btn {
       position: absolute;
       top: 15px;
       right: 20px;
       font-size: 2rem;
       background: none;
       border: none;
       color: #888;
       cursor: pointer;
       line-height: 1;
}

.more-title {
       color: #fff;
       font-size: 1.5rem;
       margin-bottom: 2rem;
       padding-bottom: 10px;
       border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.more-links-grid {
       display: grid;
       grid-template-columns: 1fr;
       gap: 1rem;
}

.more-link-card {
       display: flex;
       align-items: center;
       gap: 15px;
       background: rgba(255, 255, 255, 0.05);
       padding: 1rem;
       border-radius: 12px;
       text-decoration: none;
       color: white;
       transition: all 0.3s;
       border: 1px solid transparent;
}

.more-link-card:hover {
       background: rgba(189, 0, 255, 0.1);
       border-color: var(--primary);
       transform: translateX(-5px);
}

.more-icon {
       font-size: 1.5rem;
}

.more-text {
       font-size: 1.2rem;
       font-weight: bold;
}

/* Animation */
@keyframes fadeIn {
       from {
              opacity: 0;
       }

       to {
              opacity: 1;
       }
}

/* --- FORCE MOBILE STORE LAYOUT (Fix for 2-column request) --- */
@media (max-width: 768px) {
       .shop-grid {
              display: grid !important;
              grid-template-columns: repeat(2, 1fr) !important;
              gap: 10px !important;
              padding-left: 10px !important;
              padding-right: 10px !important;
       }

       .shop-card {
              min-width: 0 !important;
              /* Prevent flex/grid item min-width issues */
              width: 100% !important;
       }

       .card-image-wrapper {
              aspect-ratio: 1/1 !important;
              padding: 0.5rem !important;
       }

       .item-name {
              font-size: 0.9rem !important;
       }

       .btn-buy,
       .btn-equip {
              padding: 5px !important;
              font-size: 0.8rem !important;
       }
}

/* --- FINAL MODAL STYLES (Renamed to bypass cache) --- */
.purchase-modal-check {
       position: fixed;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
       background: rgba(0, 0, 0, 0.85);
       backdrop-filter: blur(5px);
       z-index: 20000 !important;
       /* Extremely high z-index */
       display: none;
       /* Hidden by default */
       justify-content: center;
       align-items: center;
       opacity: 0;
       transition: opacity 0.3s ease;
}

.purchase-modal-check.active {
       display: flex !important;
       /* Force flex */
       opacity: 1 !important;
       visibility: visible !important;
       pointer-events: auto !important;
}

.purchase-modal-check .modal-content {
       background: linear-gradient(135deg, #1a1a2e, #16213e);
       border: 1px solid var(--primary);
       box-shadow: 0 0 30px rgba(189, 0, 255, 0.3);
       padding: 2rem;
       border-radius: 20px;
       width: 90%;
       max-width: 400px;
       text-align: center;
       position: relative;
       transform: scale(0.8);
       transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.purchase-modal-check.active .modal-content {
       transform: scale(1);
}

/* Inherit inner styles */
.purchase-modal-check .modal-header h2 {
       color: #fff;
       margin-bottom: 1.5rem;
       font-size: 1.5rem;
}

.purchase-modal-check .close-modal-btn {
       position: absolute;
       top: 15px;
       right: 20px;
       background: none;
       border: none;
       color: #aaa;
       font-size: 2rem;
       cursor: pointer;
       line-height: 1;
}

.purchase-modal-check .close-modal-btn:hover {
       color: #fff;
}

.purchase-modal-check .modal-item-preview img {
       width: 100px;
       height: 100px;
       object-fit: contain;
       margin-bottom: 1rem;
       filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
}

.purchase-modal-check .modal-item-info h3 {
       margin-bottom: 0.5rem;
       color: var(--primary);
}

.purchase-modal-check .modal-price-tag {
       display: flex;
       justify-content: center;
       align-items: center;
       gap: 5px;
       font-size: 1.2rem;
       font-weight: bold;
       color: gold;
       margin: 10px 0 20px 0;
}

.purchase-modal-check .modal-actions {
       display: flex;
       gap: 1rem;
       justify-content: center;
}

.purchase-modal-check .btn-confirm,
.purchase-modal-check .btn-cancel {
       padding: 10px 25px;
       border-radius: 8px;
       border: none;
       font-weight: bold;
       cursor: pointer;
       font-size: 1rem;
}

.purchase-modal-check .btn-confirm {
       background: var(--primary);
       color: white;
       box-shadow: 0 4px 15px rgba(189, 0, 255, 0.4);
}

.purchase-modal-check .btn-cancel {
       background: transparent;
       border: 1px solid rgba(255, 255, 255, 0.2);
       color: #bbb;
}

/* --- SUBSCRIPTION GLOW EFFECTS --- */
/* Base Animation */
@keyframes shimmerText {
       0% {
              background-position: -100% 0;
       }

       100% {
              background-position: 100% 0;
       }
}

/* 1. Bronze (Mini Plan) */
.glow-bronze {
       background: linear-gradient(90deg, #cd7f32, #8b4513, #cd7f32);
       background-size: 200% auto;
       color: transparent;
       -webkit-background-clip: text;
       background-clip: text;
       animation: shimmerText 3s linear infinite;
       text-shadow: 0 0 5px rgba(205, 127, 50, 0.5);
       font-weight: bold;
}

/* 2. Silver (Persevering Plan) */
.glow-silver {
       background: linear-gradient(90deg, #bdc3c7, #ffffff, #bdc3c7);
       background-size: 200% auto;
       color: transparent;
       -webkit-background-clip: text;
       background-clip: text;
       animation: shimmerText 2.5s linear infinite;
       text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
       font-weight: bold;
}

/* 3. Gold (Legendary Plan) */
.glow-gold {
       background: linear-gradient(90deg, #ffd700, #fff, #ffd700);
       background-size: 200% auto;
       color: transparent;
       -webkit-background-clip: text;
       background-clip: text;
       animation: shimmerText 2s linear infinite;
       text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
       font-weight: 800;
       /* Extra bold for Legend */
}