@import"https://fonts.googleapis.com/css2?family=Noto+Sans+Thai:wght@400;500;600;700&display=swap";.price-marquee-wrapper{position:fixed;top:0;left:0;right:0;background:linear-gradient(135deg,#065f46,#047857);border-bottom:2px solid #10b981;z-index:1000;overflow:hidden;height:36px}.price-marquee{width:100%;height:100%;overflow:hidden;position:relative}.price-marquee-content{display:flex;gap:32px;animation:marquee 30s linear infinite;white-space:nowrap;padding:8px 0}.price-item{display:flex;align-items:center;gap:6px;padding:0 16px;background:rgba(16,185,129,.1);border-radius:6px;flex-shrink:0}.currency-symbol{font-size:16px;font-weight:700;color:#10b981}.currency-code{font-size:13px;font-weight:600;color:#d1fae5;letter-spacing:.5px}.currency-rate{font-size:13px;color:#f3f4f6;font-weight:500;margin-left:2px}@keyframes marquee{0%{transform:translate(0)}to{transform:translate(-50%)}}.price-marquee-content:hover{animation-play-state:paused}@media(max-width:640px){.price-marquee-wrapper{height:32px}.price-item{padding:0 12px;gap:4px}.currency-symbol{font-size:14px}.currency-code,.currency-rate{font-size:12px}}.app-container{display:flex;flex-direction:column;height:100vh;background:#111827;color:#fff}.main-content{flex:1;overflow-y:auto;overflow-x:hidden;padding-top:36px;padding-bottom:70px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#1f2937;border-top:1px solid #374151;display:flex;justify-content:space-around;padding:8px 0;z-index:1000}.nav-item{display:flex;flex-direction:column;align-items:center;gap:4px;padding:8px 12px;border:none;background:none;color:#9ca3af;cursor:pointer;transition:all .2s;flex:1;max-width:100px}.nav-item:active{transform:scale(.95)}.nav-item.active{color:#10b981}.nav-item-primary{position:relative;transform:scale(1.1);margin:-8px 4px;padding:12px 16px!important;background:linear-gradient(135deg,#10b981,#059669)!important;border-radius:16px!important;box-shadow:0 4px 15px rgba(16,185,129,.4)!important;border:2px solid #34d399!important;max-width:110px!important}.nav-item-primary .nav-icon{font-size:28px!important;filter:drop-shadow(0 1px 2px rgba(0,0,0,.3));animation:pulse 2s infinite}.nav-item-primary .nav-label{font-size:12px!important;font-weight:600!important;color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.3)}.nav-item-primary.active{color:#fff!important;transform:scale(1.15);box-shadow:0 6px 20px rgba(16,185,129,.6)!important}.nav-item-primary:hover:not(:disabled){transform:scale(1.2) translateY(-2px);box-shadow:0 8px 25px rgba(16,185,129,.7)!important}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.05)}}.badge-primary{position:absolute;top:-2px;right:-2px;background:#ef4444;color:#fff;border-radius:50%;width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;animation:bounce 1.5s infinite;box-shadow:0 2px 6px rgba(239,68,68,.6)}@keyframes bounce{0%,20%,50%,80%,to{transform:translateY(0)}40%{transform:translateY(-4px)}60%{transform:translateY(-2px)}}.nav-icon{font-size:24px}.nav-label{font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:4px}.nav-item.disabled{opacity:.5;cursor:not-allowed}.nav-item.disabled:active{transform:none}.badge-construction{font-size:10px}.loading-screen{display:flex;align-items:center;justify-content:center;height:100vh;background:#111827;color:#fff;font-size:18px}.landing-page{min-height:100vh;background:linear-gradient(135deg,#0f172a,#1e293b);color:#fff;overflow-x:hidden}.hero{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:40px 20px;position:relative}.hero-content{max-width:600px;text-align:center;z-index:2}.logo{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:32px}.logo-icon{font-size:48px;animation:float 3s ease-in-out infinite}@keyframes float{0%,to{transform:translateY(0)}50%{transform:translateY(-10px)}}.logo-text{font-size:42px;font-weight:800;background:linear-gradient(135deg,#10b981,#34d399);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;margin:0}.hero-tagline{font-size:48px;font-weight:700;line-height:1.2;margin:0 0 24px;background:linear-gradient(135deg,#fff,#e2e8f0);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text;font-family:Noto Sans Thai,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}.hero-description{font-size:18px;line-height:1.7;color:#cbd5e1;max-width:500px;margin:0 auto 40px}.hero-actions{display:flex;gap:16px;justify-content:center;flex-wrap:wrap}.btn{padding:14px 32px;border-radius:12px;font-size:16px;font-weight:600;cursor:pointer;border:none;transition:all .3s ease;display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none}.btn-large{padding:16px 40px;font-size:18px}.btn-primary{background:linear-gradient(135deg,#10b981,#059669);color:#fff;box-shadow:0 4px 15px rgba(16,185,129,.3)}.btn-primary:hover{transform:translateY(-2px);box-shadow:0 6px 20px rgba(16,185,129,.4)}.btn-primary:active{transform:translateY(0)}.btn-secondary{background:rgba(255,255,255,.1);color:#fff;border:2px solid rgba(255,255,255,.2);backdrop-filter:blur(10px)}.btn-secondary:hover{background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.3);transform:translateY(-2px)}.btn-secondary:active{transform:translateY(0)}.btn-tertiary{background:transparent;color:#94a3b8;border:1px solid rgba(148,163,184,.3)}.btn-tertiary:hover{background:rgba(148,163,184,.1);border-color:rgba(148,163,184,.5);color:#cbd5e1;transform:translateY(-2px)}.btn-tertiary:active{transform:translateY(0)}.hero-image{display:none}@media(min-width:768px){.hero{flex-direction:row;gap:60px;padding:60px 40px}.hero-content{text-align:left;flex:1}.logo,.hero-actions{justify-content:flex-start}.hero-description{margin-left:0;margin-right:0}.hero-image{display:flex;align-items:center;justify-content:center;flex:1}.phone-mockup{width:300px;height:600px;background:#1e293b;border-radius:40px;padding:12px;box-shadow:0 20px 60px rgba(0,0,0,.5);border:3px solid #334155;position:relative}.phone-mockup:before{content:"";position:absolute;top:20px;left:50%;transform:translate(-50%);width:100px;height:25px;background:#0f172a;border-radius:0 0 20px 20px;z-index:10}.phone-screen{width:100%;height:100%;background:linear-gradient(135deg,#1e293b,#334155);border-radius:32px;overflow:hidden;position:relative}.mockup-content{padding:40px 16px 16px}.mockup-header{background:rgba(16,185,129,.1);border:1px solid rgba(16,185,129,.3);border-radius:12px;padding:12px;margin-bottom:16px;text-align:center;font-weight:600;font-size:14px}.mockup-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.mockup-card{aspect-ratio:1;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);border-radius:12px;animation:pulse 2s ease-in-out infinite}.mockup-card:nth-child(2){animation-delay:.3s}.mockup-card:nth-child(3){animation-delay:.6s}.mockup-card:nth-child(4){animation-delay:.9s}@keyframes pulse{0%,to{opacity:.3}50%{opacity:.6}}}.landing-footer{background:rgba(0,0,0,.3);border-top:1px solid rgba(255,255,255,.1);padding:40px 20px;text-align:center}.footer-content{max-width:1200px;margin:0 auto}.footer-logo{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:12px}.footer-logo .logo-icon{font-size:32px}.footer-logo .logo-text{font-size:24px;font-weight:700;background:linear-gradient(135deg,#10b981,#34d399);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.footer-tagline{font-size:14px;color:#94a3b8;margin:0 0 8px}.footer-copyright{font-size:12px;color:#64748b;margin:0}@media(max-width:767px){.hero-tagline{font-size:36px}.hero-description{font-size:16px}.btn-large{padding:14px 32px;font-size:16px}}@media(max-width:480px){.hero{padding:32px 16px}.hero-tagline{font-size:32px}.logo-text{font-size:36px}.hero-actions{flex-direction:column;width:100%}.btn-large{width:100%}}.marketplace-page{padding-bottom:0}.header{margin-bottom:16px}.logo{font-size:24px;font-weight:700;color:#10b981}.filters{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:16px;margin-bottom:24px}.filter-row{display:flex;gap:12px;flex-wrap:wrap}.filter-group{flex:1;min-width:150px}.form-select{font-size:14px;padding:8px 12px}.products-section{margin-bottom:24px}.product-image-placeholder{width:100%;height:160px;background:#374151;display:flex;align-items:center;justify-content:center;font-size:48px}.product-seller{font-size:12px;color:#9ca3af;margin-top:4px}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:#111827}.login-container{width:100%;max-width:400px;background:#1f2937;border:1px solid #374151;border-radius:16px;padding:32px}.login-header{text-align:center;margin-bottom:32px}.login-title{font-size:24px;margin-bottom:8px}.login-form{margin-bottom:24px}.error-message{background:#7f1d1d;border:1px solid #991b1b;color:#fca5a5;padding:12px;border-radius:8px;margin-bottom:16px;font-size:14px}.divider{position:relative;text-align:center;margin:24px 0}.divider:before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:#374151}.divider span{position:relative;background:#1f2937;padding:0 16px;color:#9ca3af;font-size:14px}.google-signin-section{margin-top:0}.form-hint{display:block;margin-top:6px;font-size:12px;color:#6b7280;font-style:italic}.btn-google{width:100%;background:#fff;color:#1f2937;border:1px solid #374151;padding:12px 24px;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s;display:flex;align-items:center;justify-content:center;gap:12px}.btn-google:hover{background:#f9fafb}.btn-google:active{transform:scale(.98)}.btn-google:disabled{opacity:.5;cursor:not-allowed}.login-footer{text-align:center;margin-top:24px;color:#9ca3af;font-size:14px}.link{color:#10b981;text-decoration:none;font-weight:600}.link:hover{text-decoration:underline}.register-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px;background:#111827;overflow-y:auto}.register-container{width:100%;max-width:400px;background:#1f2937;border:1px solid #374151;border-radius:16px;padding:32px;margin:20px 0}.register-header{text-align:center;margin-bottom:32px}.register-title{font-size:24px;margin-bottom:8px}.register-form{margin-bottom:24px}.register-footer{text-align:center;margin-top:24px;color:#9ca3af;font-size:14px}.my-products-page{min-height:100vh;background:#f9fafb;padding-bottom:80px}.my-products-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding:16px 0}.my-products-header h1{font-size:24px;font-weight:700;color:#111827;margin:0}.create-product-form{background:#fff;border-radius:12px;padding:20px;margin-bottom:24px;box-shadow:0 1px 3px rgba(0,0,0,.1)}.create-product-form h2{font-size:20px;font-weight:600;color:#111827;margin:0 0 20px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:16px}.form-label{display:block;font-size:14px;font-weight:500;color:#374151;margin-bottom:6px}.form-input{width:100%;padding:10px 12px;border:1px solid #d1d5db;border-radius:8px;font-size:14px;color:#111827;background:#fff;transition:all .2s}.form-input:focus{outline:none;border-color:#10b981;box-shadow:0 0 0 3px rgba(16,185,129,.1)}.form-input::placeholder{color:#9ca3af}textarea.form-input{resize:vertical;min-height:100px}.form-actions{display:flex;gap:12px;margin-top:20px}.products-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.summary-card{background:#fff;border-radius:12px;padding:16px;display:flex;align-items:center;gap:12px;box-shadow:0 1px 3px rgba(0,0,0,.1)}.summary-icon{font-size:32px}.summary-info{flex:1}.summary-label{font-size:12px;color:#6b7280;margin-bottom:4px}.summary-value{font-size:18px;font-weight:700;color:#111827}.products-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.product-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 3px rgba(0,0,0,.1);transition:transform .2s,box-shadow .2s}.product-image-wrapper{position:relative;width:100%;height:160px;overflow:hidden}.product-image{width:100%;height:100%;background:#f3f4f6;display:flex;align-items:center;justify-content:center}.product-image img{width:100%;height:100%;object-fit:cover}.no-image{font-size:48px;opacity:.3}.status-badge{position:absolute;top:8px;right:8px;padding:4px 12px;border-radius:6px;font-size:12px;font-weight:600;box-shadow:0 2px 8px rgba(0,0,0,.3)}.status-badge.sold{background:rgba(156,163,175,.95);color:#fff}.status-badge.active{background:rgba(16,185,129,.95);color:#fff}.view-count{position:absolute;top:8px;left:8px;background:rgba(0,0,0,.7);color:#fff;padding:4px 8px;border-radius:12px;font-size:11px;font-weight:600;display:flex;align-items:center;gap:4px}.product-title{font-size:14px;font-weight:600;color:#111827;margin:0 0 8px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.4}.product-title.sold{color:#9ca3af}.product-price-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}.product-price{font-size:16px;font-weight:700;color:#10b981}.fin-points{display:flex;align-items:center;gap:4px;font-size:16px;color:#fbbf24}.fp-amount{font-weight:600;color:#111827}.product-seller{font-size:12px;color:#6b7280;margin-bottom:8px}.product-stats{display:flex;justify-content:space-between;align-items:center;padding-top:8px;border-top:1px solid #e5e7eb}.product-condition{font-size:12px;color:#6b7280;background:#f3f4f6;padding:4px 8px;border-radius:4px}.btn-edit{background:#3b82f6;color:#fff;border:none;border-radius:6px;padding:6px 12px;font-size:12px;font-weight:500;cursor:pointer;transition:background .2s}.btn-edit:hover{background:#2563eb}.btn-edit:active{transform:scale(.95)}.empty-state{text-align:center;padding:60px 20px;background:#fff;border-radius:12px;box-shadow:0 1px 3px rgba(0,0,0,.1)}.empty-icon{font-size:64px;margin-bottom:16px;opacity:.5}.empty-state h3{font-size:20px;font-weight:600;color:#111827;margin:0 0 8px}.empty-state p{font-size:14px;color:#6b7280;margin:0 0 24px}.loading-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 20px;min-height:400px}.spinner{width:40px;height:40px;border:4px solid #e5e7eb;border-top-color:#10b981;border-radius:50%;animation:spin .8s linear infinite;margin-bottom:16px}@keyframes spin{to{transform:rotate(360deg)}}.loading-state p{color:#6b7280;font-size:14px}@media(max-width:640px){.products-summary{grid-template-columns:1fr}.summary-card{padding:12px}.form-row{grid-template-columns:1fr}}.btn{padding:10px 20px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;border:none;transition:all .2s;display:inline-flex;align-items:center;justify-content:center;gap:6px}.btn-primary:active{transform:scale(.98)}.btn-primary:disabled{background:#9ca3af;cursor:not-allowed}.btn-secondary{background:#f3f4f6;color:#374151}.btn-secondary:hover{background:#e5e7eb}.btn-secondary:active{transform:scale(.98)}.profile-page{padding-bottom:20px}.profile-header{margin-bottom:20px}.profile-card{background:#1f2937;border:1px solid #374151;border-radius:16px;padding:24px;margin-bottom:16px;text-align:center}.profile-avatar{margin-bottom:16px}.avatar-image{width:100px;height:100px;border-radius:50%;object-fit:cover;border:3px solid #10b981}.avatar-placeholder{width:100px;height:100px;border-radius:50%;background:linear-gradient(135deg,#10b981,#059669);display:flex;align-items:center;justify-content:center;font-size:48px;font-weight:700;color:#fff;margin:0 auto}.profile-info{margin-top:12px}.profile-name{font-size:24px;font-weight:700;margin-bottom:4px;color:#f3f4f6}.profile-username{font-size:16px;color:#9ca3af;margin-bottom:12px}.invite-code-badge{display:inline-block;background:#065f46;color:#10b981;padding:8px 16px;border-radius:8px;font-size:14px;margin-top:8px}.invite-code-highlight{background:#065f46;color:#10b981;padding:12px 16px;border-radius:8px;font-size:16px;font-weight:600;text-align:center;border:1px solid #10b981;box-shadow:0 2px 4px rgba(16,185,129,.1)}.profile-details{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:20px}.detail-group{margin-bottom:16px;padding-bottom:16px;border-bottom:1px solid #374151}.detail-group:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}.detail-label{display:block;font-size:12px;color:#9ca3af;margin-bottom:4px;text-transform:uppercase;letter-spacing:.5px}.detail-value{font-size:16px;color:#f3f4f6;font-weight:500}.profile-edit-form{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:20px}.form-textarea{resize:vertical;min-height:80px}.profile-actions{margin-top:24px}.btn-danger{background:#ef4444!important;color:#fff!important}.btn-danger:hover{background:#dc2626!important}.invite-section{display:flex;align-items:center;gap:12px;margin-top:8px;flex-wrap:wrap}.btn-debug{background:#6b7280!important;color:#fff!important;border:none!important;padding:6px 12px!important;border-radius:6px!important;font-size:12px!important;cursor:pointer!important;transition:background .2s!important}.btn-debug:hover{background:#4b5563!important}.btn-small{padding:4px 8px!important;font-size:11px!important}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);display:flex;align-items:center;justify-content:center;z-index:1000;padding:20px}.modal-content{background:#1f2937;border-radius:12px;border:1px solid #374151;max-width:800px;width:100%;max-height:90vh;overflow:hidden;display:flex;flex-direction:column}.modal-header{display:flex;justify-content:space-between;align-items:center;padding:20px;border-bottom:1px solid #374151}.modal-header h3{margin:0;color:#f3f4f6;font-size:18px}.modal-close{background:none;border:none;color:#9ca3af;font-size:24px;cursor:pointer;padding:0;width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:6px}.modal-close:hover{background:#374151;color:#f3f4f6}.modal-body{padding:20px;overflow-y:auto;flex:1}.modal-footer{display:flex;gap:12px;padding:20px;border-top:1px solid #374151}.btn-secondary{background:#6b7280!important;color:#fff!important}.btn-secondary:hover{background:#4b5563!important}.debug-info{margin-bottom:24px}.debug-info p{margin:0 0 8px;color:#10b981;font-weight:600;font-size:14px}.json-output{background:#111827;border:1px solid #374151;border-radius:8px;padding:16px;color:#e5e7eb;font-family:Courier New,monospace;font-size:12px;line-height:1.4;overflow-x:auto;max-height:300px;overflow-y:auto;white-space:pre-wrap;word-wrap:break-word}.referrals-page{padding-bottom:20px}.referrals-header{margin-bottom:20px}.stat-value{font-size:28px;font-weight:700;color:#10b981}@media(max-width:640px){.invite-code-text{font-size:24px;letter-spacing:2px}.qr-code-image{width:150px;height:150px}.parent-name{font-size:14px}.avatar-large{width:48px;height:48px}}@media(min-width:768px){.tree-row{flex-direction:row;align-items:stretch}.parent-card-mobile{width:280px;flex-shrink:0}.children-grid-mobile{flex:1;border-left-width:2px}}.earnings-page{padding-bottom:20px}.earnings-header{margin-bottom:20px}.network-earnings{display:flex;flex-direction:column;gap:16px;margin-bottom:24px}.network-card{border-radius:16px;padding:24px;text-align:center;border:3px solid;box-shadow:0 4px 12px rgba(0,0,0,.15);transition:transform .2s}.network-card:active{transform:scale(.98)}.cnb-card{background:linear-gradient(135deg,#065f46,#047857);border-color:#10b981;color:#fff}.network-bonus-card{background:linear-gradient(135deg,#1e3a5f,#2563eb);border-color:#3b82f6;color:#fff}.network-sales-card{background:linear-gradient(135deg,#7c2d12,#c2410c);border-color:#ea580c;color:#fff}.network-card-header{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px}.network-icon{font-size:20px}.network-title{font-size:14px;font-weight:600;opacity:.9}.network-amount{font-size:48px;font-weight:700;line-height:1;margin-bottom:8px;text-shadow:0 2px 4px rgba(0,0,0,.2)}.network-currency{font-size:18px;font-weight:600;margin-bottom:12px;opacity:.9}.network-description{font-size:13px;opacity:.85;line-height:1.5}.earnings-filters{display:flex;gap:8px;margin-bottom:16px;overflow-x:auto;padding-bottom:8px}.filter-tab{padding:10px 20px;background:#1f2937;border:1px solid #374151;border-radius:8px;color:#9ca3af;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap}.filter-tab.active{background:#10b981;border-color:#10b981;color:#fff}.filter-tab:hover:not(.active){background:#374151}.earnings-list{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:16px}.earning-item{display:flex;align-items:flex-start;gap:12px;padding:16px;background:#111827;border:1px solid #374151;border-radius:8px;margin-bottom:12px}.earning-item:last-child{margin-bottom:0}.earning-icon{font-size:32px;flex-shrink:0}.earning-details{flex:1;min-width:0}.earning-title{font-size:16px;font-weight:600;color:#f3f4f6;margin-bottom:4px}.earning-source{color:#9ca3af;font-weight:400}.earning-date{font-size:12px;color:#6b7280;margin-bottom:4px}.earning-description{font-size:14px;color:#9ca3af;margin-top:8px}.earning-amount{font-size:20px;font-weight:700;color:#10b981;white-space:nowrap}.fingrow-page{padding-bottom:20px}.fingrow-header{margin-bottom:24px;text-align:center}.fingrow-header h1{margin-bottom:8px}.earnings-section{margin-bottom:24px}.network-cards-grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:16px}.network-card{border-radius:16px;padding:20px;border:2px solid;position:relative;overflow:hidden}.network-card-header{display:flex;align-items:center;gap:8px;margin-bottom:16px}.network-icon{font-size:24px}.network-title{font-size:14px;font-weight:600;color:rgba(255,255,255,.9)}.network-amount{font-size:36px;font-weight:700;color:#fff;margin-bottom:4px}.network-currency{font-size:14px;font-weight:600;color:rgba(255,255,255,.7);margin-bottom:12px}.network-description{font-size:12px;color:rgba(255,255,255,.6);line-height:1.5}.cnb-card{background:linear-gradient(135deg,#065f46,#047857);border-color:#10b981}.network-bonus-card{background:linear-gradient(135deg,#1e3a5f,#2563eb);border-color:#3b82f6}.network-sales-card{background:linear-gradient(135deg,#7c2d12,#c2410c);border-color:#ea580c}.stats-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:24px}.stat-card{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:16px;display:flex;align-items:center;gap:12px}.stat-icon{font-size:32px;flex-shrink:0}.stat-info{flex:1}.stat-label{font-size:12px;color:#9ca3af;margin-bottom:4px}.stat-value{font-size:24px;font-weight:700;color:#10b981}.invite-section{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:20px;margin-bottom:24px}.invite-code-card{margin-top:12px;margin-bottom:24px}.invite-code-display{display:flex;align-items:center;gap:12px;background:#111827;border:2px solid #10b981;border-radius:12px;padding:16px}.invite-code-text{flex:1;font-size:32px;font-weight:700;color:#10b981;text-align:center;letter-spacing:4px}.btn-copy{flex-shrink:0;padding:12px 16px}.qr-code-section{text-align:center;margin-bottom:24px}.qr-label{font-size:14px;color:#9ca3af;margin-bottom:12px}.qr-code-container{display:inline-block;background:#fff;padding:16px;border-radius:12px}.qr-code-image{display:block;width:200px;height:200px}.referral-link-section{margin-top:24px}.referral-link-input{margin-bottom:12px}.referral-link-input input{font-size:12px;cursor:pointer}.share-buttons{display:flex;gap:12px}.share-buttons .btn{flex:1}.network-section{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:20px}.network-tree-horizontal{margin-top:16px;display:flex;flex-direction:column;gap:16px}.tree-row{display:flex;flex-direction:column;gap:12px;background:rgba(17,24,39,.5);border:1px solid #374151;border-radius:12px;padding:12px}.parent-card-mobile{background:linear-gradient(135deg,rgba(16,185,129,.1),rgba(6,95,70,.2));border:1px solid #10b981;border-radius:10px;padding:12px}.parent-header{display:flex;align-items:center;gap:12px;margin-bottom:8px}.avatar-with-badge{position:relative;flex-shrink:0}.avatar-large{width:56px;height:56px;border-radius:50%;object-fit:cover;border:2px solid #10b981;background:#374151}.child-count-badge{position:absolute;bottom:-4px;right:-4px;background:#10b981;color:#fff;font-size:10px;font-weight:700;border-radius:50%;width:24px;height:24px;display:flex;align-items:center;justify-content:center;border:2px solid #111827}.parent-info{flex:1;min-width:0}.parent-name{font-size:16px;font-weight:600;color:#f3f4f6;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.parent-username{font-size:13px;color:#10b981;margin-bottom:2px}.parent-id{font-size:10px;color:#6b7280;font-family:monospace}.parent-stats{display:flex;justify-content:space-between;align-items:center;padding-top:8px;border-top:1px solid rgba(16,185,129,.2)}.stat-item{font-size:12px;color:#10b981;font-weight:600}.children-grid-mobile{background:rgba(17,24,39,.3);border:1px solid #374151;border-left:3px solid #374151;border-radius:8px;padding:12px}.children-header{font-size:11px;color:#9ca3af;font-weight:600;margin-bottom:8px;padding-bottom:8px;border-bottom:1px solid #374151}.empty-children{display:flex;align-items:center;justify-content:center;min-height:60px}.children-placeholder{display:flex;flex-direction:column;align-items:center;gap:4px;color:#6b7280}.placeholder-icon{font-size:24px;opacity:.5}.placeholder-text{font-size:11px;color:#9ca3af}.children-list{display:flex;flex-direction:column;gap:8px;padding:8px}.child-item{display:flex;align-items:center;gap:10px;padding:8px;background:rgba(31,41,55,.5);border-radius:8px;border:1px solid #374151}.child-avatar{width:36px;height:36px;border-radius:50%;object-fit:cover;border:2px solid #6b7280;flex-shrink:0}.child-info{flex:1;min-width:0}.child-name{font-size:13px;font-weight:600;color:#f3f4f6;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.child-username{font-size:11px;color:#9ca3af}.child-badge{font-size:11px;font-weight:600;color:#10b981;background:rgba(16,185,129,.1);border:1px solid rgba(16,185,129,.3);padding:2px 8px;border-radius:12px;flex-shrink:0}.empty-network{text-align:center;padding:40px 20px;color:#9ca3af}.empty-state-icon{font-size:48px;margin-bottom:12px;opacity:.3}.text-gray{color:#6b7280;font-size:14px;margin-top:8px}.loading{text-align:center;padding:24px;color:#9ca3af;font-size:14px}@media(max-width:640px){.invite-code-text{font-size:24px;letter-spacing:2px}.qr-code-image{width:150px;height:150px}.parent-name{font-size:14px}.avatar-large{width:48px;height:48px}.network-amount{font-size:28px}}@media(min-width:768px){.network-cards-grid{grid-template-columns:repeat(3,1fr)}.tree-row{flex-direction:row;align-items:stretch}.parent-card-mobile{width:280px;flex-shrink:0}.children-grid-mobile{flex:1;border-left-width:2px}}.simulation-page{padding-bottom:20px}.simulation-header{margin-bottom:24px;text-align:center}.simulation-header h1{margin-bottom:8px}.header-subtitle{color:#9ca3af;font-size:14px}.comparison-section{margin-bottom:24px}.comparison-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:16px}.comparison-card{border-radius:12px;padding:20px;border:2px solid;text-align:center}.actual-card{background:linear-gradient(135deg,#065f46,#047857);border-color:#10b981}.simulation-card{background:linear-gradient(135deg,#7c2d12,#c2410c);border-color:#ea580c}.card-header{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:12px}.card-icon{font-size:20px}.card-title{font-size:14px;font-weight:600;color:rgba(255,255,255,.9)}.card-value{font-size:36px;font-weight:700;color:#fff;margin-bottom:4px}.card-label{font-size:12px;color:rgba(255,255,255,.7)}.parameters-section{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:20px;margin-bottom:24px}.param-group{margin-bottom:24px}.param-group:last-of-type{margin-bottom:0}.param-group-title{font-size:16px;font-weight:600;color:#10b981;margin-bottom:16px;display:flex;align-items:center;gap:8px}.param-item{margin-bottom:20px}.param-item:last-child{margin-bottom:0}.param-label{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;font-size:14px;color:#d1d5db}.param-value-display{font-weight:600;color:#10b981}.param-slider{width:100%;height:6px;border-radius:3px;background:#374151;outline:none;-webkit-appearance:none}.param-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:20px;height:20px;border-radius:50%;background:#10b981;cursor:pointer;box-shadow:0 2px 4px rgba(0,0,0,.3)}.param-slider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:#10b981;cursor:pointer;border:none;box-shadow:0 2px 4px rgba(0,0,0,.3)}.param-slider:disabled{opacity:.5;cursor:not-allowed;background:#2d3748}.param-slider:disabled::-webkit-slider-thumb{background:#6b7280;cursor:not-allowed}.param-slider:disabled::-moz-range-thumb{background:#6b7280;cursor:not-allowed}.btn-simulate{width:100%;margin-top:24px;padding:16px;font-size:16px;font-weight:600}.results-section{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:20px;margin-bottom:24px}.results-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:16px}.result-card{background:linear-gradient(135deg,rgba(31,41,55,.5),rgba(17,24,39,.8));border:1px solid #374151;border-radius:12px;padding:16px;text-align:center}.revenue-card{border-color:#6366f1}.commission-card{border-color:#8b5cf6}.network-card{border-color:#10b981}.total-card{background:linear-gradient(135deg,#065f46,#047857);border-color:#10b981;grid-column:span 2}.yearly-card{background:linear-gradient(135deg,#7c2d12,#c2410c);border-color:#ea580c;grid-column:span 2}.network-size-card{border-color:#06b6d4;grid-column:span 2}.result-icon{font-size:32px;margin-bottom:8px}.result-label{font-size:12px;color:#9ca3af;margin-bottom:8px}.result-value{font-size:24px;font-weight:700;color:#fff;margin-bottom:4px}.result-value.highlight{font-size:32px;color:#10b981}.result-detail{font-size:11px;color:rgba(255,255,255,.6)}.network-breakdown{background:rgba(17,24,39,.5);border-radius:12px;padding:16px;margin-top:24px}.breakdown-title{font-size:16px;font-weight:600;color:#10b981;margin-bottom:16px}.breakdown-list{display:flex;flex-direction:column;gap:12px}.breakdown-item{display:grid;grid-template-columns:80px 80px 1fr;align-items:center;gap:12px}.level-badge{font-size:12px;font-weight:600;color:#10b981}.level-count{font-size:14px;font-weight:600;color:#fff;text-align:right}.level-bar{background:#374151;height:8px;border-radius:4px;overflow:hidden}.level-bar-fill{background:linear-gradient(90deg,#10b981,#059669);height:100%;border-radius:4px;transition:width .3s ease}.insights-section{background:rgba(17,24,39,.5);border-radius:12px;padding:16px;margin-top:16px}.insights-title{font-size:16px;font-weight:600;color:#10b981;margin-bottom:12px}.insights-list{display:flex;flex-direction:column;gap:12px}.insight-item{display:flex;align-items:center;gap:12px;padding:12px;background:rgba(31,41,55,.5);border-radius:8px;border:1px solid #374151}.insight-icon{font-size:24px;flex-shrink:0}.insight-text{font-size:13px;color:#d1d5db;line-height:1.5}.insight-text strong{color:#10b981;font-weight:600}.action-section{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:20px}.action-cards{display:grid;grid-template-columns:1fr;gap:16px;margin-top:16px}.action-card{background:linear-gradient(135deg,rgba(31,41,55,.5),rgba(17,24,39,.8));border:1px solid #374151;border-radius:12px;padding:20px;text-align:center}.action-icon{font-size:48px;margin-bottom:12px}.action-title{font-size:16px;font-weight:600;color:#10b981;margin-bottom:12px}.action-description{font-size:13px;color:#d1d5db;line-height:1.6}.action-description strong{color:#10b981;font-weight:600}@media(max-width:640px){.comparison-cards{grid-template-columns:1fr}.card-value{font-size:28px}.result-value{font-size:20px}.result-value.highlight{font-size:24px}.total-card,.yearly-card,.network-size-card{grid-column:span 1}.breakdown-item{grid-template-columns:70px 70px 1fr}}@media(min-width:768px){.results-cards{grid-template-columns:repeat(3,1fr)}.total-card,.yearly-card{grid-column:span 3}.action-cards{grid-template-columns:repeat(3,1fr)}}*{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:#111827;color:#f3f4f6;overflow-x:hidden}#root{width:100%;min-height:100vh}.container{max-width:100%;padding:16px}h1,h2,h3,h4,h5,h6{margin-bottom:16px}h1,h2{font-family:Noto Sans Thai,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.section-title{font-size:18px;font-weight:700;margin-bottom:12px;color:#f3f4f6}.form-input,.form-select,.form-textarea{width:100%;padding:12px 16px;background:#1f2937;border:1px solid #374151;border-radius:8px;color:#f3f4f6;font-size:14px;transition:border-color .2s}.form-input:focus,.form-select:focus,.form-textarea:focus{outline:none;border-color:#10b981}.form-input::placeholder{color:#6b7280}.form-label{display:block;margin-bottom:8px;color:#d1d5db;font-size:14px;font-weight:500}.form-group{margin-bottom:16px}.btn{padding:12px 24px;border-radius:8px;font-size:16px;font-weight:600;cursor:pointer;transition:all .2s;border:none;display:inline-flex;align-items:center;justify-content:center;gap:8px}.btn:active{transform:scale(.98)}.btn-primary{background:#10b981;color:#fff}.btn-primary:hover{background:#059669}.btn-secondary{background:#374151;color:#fff}.btn-secondary:hover{background:#4b5563}.btn-outline{background:transparent;border:1px solid #374151;color:#f3f4f6}.btn-block{width:100%}.card{background:#1f2937;border:1px solid #374151;border-radius:12px;padding:16px;margin-bottom:16px}.product-card{background:#1f2937;border:1px solid #374151;border-radius:12px;overflow:hidden;cursor:pointer;transition:transform .2s}.product-card:active{transform:scale(.98)}.product-image{width:100%;height:160px;object-fit:cover;background:#374151}.product-info{padding:12px}.product-name{font-weight:600;margin-bottom:4px;color:#f3f4f6}.product-price{color:#10b981;font-weight:700;font-size:18px}.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.search-container{position:relative;margin-bottom:16px}.search-input{width:100%;padding:12px 16px 12px 44px;background:#1f2937;border:1px solid #374151;border-radius:8px;color:#f3f4f6;font-size:14px}.search-icon{position:absolute;left:16px;top:50%;transform:translateY(-50%);font-size:18px}.text-center{text-align:center}.mt-8{margin-top:8px}.mt-16{margin-top:16px}.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}.text-gray{color:#9ca3af}.text-green{color:#10b981}.text-red{color:#ef4444}.loading{display:flex;align-items:center;justify-content:center;padding:40px;color:#9ca3af}.empty-state{text-align:center;padding:40px 20px;color:#9ca3af}.empty-state-icon{font-size:48px;margin-bottom:16px}@media(min-width:768px){.product-grid{grid-template-columns:repeat(3,1fr)}}@media(min-width:1024px){.product-grid{grid-template-columns:repeat(4,1fr)}}
