:root{--primary-color: #ff0000;--secondary-color: #333;--light-bg: #f5f5f5;--dark-bg: #1a1a1a;--border-color: #e0e0e0;--text-primary: #333;--text-secondary: #666;--success-color: #4caf50;--warning-color: #ff9800;--danger-color: #f44336}*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--light-bg);color:var(--text-primary)}.app-container{display:flex;flex-direction:column;height:100vh;max-width:100%;overflow:hidden}.app-header{background:linear-gradient(135deg,var(--primary-color),#d32f2f);color:#fff;padding:1rem;box-shadow:0 2px 8px #0000001a;flex-shrink:0}.header-content{display:flex;justify-content:space-between;align-items:center;max-width:100%}.logo{display:flex;align-items:center;gap:.5rem;font-size:1.5rem;font-weight:700}.logo-icon{font-size:1.8rem}.user-info{font-size:.9rem;opacity:.9}.app-main{flex:1;overflow-y:auto;overflow-x:hidden;padding-bottom:60px}.app-footer{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--border-color);flex-shrink:0}.bottom-nav{display:flex;justify-content:space-around;padding:.5rem 0}.nav-button{display:flex;flex-direction:column;align-items:center;gap:.25rem;padding:.5rem 1rem;border:none;background:none;cursor:pointer;color:var(--text-secondary);transition:all .2s ease;font-size:.75rem}.nav-button.active{color:var(--primary-color)}.nav-icon{font-size:1.5rem}.nav-label{font-size:.65rem}.loading{display:flex;align-items:center;justify-content:center}.loader{display:flex;flex-direction:column;align-items:center;gap:1rem}.spinner{width:40px;height:40px;border:4px solid var(--light-bg);border-top:4px solid var(--primary-color);border-radius:50%;animation:spin 1s linear infinite}.spinner-small{display:inline-block;width:16px;height:16px;border:2px solid rgba(255,0,0,.3);border-top:2px solid white;border-radius:50%;animation:spin .8s linear infinite;margin-right:.5rem}@keyframes spin{to{transform:rotate(360deg)}}.error{display:flex;align-items:center;justify-content:center}.error-container,.error-message{text-align:center;padding:2rem;color:var(--danger-color)}.error-container h2{margin-bottom:1rem}.error-container button,.error-message button{margin-top:1rem;padding:.75rem 1.5rem;background-color:var(--primary-color);color:#fff;border:none;border-radius:8px;cursor:pointer;font-size:1rem;transition:background-color .2s}.error-container button:hover,.error-message button:hover{background-color:#d32f2f}button{font-family:inherit}.back-button{display:flex;align-items:center;gap:.5rem;padding:.75rem 1rem;margin:1rem;background:#fff;border:1px solid var(--border-color);border-radius:8px;cursor:pointer;font-size:1rem;transition:all .2s}.back-button:hover{background:var(--light-bg)}.back-button:active{transform:scale(.98)}.section-title{font-size:1.1rem;font-weight:600;margin-bottom:1rem;color:var(--text-primary)}@media (max-width: 480px){.app-container{height:100vh}.header-content{font-size:.9rem}.logo{font-size:1.2rem}.logo-icon{font-size:1.4rem}}.products-list{padding:1rem;max-width:100%}.products-header{margin-bottom:1.5rem}.search-bar{display:flex;gap:.5rem}.search-input{flex:1;padding:.75rem;border:1px solid var(--border-color);border-radius:8px;font-size:1rem;background:#fff}.search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 3px #ff00001a}.categories-filter{display:flex;gap:.5rem;margin-bottom:1.5rem;overflow-x:auto;padding:.5rem 0;scroll-behavior:smooth}.categories-filter::-webkit-scrollbar{display:none}.category-btn{flex-shrink:0;display:flex;align-items:center;gap:.5rem;padding:.5rem 1rem;background:#fff;border:2px solid var(--border-color);border-radius:20px;cursor:pointer;font-size:.9rem;transition:all .2s;white-space:nowrap}.category-btn:hover{border-color:var(--primary-color);background:#ff00000d}.category-btn.active{background:var(--primary-color);color:#fff;border-color:var(--primary-color)}.products-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:1rem;margin-bottom:2rem}.product-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #0000001a;cursor:pointer;transition:all .3s;display:flex;flex-direction:column}.product-card:hover{transform:translateY(-4px);box-shadow:0 4px 16px #00000026}.product-card:active{transform:scale(.98)}.product-image{width:100%;height:120px;background:var(--light-bg);overflow:hidden;display:flex;align-items:center;justify-content:center}.product-image img{width:100%;height:100%;object-fit:cover}.product-info{padding:.75rem;flex:1;display:flex;flex-direction:column;gap:.5rem}.product-name{font-size:.9rem;font-weight:600;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.product-rating{display:flex;align-items:center;gap:.25rem;font-size:.75rem;color:var(--text-secondary)}.product-price{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.price-value{font-size:.9rem;font-weight:700;color:var(--primary-color)}.product-action-btn{width:100%;padding:.5rem;background:var(--primary-color);color:#fff;border:none;border-radius:6px;font-size:.8rem;font-weight:600;cursor:pointer;transition:background .2s}.product-action-btn:hover{background:#d32f2f}.product-action-btn:active{transform:scale(.95)}.empty-state{text-align:center;padding:3rem 1rem;color:var(--text-secondary);grid-column:1 / -1}.empty-state p{font-size:1.2rem;margin-bottom:1rem}@media (max-width: 480px){.products-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:.75rem}.product-card{border-radius:8px}.product-image{height:100px}.product-name,.product-price{font-size:.8rem}}.product-detail{padding:1rem;max-width:100%}.product-detail-content{display:flex;flex-direction:column;gap:2rem}.product-image-large{width:100%;height:300px;background:var(--light-bg);border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center;margin-bottom:1rem}.product-image-large img{width:100%;height:100%;object-fit:cover}.product-info-section{display:flex;flex-direction:column;gap:1.5rem}.product-title{font-size:1.5rem;font-weight:700;line-height:1.3;color:var(--text-primary)}.product-rating-section{display:flex;align-items:center;gap:1rem}.rating{font-size:1.5rem}.rating-value{font-size:1.1rem;font-weight:600;color:var(--text-secondary)}.product-description{line-height:1.6;color:var(--text-secondary);padding:1rem;background:#ff00000d;border-radius:8px}.product-specs{border-top:1px solid var(--border-color);padding-top:1rem}.product-specs h3{font-size:1.1rem;margin-bottom:1rem}.product-specs ul{list-style:none}.product-specs li{display:flex;justify-content:space-between;padding:.75rem 0;border-bottom:1px solid var(--border-color)}.spec-label{font-weight:500;color:var(--text-secondary)}.spec-value{color:var(--text-primary);font-weight:600}.product-reviews{border-top:1px solid var(--border-color);padding-top:1rem}.product-reviews h3{font-size:1.1rem;margin-bottom:1rem}.review-item{padding:1rem;background:var(--light-bg);border-radius:8px;margin-bottom:.75rem}.review-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}.review-rating{font-size:.9rem}.review-item p{line-height:1.5;color:var(--text-secondary)}.product-price-section{background:#fff;border:2px solid var(--border-color);padding:1.5rem;border-radius:12px}.price-info{display:flex;justify-content:space-between;align-items:center}.price-label{font-size:1rem;color:var(--text-secondary)}.price-amount{font-size:1.8rem;font-weight:700;color:var(--primary-color)}.get-discount-button{width:100%;padding:1rem;background:linear-gradient(135deg,var(--primary-color),#d32f2f);color:#fff;border:none;border-radius:10px;font-size:1.1rem;font-weight:700;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center;gap:.5rem}.get-discount-button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #ff00004d}.get-discount-button:active:not(:disabled){transform:scale(.98)}.get-discount-button:disabled{opacity:.7;cursor:not-allowed}.button-icon{font-size:1.3rem}@media (max-width: 480px){.product-detail{padding:.75rem}.product-image-large{height:250px}.product-title{font-size:1.2rem}.product-detail-content{gap:1.5rem}}.referral-detail{padding:1rem;max-width:100%}.referral-container{display:flex;flex-direction:column;gap:1.5rem;margin-bottom:2rem}.warning-banner{display:flex;gap:1rem;padding:1rem;background:linear-gradient(135deg,#fff3cd,#ffe69c);border-left:4px solid var(--warning-color);border-radius:8px;align-items:flex-start}.warning-banner.expired{background:linear-gradient(135deg,#f8d7da,#f5c6cb);border-left-color:var(--danger-color)}.warning-icon{font-size:1.5rem;flex-shrink:0}.warning-content{display:flex;flex-direction:column;gap:.25rem}.warning-title{font-weight:700;color:var(--warning-color)}.warning-banner.expired .warning-title{color:var(--danger-color)}.warning-description{font-size:.9rem;color:var(--text-secondary)}.referral-product-info{display:flex;align-items:center;gap:1rem;padding:1rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}.product-img{width:80px;height:80px;border-radius:8px;object-fit:cover}.referral-product-info h2{font-size:1.1rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.discount-details{width:100%}.discount-card{background:linear-gradient(135deg,#fff9e6,#fff0d9);border-left:4px solid var(--primary-color);border-radius:12px;padding:1.5rem;display:flex;flex-direction:column;gap:1rem}.original-price,.discount-percentage,.discount-amount,.final-price{display:flex;justify-content:space-between;align-items:center;padding:.75rem 0;border-bottom:1px solid rgba(255,0,0,.1)}.original-price:last-child,.discount-percentage:last-child,.discount-amount:last-child,.final-price:last-child{border-bottom:none}.stat-label{font-size:.9rem;color:var(--text-secondary)}.stat-value{font-size:1.1rem;font-weight:700;color:var(--text-primary)}.percentage{font-size:1.5rem;font-weight:700;color:var(--primary-color)}.savings{font-size:1.2rem;font-weight:700;color:var(--success-color)}.final{font-size:1.5rem!important;color:var(--primary-color)!important}.promo-code-section{padding:1rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}.section-title{font-size:.95rem;font-weight:600;color:var(--text-secondary);margin-bottom:.75rem}.promo-code-box{display:flex;align-items:center;gap:.5rem;padding:.75rem;background:var(--light-bg);border:1px solid var(--border-color);border-radius:8px}.promo-code{flex:1;font-family:Courier New,monospace;font-size:1.1rem;font-weight:700;color:var(--primary-color);word-break:break-all}.copy-btn{flex-shrink:0;padding:.5rem .75rem;background:var(--primary-color);color:#fff;border:none;border-radius:6px;cursor:pointer;font-size:.85rem;font-weight:600;white-space:nowrap;transition:all .2s}.copy-btn:hover{background:#d32f2f}.copy-btn:active{transform:scale(.95)}.timer{padding:1.5rem;background:#fff;border-radius:12px;box-shadow:0 2px 8px #0000001a}.timer.expired{background:#f443361a}.timer-display{display:flex;align-items:center;justify-content:center;gap:1rem;margin-bottom:1rem}.timer-icon{font-size:1.8rem}.timer-text{font-size:1.3rem;font-weight:700;color:var(--primary-color)}.timer.expired .timer-text{color:var(--danger-color)}.timer-bar{width:100%;height:6px;background:var(--light-bg);border-radius:3px;overflow:hidden}.timer-progress{height:100%;background:linear-gradient(90deg,var(--primary-color),#d32f2f);transition:width 1s linear;border-radius:3px}.action-buttons{display:flex;flex-direction:column;gap:.75rem}.primary-btn,.secondary-btn,.tertiary-btn{padding:1rem;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center;gap:.5rem}.primary-btn{background:linear-gradient(135deg,var(--primary-color),#d32f2f);color:#fff}.primary-btn:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 4px 12px #ff00004d}.primary-btn:disabled{opacity:.6;cursor:not-allowed}.secondary-btn{background:#fff;color:var(--primary-color);border:2px solid var(--primary-color)}.secondary-btn:hover{background:#ff00001a}.tertiary-btn{background:transparent;color:var(--primary-color);border:1px solid var(--border-color);margin-top:1rem}.tertiary-btn:hover{background:var(--light-bg)}@media (max-width: 480px){.referral-detail,.referral-product-info{padding:.75rem}.product-img{width:70px;height:70px}.timer-text{font-size:1.1rem}.primary-btn,.secondary-btn{font-size:.95rem;padding:.85rem}}.profile{padding:1rem;max-width:100%;display:flex;flex-direction:column;gap:2rem;margin-bottom:2rem}.profile-header{display:flex;align-items:center;gap:1.5rem;padding:1.5rem;background:linear-gradient(135deg,var(--primary-color),#d32f2f);color:#fff;border-radius:12px;box-shadow:0 4px 12px #00000026}.user-avatar{width:80px;height:80px;min-width:80px;display:flex;align-items:center;justify-content:center;background:#fff3;border-radius:50%;font-size:2.5rem}.user-details{display:flex;flex-direction:column;gap:.25rem}.user-name{font-size:1.3rem;font-weight:700;line-height:1.2}.user-username{font-size:.95rem;opacity:.9}.user-id{font-size:.85rem;opacity:.8}.stats-section{display:flex;flex-direction:column;gap:1rem}.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:1rem}.stat-card{display:flex;align-items:center;gap:1rem;padding:1rem;background:#fff;border:1px solid var(--border-color);border-radius:10px;box-shadow:0 2px 8px #0000000d;transition:all .2s}.stat-card:hover{box-shadow:0 4px 12px #0000001a;transform:translateY(-2px)}.stat-card.highlight{background:linear-gradient(135deg,#fff9e6,#fff0d9);border-color:var(--primary-color)}.stat-icon{font-size:1.8rem;flex-shrink:0}.stat-info{display:flex;flex-direction:column;gap:.25rem}.stat-label{font-size:.85rem;color:var(--text-secondary);font-weight:500}.stat-value{font-size:1.3rem;font-weight:700;color:var(--primary-color)}.history-section{display:flex;flex-direction:column;gap:1rem}.history-list{display:flex;flex-direction:column;gap:.75rem}.history-item{display:flex;justify-content:space-between;align-items:center;padding:1rem;background:#fff;border:1px solid var(--border-color);border-radius:10px;gap:1rem;transition:all .2s}.history-item:hover{box-shadow:0 2px 8px #0000001a}.history-status{flex-shrink:0}.status-badge{display:inline-block;padding:.4rem .75rem;border-radius:20px;font-size:.8rem;font-weight:600;white-space:nowrap}.status-active,.status-used{background:#4caf5033;color:var(--success-color)}.status-expired{background:#f4433633;color:var(--danger-color)}.status-cancelled{background:#64646433;color:#666}.history-info{flex:1;min-width:0}.history-product{font-size:.95rem;font-weight:600;color:var(--text-primary);margin-bottom:.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-details{display:flex;align-items:center;gap:1rem;font-size:.85rem;color:var(--text-secondary)}.discount-badge{display:inline-block;padding:.3rem .6rem;background:#ff00001a;color:var(--primary-color);font-weight:600;border-radius:4px}.price-info{font-weight:600;color:var(--text-primary)}.history-time{flex-shrink:0;font-size:.85rem;color:var(--text-secondary);white-space:nowrap}.empty-state{text-align:center;padding:2rem 1rem;color:var(--text-secondary)}.empty-state p{font-size:1.1rem;margin-bottom:1rem}.empty-state button{padding:.75rem 1.5rem;background:var(--primary-color);color:#fff;border:none;border-radius:8px;cursor:pointer;font-weight:600;transition:all .2s}.empty-state button:hover{background:#d32f2f}.profile-actions{display:flex;flex-direction:column;gap:1rem;padding-top:1rem;border-top:1px solid var(--border-color)}.logout-btn{display:flex;align-items:center;justify-content:center;gap:.5rem;padding:1rem;background:#f443361a;color:var(--danger-color);border:2px solid var(--danger-color);border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s}.logout-btn:hover{background:var(--danger-color);color:#fff;transform:translateY(-2px)}.logout-btn:active{transform:scale(.98)}@media (max-width: 480px){.profile{padding:.75rem}.profile-header{padding:1rem}.user-avatar{width:70px;height:70px;font-size:2rem}.user-name{font-size:1.1rem}.stats-grid{grid-template-columns:repeat(2,1fr);gap:.75rem}.stat-card{padding:.75rem;gap:.75rem}.stat-icon{font-size:1.5rem}.stat-value{font-size:1.1rem}.history-item{padding:.75rem;flex-wrap:wrap}.history-time{width:100%}}
