:root {
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 25, 0.6);
    --primary: #8b24ff;
    --primary-hover: #a34dff;
    --accent: #00d9ff;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --border: rgba(255, 255, 255, 0.08);
    --glass: blur(20px);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- Animated Background --- */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floating 10s infinite ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary), transparent);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b0086, transparent);
    bottom: -100px;
    right: -50px;
    animation-delay: 2s;
}

/* --- Interactive Grid Background --- */
.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    /* Masking for flashlight effect - controlled by JS vars --mouse-x, --mouse-y */
    mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            black 0%,
            transparent 150px);
    -webkit-mask-image: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            black 0%,
            transparent 150px);
    opacity: 0.8;
    pointer-events: none;
}

@keyframes floating {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* --- Navbar V2 (Floating) --- */
.navbar {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 20px;
    z-index: 100;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 15, 0.6);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.nav-container {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 15px rgba(139, 36, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 10px;
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border-radius: 12px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a:hover,
.nav-links a.active-link {
    background: rgba(139, 36, 255, 0.2);
    color: white;
    box-shadow: 0 0 10px rgba(139, 36, 255, 0.1);
}

.nav-item-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-glow {
    background: linear-gradient(135deg, var(--primary), #6000c2);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(139, 36, 255, 0.3);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 36, 255, 0.5);
}

.social-icon {
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icon:hover {
    color: #5865F2;
    transform: rotate(10deg);
}

/* --- User Profile Nav --- */
.user-profile-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 15px 6px 6px;
    border-radius: 40px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.user-profile-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
}

.user-avatar-nav {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}

.user-info-box {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.user-name-nav {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
}

.user-role-badge {
    font-size: 0.7rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    background: none;
    padding: 0;
}

.btn-logout {
    background: rgba(255, 50, 50, 0.1);
    border: 1px solid rgba(255, 50, 50, 0.2);
    color: #ff5555;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    margin-left: 5px;
}

.btn-logout:hover {
    background: #ff5555;
    color: white;
    transform: rotate(90deg);
}


/* --- Main Container --- */
.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

section {
    display: none;
    animation: fadeIn 0.6s ease-out;
}

.active-section {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero --- */
.hero-section {
    text-align: center;
    margin-bottom: 50px;
}

.badge {
    background: rgba(139, 36, 255, 0.2);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(139, 36, 255, 0.3);
    margin-bottom: 15px;
    display: inline-block;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Dashboard Interface --- */
.dashboard-interface {
    display: flex;
    background: var(--bg-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    backdrop-filter: var(--glass);
    overflow: hidden;
    min-height: 500px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.sidebar-tabs {
    width: 250px;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid var(--border);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 15px;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 15px;
}

.cat-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 15px;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Push count to right */
    width: 100%;
}

.cat-btn>span:first-child {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.cat-btn.active {
    background: linear-gradient(90deg, rgba(139, 36, 255, 0.2), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.cat-count {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: var(--transition);
}

.cat-btn.active .cat-count {
    background: var(--primary);
    color: white;
}

.tab-btn.active {
    background: linear-gradient(90deg, rgba(139, 36, 255, 0.2), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

/* --- Content Panel --- */
.content-panel {
    flex: 1;
    padding: 40px;
    position: relative;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeScale 0.4s ease;
}

@keyframes fadeScale {
    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.panel-header {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
}

.panel-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-header p {
    color: var(--text-muted);
}

/* --- Modern Form --- */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-wrapper input {
    padding-left: 45px;
}

input,
textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 3px rgba(139, 36, 255, 0.1);
}

.row-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-primary {
    background: var(--text-main);
    color: black;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- Command Cards (Ghost Premium Theme) --- */
.commands-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cmd-card-modern {
    background: rgba(15, 10, 20, 0.7);
    /* Darker Purple-ish tint */
    border: 1px solid rgba(139, 36, 255, 0.15);
    /* Unified Purple Border */
    border-radius: 12px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    backdrop-filter: blur(10px);
}

/* Tech Accent (Corner Line) */
.cmd-card-modern::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent rgba(139, 36, 255, 0.1) transparent transparent;
    transition: all 0.3s;
}

.cmd-card-modern:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    /* Bright Purple on Hover */
    box-shadow: 0 0 30px rgba(139, 36, 255, 0.15);
    /* Purple Glow */
    background: rgba(139, 36, 255, 0.03);
}

.cmd-card-modern:hover::after {
    border-color: transparent var(--primary) transparent transparent;
    opacity: 0.5;
}

/* Typography & Layout */
.cmd-card-modern h3 {
    margin: 15px 0 5px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.cmd-card-modern p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Badges & Icons (Category Specific Colors preserved here) */

.cmd-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 0.65rem;
    padding: 3px 8px;
    border-radius: 4px;
    /* Tech-square radius */
    font-weight: 800;
    text-transform: uppercase;
    background: rgba(30, 30, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 2;
}

/* Specific Badge Colors */
.cmd-card-modern[data-cat="enterprise"] .cmd-badge {
    color: #d0a3ff;
    border-color: rgba(139, 36, 255, 0.3);
}

.cmd-card-modern[data-cat="utils"] .cmd-badge {
    color: #80ecff;
    border-color: rgba(0, 217, 255, 0.3);
}

.cmd-card-modern[data-cat="fun"] .cmd-badge {
    color: #ffe600;
    border-color: rgba(255, 204, 0, 0.3);
}

.cmd-card-modern[data-cat="community"] .cmd-badge {
    color: #ff9999;
    border-color: rgba(255, 100, 100, 0.3);
}

/* Icons */
.cmd-icon {
    font-size: 1.8rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s;
}

.cmd-card-modern:hover .cmd-icon {
    transform: scale(1.1) rotate(-5deg);
    filter: drop-shadow(0 0 15px currentColor);
}

/* Search Bar (Tech Look) */
#cmd-search-main {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(139, 36, 255, 0.2);
    color: white;
}

#cmd-search-main:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 36, 255, 0.2);
}


/* --- Tutorials Style --- */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.tutorial-card {
    background: rgba(30, 30, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.tutorial-card:hover {
    background: rgba(50, 50, 60, 0.9);
    border-color: var(--primary);
}

.tutorial-card h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tutorial-content {
    display: none;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
}

.tutorial-card.active .tutorial-content {
    display: block;
}

/* --- Product Card Enhancements --- */
.product-card-header {
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 12px;
}

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

.product-price-box {
    margin-bottom: 0; 
    text-align: left;
}

.product-price-label {
    display: block; 
    font-size: 0.75rem; 
    color: var(--text-muted); 
    font-weight: 400; 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* --- Trust Badges & Info Boxes --- */
.trust-badge-container {
    margin-top: auto; 
    padding-top: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 10px;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px; 
    border-radius: 12px; 
    border: 1px solid var(--border); 
    display: flex; 
    align-items: center; 
    gap: 10px;
}

.trust-badge span {
    font-size: 0.8rem; 
    color: var(--text-muted);
}

.info-box {
    background: rgba(0, 0, 0, 0.2); 
    padding: 15px; 
    border-radius: 10px; 
    margin-bottom: 20px; 
    font-size: 0.9rem; 
    color: var(--text-muted);
    border: 1px solid var(--border);
}

/* --- Light Mode Overrides --- */
body.light-mode {
    --bg-dark: #f5f7fa;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border: rgba(0, 0, 0, 0.08);
    --primary: #0062ff; /* Mudado roxo para azul no modo claro */
    --primary-hover: #0056e0;
}

body.light-mode .trust-badge {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .info-box {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .navbar {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

body.light-mode .logo {
    color: #1a1a1a;
}

body.light-mode .highlight {
    text-shadow: 0 0 15px rgba(0, 98, 255, 0.2);
}

body.light-mode .nav-links {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active-link {
    color: var(--primary);
    background: rgba(0, 98, 255, 0.1);
}

body.light-mode .btn-glow {
    background: linear-gradient(135deg, var(--primary), #004dc7);
    box-shadow: 0 4px 15px rgba(0, 98, 255, 0.3);
}

body.light-mode .user-profile-nav {
    background: white;
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .user-name-nav {
    color: #1a1a1a;
}

body.light-mode .hero-text h1 .text-gradient {
    background: linear-gradient(to right, #1a1a1a, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .badge {
    background: rgba(0, 98, 255, 0.1);
    color: var(--primary);
    border-color: rgba(0, 98, 255, 0.2);
}

body.light-mode .cmd-card-modern {
    background: white;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .input-wrapper input,
body.light-mode textarea {
    background: #fff;
    color: #2d3436;
    border-color: #dfe6e9;
}

body.light-mode .input-wrapper input:focus,
body.light-mode textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.1);
}

body.light-mode .premium-card {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 98, 255, 0.1);
}

body.light-mode .price-tag {
    color: #1a1a1a;
    text-shadow: none;
}

body.light-mode .flow-step {
    background: white;
    border-color: rgba(0, 0, 0, 0.05);
}

body.light-mode .step-content h3 {
    color: #1a1a1a;
}

body.light-mode .highlight-text {
    color: #1a1a1a;
}

body.light-mode .product-card {
    background: white !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .product-title {
    color: #1a1a1a;
}

body.light-mode .btn-buy {
    background: linear-gradient(135deg, var(--primary), #004dc7);
}

body.light-mode .modal-content {
    background: white !important;
    border-color: var(--primary) !important;
}

body.light-mode .qr-area {
    border: 1px solid var(--border);
}

body.light-mode #modal-title {
    color: #1a1a1a;
}

body.light-mode #modal-price {
    color: var(--primary);
}

body.light-mode .close-modal:hover {
    color: #1a1a1a;
}

body.light-mode .commands-sidebar {
    background: white !important;
    border-color: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .commands-sidebar h3 {
    color: #1a1a1a !important;
}

body.light-mode #cmd-search {
    background: #f1f3f5;
    color: #1a1a1a;
    border-color: transparent;
}

body.light-mode .cat-btn {
    color: #555;
}

body.light-mode .cat-btn:hover {
    background: rgba(0, 98, 255, 0.05);
    color: var(--primary);
}

body.light-mode .cat-btn.active {
    background: rgba(0, 98, 255, 0.1);
    color: var(--primary);
}

body.light-mode .count-badge {
    background: rgba(0, 0, 0, 0.05);
    color: #555;
}

body.light-mode .footer {
    background: #fff;
    color: #636e72;
}

body.light-mode .background-effects {
    display: none;
}

/* --- Store Section Redesign --- */
.orders-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.store-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.store-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 30px;
}

.store-info h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.store-info h1 i {
    color: var(--primary);
}

.store-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.store-search {
    flex: 1;
    max-width: 500px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-group i {
    position: absolute;
    left: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.search-input-group input {
    width: 100%;
    padding: 15px 20px 15px 55px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.search-input-group input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 20px rgba(139, 36, 255, 0.1);
}

/* Category Navigation */
.category-nav-wrapper {
    margin-bottom: 40px;
    position: relative;
}

.category-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 5px 5px 15px;
    scrollbar-width: none; /* Firefox */
}

.category-nav::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.cat-chip {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.cat-chip i {
    font-size: 1rem;
}

.cat-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    transform: translateY(-2px);
}

.cat-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(139, 36, 255, 0.3);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
}

.product-card {
    background: #0f0f14;
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(139, 36, 255, 0.05), transparent);
    pointer-events: none;
}

.product-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.stock-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.stock-badge.in-stock {
    background: rgba(0, 255, 136, 0.1);
    color: #00ff88;
}

.stock-badge.out-of-stock {
    background: rgba(255, 68, 68, 0.1);
    color: #ff4444;
}

.hot-badge {
    background: #ff4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-transform: uppercase;
}

.product-icon-box {
    width: 70px;
    height: 70px;
    background: rgba(139, 36, 255, 0.1);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    transition: var(--transition);
}

.product-card:hover .product-icon-box {
    transform: scale(1.1) rotate(-5deg);
    background: var(--primary);
    color: white;
}

.product-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.price-container {
    display: flex;
    flex-direction: column;
}

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

.price-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
}

.btn-buy-simple {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(139, 36, 255, 0.2);
}

.btn-buy-simple:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.btn-buy-simple:disabled {
    background: #222;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

/* Trust Bar */
.trust-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 40px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trust-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.trust-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Mobile Fixes for Store */
@media (max-width: 768px) {
    .store-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .store-search {
        max-width: 100%;
        width: 100%;
    }
    
    .trust-bar {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Theme Button --- */
.theme-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* --- Bottom Navigation (Mobile Hotbar) --- */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    padding: 10px 0;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    transition: var(--transition);
    flex: 1;
}

.bottom-nav .nav-item i {
    font-size: 1.2rem;
}

.bottom-nav .nav-item.active {
    color: var(--primary);
}

.bottom-nav .nav-item.active i {
    filter: drop-shadow(0 0 8px var(--primary));
}

/* --- Responsive Media Queries --- */

/* Tablets and small desktops */
@media (max-width: 1024px) {
    .navbar {
        width: 95%;
    }
    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .dashboard-interface {
        flex-direction: column;
    }
    
    .sidebar-tabs {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        overflow-x: auto;
        padding: 15px;
        white-space: nowrap;
    }
    
    .cat-btn {
        width: auto;
        padding: 10px 15px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Space for bottom nav */
    }
    
    .bottom-nav {
        display: flex;
    }

    .navbar {
        padding: 0.8rem 1rem;
        border-radius: 15px;
        top: 10px;
    }
    
    .nav-links {
        display: none; /* Hide links on mobile, consider a burger menu if needed */
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .content-panel {
        padding: 20px;
    }
    
    .row-inputs {
        grid-template-columns: 1fr;
    }
    
    .commands-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    /* Fullscreen Modal adjustments for mobile */
    .fullscreen-swal-popup {
        padding: 10px !important;
    }
    
    .swal2-html-container > div {
        grid-template-columns: 1fr !important; /* Stack columns in delivery modal */
    }
}

/* Very Small Devices */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .nav-actions .btn-glow span {
        display: none; /* Hide button text on very small screens */
    }
    
    .nav-actions .btn-glow {
        padding: 10px;
    }
    
    .logo span {
        font-size: 1.1rem;
    }
    
    .user-info-box {
        display: none; /* Hide user name on very small screens */
    }
}
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background: var(--primary);
    color: white;
    transform: rotate(15deg);
}

/* --- Yellow Social Card --- */
.icon-box.yellow {
    background: rgba(255, 200, 0, 0.1);
    color: #ffc800;
}

.cmd-card-modern:hover .icon-box.yellow {
    background: #ffc800;
    color: black;
}

.cmd-badge.yellow {
    background: rgba(255, 200, 0, 0.2);
    color: #ffc800;
}

.icon-box.warning {
    background: rgba(255, 166, 0, 0.1);
    color: orange;
}

.icon-box.purple {
    background: rgba(183, 0, 255, 0.1);
    color: #b700ff;
}

.icon-box.blue {
    background: rgba(0, 150, 255, 0.1);
    color: #0096ff;
}

.cmd-card-modern:hover .icon-box.blue {
    background: #0096ff;
    color: white;
}

.icon-box.green {
    background: rgba(0, 255, 100, 0.1);
    color: #00ff64;
}

.cmd-card-modern:hover .icon-box.green {
    background: #00ff64;
    color: black;
}

.cmd-card-modern h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.cmd-card-modern p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.cmd-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
    text-transform: uppercase;
}

.cmd-badge.red {
    background: rgba(255, 0, 0, 0.2);
    color: #ff5555;
}

.cmd-badge.purple {
    background: rgba(139, 36, 255, 0.2);
    color: var(--primary);
}

.cmd-badge.blue {
    background: rgba(0, 150, 255, 0.2);
    color: #0096ff;
}

.cmd-badge.green {
    background: rgba(0, 255, 100, 0.2);
    color: #00ff64;
}

/* --- Tutorials Large Section --- */
.section-header.centered {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.tutorials-container-large {
    max-width: 1000px;
    margin: 0 auto;
}

.featured-video-large {
    background: var(--bg-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.featured-video-large:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.video-frame-large {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: black;
}

.video-frame-large iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info-large {
    padding: 30px;
}

.video-info-large h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.video-info-large p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.video-info-large ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.video-info-large li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
}

.video-info-large li i {
    color: var(--primary);
}


/* --- Commands Layout (Sidebar + Grid) --- */
.commands-layout {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

.commands-sidebar {
    width: 280px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 25px;
    position: sticky;
    top: 100px;
    /* Below Navbar */
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.commands-content-area {
    flex: 1;
}

.section-header.left-align {
    text-align: left;
    margin-bottom: 30px;
}

.section-header.left-align h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Search Box */
.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

#cmd-search {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    padding: 12px 12px 12px 40px;
    border-radius: 12px;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
}

#cmd-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(139, 36, 255, 0.15);
    background: rgba(0, 0, 0, 0.5);
}

#cmd-search:focus+.search-icon {
    /* Note: This selector won't work if icon is before input in HTML order, handled via JS focus or just CSS :focus-within on wrapper if desired */
}

.search-box-wrapper:focus-within .search-icon {
    color: var(--primary);
}

/* Category List (Vertical Buttons) */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cat-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 15px;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.cat-btn i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.cat-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.cat-btn.active {
    background: linear-gradient(90deg, rgba(139, 36, 255, 0.2), transparent);
    color: var(--primary);
    border-left: 3px solid var(--primary);
    padding-left: 12px;
    /* Adjust for border */
}

/* Override Grid Padding */
.commands-grid-modern {
    padding: 0;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .commands-layout {
        flex-direction: column;
        gap: 20px;
    }

    .commands-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        /* Horizontal on mobile maybe? Or keep vertical but stacked */
        flex-wrap: wrap;
        align-items: center;
        padding: 15px;
    }

    .search-box-wrapper {
        width: 100%;
        flex: 1 1 100%;
    }

    .category-list {
        flex-direction: row;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 5px;
    }

    .cat-btn {
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--border);
    }

    .cat-btn.active {
        border-left: 1px solid var(--primary);
        /* Reset special border */
        background: var(--primary);
        color: white;
    }

    .dashboard-interface {
        flex-direction: column;
    }


    .sidebar-tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .content-panel {
        padding: 20px;
    }
}

.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
    margin-top: 50px;
    background: rgba(0, 0, 0, 0.2);
}
/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* --- Store Introduction Flow --- */
.store-flow-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    position: relative;
}

.flow-step {
    display: flex;
    gap: 30px;
    padding: 30px;
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.flow-step:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 40, 0.9);
    border-color: rgba(139, 36, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-icon-circle {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* Icon Colors */
.step-icon-circle.purple { border-color: #8b24ff; color: #8b24ff; background: rgba(139, 36, 255, 0.1); }
.step-icon-circle.green { border-color: #00ff88; color: #00ff88; background: rgba(0, 255, 136, 0.1); }
.step-icon-circle.blue { border-color: #00d9ff; color: #00d9ff; background: rgba(0, 217, 255, 0.1); }
.step-icon-circle.gold { border-color: #ffd700; color: #ffd700; background: rgba(255, 215, 0, 0.1); }

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: white;
}

.step-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.highlight-text {
    color: white;
    font-weight: 700;
}

.highlight-text.green-text {
    color: #00ff88;
}

.mini-stat-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(139, 36, 255, 0.15);
    color: #d0a3ff;
    border: 1px solid rgba(139, 36, 255, 0.3);
}

.mini-stat-badge.green {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border-color: rgba(0, 255, 136, 0.3);
}

/* Feedback Grid */
.feedback-grid {
    display: flex;
    gap: 15px;
}

.feedback-item {
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.feedback-item.positive { color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.2); }
.feedback-item.neutral { color: #ffcc00; border: 1px solid rgba(255, 204, 0, 0.2); }
.feedback-item.negative { color: #ff4444; border: 1px solid rgba(255, 68, 68, 0.2); }

/* Gold Badge */
.gold-badge {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(90deg, #ffd700, #ffaa00);
    color: black;
    font-weight: 800;
    border-radius: 4px;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

/* Connector Line */
.flow-line {
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0 auto;
    position: relative;
}

.flow-line::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .flow-step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .feedback-grid {
        justify-content: center;
        flex-wrap: wrap;
    }
}
