*{box-sizing:border-box} :root{font-family:Inter,"Plus Jakarta Sans",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#0f172a;background:#f8fafc}body{margin:0}.page-bg{min-height:100vh;background:radial-gradient(circle at top left,#ffedd5 0,transparent 35%),linear-gradient(135deg,#f8fafc,#eef2f7);padding:36px 16px}.auth-wrap{width:min(100%,1040px);margin:0 auto}.auth-wrap:has(.form-stack){max-width:480px}.brand{display:flex;align-items:center;gap:12px;margin:0 auto 22px;max-width:100%;color:#0f172a}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#c2410c;color:white;font-size:22px;font-weight:900;box-shadow:0 8px 20px #c2410c30}.brand-name{font-size:18px;font-weight:850;letter-spacing:-.03em}.brand-sub{font-size:11px;color:#64748b;margin-top:2px}.panel,.section-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 18px 50px rgba(15,23,42,.06);padding:26px;margin-bottom:20px}.panel-head{margin-bottom:22px}.panel-head h1{font-size:26px;line-height:1.2;margin:0 0 8px;letter-spacing:-.04em}.panel-head p{margin:0;color:#64748b;font-size:14px;line-height:1.6}.form-stack{display:grid;gap:16px}.form-stack label,.code-form label{display:grid;gap:7px;font-size:13px;font-weight:750;color:#334155}.form-stack input,.code-form input,.code-form select{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:12px;padding:12px 13px;background:#fff;color:#0f172a;font:500 14px inherit;outline:none}.form-stack input:focus,.code-form input:focus,.code-form select:focus{border-color:#ea580c;box-shadow:0 0 0 3px #fb923c25}.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:11px;padding:10px 14px;font-size:13px;font-weight:800;text-decoration:none;cursor:pointer;white-space:nowrap}.btn-primary{background:#c2410c;color:#fff}.btn-primary:hover{background:#9a3412}.btn-dark{background:#0f172a;color:#fff}.btn-light{background:#fff;border-color:#cbd5e1;color:#334155}.btn-danger{background:#fff1f2;border-color:#fecdd3;color:#be123c}.btn-full{width:100%;padding:13px}.btn-small{font-size:11px;padding:7px 9px}.form-bottom{margin-top:18px;text-align:center;color:#64748b;font-size:13px}.form-bottom a{color:#c2410c;font-weight:800;text-decoration:none}.muted{color:#64748b;font-weight:500}.small{font-size:12px}.tiny{font-size:10px}.footer-note{text-align:center;color:#94a3b8;font-size:11px;margin:18px 0}.notice{padding:12px 14px;border-radius:12px;margin:0 0 16px;font-size:13px;line-height:1.55}.notice-error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}.notice-success{background:#ecfdf5;border:1px solid #a7f3d0;color:#065f46}.notice-info{background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8}.notice p{margin-bottom:0}.admin-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:20px}.admin-welcome{font-size:24px;font-weight:850;letter-spacing:-.04em;margin-top:4px}.eyebrow{font-size:10px;font-weight:900;letter-spacing:.15em;color:#c2410c}.admin-actions{display:flex;align-items:center;gap:8px}.admin-actions form{margin:0}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.stat-card{background:#fff;border:1px solid #e2e8f0;border-radius:17px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.03)}.stat-number{font-size:30px;font-weight:900;letter-spacing:-.05em;margin-top:5px}.section-card{padding:22px;margin-bottom:18px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}.section-title h2{font-size:17px;letter-spacing:-.03em;margin:0 0 5px}.section-title p{font-size:12px;line-height:1.5;color:#64748b;margin:0}.code-form{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(150px,.8fr) auto;align-items:end;gap:12px}.table-wrap{overflow:auto;width:100%;border:1px solid #e2e8f0;border-radius:14px}table{border-collapse:collapse;width:100%;min-width:780px;font-size:12px;text-align:left}th{background:#f8fafc;color:#64748b;font-size:10px;letter-spacing:.06em;text-transform:uppercase;font-weight:900}td,th{padding:12px 13px;border-bottom:1px solid #e2e8f0;vertical-align:top}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fffaf5}.row-actions{display:flex;flex-wrap:wrap;gap:6px}.row-actions form{margin:0}.pill{display:inline-flex;padding:4px 8px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:10px;font-weight:850;white-space:nowrap}.pill-green{background:#dcfce7;color:#166534}.pill-red{background:#ffe4e6;color:#9f1239}.pill-muted{background:#f1f5f9;color:#64748b}.empty{text-align:center;color:#94a3b8;padding:28px!important}.code-reveal{border:1px solid #fdba74;background:#fff7ed;border-radius:16px;padding:18px;margin-bottom:18px;color:#7c2d12}.code-value{font:900 24px ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.05em;margin:10px 0;overflow-wrap:anywhere}.code-reveal p{font-size:12px;line-height:1.5}.code-reveal .btn{margin-top:4px}@media(max-width:760px){.page-bg{padding:20px 10px}.panel,.section-card{padding:18px;border-radius:17px}.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-top{align-items:flex-start;flex-direction:column}.admin-actions{width:100%;flex-wrap:wrap}.code-form{grid-template-columns:1fr}.code-form .btn{width:100%}.panel-head h1{font-size:23px}.stat-number{font-size:26px}}

/* Pengaturan branding aplikasi */
.brand-mark.has-logo{background:#fff;box-shadow:0 8px 20px rgba(15,23,42,.08);padding:3px;overflow:hidden}
.brand-mark.has-logo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:11px}
.settings-intro{margin-bottom:18px}
.settings-heading{font-size:20px;letter-spacing:-.035em;margin:5px 0}
.settings-form{max-width:100%}
.logo-field{display:grid;gap:10px}
.logo-field>label:first-child{display:grid;gap:5px;font-size:13px;font-weight:750;color:#334155}
.logo-field input[type=file]{display:block;width:100%;max-width:100%;border:1px dashed #cbd5e1;border-radius:12px;padding:12px;background:#f8fafc;font:500 13px inherit}
.logo-preview{display:flex;align-items:center;gap:13px;padding:13px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;color:#64748b;font-size:12px}
.logo-preview img{width:68px;height:68px;object-fit:contain;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:5px}
.logo-preview-empty .brand-mark{flex:0 0 46px}
.checkbox-line{display:flex!important;grid-template-columns:auto 1fr;align-items:center;gap:8px!important;font-weight:600!important;color:#475569!important}
.checkbox-line input{width:16px;height:16px;accent-color:#c2410c}
.settings-actions{display:flex;gap:9px;flex-wrap:wrap}
.settings-note{margin-top:18px}


/* Bulk activation-code generator */
.bulk-form{display:grid;gap:15px}
.bulk-form label{display:grid;gap:7px;font-size:13px;font-weight:750;color:#334155}
.bulk-form textarea,.bulk-form select{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:12px;padding:12px 13px;background:#fff;color:#0f172a;font:500 14px inherit;outline:none}
.bulk-form textarea{resize:vertical;min-height:150px;line-height:1.55}
.bulk-form textarea:focus,.bulk-form select:focus{border-color:#ea580c;box-shadow:0 0 0 3px #fb923c25}
.bulk-form-bottom{display:grid;grid-template-columns:minmax(160px,220px) minmax(180px,1fr) auto;align-items:end;gap:14px}
.bulk-form-bottom p{margin:0 0 3px;line-height:1.5}
@media(max-width:720px){.bulk-form-bottom{grid-template-columns:1fr}.bulk-form-bottom .btn{width:100%}}


/* Activation-code expiry editor */
.expiry-form{display:grid;gap:7px;min-width:210px;max-width:270px;padding:9px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc}
.expiry-label{display:grid;gap:5px;color:#475569;font-size:11px;font-weight:800}
.expiry-form input[type="datetime-local"]{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:9px;padding:8px;background:#fff;color:#0f172a;font:500 12px inherit}
.expiry-form input[type="datetime-local"]:focus{outline:2px solid #fb923c55;border-color:#ea580c}
.expiry-form .tiny{line-height:1.4}


/* Refined expiry editor for activation codes */
.expiry-editor{display:block;flex-basis:100%;max-width:290px;margin-top:2px}
.expiry-editor>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;user-select:none}
.expiry-editor>summary::-webkit-details-marker{display:none}
.expiry-editor>summary svg{width:14px;height:14px;flex:none}
.expiry-editor[open]{width:100%;max-width:310px;padding:11px;border:1px solid #fed7aa;border-radius:14px;background:linear-gradient(145deg,#fffaf5,#fff);box-shadow:0 8px 22px rgba(124,45,18,.07)}
.expiry-editor[open]>summary{margin-bottom:10px;background:#fff7ed;border-color:#fdba74;color:#9a3412}
.expiry-panel{display:grid;gap:11px}
.expiry-panel-heading{display:grid;gap:4px}
.expiry-panel-heading strong{font-size:12px;color:#7c2d12}
.expiry-panel-heading span{font-size:11px;color:#64748b;line-height:1.4}
.expiry-form{display:grid;gap:9px;min-width:0;max-width:100%;padding:0;border:0;background:transparent}
.expiry-label{display:grid;gap:6px;color:#475569;font-size:11px;font-weight:800}
.expiry-form input[type="datetime-local"]{width:100%;min-width:0;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:10px;padding:9px;background:#fff;color:#0f172a;font:500 12px inherit;outline:none}
.expiry-form input[type="datetime-local"]:focus{border-color:#ea580c;box-shadow:0 0 0 3px #fb923c25}
.expiry-help{margin:0;color:#64748b;font-size:10px;line-height:1.5}
.expiry-form .btn{justify-self:start}
@media(max-width:760px){.expiry-editor,.expiry-editor[open]{max-width:100%}.expiry-form .btn{width:100%;justify-self:stretch}}


/* v11.3 — Modern, responsive bulk activation-code form */
.section-card form.bulk-form{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:18px;
  width:100%;
  margin:0;
  padding:0;
  color:#0f172a;
  font-size:14px;
}
.section-card form.bulk-form>label{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:start;
  gap:8px;
  width:100%;
  margin:0;
  color:#334155;
  font-size:13px;
  font-weight:800;
  line-height:1.45;
}
.section-card form.bulk-form textarea{
  display:block;
  width:100%;
  min-width:0;
  min-height:176px;
  box-sizing:border-box;
  margin:0;
  padding:14px 15px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  color:#0f172a;
  font-family:inherit;
  font-size:14px;
  font-weight:500;
  line-height:1.65;
  resize:vertical;
  outline:none;
  box-shadow:0 1px 2px rgba(15,23,42,.025);
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.section-card form.bulk-form textarea::placeholder{color:#94a3b8;opacity:1}
.section-card form.bulk-form textarea:focus{
  border-color:#ea580c;
  background:#fff;
  box-shadow:0 0 0 4px rgba(234,88,12,.10);
}
.section-card form.bulk-form .bulk-form-bottom{
  display:grid;
  grid-template-columns:minmax(170px,230px) minmax(180px,1fr) auto;
  align-items:end;
  gap:16px;
  width:100%;
  margin:0;
}
.section-card form.bulk-form .bulk-form-bottom>label{
  display:grid;
  gap:8px;
  min-width:0;
  margin:0;
  color:#334155;
  font-size:13px;
  font-weight:800;
  line-height:1.45;
}
.section-card form.bulk-form select{
  display:block;
  width:100%;
  min-width:0;
  box-sizing:border-box;
  min-height:44px;
  margin:0;
  padding:10px 38px 10px 12px;
  border:1px solid #cbd5e1;
  border-radius:12px;
  background-color:#fff;
  color:#0f172a;
  font-family:inherit;
  font-size:14px;
  font-weight:600;
  outline:none;
  cursor:pointer;
  transition:border-color .18s ease,box-shadow .18s ease;
}
.section-card form.bulk-form select:focus{
  border-color:#ea580c;
  box-shadow:0 0 0 4px rgba(234,88,12,.10);
}
.section-card form.bulk-form .bulk-form-bottom p{
  margin:0 0 2px;
  color:#64748b;
  font-size:12px;
  font-weight:500;
  line-height:1.65;
}
.section-card form.bulk-form .bulk-form-bottom .btn{
  min-height:44px;
  justify-self:end;
  white-space:nowrap;
  padding:11px 18px;
  border-radius:12px;
  box-shadow:0 5px 12px rgba(194,65,12,.12);
}
@media(max-width:820px){
  .section-card form.bulk-form .bulk-form-bottom{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:start;
  }
  .section-card form.bulk-form .bulk-form-bottom p{grid-column:1/-1;grid-row:2}
  .section-card form.bulk-form .bulk-form-bottom .btn{grid-column:1/-1;grid-row:3;justify-self:stretch;width:100%}
}
@media(max-width:520px){
  .section-card form.bulk-form{gap:14px}
  .section-card form.bulk-form textarea{min-height:150px;padding:12px}
  .section-card form.bulk-form .bulk-form-bottom{grid-template-columns:minmax(0,1fr);gap:12px}
  .section-card form.bulk-form .bulk-form-bottom p,
  .section-card form.bulk-form .bulk-form-bottom .btn{grid-column:auto;grid-row:auto}
}
