:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #12122a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(255, 255, 255, 0.05);
    
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-cyan: #06b6d4;
    --neon-green: #22c55e;
    --neon-yellow: #eab308;
    --neon-red: #ef4444;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-primary: 'Inter', -apple-system, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 20px rgba(168, 85, 247, 0.3);
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-slow);
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.loader-ring {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: var(--neon-purple);
    border-right-color: var(--neon-pink);
    animation: spin 1s linear infinite;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.loader-text {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--neon-purple);
    animation: pulse 2s ease infinite;
}

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

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

/* Layout */
#app {
    max-width: 430px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    background: var(--bg-primary);
}

.hidden {
    display: none !important;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 60px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(10, 10, 26, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 24px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all var(--transition-fast);
}

.icon-btn:hover {
    background: var(--bg-card);
    border-color: var(--neon-purple);
    box-shadow: var(--shadow-glow);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
}

.badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--neon-pink);
    color: white;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Search */
.search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    z-index: 200;
    padding: 16px;
    animation: fadeIn var(--transition-base);
}

.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.search-bar input {
    flex: 1;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all var(--transition-fast);
}

.search-bar input:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

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

.close-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.close-btn:hover {
    color: var(--text-primary);
    border-color: var(--neon-red);
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 430px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: rgba(10, 10, 26, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
    transition: all var(--transition-fast);
}

.nav-item.active {
    color: var(--neon-purple);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--neon-purple), var(--neon-pink));
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

/* Pages */
.pages-container {
    padding: 76px 16px 90px;
    min-height: 100vh;
}

.page {
    display: none;
    animation: fadeIn var(--transition-base);
}

.page.active {
    display: block;
}

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

/* Hero */
.hero-section {
    position: relative;
    padding: 32px 20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

.hero-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 70%);
    animation: float 6s ease infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #fff, #c4b5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
}

.hero-cta {
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    border: none;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    transition: all var(--transition-fast);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(168, 85, 247, 0.5);
}

/* Sections */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
}

.see-all {
    background: none;
    border: none;
    color: var(--neon-cyan);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Categories */
.categories-section {
    margin-bottom: 24px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.category-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-card:hover {
    border-color: var(--neon-purple);
    background: var(--bg-glass);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.category-card .icon {
    font-size: 32px;
}

.category-card .name {
    font-weight: 600;
    font-size: 14px;
}

.category-card .count {
    font-size: 12px;
    color: var(--text-muted);
}

/* Products */
.popular-section {
    margin-bottom: 24px;
}

.products-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

.product-card {
    flex: 0 0 160px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: var(--neon-purple);
}

.product-card .image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.product-card .info {
    padding: 12px;
}

.product-card .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--neon-green);
}

/* Promo Banner */
.promo-banner {
    position: relative;
    padding: 20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
}

.promo-glow {
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2), transparent 70%);
}

.promo-content {
    position: relative;
    z-index: 1;
}

.promo-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.promo-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.promo-content p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Catalog Page */
.catalog-header {
    margin-bottom: 20px;
}

.catalog-header h1 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
}

.category-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.tab.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-color: transparent;
    color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Product Detail */
.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 16px;
    padding: 8px 0;
}

.back-btn:hover {
    color: var(--text-primary);
}

.product-hero {
    width: 100%;
    height: 200px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.product-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-xl);
}

.product-name {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.product-description {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.variations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.variation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.variation-item:hover {
    border-color: var(--neon-purple);
    background: var(--bg-glass);
}

.variation-item.selected {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 0 1px var(--neon-purple);
}

.variation-item .info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.variation-item .name {
    font-weight: 600;
    font-size: 15px;
}

.variation-item .stock {
    font-size: 12px;
    color: var(--text-muted);
}

.variation-item .price {
    font-size: 18px;
    font-weight: 700;
    color: var(--neon-green);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.quantity-selector button {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quantity-selector button:hover {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
}

.quantity-selector .value {
    font-size: 20px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.btn-primary {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-lg);
    border: none;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.btn-secondary {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
}

.btn-large {
    padding: 16px;
    font-size: 17px;
}

/* Cart */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-cart p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.cart-item .image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.cart-item .details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item .meta {
    font-size: 12px;
    color: var(--text-muted);
}

.cart-item .price {
    font-weight: 700;
    color: var(--neon-green);
    font-size: 16px;
}

.cart-item .remove-btn {
    background: none;
    border: none;
    color: var(--neon-red);
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
}

.cart-summary {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.summary-row.total {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.summary-row.total span:last-child {
    color: var(--neon-green);
}

.checkout-btn {
    margin-top: 16px;
}

/* Checkout */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-section {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.form-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 15px;
    outline: none;
    transition: all var(--transition-fast);
}

.form-group input:focus {
    border-color: var(--neon-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

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

.promo-input-group {
    display: flex;
    gap: 8px;
}

.promo-input-group input {
    flex: 1;
}

.promo-message {
    margin-top: 8px;
    font-size: 13px;
    min-height: 20px;
}

.promo-message.success {
    color: var(--neon-green);
}

.promo-message.error {
    color: var(--neon-red);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-method {
    padding: 16px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.payment-method:hover {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.05);
}

.payment-method.selected {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
    box-shadow: 0 0 0 1px var(--neon-purple);
}

.payment-method .icon {
    font-size: 24px;
}

.payment-method .info {
    flex: 1;
}

.payment-method .name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.payment-method .details {
    font-size: 12px;
    color: var(--text-muted);
}

.checkout-summary {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
}

/* Orders */
.orders-filter {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.orders-filter::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-color: transparent;
    color: white;
}

.orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.order-card:hover {
    border-color: var(--neon-purple);
    background: var(--bg-glass);
}

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

.order-card .order-number {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
}

.order-card .status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-created { background: rgba(148, 163, 184, 0.1); color: var(--text-muted); }
.status-awaiting_payment { background: rgba(234, 179, 8, 0.1); color: var(--neon-yellow); }
.status-paid { background: rgba(6, 182, 212, 0.1); color: var(--neon-cyan); }
.status-processing { background: rgba(168, 85, 247, 0.1); color: var(--neon-purple); }
.status-completed { background: rgba(34, 197, 94, 0.1); color: var(--neon-green); }
.status-cancelled { background: rgba(239, 68, 68, 0.1); color: var(--neon-red); }
.status-refunded { background: rgba(236, 72, 153, 0.1); color: var(--neon-pink); }

.order-card .items {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.order-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-card .total {
    font-weight: 700;
    font-size: 16px;
    color: var(--neon-green);
}

.order-card .date {
    font-size: 12px;
    color: var(--text-muted);
}

/* Order Detail */
.order-detail-header {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.order-detail-header .status-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.order-detail-header .order-number {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.order-detail-header .order-date {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.order-item-detail {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-radius: var(--radius-md);
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
}

.payment-instructions {
    padding: 20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05), rgba(168, 85, 247, 0.05));
    border: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.payment-instructions h3 {
    font-size: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-instructions .amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 12px;
}

.payment-instructions .details {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.payment-instructions .details strong {
    color: var(--text-primary);
}

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.action-buttons button {
    flex: 1;
}

/* Profile */
.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 0;
    margin-bottom: 24px;
}

.avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    flex-shrink: 0;
}

.profile-info h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-info p {
    color: var(--text-muted);
    font-size: 14px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-card:hover {
    border-color: var(--neon-purple);
    background: var(--bg-glass);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--neon-green);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: left;
    width: 100%;
}

.menu-item:hover {
    border-color: var(--neon-purple);
    background: var(--bg-glass);
}

.menu-item .menu-icon {
    font-size: 24px;
}

.menu-item .menu-text {
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.menu-item svg {
    color: var(--text-muted);
}

.admin-item {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(236, 72, 153, 0.1));
    border-color: rgba(168, 85, 247, 0.3);
}

/* Admin Panel */
.admin-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.admin-header h1 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
}

.admin-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    scrollbar-width: none;
}

.admin-tabs::-webkit-scrollbar {
    display: none;
}

.admin-tab {
    padding: 10px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
}

.admin-tab.active {
    background: linear-gradient(135deg, var(--neon-purple), var(--neon-pink));
    border-color: transparent;
    color: white;
}

.admin-content {
    display: none;
}

.admin-content.active {
    display: block;
    animation: fadeIn var(--transition-base);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.stat-card-large {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all var(--transition-fast);
}

.stat-card-large:hover {
    border-color: var(--neon-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.stat-card-large .stat-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.stat-card-large .stat-value {
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-card-large .stat-label {
    font-size: 13px;
}

.admin-filter {
    margin-bottom: 16px;
}

.admin-filter select,
.admin-filter input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-order-item {
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.admin-order-item .header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.admin-order-item .actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.admin-order-item .actions button {
    flex: 1;
    padding: 8px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-glass);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.admin-order-item .actions button:hover {
    border-color: var(--neon-purple);
    background: rgba(168, 85, 247, 0.1);
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-md);
    animation: toastIn var(--transition-base);
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.toast.success {
    border-color: var(--neon-green);
    background: rgba(34, 197, 94, 0.1);
}

.toast.error {
    border-color: var(--neon-red);
    background: rgba(239, 68, 68, 0.1);
}

.toast.warning {
    border-color: var(--neon-yellow);
    background: rgba(234, 179, 8, 0.1);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Skeleton Loading */
.skeleton-card,
.skeleton-product,
.skeleton-order,
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-glass) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}

.skeleton-card {
    height: 100px;
}

.skeleton-product {
    flex: 0 0 160px;
    height: 200px;
}

.skeleton-order {
    height: 120px;
}

.skeleton-text {
    height: 20px;
    margin-bottom: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn var(--transition-base);
}

.modal-sheet {
    width: 100%;
    max-width: 430px;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 24px;
    animation: slideUp var(--transition-base);
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

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

/* Selection */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: white;
}

/* Focus */
*:focus-visible {
    outline: 2px solid var(--neon-purple);
    outline-offset: 2px;
}

/* Utility */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 16px;
}

.mb-4 {
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}
