/* ============================================
   JUJUTSU KAISEN INSPIRED DESIGN SYSTEM
   ============================================ */

:root {
    /* Jujutsu Kaisen Color Scheme - Dark Theme (high contrast) */
    --bg-primary: #050507;
    --bg-secondary: #0c0c0f;
    --bg-tertiary: #17171c;
    --text-primary: #ffffff;
    --text-secondary: #f5f5f5;
    --text-muted: #ededed;
    --accent: #dc2626;
    --accent-hover: #ef4444;
    --accent-light: #7f1d1d;
    --accent-glow: rgba(220, 38, 38, 0.6);
    --cursed-energy: #dc2626;
    --cursed-energy-glow: rgba(220, 38, 38, 0.4);
    --success: #10b981;
    --warning: #fbbf24;
    --danger: #f87171;
    --border: #333333;
    --border-glow: rgba(220, 38, 38, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.8);
    --shadow-red: 0 0 20px rgba(220, 38, 38, 0.4);
}

body.theme-dark {
    /* Same dark theme - always dark for anime aesthetic (high contrast) */
    --bg-primary: #050507;
    --bg-secondary: #0c0c0f;
    --bg-tertiary: #17171c;
    --text-primary: #ffffff;
    --text-secondary: #f5f5f5;
    --text-muted: #ededed;
    --accent: #dc2626;
    --accent-hover: #ef4444;
    --accent-light: #7f1d1d;
    --accent-glow: rgba(220, 38, 38, 0.6);
    --cursed-energy: #dc2626;
    --cursed-energy-glow: rgba(220, 38, 38, 0.4);
    --border: #333333;
    --border-glow: rgba(220, 38, 38, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.8);
    --shadow-red: 0 0 20px rgba(220, 38, 38, 0.4);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html, body {
    height: 100%;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Force readable text across the site (override Bootstrap grays) */
.text-muted,
.text-secondary,
small,
.small {
    color: var(--text-muted) !important;
}

p, li, span, label, .form-text {
    color: var(--text-secondary);
}

::placeholder {
    color: rgba(255, 255, 255, 0.75) !important;
    opacity: 1;
}

/* Profile inventory image sizing */
.item-card-image-small {
    width: 100%;
    height: 140px;
    object-fit: contain;
    padding: 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    display: block;
}

.item-card-title-small {
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

/* Profile inventory card redesign */
.profile-inv-card {
    display: block;
    text-decoration: none;
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.25s ease;
    position: relative;
}

.profile-inv-remove-btn {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    border-radius: 999px;
    padding: 0.15rem 0.6rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-inv-remove-btn:hover {
    background: var(--danger);
    color: #000;
}

/* New Profile Layout */
.profile-shell {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-hero {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 1rem;
    padding: 1.25rem 1.25rem;
    box-shadow: var(--shadow-xl), 0 0 30px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 25% 40%, rgba(220,38,38,0.18) 0%, transparent 55%);
    pointer-events: none;
}

.profile-tag {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-user {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-shadow: 0 0 12px var(--accent-glow);
}

.profile-verified {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 18px var(--accent-glow);
}

.profile-stats {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.profile-stat {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    min-width: 140px;
}

.profile-stat-number {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 0 0 12px var(--accent-glow);
}

.profile-stat-label {
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 0.85rem;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.profile-inv-remove-overlay {
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    margin: 0;
    z-index: 5;
}

.profile-inv-remove-x {
    width: 34px;
    height: 34px;
    border-radius: 0.6rem;
    border: 1px solid var(--danger);
    background: rgba(0,0,0,0.65);
    color: var(--danger);
    font-weight: 900;
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.profile-inv-remove-x:hover {
    background: var(--danger);
    color: #000;
    box-shadow: 0 0 18px rgba(248,113,113,0.6);
    transform: scale(1.05);
}

.profile-inv-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: var(--shadow-xl), 0 0 20px var(--accent-glow);
}

.profile-inv-image {
    background: var(--bg-tertiary);
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-inv-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.7));
}

.profile-inv-noimg {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-inv-qty {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.7);
    border: 1px solid var(--accent);
    color: var(--text-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-weight: 800;
    box-shadow: 0 0 12px var(--accent-glow);
}

.profile-inv-body {
    padding: 1rem 1rem 1.1rem;
}

.profile-inv-name {
    color: var(--text-primary);
    font-weight: 900;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px var(--accent-glow);
}

.profile-inv-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.profile-inv-badge {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-inv-value {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

.profile-inv-value strong {
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px var(--accent-glow);
}

.profile-inv-remove-inline {
    margin: 0;
}

body {
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(220, 38, 38, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(220, 38, 38, 0.03) 0%, transparent 50%);
    background-attachment: fixed;
}

body {
    display: flex;
    flex-direction: column;
}

.min-vh-100 {
    min-height: 100vh;
}

.flex-grow-1 {
    flex-grow: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

.main-navbar {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: block;
    visibility: visible;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    width: 100%;
    position: relative;
}

.nav-container::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1px;
    background: transparent;
    pointer-events: none;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform 0.2s;
}

.brand-link:hover {
    transform: scale(1.05);
    color: var(--text-primary);
}

.brand-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent), #ff0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px var(--accent-glow)); }
    50% { filter: drop-shadow(0 0 16px var(--accent-glow)); }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
}

.nav-link-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 0.9rem;
    white-space: nowrap;
    position: relative;
}

.nav-link-item:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    transform: translateX(4px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown.active .dropdown-menu-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu-nav {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    list-style: none;
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.dropdown-menu-nav a {
    display: block;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.dropdown-menu-nav a:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    flex-shrink: 0;
}

.btn-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: none;
    border-radius: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-nav:hover {
    background: var(--border);
    color: var(--text-primary);
}

.btn-nav-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

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

.btn-nav-primary:hover::before {
    left: 100%;
}

.btn-nav-primary:hover {
    background: var(--accent-hover);
    color: white;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: translateY(-2px);
}

.theme-toggle {
    padding: 0.625rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.user-dropdown a:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
}

/* Admin Menu Dropdown */
.admin-menu {
    position: relative;
}

.admin-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
}

.admin-menu.active .admin-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.admin-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.admin-dropdown a:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
}

.admin-dropdown a i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    flex: 1;
}

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

.main-footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding: 2rem 0 1rem;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

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

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: 
        radial-gradient(circle at 30% 50%, rgba(220, 38, 38, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(220, 38, 38, 0.1) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    border-bottom: 3px solid var(--accent);
    box-shadow: inset 0 -20px 40px rgba(220, 38, 38, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(220, 38, 38, 0.03) 2px, rgba(220, 38, 38, 0.03) 4px);
    pointer-events: none;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
}

.hero-container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 800px;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 
        0 0 10px var(--accent-glow),
        0 0 20px var(--accent-glow),
        0 0 30px var(--accent-glow);
    animation: text-glow 3s ease-in-out infinite;
}

@keyframes text-glow {
    0%, 100% { 
        text-shadow: 
            0 0 10px var(--accent-glow),
            0 0 20px var(--accent-glow),
            0 0 30px var(--accent-glow);
    }
    50% { 
        text-shadow: 
            0 0 15px var(--accent-glow),
            0 0 30px var(--accent-glow),
            0 0 45px var(--accent-glow);
    }
}

.highlight {
    background: linear-gradient(135deg, var(--accent), #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-hero {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-hero-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 0 20px var(--accent-glow), var(--shadow-md);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--accent);
}

.btn-hero-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-hero-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--accent-glow), var(--shadow-lg);
    color: white;
    border-color: var(--accent-hover);
}

.btn-hero-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

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

.hero-stats {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-card {
    text-align: left;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   SECTIONS
   ============================================ */

.categories-section,
.featured-section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--bg-primary);
    color: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #ff0000);
    transform: scaleX(0);
    transition: transform 0.3s;
    box-shadow: 0 0 10px var(--accent-glow);
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(220, 38, 38, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 30px var(--accent-glow);
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.category-card:hover::before {
    transform: scaleX(1);
}

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

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon {
    font-size: 1.75rem;
}

.category-info {
    flex: 1;
}

.category-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.category-arrow {
    color: var(--text-muted);
    transition: transform 0.3s;
}

.category-card:hover .category-arrow {
    transform: translateX(4px);
    color: var(--accent);
}

/* ============================================
   FEATURED CARDS
   ============================================ */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.featured-image {
    width: 100%;
    height: 180px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.featured-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.featured-image.no-image {
    color: var(--text-muted);
    font-size: 3rem;
}

.featured-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.featured-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.featured-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.featured-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent);
}

/* ============================================
   PAGE HEADERS
   ============================================ */

.page-header-section {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.page-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.page-title-large {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--accent-glow);
}

.page-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 0;
}

.btn-create {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 0 15px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.btn-create::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-create:hover::before {
    width: 300px;
    height: 300px;
}

.btn-create:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--accent-glow), var(--shadow-lg);
    color: white;
    border-color: var(--accent-hover);
}

.page-body {
    padding: 2rem 0;
}

/* ============================================
   SEARCH & FILTERS
   ============================================ */

.search-section {
    margin-bottom: 2rem;
}

.search-form {
    width: 100%;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.2s;
}

.search-bar:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.search-bar i {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.search-input {
    flex: 1;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.filter-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-toggle:hover {
    background: var(--border);
    color: var(--accent);
}

.results-header {
    margin-bottom: 1.5rem;
}

.results-count {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   ITEM CARDS
   ============================================ */

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
}

.item-card-wrapper {
    position: relative;
}

.item-card-link {
    text-decoration: none;
    display: block;
}

.item-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-md);
    position: relative;
}

.item-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent);
    border-radius: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.item-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 25px var(--accent-glow);
    border-color: var(--accent);
    background: var(--bg-tertiary);
}

.item-card:hover::before {
    opacity: 1;
    box-shadow: inset 0 0 20px var(--accent-glow);
}

.item-card-image {
    width: 100%;
    height: 240px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.item-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.item-card-image.no-image {
    color: var(--text-muted);
    font-size: 3rem;
}

.item-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.75rem;
}

.item-card-header {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.item-type-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.rarity-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.rarity-unobtainable { background: #fee2e2; color: #b91c1c; }
.rarity-special_grade { background: #fef3c7; color: #92400e; }
.rarity-rare { background: #dbeafe; color: #1d4ed8; }
.rarity-uncommon { background: #d1fae5; color: #065f46; }
.rarity-common { background: #e5e7eb; color: #111827; }

.item-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

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

.item-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    text-shadow: 0 0 10px var(--accent-glow);
    font-family: 'Orbitron', sans-serif;
}

.item-stars {
    display: flex;
    gap: 0.25rem;
}

.item-stars i {
    font-size: 0.875rem;
    color: var(--border);
}

.item-stars .star-active {
    color: var(--warning);
}

.item-edit-btn {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0;
    transition: all 0.2s;
    z-index: 10;
}

.item-card-wrapper:hover .item-edit-btn {
    opacity: 1;
}

.item-edit-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ============================================
   PAGINATION
   ============================================ */

.pagination-wrapper {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.page-link:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--accent);
}

.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* ============================================
   MODAL
   ============================================ */

.modal-content-custom {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 0.5rem;
    box-shadow: var(--shadow-xl), 0 0 30px var(--accent-glow);
    position: relative;
}

.modal-content-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ff0000);
    box-shadow: 0 0 10px var(--accent-glow);
}

.modal-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-title-custom {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 0.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.modal-body-custom {
    padding: 1.5rem;
}

.modal-footer-custom {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--accent-glow);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow), var(--shadow-lg);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: var(--border);
    color: var(--text-primary);
}

/* ============================================
   TRADE CALCULATOR - NEW DESIGN
   ============================================ */

.calculator-page {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

.calculator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 15px var(--accent-glow);
}

.calculator-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.trade-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.trade-column {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg), 0 0 20px var(--accent-glow);
    position: relative;
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.trade-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ff0000);
    box-shadow: 0 0 10px var(--accent-glow);
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.column-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 8px var(--accent-glow);
}

.column-total {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px var(--accent-glow);
}

.items-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
    min-height: 300px;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.items-list::-webkit-scrollbar {
    width: 6px;
}

.items-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.items-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.items-list::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

.trade-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    position: relative;
}

.trade-item:hover {
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 10px var(--accent-glow);
    transform: translateX(4px);
}

.trade-item-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.trade-item-img.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}

.trade-item-details {
    flex: 1;
    min-width: 0;
}

.trade-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trade-item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trade-item-qty {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.trade-item-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px var(--accent-glow);
}

.trade-item-remove {
    width: 32px;
    height: 32px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid var(--accent);
    border-radius: 0.5rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.trade-item-remove:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
}

.add-item-btn {
    width: 100%;
    padding: 1rem;
    background: var(--bg-tertiary);
    border: 2px dashed var(--accent);
    border-radius: 0.5rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
}

.add-item-btn:hover {
    background: rgba(220, 38, 38, 0.1);
    border-style: solid;
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.add-item-btn i {
    font-size: 1.25rem;
}

.vs-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 1rem;
    align-self: stretch;
    min-width: 200px;
}

.difference-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border: 2px solid var(--border);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-md);
}

.difference-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.difference-value {
    font-size: 2rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px currentColor;
}

.difference-favor {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vs-line-top,
.vs-line-bottom {
    width: 2px;
    flex: 1;
    min-height: 60px;
    background: linear-gradient(180deg, var(--accent), transparent);
    box-shadow: 0 0 10px var(--accent-glow);
}

.vs-badge {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    border: 3px solid var(--accent);
    border-radius: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 10px var(--accent-glow);
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(220, 38, 38, 0.2);
    animation: vs-pulse 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes vs-pulse {
    0%, 100% { 
        box-shadow: 0 0 20px var(--accent-glow), inset 0 0 20px rgba(220, 38, 38, 0.2);
    }
    50% { 
        box-shadow: 0 0 30px var(--accent-glow), inset 0 0 30px rgba(220, 38, 38, 0.3);
    }
}

.trade-summary {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 0.5rem;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    box-shadow: var(--shadow-xl), 0 0 30px var(--accent-glow);
    position: relative;
}

.trade-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #ff0000);
    box-shadow: 0 0 10px var(--accent-glow);
}

.summary-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.summary-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 10px var(--accent-glow);
}

.summary-diff .summary-number {
    font-size: 2.5rem;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
    animation: value-pulse 2s ease-in-out infinite;
}

@keyframes value-pulse {
    0%, 100% { text-shadow: 0 0 15px var(--accent-glow); }
    50% { text-shadow: 0 0 25px var(--accent-glow); }
}

/* Modal Items */
.modal-filters {
    margin-bottom: 1.5rem;
}

.filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-items-container {
    position: relative;
    min-height: 400px;
    max-height: 500px;
}

.modal-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 500px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.modal-items-list::-webkit-scrollbar {
    width: 6px;
}

.modal-items-list::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 3px;
}

.modal-items-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.modal-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-item:hover {
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateX(4px);
}

/* Bootstrap modal customization for dark theme */
.modal-content {
    background: var(--bg-secondary);
    border: 2px solid var(--accent);
    color: var(--text-primary);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.modal-title {
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.modal-body-fixed {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal-items-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 400px;
    max-height: 60vh;
    /* Hide scrollbars for cleaner appearance */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.modal-items-scroll::-webkit-scrollbar {
    display: none;
}

.modal-footer {
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.btn-close {
    filter: invert(1);
}

.modal-full-height {
    max-height: 90vh;
}

.modal-full-height .modal-content {
    height: 90vh;
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
    padding-right: 0 !important;
}

.form-control,
.form-select {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.form-control:focus,
.form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.25rem rgba(220, 38, 38, 0.25);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-primary:disabled {
    background: var(--bg-tertiary);
    border-color: var(--border);
    opacity: 0.5;
}

.btn-secondary {
    background: var(--bg-tertiary);
    border-color: var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border);
    border-color: var(--border);
    color: var(--text-primary);
}

#selectedItemDisplay {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.badge {
    background: var(--accent);
    color: white;
}

.modal-item-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.modal-item-img.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.modal-item-info {
    flex: 1;
    min-width: 0;
}

.modal-item-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-item-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-item-rarity {
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.modal-item-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 8px var(--accent-glow);
}

.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--text-muted);
}

.modal-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--text-muted);
}

.qty-input-wrapper {
    margin-bottom: 1.5rem;
}

.qty-input-wrapper label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Orbitron', sans-serif;
}

.qty-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.qty-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

@media (max-width: 991px) {
    .trade-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .vs-section {
        flex-direction: row;
        padding: 1rem 0;
    }
    
    .vs-line-top,
    .vs-line-bottom {
        width: 60px;
        height: 2px;
        min-height: 0;
    }
    
    .trade-summary {
        flex-direction: column;
        gap: 1.5rem;
    }
}

.modal-large {
    max-width: 900px;
}

.modal-search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.modal-search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

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

.modal-filter-select {
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    min-width: 150px;
}

.modal-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem 0;
}

.modal-items-grid .item-card {
    cursor: pointer;
    pointer-events: auto;
    user-select: none;
}

.modal-items-grid .item-card:hover {
    transform: translateY(-4px) scale(1.05);
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    gap: 1rem;
    color: var(--text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.quantity-input-group {
    margin-bottom: 1.5rem;
}

.quantity-input-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.quantity-input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
}

.quantity-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Ensure navbar collapse shows on desktop */
.navbar-collapse {
    display: flex !important;
    flex-basis: auto !important;
    flex-grow: 1 !important;
    align-items: center;
    justify-content: center;
    margin-left: 2rem;
    margin-right: 2rem;
}

.navbar-collapse.show {
    display: flex !important;
}

@media (max-width: 991px) {
    .nav-toggle {
        display: flex;
    }
    
    .navbar-collapse:not(.show) {
        display: none !important;
    }
    
    .navbar-collapse.show {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-top: 2px solid var(--accent);
        padding: 1rem;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 20px var(--accent-glow);
        z-index: 999;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .nav-actions {
        margin-top: 1rem;
        width: 100%;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
}
