:root{--bg:#f5f7fb;--panel:#fff;--text:#172033;--muted:#6b7280;--line:#e6e9f0;--brand:#4f46e5;--brand2:#7c3aed;--danger:#dc2626;--success:#059669;--shadow:0 12px 40px rgba(24,32,51,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:var(--text);background:var(--bg)}a{color:var(--brand);text-decoration:none}.app-body{display:flex;min-height:100vh}.sidebar{width:245px;background:#111827;color:#fff;padding:26px 18px;position:fixed;inset:0 auto 0 0}.brand{font-size:24px;font-weight:900;letter-spacing:-1px}.brand span{color:#8b5cf6}.user-chip{margin:22px 0;padding:14px;background:#1f2937;border-radius:14px}.user-chip small{display:block;color:#9ca3af;margin-top:4px}.sidebar nav{display:grid;gap:6px}.sidebar nav a{color:#d1d5db;padding:11px 12px;border-radius:10px}.sidebar nav a:hover{background:#1f2937;color:#fff}.sidebar .logout{margin-top:24px;color:#fca5a5}.main{margin-left:245px;width:calc(100% - 245px)}.topbar{height:82px;display:flex;align-items:center;padding:0 32px;background:#fff;border-bottom:1px solid var(--line)}.topbar h1{font-size:23px}.content{padding:28px 32px}.panel{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:24px;margin-bottom:24px;box-shadow:var(--shadow)}.panel h2{margin-top:0;font-size:18px}.stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}.stat strong{font-size:28px;display:block}.stat span{color:var(--muted);font-size:13px}.grid{display:grid;gap:16px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.full{grid-column:1/-1}label{display:grid;gap:7px;font-size:13px;font-weight:700;color:#374151}input,select,textarea{width:100%;border:1px solid #d8dce5;border-radius:10px;padding:11px 12px;background:#fff;color:var(--text);font:inherit}textarea{min-height:90px;resize:vertical}input:focus,select:focus,textarea:focus{outline:3px solid rgba(79,70,229,.12);border-color:var(--brand)}.check{display:flex;align-items:center;gap:8px}.check input{width:auto}.button,.mini{border:0;border-radius:10px;padding:11px 16px;font-weight:800;cursor:pointer;background:#e5e7eb;color:#111827}.button.primary{background:linear-gradient(135deg,var(--brand),var(--brand2));color:#fff}.button.danger{background:#fee2e2;color:var(--danger)}.button.small{padding:7px 10px;font-size:12px}.button:disabled{opacity:.45;cursor:not-allowed}.mini{padding:6px 9px;font-size:12px}.tiny{width:85px;padding:7px}.alert{padding:13px 16px;border-radius:12px;margin-bottom:18px}.alert.success{background:#d1fae5;color:#065f46}.alert.error{background:#fee2e2;color:#991b1b}.auth-body{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top left,#ede9fe,transparent 38%),#f7f8fc}.auth-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:32px;box-shadow:var(--shadow)}.auth-card.wide{width:min(760px,100%)}.auth-card h1{margin:24px 0}.auth-card form{display:grid;gap:16px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th,td{text-align:left;padding:13px;border-bottom:1px solid var(--line);vertical-align:top}th{color:#6b7280;font-size:11px;text-transform:uppercase;letter-spacing:.05em}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e5e7eb;font-weight:800;font-size:11px}.badge.active,.badge.paid{background:#d1fae5;color:#065f46}.badge.unused,.badge.pending{background:#fef3c7;color:#92400e}.badge.revoked,.badge.suspended,.badge.rejected{background:#fee2e2;color:#991b1b}.actions{display:flex;gap:6px}.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.product-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;box-shadow:var(--shadow)}.product-card h2{font-size:18px}.product-card p{color:var(--muted);min-height:42px}.product-card form{display:grid;gap:9px}.product-icon{width:46px;height:46px;border-radius:13px;background:linear-gradient(135deg,#ddd6fe,#c7d2fe);display:grid;place-items:center;font-weight:900}.meta{display:flex;flex-wrap:wrap;gap:6px}.meta span{background:#f3f4f6;padding:5px 8px;border-radius:8px;font-size:11px}.cost{font-size:22px;font-weight:900;margin:18px 0}.balance-bar{background:#111827;color:#fff;padding:14px 18px;border-radius:14px;margin-bottom:20px}.balance-bar a{color:#c4b5fd}.muted{color:var(--muted)}code{background:#f3f4f6;padding:3px 6px;border-radius:6px}@media(max-width:1000px){.stats{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,1fr)}.grid.three{grid-template-columns:1fr 1fr}}@media(max-width:760px){.sidebar{position:static;width:100%}.app-body{display:block}.main{margin:0;width:100%}.content{padding:18px}.topbar{padding:0 18px}.stats,.cards,.grid.two,.grid.three{grid-template-columns:1fr}.sidebar nav{grid-template-columns:repeat(2,1fr)}.full{grid-column:auto}}

/* v0.2 landing page + settings */
.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.settings-divider{border-top:1px solid var(--line);padding-top:24px;margin-top:10px}.settings-divider h2{margin-bottom:6px}.image-preview{display:flex;align-items:center;gap:14px;padding:12px;border:1px dashed var(--line);border-radius:14px}.image-preview img{width:120px;height:76px;object-fit:contain;background:#f8fafc;border-radius:10px}.captcha-wrap{display:flex;justify-content:flex-start;min-height:66px}.captcha-config-warning{padding:10px 12px;background:#fff7ed;color:#9a3412;border:1px solid #fed7aa;border-radius:10px;font-size:13px}.auth-card .brand{display:inline-flex;text-decoration:none;color:#111827}.auth-card small{font-weight:500;color:var(--muted)}
.landing-body{margin:0;background:var(--landing-bg,#f7f8ff);color:#172033;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;scroll-behavior:smooth}.landing-container{width:min(1180px,calc(100% - 40px));margin:0 auto}.landing-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.86);backdrop-filter:blur(18px);border-bottom:1px solid rgba(226,232,240,.8)}.nav-wrap{height:78px;display:flex;align-items:center;justify-content:space-between;gap:24px}.landing-brand{display:flex;align-items:center;gap:11px;color:#101828;font-size:20px}.landing-brand img{width:42px;height:42px;object-fit:contain}.brand-mark{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;background:linear-gradient(135deg,var(--landing-primary),var(--landing-secondary));color:#fff;font-weight:900;box-shadow:0 10px 30px color-mix(in srgb,var(--landing-primary) 28%,transparent)}.landing-nav{display:flex;align-items:center;gap:6px}.landing-nav a{color:#475467;padding:10px 13px;border-radius:10px;font-weight:700;font-size:14px}.landing-nav a:hover{background:#f2f4f7;color:#101828}.landing-nav .nav-login{margin-left:10px;border:1px solid #d0d5dd;color:#344054}.landing-nav .nav-register{background:linear-gradient(135deg,var(--landing-primary),var(--landing-secondary));color:#fff;box-shadow:0 10px 24px color-mix(in srgb,var(--landing-primary) 24%,transparent)}.mobile-menu{display:none;border:0;background:#f2f4f7;border-radius:10px;padding:9px 12px;font-size:20px}.landing-hero{position:relative;overflow:hidden;padding:90px 0 82px}.hero-orb{position:absolute;border-radius:50%;filter:blur(4px);opacity:.22}.hero-orb-one{width:360px;height:360px;background:var(--landing-primary);top:-180px;right:-80px}.hero-orb-two{width:280px;height:280px;background:var(--landing-accent);left:-140px;bottom:-110px}.hero-grid{position:relative;display:grid;grid-template-columns:1.03fr .97fr;gap:64px;align-items:center}.landing-badge{display:inline-flex;align-items:center;gap:9px;background:#fff;border:1px solid #e4e7ec;border-radius:999px;padding:8px 12px;color:#475467;font-size:13px;font-weight:800;box-shadow:0 8px 24px rgba(16,24,40,.06)}.landing-badge i{width:8px;height:8px;border-radius:50%;background:var(--landing-accent);box-shadow:0 0 0 5px color-mix(in srgb,var(--landing-accent) 16%,transparent)}.hero-copy h1{font-size:clamp(44px,5.2vw,72px);line-height:1.03;letter-spacing:-.045em;margin:24px 0 22px;color:#101828;max-width:760px}.hero-copy>p{font-size:19px;line-height:1.75;color:#667085;max-width:690px;margin:0}.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:32px 0 22px}.landing-button{display:inline-flex;align-items:center;justify-content:center;padding:14px 20px;border-radius:12px;font-weight:850;transition:.2s transform,.2s box-shadow}.landing-button:hover{transform:translateY(-2px)}.landing-button.primary{background:linear-gradient(135deg,var(--landing-primary),var(--landing-secondary));color:#fff;box-shadow:0 16px 34px color-mix(in srgb,var(--landing-primary) 28%,transparent)}.landing-button.secondary{background:#fff;color:#344054;border:1px solid #d0d5dd}.landing-button.light{background:#fff;color:var(--landing-primary);box-shadow:0 10px 30px rgba(16,24,40,.14)}.trust-line{display:flex;align-items:center;gap:9px;color:#667085;font-size:13px;font-weight:700}.trust-line span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#dcfae6;color:#067647}.hero-visual{position:relative}.uploaded-hero{width:100%;max-height:580px;object-fit:contain;filter:drop-shadow(0 30px 50px rgba(16,24,40,.16))}.dashboard-mock{background:#fff;border:1px solid rgba(208,213,221,.8);border-radius:24px;box-shadow:0 30px 80px rgba(16,24,40,.18);overflow:hidden;transform:rotate(1.3deg)}.mock-top{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #eaecf0;color:#667085;font-size:12px;font-weight:800}.mock-dots{display:flex;gap:6px}.mock-dots i{width:8px;height:8px;border-radius:50%;background:#d0d5dd}.mock-dots i:first-child{background:#f97066}.mock-dots i:nth-child(2){background:#fdb022}.mock-dots i:nth-child(3){background:#32d583}.mock-body{display:grid;grid-template-columns:128px 1fr;min-height:430px}.mock-body aside{padding:20px 14px;background:#111827;color:#cbd5e1;display:flex;flex-direction:column;gap:8px;font-size:11px}.mock-body aside b{font-size:16px;color:#fff;margin-bottom:18px}.mock-body aside span{padding:8px;border-radius:7px}.mock-body aside span:first-of-type{background:#312e81;color:#fff}.mock-content{padding:24px;background:#f8fafc}.mock-welcome{padding:20px;border-radius:16px;background:linear-gradient(135deg,var(--landing-primary),var(--landing-secondary));color:#fff;display:flex;justify-content:space-between;align-items:end}.mock-welcome small{opacity:.8}.mock-welcome strong{font-size:28px}.mock-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:14px 0}.mock-stats div{background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:13px}.mock-stats small{display:block;color:#98a2b3}.mock-stats b{font-size:20px}.mock-products{display:grid;gap:9px}.mock-products article{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;background:#fff;border:1px solid #eaecf0;border-radius:12px;padding:11px}.mock-products article i{width:36px;height:36px;border-radius:10px;background:#eef2ff;color:var(--landing-primary);display:grid;place-items:center;font-style:normal;font-weight:900}.mock-products article b,.mock-products article small{display:block}.mock-products article b{font-size:11px}.mock-products article small{font-size:9px;color:#98a2b3;margin-top:3px}.mock-products button{border:0;background:#eef2ff;color:var(--landing-primary);border-radius:8px;padding:7px;font-size:9px;font-weight:900}.landing-section{padding:92px 0;background:#fff}.section-heading{text-align:center;max-width:760px;margin:0 auto 46px}.section-heading>span{text-transform:uppercase;letter-spacing:.15em;font-size:12px;color:var(--landing-primary);font-weight:900}.section-heading h2{font-size:clamp(32px,4vw,48px);line-height:1.1;letter-spacing:-.035em;margin:13px 0}.section-heading p{color:#667085;line-height:1.7;font-size:17px}.benefit-grid,.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.benefit-grid article{border:1px solid #eaecf0;border-radius:20px;padding:28px;box-shadow:0 16px 38px rgba(16,24,40,.06);background:#fff}.benefit-icon{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:color-mix(in srgb,var(--landing-primary) 10%,white);color:var(--landing-primary);font-size:25px;font-weight:900}.benefit-grid h3,.process-grid h3{font-size:20px;margin:20px 0 10px}.benefit-grid p,.process-grid p{color:#667085;line-height:1.7;margin:0}.process-section{background:var(--landing-bg)}.process-grid article{position:relative;padding:30px;border-radius:20px;background:#fff;border:1px solid #eaecf0}.process-grid article>b{font-size:48px;color:color-mix(in srgb,var(--landing-primary) 14%,white);letter-spacing:-.05em}.landing-cta{padding:80px 0;background:#fff}.cta-card{min-height:330px;border-radius:28px;padding:54px;display:grid;grid-template-columns:1.15fr .85fr;align-items:center;gap:34px;background:linear-gradient(135deg,var(--landing-primary),var(--landing-secondary));color:#fff;overflow:hidden;box-shadow:0 25px 70px color-mix(in srgb,var(--landing-primary) 28%,transparent)}.cta-card h2{font-size:clamp(34px,4vw,50px);line-height:1.07;letter-spacing:-.04em;margin:0 0 16px}.cta-card p{font-size:17px;line-height:1.7;opacity:.85;max-width:660px}.cta-card img{width:100%;max-height:270px;object-fit:contain}.cta-credit{justify-self:center;width:240px;height:240px;border-radius:50%;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);display:flex;flex-direction:column;align-items:center;justify-content:center;box-shadow:inset 0 0 0 20px rgba(255,255,255,.05)}.cta-credit small{opacity:.75}.cta-credit strong{font-size:72px;line-height:1}.cta-credit span{font-size:13px}.landing-footer{background:#101828;color:#98a2b3;padding:48px 0}.landing-footer .landing-container{display:flex;justify-content:space-between;gap:30px}.landing-footer strong{color:#fff;font-size:20px}.landing-footer p{margin:8px 0 0}.footer-links{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.footer-links a{color:#d0d5dd;font-weight:700;font-size:14px}
@media(max-width:980px){.hero-grid,.cta-card{grid-template-columns:1fr}.hero-visual{max-width:680px;margin:0 auto}.benefit-grid,.process-grid{grid-template-columns:1fr}.cta-credit{display:none}.landing-nav{position:absolute;top:70px;left:20px;right:20px;display:none;flex-direction:column;align-items:stretch;background:#fff;border:1px solid #eaecf0;border-radius:16px;padding:12px;box-shadow:0 20px 50px rgba(16,24,40,.15)}.landing-nav.open{display:flex}.landing-nav .nav-login{margin-left:0}.mobile-menu{display:block}}@media(max-width:640px){.landing-container{width:min(100% - 28px,1180px)}.landing-hero{padding:64px 0}.hero-copy h1{font-size:42px}.mock-body{grid-template-columns:1fr}.mock-body aside{display:none}.mock-content{padding:14px}.mock-stats{grid-template-columns:1fr 1fr}.mock-stats div:last-child{display:none}.landing-section{padding:68px 0}.cta-card{padding:34px 24px}.landing-footer .landing-container{flex-direction:column}.panel-head{flex-direction:column}.image-preview{align-items:flex-start;flex-direction:column}}
.hero-grid.image-left .hero-copy{order:2}.hero-grid.image-left .hero-visual{order:1}.benefit-grid article,.process-grid article{border-radius:var(--landing-radius,20px)}.cta-card{border-radius:var(--landing-radius,28px)}
@media(max-width:980px){.hero-grid.image-left .hero-copy,.hero-grid.image-left .hero-visual{order:initial}}

/* v0.3 product images, editable products and external release packages */
.field-help{display:block;color:var(--muted);font-size:11px;font-weight:600;line-height:1.5}.hidden-field{display:none!important}.admin-product-list{display:grid;gap:18px}.admin-product-card{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;padding:20px;border:1px solid var(--line);border-radius:18px;background:#fbfcff}.admin-product-preview{display:flex;flex-direction:column;gap:12px}.admin-product-preview img,.product-image-placeholder{width:100%;aspect-ratio:590/300;border-radius:14px;object-fit:cover;border:1px solid var(--line);background:#f3f4ff}.product-image-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(135deg,#ede9fe,#dbeafe);color:#4338ca}.product-image-placeholder strong{font-size:34px}.product-image-placeholder span{font-size:12px;font-weight:800;margin-top:5px}.admin-product-fields textarea{min-height:105px}.product-edit-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.product-edit-actions .button{margin-left:auto;min-width:150px}.danger-check{color:#b42318}.release-link{display:inline-block;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badge.external{background:#e0e7ff;color:#3730a3}.badge.upload{background:#dcfce7;color:#166534}.product-card{padding:0;overflow:hidden;display:flex;flex-direction:column}.product-card-media{width:100%;aspect-ratio:590/300;background:#eef2ff;border-bottom:1px solid var(--line);overflow:hidden}.product-card-media img{display:block;width:100%;height:100%;object-fit:cover}.product-card-placeholder{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#ddd6fe,#c7d2fe)}.product-card-placeholder span{width:58px;height:58px;border-radius:17px;background:rgba(255,255,255,.75);display:grid;place-items:center;font-size:20px;font-weight:900}.product-card-body{padding:20px;display:flex;flex-direction:column;flex:1}.product-card-body h2{margin:0 0 10px}.product-card-body p{line-height:1.55;margin:0 0 15px}.product-card-body form{margin-top:auto}.product-catalogue{align-items:start}
@media(max-width:1100px){.admin-product-card{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:820px){.admin-product-card{grid-template-columns:1fr}.product-edit-actions .button{margin-left:0;width:100%}}


/* v0.4 compact plugin catalogue — no product images or descriptions */
.admin-products-compact{display:grid;gap:12px}.admin-product-compact-row{display:grid;grid-template-columns:minmax(250px,1.6fr) minmax(150px,1fr) 105px 115px 90px 120px 105px 105px;gap:12px;align-items:end;padding:16px;border:1px solid var(--line);border-radius:15px;background:#fbfcff}.admin-product-name-field{display:grid;gap:8px}.admin-product-name-field code{justify-self:start;font-size:11px}.compact-check{min-height:43px;align-self:end}.reseller-plugin-panel{padding:0;overflow:hidden}.reseller-plugin-header{display:grid;grid-template-columns:minmax(0,1fr) 180px 180px;gap:14px;padding:14px 22px;background:#f8fafc;border-bottom:1px solid var(--line);color:#667085;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.reseller-plugin-header span:nth-child(n+2){text-align:center}.reseller-plugin-list{display:grid}.reseller-plugin-row{display:grid;grid-template-columns:minmax(0,1fr) 180px 180px;gap:14px;align-items:center;padding:20px 22px;border-bottom:1px solid var(--line);background:#fff;transition:background .18s ease}.reseller-plugin-row:last-child{border-bottom:0}.reseller-plugin-row:hover{background:#fafbff}.reseller-plugin-info h2{font-size:17px;line-height:1.35;margin:0 0 8px}.reseller-plugin-meta{display:flex;gap:8px;flex-wrap:wrap}.reseller-plugin-meta span{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#f1f3f7;color:#667085;font-size:11px;font-weight:800}.reseller-plugin-action{text-align:center}.reseller-plugin-action form{margin:0}.reseller-plugin-action .button{width:100%;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}.download-button{background:#eef2ff;color:#4338ca;border:1px solid #dfe3ff}.download-button:hover{background:#e0e7ff}.reseller-plugin-action .button.primary{box-shadow:0 8px 20px rgba(79,70,229,.16)}
@media(max-width:1250px){.admin-product-compact-row{grid-template-columns:repeat(4,minmax(0,1fr))}.admin-product-name-field{grid-column:span 2}}
@media(max-width:820px){.admin-product-compact-row{grid-template-columns:1fr 1fr}.admin-product-name-field{grid-column:1/-1}.reseller-plugin-header{display:none}.reseller-plugin-row{grid-template-columns:1fr 1fr;padding:18px}.reseller-plugin-info{grid-column:1/-1}.reseller-plugin-action .button{min-height:44px}}
@media(max-width:520px){.admin-product-compact-row,.reseller-plugin-row{grid-template-columns:1fr}.reseller-plugin-info{grid-column:auto}.reseller-plugin-action{width:100%}}
