/* EcomSuite — public sign-in pages (admin / creators / suppliers).
   Dark space, fine grid, star field, horizon glow, neon glass card, cursor spotlight. */
:root { --l-accent: #36c98a; --l-rgb: 54, 201, 138; --l-bg: #030605; --mx: 50vw; --my: 30vh; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body.landing { background: var(--l-bg); color: #e9f1ec; font: 15px/1.55 "Inter", "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.landing a { color: rgb(var(--l-rgb)); }
.l-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.l-grid { position: absolute; inset: -2px; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 96px 96px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 85%); }
.l-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.l-spot { position: absolute; width: 760px; height: 760px; left: calc(var(--mx) - 380px); top: calc(var(--my) - 380px); background: radial-gradient(circle, rgba(var(--l-rgb), .13), transparent 62%); transition: left .25s ease-out, top .25s ease-out; }
.l-horizon { position: absolute; left: 50%; bottom: -78vh; width: 170vw; height: 110vh; transform: translateX(-50%); border-radius: 50%; background: #020403;
  box-shadow: 0 -2px 0 0 rgba(var(--l-rgb), .55), 0 -18px 60px -10px rgba(var(--l-rgb), .55), 0 -60px 180px -20px rgba(var(--l-rgb), .35), inset 0 30px 80px -40px rgba(var(--l-rgb), .5); animation: breathe 7s ease-in-out infinite; }
.l-horizon::before { content: ''; position: absolute; left: 50%; top: -120px; width: 46vw; height: 240px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 100%, rgba(var(--l-rgb), .55), transparent 70%); filter: blur(30px); }
@keyframes breathe { 50% { box-shadow: 0 -2px 0 0 rgba(var(--l-rgb), .7), 0 -24px 80px -10px rgba(var(--l-rgb), .65), 0 -80px 220px -20px rgba(var(--l-rgb), .42), inset 0 30px 80px -40px rgba(var(--l-rgb), .6); } }

.l-nav { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 22px clamp(18px, 5vw, 64px); }
.l-brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: -.3px; font-size: 17px; color: #fff; }
.l-logo { width: 34px; height: 34px; border-radius: 11px; position: relative; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .9), rgb(var(--l-rgb)) 45%, rgba(0, 0, 0, .6)); box-shadow: 0 0 24px -2px rgba(var(--l-rgb), .8); }
.l-logo::after { content: ''; position: absolute; inset: 9px; border: 2px solid rgba(0, 0, 0, .75); border-radius: 5px; transform: rotate(45deg); }
.l-tag { font-size: 12.5px; color: #93a39a; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); backdrop-filter: blur(10px); }

.l-hero { position: relative; z-index: 2; text-align: center; padding: clamp(20px, 6vh, 70px) 18px 0; max-width: 980px; margin: 0 auto; }
.l-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-size: 13px; color: rgb(var(--l-rgb)); border: 1px solid rgba(var(--l-rgb), .35); background: linear-gradient(180deg, rgba(var(--l-rgb), .14), rgba(var(--l-rgb), .04)); box-shadow: 0 0 24px -8px rgba(var(--l-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .08); }
.l-pill i { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--l-rgb)); box-shadow: 0 0 10px rgb(var(--l-rgb)); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.l-h1 { margin: 22px 0 14px; font-size: clamp(38px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 650; white-space: pre-line;
  background: linear-gradient(180deg, #fff 30%, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 60px rgba(var(--l-rgb), .25); }
.l-sub { margin: 0 auto; max-width: 560px; color: #9aaba1; font-size: clamp(15px, 1.6vw, 17.5px); }

.l-stage { position: relative; z-index: 3; display: grid; place-items: center; padding: 38px 18px 40px; }
.l-card { position: relative; width: min(430px, 100%); padding: 28px; border-radius: 22px; background: linear-gradient(180deg, rgba(18, 26, 22, .72), rgba(8, 12, 10, .78)); backdrop-filter: blur(22px) saturate(150%); -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 60px -20px rgba(var(--l-rgb), .55); }
.l-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--l-angle, 0deg), transparent 0 60%, rgba(var(--l-rgb), .9) 75%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; pointer-events: none; }
.l-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(420px circle at var(--cx, 50%) var(--cy, 0%), rgba(var(--l-rgb), .12), transparent 45%); }
@property --l-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --l-angle: 360deg; } }
.l-card h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.3px; }
.l-card p.l-muted { margin: 0 0 18px; color: #8c9b91; font-size: 13.5px; }
.l-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; font-size: 12.5px; color: #a9b8af; }
.l-input { position: relative; z-index: 1; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .35); color: #fff; font: inherit; font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s; }
.l-input:focus { border-color: rgba(var(--l-rgb), .7); box-shadow: 0 0 0 4px rgba(var(--l-rgb), .15), 0 0 24px -6px rgba(var(--l-rgb), .7); }
.l-pw { position: relative; } .l-pw .l-input { width: 100%; padding-right: 46px; }
.l-eye { position: absolute; right: 6px; top: 6px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: #8c9b91; cursor: pointer; } .l-eye:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.l-btn { position: relative; width: 100%; height: 48px; margin-top: 6px; border: 0; border-radius: 14px; cursor: pointer; font: inherit; font-weight: 650; font-size: 15px; color: #041009; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, rgb(var(--l-rgb)) 70%, #fff), rgb(var(--l-rgb))); box-shadow: 0 10px 30px -8px rgba(var(--l-rgb), .8), inset 0 1px 0 rgba(255, 255, 255, .5); transition: transform .15s, box-shadow .2s, filter .2s; }
.l-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 40px -8px rgba(var(--l-rgb), .95), inset 0 1px 0 rgba(255, 255, 255, .5); }
.l-btn:active { transform: translateY(1px); } .l-btn:disabled { filter: grayscale(.5) brightness(.8); cursor: progress; }
.l-btn::after { content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: shine 4.5s ease-in-out infinite; }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.l-err { min-height: 20px; margin: 10px 0 0; color: #ff8c8c; font-size: 13px; }
.l-err.shake { animation: shake .4s; } @keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.l-foot { margin: 14px 0 0; font-size: 12px; color: #6e7f75; text-align: center; }
.l-feats { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 18px 30px; }
.l-feat { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-size: 13px; color: #b5c4bb; border: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .025); backdrop-filter: blur(10px); transition: border-color .2s, transform .2s; }
.l-feat:hover { border-color: rgba(var(--l-rgb), .5); transform: translateY(-2px); }
.l-feat b { color: rgb(var(--l-rgb)); font-weight: 600; }

/* abstract product preview under the card (no data, decorative) */
.l-preview { position: relative; z-index: 1; width: min(1100px, 92vw); margin: 10px auto -40px; height: 300px; border-radius: 22px 22px 0 0; border: 1px solid rgba(255, 255, 255, .08); border-bottom: 0;
  background: linear-gradient(180deg, rgba(14, 20, 17, .9), rgba(3, 6, 5, 1) 90%); box-shadow: 0 -20px 80px -30px rgba(var(--l-rgb), .6); display: grid; grid-template-columns: 200px 1fr; overflow: hidden; mask-image: linear-gradient(#000 40%, transparent); }
.l-preview .side { border-right: 1px solid rgba(255, 255, 255, .06); padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; }
.l-preview .main { padding: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-content: start; }
.sk { height: 10px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .12), rgba(255, 255, 255, .06)); background-size: 200% 100%; animation: sk 3s linear infinite; }
.sk.acc { background: linear-gradient(90deg, rgba(var(--l-rgb), .25), rgba(var(--l-rgb), .6), rgba(var(--l-rgb), .25)); background-size: 200% 100%; }
@keyframes sk { to { background-position: -200% 0; } }
.tile { height: 110px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .06); background: rgba(255, 255, 255, .02); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.tile.wide { grid-column: span 2; } .bars { display: flex; align-items: flex-end; gap: 8px; height: 60px; } .bars i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(var(--l-rgb), .8), rgba(var(--l-rgb), .1)); animation: grow 1.6s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleY(0); transform-origin: bottom; } }

/* entrance */
.rise { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .18s; } .d3 { animation-delay: .3s; } .d4 { animation-delay: .44s; } .d5 { animation-delay: .6s; }
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rise { opacity: 1; transform: none; filter: none; } }
@media (max-width: 720px) { .l-preview { display: none; } .l-horizon { bottom: -86vh; } .l-tag { display: none; } }

/* signed-in pages (creator & supplier dashboards) reuse the backdrop */
.l-dash { position: relative; z-index: 2; max-width: 1120px; margin: 0 auto; padding: 8px clamp(14px, 3vw, 28px) 60px; }
.l-panel { position: relative; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(180deg, rgba(16, 24, 20, .7), rgba(8, 12, 10, .72)); backdrop-filter: blur(18px) saturate(140%); padding: 18px; overflow: hidden; }
.l-panel::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(500px circle at var(--cx, -100%) var(--cy, -100%), rgba(var(--l-rgb), .1), transparent 45%); }
.l-panel:hover { border-color: rgba(var(--l-rgb), .25); }
.l-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.l-kpi .v { font-size: 26px; font-weight: 650; letter-spacing: -.5px; } .l-kpi .k { font-size: 12px; color: #8c9b91; text-transform: uppercase; letter-spacing: .08em; }
.l-kpi.glow .v { color: rgb(var(--l-rgb)); text-shadow: 0 0 24px rgba(var(--l-rgb), .6); }
.l-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .3); flex-wrap: wrap; }
.l-tabs button { border: 0; background: none; color: #93a39a; height: 34px; padding: 0 14px; border-radius: 9px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 600; }
.l-tabs button.on { color: #fff; background: rgba(var(--l-rgb), .16); box-shadow: inset 0 0 0 1px rgba(var(--l-rgb), .4), 0 0 18px -6px rgba(var(--l-rgb), .8); }
.l-tabs .c { margin-left: 6px; font-size: 12px; color: #6e7f75; }
.l-small { font-size: 13px; color: #93a39a; } .l-tiny { font-size: 12px; color: #6e7f75; }
.l-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.l-sbtn { height: 34px; padding: 0 13px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); color: #e9f1ec; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.l-sbtn:hover { border-color: rgba(var(--l-rgb), .55); box-shadow: 0 0 18px -6px rgba(var(--l-rgb), .8); }
.l-sbtn.pri { background: rgba(var(--l-rgb), .9); color: #041009; border-color: transparent; } .l-sbtn.pri:hover { background: rgb(var(--l-rgb)); }
.l-sbtn.warn { color: #ffb4a8; } .l-sbtn:disabled { opacity: .5; cursor: not-allowed; }
.l-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 650; border: 1px solid rgba(255, 255, 255, .12); color: #b5c4bb; }
.l-badge.todo { color: #ffd38a; border-color: rgba(255, 211, 138, .35); background: rgba(255, 211, 138, .08); }
.l-badge.processing { color: #9fd0ff; border-color: rgba(159, 208, 255, .35); background: rgba(159, 208, 255, .08); }
.l-badge.shipped { color: #7ff0b8; border-color: rgba(127, 240, 184, .35); background: rgba(127, 240, 184, .08); }
.l-badge.issue, .l-badge.cancelled { color: #ff9c9c; border-color: rgba(255, 156, 156, .4); background: rgba(255, 156, 156, .1); }
.l-order { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 18px; align-items: start; margin-bottom: 12px; animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; }
.l-order.cancelled { border-color: rgba(255, 120, 120, .35); }
.l-items { display: flex; flex-direction: column; gap: 8px; }
.l-item { display: flex; gap: 10px; align-items: center; } .l-item img, .l-item .ph { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: rgba(255, 255, 255, .05); flex: none; }
.l-qty { font-weight: 700; color: rgb(var(--l-rgb)); }
.l-addr { font-size: 13.5px; line-height: 1.5; white-space: pre-line; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px dashed rgba(255, 255, 255, .1); }
.l-acts { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.l-input.sm { height: 36px; font-size: 13.5px; border-radius: 10px; width: 100%; }
.l-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 11px 16px; border-radius: 12px; background: rgba(12, 20, 16, .92); border: 1px solid rgba(var(--l-rgb), .45); box-shadow: 0 0 30px -8px rgba(var(--l-rgb), .8); font-size: 13.5px; animation: rise .3s both; }
.l-empty { text-align: center; padding: 50px 20px; color: #8c9b91; }
@media (max-width: 860px) { .l-order { grid-template-columns: 1fr; } .l-acts { min-width: 0; } }
