/* Dealzpotr 2050 - Hyper-Advanced Bionic System */
/* Theme: Bionic Materialism & Liquid Intelligence */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    /* -- Deep Core Palette -- */
    --void-depth: #030304;
    --void-surface: #0a0a0c;
    --bionic-glass: rgba(20, 20, 25, 0.6);
    /* Darker for Bento */
    --bionic-border: rgba(255, 255, 255, 0.08);

    /* -- Intelligent Accents -- */
    --hyper-neon: #00f0ff;
    /* Electric Cyan */
    --hyper-plasma: #7000ff;
    /* Deep Violet */
    --hyper-flux: #ff0055;
    /* Reactive Red */
    --bio-lime: #ccff00;
    /* Organic Green */
    --holo-gold: #ffd700;
    /* Legendary Gold */

    /* -- Textures -- */
    --liquid-metal: linear-gradient(135deg, #ffffff 0%, #a0a0a0 50%, #ffffff 100%);
    --deep-space: radial-gradient(circle at top right, #1a1a2e 0%, #000000 100%);

    /* -- Physics -- */
    --squircle: 24px;
    --super-curve: 999px;
    --fluid-ease: cubic-bezier(0.25, 0.1, 0.05, 1.0);

    /* Theme System */
    --ui-color-primary-500: #00f0ff;
    --ui-color-secondary-500: #7000ff;
    --ui-color-error-500: #ff0055;
    --ui-color-primary-400: #33f5ff;
    --ui-color-secondary-400: #8a2be2;
    --ui-color-error-400: #ff3377;
}

/* -- Tailwind Utility Overrides (Backup for CLI Build Issues) -- */
.max-w-2xl {
    max-width: 42rem !important;
}

/* 672px */
.max-w-md {
    max-width: 28rem !important;
}

/* 448px */
.mx-12 {
    margin-left: 3rem !important;
    margin-right: 3rem !important;
}

.mx-6 {
    margin-left: 1.5rem !important;
    margin-right: 1.5rem !important;
}

.flex-1 {
    flex: 1 1 0% !important;
}

.gap-6 {
    gap: 1.5rem !important;
}

.gap-3 {
    gap: 0.75rem !important;
}

.py-3 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
}

.px-6 {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

.min-w-\[300px\] {
    min-width: 300px !important;
}

.shrink {
    flex-shrink: 1 !important;
}

.gap-4 {
    gap: 1rem !important;
}

.rounded-full {
    border-radius: 9999px !important;
}

:root,
:host,
.light {
    --ui-primary: var(--ui-color-primary-500);
    --ui-secondary: var(--ui-color-secondary-500);
    --ui-error: var(--ui-color-error-500);
}

.dark {
    --ui-primary: var(--ui-color-primary-400);
    --ui-secondary: var(--ui-color-secondary-400);
    --ui-error: var(--ui-color-error-400);
}

/* -- Bionic Reset -- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--void-depth);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.139) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.087) 1px, transparent 1px),
        radial-gradient(circle at 15% 50%, rgba(112, 0, 255, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 240, 255, 0.03) 0%, transparent 25%);
    background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    /* animation: grid-move 20s linear infinite; REMOVED FOR PERFORMANCE */
}

/* 
@keyframes grid-move {
    0% { background-position: 0 0, 0 0, 15% 50%, 85% 30%; }
    100% { background-position: 40px 40px, 40px 40px, 15% 50%, 85% 30%; }
} 
*/

h1,
h2,
h3,
h4,
buttons {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

/* -- SAVTEA BENTO GRID (New) -- */
.bento-card {
    background: var(--void-surface);
    border: 1px solid var(--bionic-border);
    border-radius: var(--squircle);
    padding: 24px;
    transition: all 0.3s var(--fluid-ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

/* -- SQUISH EFFECT (Micro-interaction) -- */
.btn-squish {
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-squish:active {
    transform: scale(0.95);
}

/* -- SUCCESS TICKER -- */
#success-ticker {
    background: linear-gradient(90deg, #000, rgba(0, 240, 255, 0.1), #000);
    border-bottom: 1px solid var(--bionic-border);
    font-family: 'Space Grotesk', monospace;
}

/* -- STICKY OVERLAY (Copy & Go) -- */
#sticky-copier {
    backdrop-filter: blur(20px);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    transform: translateY(150%);
    transition: transform 0.5s var(--fluid-ease);
}

#sticky-copier.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* -- CONFETTI -- */
.confetti-piece {
    position: absolute;
    width: 8px;
    height: 16px;
    background: #ffd300;
    top: 0;
    opacity: 0;
}

@keyframes confetti-drop {
    0% {
        transform: translateY(0) rotate(0);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* -- REUSED BIONIC STYLES (Keep existing) -- */
.bionic-surface {
    background: var(--bionic-glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--bionic-border);
    border-radius: var(--squircle);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.5s var(--fluid-ease);
}

.bionic-surface:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 20px rgba(0, 240, 255, 0.1);
    transform: translateY(-2px) scale(1.01);
}

/* Super Button */
.super-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    padding: 0 32px;
    background: white;
    color: black;
    border-radius: var(--super-curve);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    overflow: hidden;
    transition: all 0.6s var(--fluid-ease);
    z-index: 10;
}

.super-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: var(--liquid-metal);
    filter: blur(10px);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.super-btn:hover {
    padding: 0 48px;
    letter-spacing: 2px;
}

.super-btn:hover::before {
    opacity: 0.5;
}

/* Expanded Super Button */
.super-btn.expanded {
    width: 380px;
    height: 450px;
    border-radius: var(--squircle);
    background: var(--void-surface);
    color: white;
    border: 1px solid var(--hyper-neon);
    padding: 0;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    box-shadow: 0 50px 100px -20px rgba(0, 240, 255, 0.2);
}

.super-btn-content {
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.super-btn.expanded .super-btn-content {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 0.4s 0.2s;
}

/* Command Orb */
.command-orb {
    position: fixed;
    top: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    max-width: 1600px;
    height: auto;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
    border: none;
    z-index: 100;
    display: flex;
    flex-direction: column;
    padding: 0;
    box-shadow: none;
    transition: all 0.4s var(--fluid-ease);
}

@media (min-width: 768px) {
    .command-orb {
        width: 95%;
    }
}

.command-orb:hover {
    border-color: transparent;
    transform: translateX(-50%);
}

/* Bionic Glass Effect */
.bionic-glass {
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* Navigation Pills */
.nav-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.nav-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.nav-pill-accent {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hyper-neon);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.nav-pill-accent:hover {
    color: #ffffff;
    background: rgba(0, 240, 255, 0.1);
}

.nav-pill-special {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hyper-plasma);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}

.nav-pill-special:hover {
    color: #ffffff;
    background: rgba(112, 0, 255, 0.1);
}

/* Mobile Navigation */
.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
}

.mobile-nav-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================
   RESPONSIVE HEADER STYLES
   ============================ */

/* Mobile Header Inner Container */
@media (max-width: 1023px) {
    .command-orb>div:first-child {
        padding: 12px 16px !important;
        gap: 8px;
    }

    /* Hide desktop nav on mobile */
    .command-orb .hidden.lg\\:flex {
        display: none !important;
    }

    /* Show mobile elements */
    .command-orb .lg\\:hidden {
        display: flex !important;
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .command-orb {
        top: 40px;
        width: calc(100% - 12px);
    }

    .command-orb>div:first-child {
        padding: 10px 12px !important;
        border-radius: 24px !important;
    }

    /* Smaller logo on mobile */
    .command-orb .w-9 {
        width: 32px !important;
        height: 32px !important;
    }

    /* Smaller buttons on mobile */
    .command-orb button.w-10,
    .command-orb a.w-10 {
        width: 36px !important;
        height: 36px !important;
    }

    /* Mobile menu full width */
    #mobile-menu {
        border-radius: 20px;
    }
}

/* Tablet Adjustments */
@media (min-width: 768px) and (max-width: 1023px) {
    .command-orb>div:first-child {
        padding: 14px 20px !important;
    }
}

/* Desktop - ensure search bar doesn't overflow */
@media (min-width: 1024px) {
    .command-orb>div:first-child {
        padding: 16px 24px;
    }

    /* Hide mobile elements on desktop */
    .command-orb .lg\\:hidden {
        display: none !important;
    }

    /* Show desktop nav */
    .command-orb .hidden.lg\\:flex {
        display: flex !important;
    }
}

/* Holo Badges */
.holo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
}

.badge-legendary {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--holo-gold);
    color: var(--holo-gold);
    animation: gold-pulse 2s infinite;
}

.badge-epic {
    background: rgba(112, 0, 255, 0.1);
    border: 1px solid var(--hyper-plasma);
    color: var(--hyper-plasma);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.3);
}

.badge-rare {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--hyper-neon);
    color: var(--hyper-neon);
}

@keyframes gold-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--hyper-neon);
}

/* Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--hyper-neon);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    will-change: transform;
}

body:hover .cursor-outline {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--hyper-neon);
}

/* Utilities */
.text-neon {
    color: var(--hyper-neon);
}

/* -- Admin Panel Layout -- */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #0a0a0c;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: white;
}

.nav-link.active {
    background: rgba(0, 240, 255, 0.05);
    color: var(--hyper-neon);
    border-left-color: var(--hyper-neon);
}

/* Flash Messages */
.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Badges */
.badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-verified {
    background-color: #d1fae5;
    color: #059669;
}

.badge-pending {
    background-color: #fff7ed;
    color: #c2410c;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: #f9fafb;
    color: #4b5563;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    border-bottom: 1px solid #e5e7eb;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    color: #1f2937;
    font-size: 14px;
}

.data-table tr:hover td {
    background: #f9fafb;
}

/* Form Styles */
.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.15s;
    outline: none;
}

.form-input:focus {
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 14px;
}

.btn-primary {
    background: #059669;
    color: white;
}

.btn-primary:hover {
    background: #047857;
}

.btn-secondary {
    background: white;
    border: 1px solid #d1d5db;
    color: #374151;
}

.btn-secondary:hover {
    background: #f9fafb;
}

/* ========== LIGHTWEIGHT ANIMATIONS ========== */

/* Fade in animation for elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    }
}

/* Apply to cards */
.bento-card,
.bionic-surface {
    animation: fadeInUp 0.5s ease forwards;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-card:hover,
.bionic-surface:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Buttons with subtle shimmer */
.super-btn {
    position: relative;
    overflow: hidden;
}

.super-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

/* Links with glow on hover */
a:hover {
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.3);
}

/* Staggered fade in for lists */
.grid>* {
    animation: fadeInUp 0.4s ease backwards;
}

.grid>*:nth-child(1) {
    animation-delay: 0.05s;
}

.grid>*:nth-child(2) {
    animation-delay: 0.1s;
}

.grid>*:nth-child(3) {
    animation-delay: 0.15s;
}

.grid>*:nth-child(4) {
    animation-delay: 0.2s;
}

.grid>*:nth-child(5) {
    animation-delay: 0.25s;
}

.grid>*:nth-child(6) {
    animation-delay: 0.3s;
}

/* Floating effect for featured items */
.featured-badge {
    animation: float 3s ease-in-out infinite;
}

/* Smooth focus states */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 2px rgba(0, 240, 255, 0.3);
    transition: box-shadow 0.2s ease;
}

/* Navbar link hover */
.nav-pill:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: scale(1.02);
}