.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:var(--nav-height, 60px);padding-bottom:var(--safe-bottom, 0px);display:flex;align-items:center;justify-content:space-around;z-index:100;border-top:1px solid rgba(255,255,255,.06)}.bottom-nav-tab{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:8px 0;background:none;border:none;cursor:pointer;transition:all .2s ease;-webkit-tap-highlight-color:transparent;min-height:44px}.bottom-nav-icon{position:relative;font-size:20px;line-height:1}.bottom-nav-label{font-size:10px;font-weight:500;color:var(--hint, #8888a0);font-family:inherit;transition:color .2s ease}.bottom-nav-tab.active .bottom-nav-label{color:var(--btn, #6366f1);font-weight:600}.bottom-nav-badge{position:absolute;top:-6px;right:-10px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--red, #ef4444);color:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;animation:pulse .4s ease-out;font-family:inherit}.loading-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;gap:16px;animation:fadeIn .3s ease-out}.loading-spinner{width:48px;height:48px;border:3px solid rgba(255,255,255,.08);border-top-color:var(--btn, #6366f1);border-radius:50%;animation:spin .8s linear infinite}.loading-brand{font-size:28px;font-weight:800;letter-spacing:4px;background:linear-gradient(135deg,var(--btn, #6366f1),#a855f7);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.loading-text{color:var(--hint, #8888a0);font-size:13px}.product-card{background:var(--section-bg, #1e1e36);border-radius:var(--radius, 12px);border:1px solid rgba(255,255,255,.06);overflow:hidden;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}.product-card:active{transform:scale(.97)}.product-card-img{height:100px;display:flex;align-items:center;justify-content:center;position:relative}.product-card-emoji{font-size:36px;filter:drop-shadow(0 2px 8px rgba(0,0,0,.3))}.product-card-body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px}.product-card-name{font-size:12px;font-weight:600;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:32px}.product-card-prices{display:flex;align-items:center;gap:6px}.product-card-price{font-size:15px;font-weight:700;color:var(--green, #22c55e)}.product-card-retail{font-size:11px;color:var(--hint, #8888a0);text-decoration:line-through}.product-card-footer{display:flex;align-items:center;justify-content:space-between;margin-top:4px}.product-card-add{width:32px;height:32px;border-radius:50%;border:none;background:var(--btn, #6366f1);color:#fff;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;flex-shrink:0}.product-card-add:active{transform:scale(.9)}.product-card-add.added{background:var(--green, #22c55e);animation:pulse .4s ease-out}.product-card-add.disabled{background:#ffffff14;color:var(--hint);cursor:not-allowed}.products-page{padding-bottom:80px}.products-header{padding:16px 0 8px}.products-title{font-size:24px;font-weight:700;margin-bottom:12px}.search-bar{display:flex;align-items:center;background:var(--section-bg, #1e1e36);border-radius:var(--radius-sm, 8px);padding:0 12px;border:1px solid rgba(255,255,255,.06);transition:border-color .2s}.search-bar:focus-within{border-color:var(--btn, #6366f1)}.search-icon{font-size:14px;margin-right:8px}.search-input{flex:1;background:none;border:none;outline:none;color:var(--text);font-size:14px;padding:12px 0;font-family:inherit}.search-input::placeholder{color:var(--hint)}.search-clear{background:none;border:none;color:var(--hint);font-size:14px;cursor:pointer;padding:4px}.category-tabs{display:flex;gap:8px;padding:12px 0;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}.category-tabs::-webkit-scrollbar{display:none}.category-tab{padding:8px 16px;border-radius:20px;border:1px solid rgba(255,255,255,.1);background:transparent;color:var(--hint);font-size:13px;font-weight:500;cursor:pointer;white-space:nowrap;transition:all .2s ease;font-family:inherit;min-height:36px}.category-tab.active{background:var(--btn, #6366f1);color:var(--btn-text, #fff);border-color:var(--btn, #6366f1)}.category-tab:active{transform:scale(.95)}.products-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;padding-bottom:16px}.cart-fab{position:fixed;bottom:calc(var(--nav-height, 60px) + var(--safe-bottom, 0px) + 12px);right:16px;display:flex;align-items:center;gap:8px;padding:12px 20px;border-radius:50px;background:var(--btn, #6366f1);color:#fff;border:none;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;box-shadow:0 4px 20px #6366f166;z-index:50;animation:slideUp .3s ease-out;transition:transform .2s ease}.cart-fab:active{transform:scale(.95)}.cart-fab-icon{font-size:16px}.cart-fab-count{background:#fff3;padding:2px 8px;border-radius:10px;font-size:12px;font-weight:700}.cart-fab-total{font-weight:700}.product-detail-page{padding-bottom:20px}.pd-hero{height:200px;display:flex;align-items:center;justify-content:center;position:relative}.pd-hero-emoji{font-size:72px;filter:drop-shadow(0 4px 12px rgba(0,0,0,.3))}.pd-content{padding:0 16px;margin-top:-20px;position:relative;display:flex;flex-direction:column;gap:12px}.pd-header{background:var(--section-bg);border-radius:var(--radius);padding:16px;border:1px solid rgba(255,255,255,.06)}.pd-name{font-size:20px;font-weight:700;margin-bottom:4px;line-height:1.3}.pd-price-row{display:flex;justify-content:space-between;align-items:flex-start}.pd-wholesale{font-size:28px;font-weight:800;color:var(--green)}.pd-retail{font-size:18px;color:var(--hint);text-decoration:line-through}.pd-savings{margin-top:10px}.pd-qty-controls{display:flex;align-items:center;justify-content:center;gap:4px}.pd-qty-btn{width:52px;height:52px;border-radius:14px;border:none;background:#ffffff14;color:var(--text);font-size:24px;font-weight:600;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease;font-family:inherit}.pd-qty-btn:active{transform:scale(.9);background:#ffffff26}.pd-qty-btn:disabled{opacity:.3;cursor:not-allowed}.pd-qty-value{width:80px;text-align:center;font-size:32px;font-weight:800}.pd-line-total{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:12px;border-top:1px solid rgba(255,255,255,.06)}.pd-total-value{font-size:22px;font-weight:800;color:var(--green)}.cart-item{display:flex;align-items:center;justify-content:space-between;gap:12px;animation:fadeUp .3s ease-out both}.cart-item-info{flex:1;min-width:0}.cart-item-name{font-size:13px;font-weight:600;margin-bottom:2px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.cart-item-sku{margin-bottom:4px}.cart-item-line-total{font-size:14px;font-weight:700;color:var(--green)}.cart-item-controls{display:flex;align-items:center;gap:2px;flex-shrink:0}.qty-btn{width:36px;height:36px;border-radius:10px;border:none;background:#ffffff14;color:var(--text);font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all .15s ease;font-family:inherit}.qty-btn:active{transform:scale(.9);background:#ffffff26}.qty-value{width:36px;text-align:center;font-size:15px;font-weight:700}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 24px;text-align:center;gap:8px}.empty-emoji{font-size:56px;margin-bottom:8px}.empty-title{font-size:16px;font-weight:600;color:var(--text)}.empty-subtitle{font-size:13px;color:var(--hint);max-width:260px}.cart-page{padding-bottom:20px}.cart-header{display:flex;align-items:center;justify-content:space-between;padding:16px 0}.cart-title{font-size:22px;font-weight:700}.cart-clear{background:none;border:none;color:var(--red);font-size:13px;font-weight:500;cursor:pointer;font-family:inherit;padding:8px;min-height:44px;display:flex;align-items:center}.cart-items{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}.cart-summary{display:flex;flex-direction:column;gap:10px}.cart-summary-row{display:flex;justify-content:space-between;align-items:center;font-size:14px}.cart-summary-total{font-size:20px;font-weight:800;color:var(--green)}.cart-summary-divider{height:1px;background:#ffffff0f}.cart-warning{background:var(--red-soft);color:var(--red);padding:10px 14px;border-radius:var(--radius-sm);font-size:13px;font-weight:500}.checkout-page{padding-bottom:20px}.checkout-items{display:flex;flex-direction:column;gap:8px}.checkout-item-row{display:flex;justify-content:space-between;align-items:center;font-size:13px}.checkout-item-info{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.checkout-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.checkout-divider{height:1px;background:#ffffff0f;margin:4px 0}.checkout-total{font-size:20px;font-weight:800;color:var(--green)}.checkout-notes{width:100%;background:#ffffff0a;border:1px solid rgba(255,255,255,.08);border-radius:var(--radius-sm);padding:12px;color:var(--text);font-size:13px;font-family:inherit;resize:vertical;outline:none;transition:border-color .2s}.checkout-notes:focus{border-color:var(--btn)}.checkout-notes::placeholder{color:var(--hint)}.checkout-credit-row{display:flex;justify-content:space-between;align-items:center;font-size:13px;padding:2px 0}.checkout-terms{text-align:center;color:var(--hint);font-size:12px;padding:16px 0}.checkout-success{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:80vh;padding:24px;text-align:center;gap:8px}.checkout-check{width:80px;height:80px;border-radius:50%;background:var(--green);color:#fff;font-size:40px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-bottom:16px;animation:checkmark .5s ease-out}.checkout-order-num{font-size:20px;font-weight:800;color:var(--btn);letter-spacing:1px}.order-card{cursor:pointer;transition:transform .2s ease;display:flex;flex-direction:column;gap:8px}.order-card:active{transform:scale(.98)}.order-card-header{display:flex;align-items:center;justify-content:space-between}.order-card-number{font-size:14px}.order-card-meta{display:flex;align-items:center;gap:6px}.order-card-total{font-size:18px;font-weight:700;color:var(--green)}.orders-page{padding-bottom:20px}.orders-title{font-size:24px;font-weight:700;padding:16px 0 12px}.orders-tabs{display:flex;gap:0;background:var(--section-bg);border-radius:var(--radius-sm);padding:4px;margin-bottom:16px}.orders-tab{flex:1;padding:10px 16px;border-radius:6px;border:none;background:transparent;color:var(--hint);font-size:13px;font-weight:500;cursor:pointer;font-family:inherit;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .2s ease;min-height:40px}.orders-tab.active{background:var(--btn);color:var(--btn-text);font-weight:600}.orders-tab-count{background:#fff3;padding:1px 7px;border-radius:10px;font-size:11px;font-weight:700}.orders-list{display:flex;flex-direction:column;gap:10px}.order-detail-page{display:flex;flex-direction:column;gap:12px;padding-top:16px;padding-bottom:20px}.od-number{font-size:18px;font-weight:700}.od-timeline{display:flex;flex-direction:column;gap:0}.od-step{display:flex;gap:12px;min-height:44px}.od-step-indicator{display:flex;flex-direction:column;align-items:center;width:24px;flex-shrink:0}.od-step-dot{width:24px;height:24px;border-radius:50%;background:#ffffff14;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:transparent;transition:all .3s ease;flex-shrink:0}.od-step.done .od-step-dot{background:var(--green);color:#fff}.od-step.current .od-step-dot{background:var(--btn);color:#fff;box-shadow:0 0 0 4px #6366f133}.od-step-line{width:2px;flex:1;min-height:20px;background:#ffffff14}.od-step.done .od-step-line{background:var(--green)}.od-step-content{display:flex;align-items:center;gap:8px;padding-bottom:16px}.od-step-icon{font-size:16px}.od-step-label{font-size:13px;font-weight:500}.od-step.current .od-step-label{color:var(--text);font-weight:600}.od-items{display:flex;flex-direction:column;gap:8px}.od-item-row{display:flex;justify-content:space-between;align-items:center}.od-item-info{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}.od-item-name{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tier-badge{display:inline-flex;align-items:center;gap:4px;padding:4px 12px;border-radius:20px;font-size:12px;font-weight:700;letter-spacing:.5px}.tier-diamond{background:linear-gradient(135deg,#6366f133,#a855f733);color:#a78bfa;border:1px solid rgba(167,139,250,.3)}.tier-gold{background:linear-gradient(135deg,#f59e0b33,#eab30833);color:#fbbf24;border:1px solid rgba(251,191,36,.3)}.tier-silver{background:#94a3b826;color:#94a3b8;border:1px solid rgba(148,163,184,.2)}.tier-bronze{background:#b4530926;color:#d97706;border:1px solid rgba(217,119,6,.2)}.profile-page{padding-bottom:20px}.profile-title{font-size:24px;font-weight:700;padding:16px 0 12px}.profile-info{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px}.profile-avatar{font-size:48px;margin-bottom:4px}.profile-name{font-size:18px;font-weight:700}.profile-credit{margin-top:12px}.credit-bar{height:10px;background:#ffffff0f;border-radius:5px;overflow:hidden;margin-bottom:6px}.credit-bar-fill{height:100%;background:linear-gradient(90deg,var(--green),var(--amber));border-radius:5px;transition:width .8s ease-out}.credit-labels{display:flex;justify-content:space-between;margin-bottom:12px}.credit-details{display:flex;flex-direction:column;gap:6px;padding-top:10px;border-top:1px solid rgba(255,255,255,.06)}.credit-detail-item{display:flex;justify-content:space-between;align-items:center;font-size:14px}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}.stat-card{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;padding:12px 8px}.stat-value{font-size:16px;font-weight:800;color:var(--btn)}.stat-label{font-size:10px;color:var(--hint)}.payment-row{display:flex;align-items:center;gap:10px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.04)}.payment-row:last-child{border-bottom:none}.invoice-row{display:flex;justify-content:space-between;align-items:center;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.04)}.invoice-row:last-child{border-bottom:none}.auth-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:100vh;padding:24px;text-align:center;gap:16px}.auth-screen .logo{font-size:48px;margin-bottom:8px}.auth-screen h2{font-size:22px;font-weight:700}.auth-screen p{color:var(--hint);font-size:14px;max-width:280px}.auth-loading{width:40px;height:40px;border:3px solid rgba(255,255,255,.1);border-top-color:var(--btn);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-error{background:var(--red-soft);color:var(--red);padding:12px 20px;border-radius:var(--radius-sm);font-size:13px}.app-content{position:relative}*{margin:0;padding:0;box-sizing:border-box}:root{--bg: var(--tg-theme-bg-color, #1a1a2e);--bg-secondary: var(--tg-theme-secondary-bg-color, #16213e);--text: var(--tg-theme-text-color, #f0f0f5);--hint: var(--tg-theme-hint-color, #8888a0);--link: var(--tg-theme-link-color, #6366f1);--btn: var(--tg-theme-button-color, #6366f1);--btn-text: var(--tg-theme-button-text-color, #ffffff);--header-bg: var(--tg-theme-header-bg-color, #0f0f1a);--section-bg: var(--tg-theme-section-bg-color, #1e1e36);--section-separator: var(--tg-theme-section-separator-color, rgba(255,255,255,.06));--subtitle: var(--tg-theme-subtitle-text-color, #a0a0b8);--destructive: var(--tg-theme-destructive-text-color, #ef4444);--green: #22c55e;--green-soft: rgba(34, 197, 94, .15);--red: #ef4444;--red-soft: rgba(239, 68, 68, .15);--amber: #f59e0b;--amber-soft: rgba(245, 158, 11, .15);--blue: #3b82f6;--blue-soft: rgba(59, 130, 246, .15);--purple: #a855f7;--purple-soft: rgba(168, 85, 247, .15);--cyan: #06b6d4;--cyan-soft: rgba(6, 182, 212, .15);--radius: 12px;--radius-sm: 8px;--radius-lg: 16px;--safe-top: env(safe-area-inset-top, 0px);--safe-bottom: env(safe-area-inset-bottom, 0px);--nav-height: 60px;--cat-pods: #22c55e;--cat-devices: #3b82f6;--cat-disposables: #a855f7;--cat-accessories: #f59e0b}body{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;min-height:100vh;overflow-x:hidden;line-height:1.5}::-webkit-scrollbar{width:4px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#ffffff1a;border-radius:4px}.app{padding-top:var(--safe-top);padding-bottom:calc(var(--safe-bottom) + var(--nav-height) + 8px);min-height:100vh}@keyframes fadeUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.2)}}@keyframes slideUp{0%{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}}@keyframes checkmark{0%{transform:scale(0) rotate(-45deg);opacity:0}50%{transform:scale(1.2) rotate(0);opacity:1}to{transform:scale(1) rotate(0);opacity:1}}@keyframes shimmer{0%{background-position:-200% 0}to{background-position:200% 0}}.fade-up{animation:fadeUp .4s ease-out both}.fade-in{animation:fadeIn .3s ease-out both}.pulse{animation:pulse .4s ease-out}.page{animation:fadeUp .35s ease-out both;padding:0 16px}.glass{background:#1e1e36bf;backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid rgba(255,255,255,.06)}.card{background:var(--section-bg);border-radius:var(--radius);border:1px solid rgba(255,255,255,.06);padding:16px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border-radius:var(--radius-sm);font-size:14px;font-weight:600;border:none;cursor:pointer;transition:all .2s ease;min-height:44px;font-family:inherit}.btn:active{transform:scale(.97)}.btn-primary{background:var(--btn);color:var(--btn-text)}.btn-secondary{background:#ffffff14;color:var(--text)}.btn-ghost{background:transparent;color:var(--link)}.badge{display:inline-flex;align-items:center;gap:4px;padding:4px 10px;border-radius:20px;font-size:11px;font-weight:600;white-space:nowrap}.badge-green{background:var(--green-soft);color:var(--green)}.badge-red{background:var(--red-soft);color:var(--red)}.badge-amber{background:var(--amber-soft);color:var(--amber)}.badge-blue{background:var(--blue-soft);color:var(--blue)}.badge-purple{background:var(--purple-soft);color:var(--purple)}.badge-cyan{background:var(--cyan-soft);color:var(--cyan)}.text-hint{color:var(--hint)}.text-green{color:var(--green)}.text-red{color:var(--red)}.text-amber{color:var(--amber)}.text-blue{color:var(--blue)}.text-link{color:var(--link)}.text-sm{font-size:12px}.text-xs{font-size:11px}.text-lg{font-size:18px}.text-xl{font-size:24px}.text-2xl{font-size:32px}.font-medium{font-weight:500}.font-semibold{font-weight:600}.font-bold{font-weight:700}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-4{gap:4px}.gap-8{gap:8px}.gap-12{gap:12px}.gap-16{gap:16px}.stagger>*{animation:fadeUp .35s ease-out both}.stagger>*:nth-child(1){animation-delay:.03s}.stagger>*:nth-child(2){animation-delay:.06s}.stagger>*:nth-child(3){animation-delay:.09s}.stagger>*:nth-child(4){animation-delay:.12s}.stagger>*:nth-child(5){animation-delay:.15s}.stagger>*:nth-child(6){animation-delay:.18s}.stagger>*:nth-child(7){animation-delay:.21s}.stagger>*:nth-child(8){animation-delay:.24s}.stagger>*:nth-child(9){animation-delay:.27s}.stagger>*:nth-child(10){animation-delay:.3s}.stagger>*:nth-child(11){animation-delay:.33s}.stagger>*:nth-child(12){animation-delay:.36s}
