
:root{
  --bwlp-bg: var(--background, #f5f7fd);
  --bwlp-surface: var(--surface, #ffffff);
  --bwlp-surface-alt: var(--surface-alt, #f7f8ff);
  --bwlp-text: var(--foreground, #050827);
  --bwlp-text-soft: var(--muted-foreground, #7683a7);
  --bwlp-border: var(--border-subtle, #e1e4f2);
  --bwlp-border-strong: var(--border-strong, #c8cde5);
  --bwlp-primary: var(--sidebar-primary, #ff4b4b);
  --bwlp-primary-soft: var(--sidebar-primary-soft, #fff1f2);
  --bwlp-primary-ink: var(--sidebar-primary-foreground, #d90016);
  --bwlp-accent: var(--ring, #5885ff);
  --bwlp-shadow: var(--shadow-soft, 0 18px 45px rgba(5,8,39,.12));
  --bwlp-radius: var(--radius, .75rem);
  --bwlp-radius-lg: var(--radius-xl, 1.5rem);
}

.bwlp-admin-wrap,
.bwlp-account-wrap,
.bwlp-user-dashboard{
  color:var(--bwlp-text);
}

.bwlp-admin-wrap .bwlp-card,
.bwlp-card,
.bwlp-panel,
.bwlp-stat-card,
.bwlp-package-card,
.bwlp-data-card,
.bwlp-subscription-item{
  background:var(--bwlp-surface);
  border:1px solid var(--bwlp-border);
  border-radius:18px;
  padding:22px;
  box-shadow:var(--bwlp-shadow);
}

.bwlp-dashboard-header h2,
.bwlp-account-header h2{
  font-size:1.9rem;
  font-weight:700;
  margin:0 0 8px;
  color:var(--bwlp-text);
}

.bwlp-dashboard-header p,
.bwlp-account-header p,
.bwlp-package-description,
.bwlp-subscription-note,
.bwlp-field small{
  color:var(--bwlp-text-soft);
}

.bwlp-tab-nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:10px;
  background:var(--bwlp-surface);
  border:1px solid var(--bwlp-border);
  border-radius:18px;
  box-shadow:var(--bwlp-shadow);
}

.bwlp-tab-button,
.bwlp-button,
.bwlp-copy,
.bwlp-table .button{
  transition:all .2s ease;
}

.bwlp-tab-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 16px;
  border:1px solid transparent;
  border-radius:999px;
  background:var(--bwlp-surface-alt);
  color:var(--bwlp-text);
  font-weight:600;
  cursor:pointer;
}

.bwlp-tab-button:hover{
  background:#eef2ff;
}

.bwlp-tab-button.is-active{
  background:var(--bwlp-primary-soft);
  color:var(--bwlp-primary-ink);
  border-color:#ffd7dc;
}

.bwlp-button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  background:var(--bwlp-primary);
  color:#fff;
  font-weight:700;
  border:1px solid var(--bwlp-primary);
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(255,75,75,.18);
}

.bwlp-button:hover{
  transform:translateY(-1px);
  opacity:.98;
}

.bwlp-button-secondary,
.bwlp-copy,
.bwlp-page-link{
  background:var(--bwlp-surface-alt);
  color:var(--bwlp-text);
  border:1px solid var(--bwlp-border);
  box-shadow:none;
}

.bwlp-button-danger{
  background:#ff4b4b;
  border-color:#ff4b4b;
  color:#fff;
}

.bwlp-stats-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin-top:18px;
}

.bwlp-stat-card{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#fff 0%,#fbfcff 100%);
}

.bwlp-stat-card:before{
  content:"";
  position:absolute;
  top:0;left:0;right:0;
  height:4px;
  background:linear-gradient(90deg,var(--bwlp-primary),var(--bwlp-accent));
}

.bwlp-stat-card h3{
  margin:0 0 8px;
  font-size:.95rem;
  color:var(--bwlp-text-soft);
  font-weight:600;
}

.bwlp-stat-card p{
  margin:0;
  font-size:2rem;
  font-weight:800;
  letter-spacing:-.03em;
}

.bwlp-form-grid,
.bwlp-subscription-grid,
.bwlp-packages-grid,
.bwlp-analytics-grid{
  display:grid;
  gap:16px;
}

.bwlp-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
.bwlp-subscription-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.bwlp-packages-grid{grid-template-columns:repeat(4,minmax(0,1fr));}
.bwlp-analytics-grid{grid-template-columns:repeat(2,minmax(0,1fr));}

.bwlp-field input,
.bwlp-field textarea,
.bwlp-stack input,
.bwlp-stack textarea,
.bwlp-stack select,
.bwlp-inline-row input{
  width:100%;
  padding:14px 16px;
  border:1px solid var(--bwlp-border);
  border-radius:14px;
  font-size:15px;
  background:#fff;
  color:var(--bwlp-text);
}

.bwlp-field input:focus,
.bwlp-field textarea:focus,
.bwlp-stack input:focus,
.bwlp-stack textarea:focus,
.bwlp-stack select:focus{
  outline:none;
  border-color:var(--bwlp-accent);
  box-shadow:0 0 0 4px rgba(88,133,255,.12);
}

.bwlp-table-wrap{
  overflow:auto;
  border:1px solid var(--bwlp-border);
  border-radius:18px;
  background:#fff;
}

.bwlp-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
}

.bwlp-table thead th{
  position:sticky;
  top:0;
  background:linear-gradient(180deg,#fff,#f9faff);
  color:var(--bwlp-text-soft);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  font-weight:700;
  padding:16px 18px;
  border-bottom:1px solid var(--bwlp-border);
}

.bwlp-table tbody td{
  padding:18px;
  vertical-align:middle;
  border-bottom:1px solid #eef1f7;
  background:#fff;
}

.bwlp-table tbody tr:nth-child(even) td{
  background:#fcfcff;
}

.bwlp-table tbody tr:hover td{
  background:#f8faff;
}

.bwlp-table td a{
  color:var(--bwlp-text);
  font-weight:600;
  word-break:break-word;
}

.bwlp-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.bwlp-status{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.bwlp-status-active{background:#e9fbf0;color:#157347;}
.bwlp-status-disabled{background:#fff0f1;color:#d90016;}
.bwlp-status-expired{background:#fff6e6;color:#b56a00;}

.bwlp-graph-card{
  background:linear-gradient(180deg,#fff,#f9fbff);
  border:1px solid var(--bwlp-border);
  border-radius:18px;
  padding:16px 12px 8px;
  overflow:auto;
}

.bwlp-line-graph{width:100%;min-width:720px;height:auto;display:block}
.bwlp-axis{stroke:#dfe4f2;stroke-width:1.5}
.bwlp-graph-stroke{stroke:#ff4b4b;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
.bwlp-graph-point{fill:#fff;stroke:#ff4b4b;stroke-width:3}
.bwlp-axis-label{fill:#7a86a8;font-size:11px;font-weight:600}

.bwlp-top-links{
  list-style:none;
  padding:0;
  margin:0;
}

.bwlp-top-links li,
.bwlp-feature-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 0;
  border-bottom:1px solid #edf0f7;
}

.bwlp-top-links li:last-child,
.bwlp-feature-row:last-child{border-bottom:0}

.bwlp-feature-row span{color:var(--bwlp-text-soft)}
.bwlp-feature-row strong{font-weight:700;color:var(--bwlp-text)}

.bwlp-package-card{
  display:flex;
  flex-direction:column;
  gap:16px;
  background:linear-gradient(180deg,#fff,#fbfcff);
}

.bwlp-package-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.bwlp-package-kicker{
  margin:0 0 6px;
  text-transform:uppercase;
  font-size:.72rem;
  letter-spacing:.08em;
  color:var(--bwlp-text-soft);
  font-weight:700;
}

.bwlp-package-price{
  margin:0;
  font-size:1.8rem;
  line-height:1;
  font-weight:800;
  letter-spacing:-.04em;
}

.bwlp-package-note{
  color:var(--bwlp-text-soft);
  margin:0;
}

.bwlp-package-pro{
  border-color:#ffd9dd;
  background:linear-gradient(180deg,#fff 0%,#fff7f8 100%);
}

.bwlp-subscription-item{
  background:linear-gradient(180deg,#fff,#f8faff);
}

.bwlp-subscription-item strong{
  display:block;
  margin-bottom:8px;
  color:var(--bwlp-text-soft);
  font-size:.85rem;
}

.bwlp-subscription-item p{
  margin:0;
  font-size:1.05rem;
  font-weight:700;
}

.bwlp-usage-list{
  list-style:none;
  padding:0;
  margin:0;
}

.bwlp-usage-list li{
  padding:10px 0;
  border-bottom:1px solid #edf0f7;
}

.bwlp-pagination{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:16px;
}

.bwlp-page-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:40px;
  height:40px;
  border-radius:12px;
  text-decoration:none;
  font-weight:700;
}

.bwlp-page-link.is-active{
  background:var(--bwlp-primary);
  color:#fff;
  border-color:var(--bwlp-primary);
}

.bwlp-live-result{
  margin-top:16px;
  padding:16px;
  border:1px solid #ffd9dd;
  background:#fff7f8;
  border-radius:16px;
}

.bwlp-latest-qr,
.bwlp-logo-preview{
  display:block;
  max-width:220px;
  height:auto;
  margin-top:12px;
  border:1px solid var(--bwlp-border);
  border-radius:16px;
  background:#fff;
}

.bwlp-notice,
.bwlp-form-success,
.bwlp-form-error{
  border-radius:16px;
  padding:14px 16px;
}

.bwlp-notice-success,.bwlp-form-success{background:#eefcf3;border:1px solid #ccefd8;color:#136f41}
.bwlp-notice-error,.bwlp-form-error{background:#fff4f5;border:1px solid #ffd7dc;color:#b42318}

.bwlp-pre,
.bwlp-code-block{
  background:#101828;
  color:#f8fafc;
  border-radius:16px;
  padding:16px;
  overflow:auto;
}

@media (max-width:1200px){
  .bwlp-packages-grid,.bwlp-subscription-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:900px){
  .bwlp-form-grid,.bwlp-analytics-grid,.bwlp-stats-grid,.bwlp-user-auth-grid,.bwlp-two-col{grid-template-columns:1fr;}
}
@media (max-width:700px){
  .bwlp-packages-grid,.bwlp-subscription-grid{grid-template-columns:1fr;}
  .bwlp-tab-nav{padding:8px}
}

.bwlp-top-space{margin-top:18px}
.bwlp-stack select{
  width:100%;
  padding:14px 16px;
  border:1px solid var(--bwlp-border);
  border-radius:14px;
  font-size:15px;
  background:#fff;
  color:var(--bwlp-text);
}

.bwlp-qr-style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:12px}
.bwlp-qr-style-card{position:relative;display:flex;flex-direction:column;gap:10px;padding:12px;border:1px solid var(--bwlp-border);border-radius:18px;background:#fff;cursor:pointer;box-shadow:var(--bwlp-shadow)}
.bwlp-qr-style-card input{position:absolute;opacity:0;pointer-events:none}
.bwlp-qr-style-card.is-active,.bwlp-qr-style-card:has(input:checked){border-color:var(--bwlp-primary);box-shadow:0 0 0 3px rgba(255,75,75,.10)}
.bwlp-qr-style-thumb{display:block;border-radius:14px;background:#f8fafc;padding:8px;border:1px solid var(--bwlp-border)}
.bwlp-qr-style-thumb img{display:block;width:100%;height:auto;border-radius:10px}
.bwlp-qr-style-title{display:block;font-weight:700;text-align:center}
@media (max-width:900px){.bwlp-qr-style-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:560px){.bwlp-qr-style-grid{grid-template-columns:1fr;}}

.bwlp-admin-wrap ul code{
  background: var(--bwlp-surface-alt, #f7f8ff);
  padding: 2px 6px;
  border-radius: 8px;
}

.bwlp-form-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.bwlp-form-grid p,.bwlp-stack label{margin:0}
.bwlp-form-grid p label,.bwlp-stack label{display:flex;flex-direction:column;gap:8px;font-weight:600;color:var(--bwlp-text)}
.bwlp-grid.bwlp-two-col{display:grid;grid-template-columns:1.1fr .9fr;gap:18px;align-items:start}
.bwlp-card h3 + .bwlp-form-grid,
.bwlp-card h3 + .bwlp-stack,
.bwlp-card h3 + .bwlp-grid{margin-top:14px}
.bwlp-card input[type="text"],
.bwlp-card input[type="url"],
.bwlp-card input[type="email"],
.bwlp-card input[type="password"],
.bwlp-card input[type="datetime-local"],
.bwlp-card input[type="number"],
.bwlp-card textarea,
.bwlp-card select{
  width:100%;
  min-height:48px;
  padding:12px 14px;
  border:1px solid var(--bwlp-border);
  border-radius:14px;
  background:#fff;
  box-shadow:inset 0 1px 2px rgba(16,24,40,.03);
}
.bwlp-card textarea{min-height:110px;resize:vertical}
.bwlp-card input:focus,.bwlp-card textarea:focus,.bwlp-card select:focus{
  outline:none;
  border-color:var(--bwlp-primary);
  box-shadow:0 0 0 4px rgba(255,75,75,.12);
}
.bwlp-inline-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.bwlp-inline-row input{flex:1 1 260px}
.bwlp-latest-qr,.bwlp-logo-preview{max-width:120px;border-radius:14px}
.bwlp-qr-style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:10px}
.bwlp-qr-style-option{position:relative}
.bwlp-qr-style-option input{position:absolute;opacity:0;pointer-events:none}
.bwlp-qr-style-card{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;
  padding:12px;border:1px solid var(--bwlp-border);border-radius:16px;background:var(--bwlp-surface-alt);cursor:pointer;
}
.bwlp-qr-style-option input:checked + .bwlp-qr-style-card{
  border-color:var(--bwlp-primary);box-shadow:0 0 0 4px rgba(255,75,75,.10);background:#fff;
}
.bwlp-qr-style-card img{width:76px;height:76px;object-fit:contain;border-radius:12px;background:#fff}
.bwlp-qr-style-card span{font-size:.9rem;font-weight:700}
@media (max-width:1100px){.bwlp-grid.bwlp-two-col,.bwlp-form-grid{grid-template-columns:1fr}.bwlp-qr-style-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:640px){.bwlp-qr-style-grid{grid-template-columns:1fr 1fr}.bwlp-card{padding:18px}}

.bwlp-qr-editor-card{
  margin-top:14px;
  padding:18px;
  border:1px solid var(--bwlp-border);
  border-radius:18px;
  background:linear-gradient(180deg,#fff,#fbfcff);
}
.bwlp-qr-editor-head h4{
  margin:0 0 6px;
  font-size:1.15rem;
  font-weight:800;
}
.bwlp-qr-editor-head h4 span{
  color:var(--bwlp-text-soft);
  font-weight:500;
}
.bwlp-qr-editor-head p{
  margin:0 0 12px;
  color:var(--bwlp-text-soft);
}
.bwlp-qr-editor-section + .bwlp-qr-editor-section{
  margin-top:16px;
}
.bwlp-qr-editor-label{
  margin-bottom:10px;
  font-size:.8rem;
  font-weight:800;
  letter-spacing:.08em;
  color:var(--bwlp-text-soft);
}
.bwlp-qr-style-grid-compact{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
}
.bwlp-qr-style-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.bwlp-qr-style-card{
  min-height:132px;
  justify-content:space-between;
}
.bwlp-qr-style-thumb{
  display:flex;
  align-items:center;
  justify-content:center;
}
.bwlp-qr-style-thumb img{
  width:62px;
  height:62px;
  object-fit:contain;
}
.bwlp-qr-style-title{
  font-size:.84rem;
}
@media (max-width:1100px){
  .bwlp-qr-style-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:640px){
  .bwlp-qr-style-grid-compact,
  .bwlp-qr-style-grid-2{grid-template-columns:1fr 1fr;}
}

.bwlp-qr-style-thumb-svg svg{
  width:62px;
  height:62px;
  display:block;
}
.bwlp-qr-editor-live-preview{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:14px;
  align-items:center;
  margin-bottom:14px;
  padding:12px;
  border:1px dashed var(--bwlp-border-strong,#c8cde5);
  border-radius:16px;
  background:#fff;
}
.bwlp-qr-live-box{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:120px;
  border:1px solid var(--bwlp-border);
  border-radius:14px;
  background:var(--bwlp-surface-alt,#f7f8ff);
}
.bwlp-qr-live-preview-img{
  width:96px;
  height:96px;
  object-fit:contain;
}
.bwlp-qr-live-meta strong{
  display:block;
  margin-bottom:6px;
}
.bwlp-qr-live-meta p{
  margin:0 0 8px;
  color:var(--bwlp-text-soft);
}
.bwlp-qr-live-meta code{
  display:block;
  padding:8px 10px;
  border-radius:12px;
  background:#101828;
  color:#fff;
  word-break:break-all;
}
@media (max-width:800px){
  .bwlp-qr-editor-live-preview{grid-template-columns:1fr}
}


/* v3.1.6.3 My QR Branding single-row layout */
.bwlp-branding-row{
  display:grid;
  grid-template-columns:minmax(260px,320px) minmax(0,1fr) minmax(220px,260px);
  gap:18px;
  align-items:start;
}
.bwlp-branding-logo-panel,
.bwlp-branding-designer-panel,
.bwlp-branding-prefix-panel{
  min-width:0;
}
.bwlp-branding-logo-panel .bwlp-logo-preview{
  max-width:110px;
}
.bwlp-branding-prefix-panel{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.bwlp-branding-prefix-panel .bwlp-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.bwlp-branding-prefix-panel .bwlp-button{
  width:100%;
}
.bwlp-branding-prefix-panel p{
  margin:0;
}
.bwlp-branding-designer-panel .bwlp-qr-editor-card{
  margin-top:0;
}
.bwlp-branding-designer-panel .bwlp-qr-style-grid-compact{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
@media (max-width:1280px){
  .bwlp-branding-row{
    grid-template-columns:1fr;
  }
}


/* v3.1.6.4 account content stack cleanup */
.bwlp-account-wrap .bwlp-stats-grid,
.bwlp-account-wrap .bwlp-analytics-grid,
.bwlp-account-wrap .bwlp-form-grid,
.bwlp-account-wrap .bwlp-subscription-grid,
.bwlp-account-wrap .bwlp-user-auth-grid,
.bwlp-account-wrap .bwlp-grid.bwlp-two-col,
.bwlp-account-wrap .bwlp-branding-row{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:16px !important;
}

.bwlp-account-wrap .bwlp-card,
.bwlp-account-wrap .bwlp-panel,
.bwlp-account-wrap .bwlp-package-card,
.bwlp-account-wrap .bwlp-data-card,
.bwlp-account-wrap .bwlp-subscription-item,
.bwlp-account-wrap .bwlp-stat-card{
  width:100%;
  max-width:100%;
}

.bwlp-account-wrap .bwlp-packages-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.bwlp-account-wrap .bwlp-package-head,
.bwlp-account-wrap .bwlp-subscription-actions,
.bwlp-account-wrap .bwlp-actions,
.bwlp-account-wrap .bwlp-inline-row{
  flex-wrap:wrap;
}

.bwlp-account-wrap .bwlp-qr-editor-live-preview{
  grid-template-columns:1fr;
}

.bwlp-account-wrap .bwlp-qr-style-grid-compact,
.bwlp-account-wrap .bwlp-qr-style-grid,
.bwlp-account-wrap .bwlp-qr-style-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.bwlp-account-wrap .bwlp-qr-style-card{
  min-height:118px;
}

.bwlp-account-wrap .bwlp-qr-live-box{
  min-height:100px;
}

.bwlp-account-wrap .bwlp-qr-live-preview-img{
  width:84px;
  height:84px;
}

.bwlp-account-wrap .bwlp-table-wrap{
  overflow:auto;
}

.bwlp-account-wrap .bwlp-table{
  min-width:860px;
}

.bwlp-account-wrap .bwlp-branding-logo-panel,
.bwlp-account-wrap .bwlp-branding-designer-panel,
.bwlp-account-wrap .bwlp-branding-prefix-panel{
  width:100%;
  max-width:100%;
}

.bwlp-account-wrap .bwlp-pre,
.bwlp-account-wrap .bwlp-code-block{
  white-space:pre-wrap;
  word-break:break-word;
}

.bwlp-account-wrap .bwlp-logo-preview,
.bwlp-account-wrap .bwlp-latest-qr{
  max-width:96px;
}

.bwlp-account-wrap .bwlp-tab-panel > .bwlp-card + .bwlp-card,
.bwlp-account-wrap .bwlp-tab-panel > .bwlp-card + .bwlp-panel,
.bwlp-account-wrap .bwlp-tab-panel > .bwlp-panel + .bwlp-card{
  margin-top:16px;
}

@media (max-width:700px){
  .bwlp-account-wrap .bwlp-qr-style-grid-compact,
  .bwlp-account-wrap .bwlp-qr-style-grid,
  .bwlp-account-wrap .bwlp-qr-style-grid-2{
    grid-template-columns:1fr 1fr;
  }
}


/* v3.1.6.5 restore account layout */
.bwlp-user-dashboard .bwlp-grid.bwlp-two-col{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:16px !important;
}
.bwlp-user-dashboard .bwlp-stats-grid,
.bwlp-user-dashboard .bwlp-analytics-grid,
.bwlp-user-dashboard .bwlp-form-grid,
.bwlp-user-dashboard .bwlp-subscription-grid,
.bwlp-user-dashboard .bwlp-user-auth-grid{
  grid-template-columns:1fr !important;
}
.bwlp-branding-stack{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.bwlp-branding-section{
  width:100%;
}
.bwlp-branding-designer-panel form{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.bwlp-branding-prefix-panel{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.bwlp-qr-editor-live-preview{
  grid-template-columns:120px 1fr;
}
.bwlp-live-result{
  display:block;
}
.bwlp-latest-qr,
.bwlp-logo-preview{
  max-width:120px;
}
.bwlp-qr-style-grid-compact{
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.bwlp-qr-style-grid-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.bwlp-qr-style-card{
  min-height:132px;
}
.bwlp-qr-live-box{
  min-height:120px;
}
.bwlp-qr-live-preview-img{
  width:96px;
  height:96px;
}
.bwlp-user-dashboard .bwlp-pre,
.bwlp-user-dashboard code{
  word-break:break-word;
}
@media (max-width:1100px){
  .bwlp-qr-style-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:800px){
  .bwlp-qr-editor-live-preview{grid-template-columns:1fr;}
}

/* v3.2.0 local QR designer */
.bwlp-user-dashboard .bwlp-grid.bwlp-two-col{display:grid;grid-template-columns:1fr;gap:16px}
.bwlp-branding-stack{display:flex;flex-direction:column;gap:16px}
.bwlp-branding-designer-panel form{display:flex;flex-direction:column;gap:16px}
.bwlp-qr-live-render svg{width:96px;height:96px;display:block}
.bwlp-qr-live-render{display:flex;align-items:center;justify-content:center}
.bwlp-qr-live-preview-img-fallback{display:none;max-width:96px;max-height:96px}
.bwlp-latest-qr{max-width:120px;max-height:120px}
.bwlp-qr-editor-live-preview{grid-template-columns:120px 1fr}
.bwlp-qr-style-grid-compact{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (max-width:1100px){.bwlp-qr-style-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media (max-width:800px){.bwlp-qr-editor-live-preview{grid-template-columns:1fr;}}

/* v3.4.0 premium qr designer */
.bwlp-premium-qr-shell{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,.7fr);gap:20px;align-items:start}
.bwlp-premium-qr-main,.bwlp-premium-qr-side{background:linear-gradient(180deg,#ffffff,#fbfcff);border:1px solid var(--bwlp-border);border-radius:22px;padding:22px}
.bwlp-premium-qr-step{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}
.bwlp-step-number{display:inline-flex;width:32px;height:32px;align-items:center;justify-content:center;border-radius:999px;background:var(--bwlp-primary-soft);color:var(--bwlp-primary-ink);font-weight:800;flex:0 0 32px}
.bwlp-premium-qr-step h4{margin:0 0 4px;font-size:1.15rem}
.bwlp-premium-qr-step p{margin:0;color:var(--bwlp-text-soft)}
.bwlp-premium-url-box{margin-bottom:18px}
.bwlp-premium-url-input{width:100%;min-height:58px;padding:16px 18px;border:1px solid var(--bwlp-border);border-radius:16px;background:#fff;font-size:1rem}
.bwlp-premium-qr-tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.bwlp-premium-tab{appearance:none;border:0;background:#eef2ff;color:var(--bwlp-text-soft);font-weight:700;padding:10px 14px;border-radius:999px;cursor:pointer}
.bwlp-premium-tab.is-active{background:var(--bwlp-primary-soft);color:var(--bwlp-primary-ink)}
.bwlp-premium-tab-panel{display:none}
.bwlp-premium-tab-panel.is-active{display:block}
.bwlp-premium-section-label{margin-bottom:10px;font-size:.78rem;font-weight:800;letter-spacing:.08em;color:var(--bwlp-text-soft)}
.bwlp-premium-section-label-spaced{margin-top:16px}
.bwlp-premium-logo-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:16px}
.bwlp-premium-logo-card{border:1px solid var(--bwlp-border);border-radius:18px;padding:16px;background:#fff}
.bwlp-premium-upload-note{margin:0 0 12px;color:var(--bwlp-text-soft)}
.bwlp-logo-placeholder{display:flex;min-height:110px;align-items:center;justify-content:center;border:1px dashed var(--bwlp-border);border-radius:16px;color:var(--bwlp-text-soft);margin-bottom:10px}
.bwlp-premium-prefix-wrap input{width:100%;min-height:52px;padding:14px 16px;border:1px solid var(--bwlp-border);border-radius:14px;background:#fff}
.bwlp-premium-form-actions{margin-top:16px;display:flex;gap:10px}
.bwlp-premium-preview-card{display:flex;align-items:center;justify-content:center;min-height:320px;border:1px solid var(--bwlp-border);border-radius:22px;background:#fff;padding:20px}
.bwlp-qr-live-render-large svg{width:min(320px,100%);height:auto}
.bwlp-premium-preview-url{margin:14px 0 0}
.bwlp-premium-preview-url code{display:block;white-space:normal}
.bwlp-premium-downloads{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.bwlp-button-download{justify-content:center}
.bwlp-user-dashboard .bwlp-grid.bwlp-two-col{display:grid;grid-template-columns:1fr;gap:16px}
.bwlp-user-dashboard .bwlp-stats-grid,.bwlp-user-dashboard .bwlp-analytics-grid,.bwlp-user-dashboard .bwlp-form-grid,.bwlp-user-dashboard .bwlp-subscription-grid,.bwlp-user-dashboard .bwlp-user-auth-grid{grid-template-columns:1fr!important}
.bwlp-qr-style-grid-compact{grid-template-columns:repeat(4,minmax(0,1fr))}
.bwlp-qr-style-card.is-active{border-color:var(--bwlp-primary);box-shadow:0 0 0 4px rgba(255,75,75,.10);background:#fff}
.bwlp-logo-preview{max-width:120px;max-height:120px}
@media (max-width:1100px){.bwlp-premium-qr-shell{grid-template-columns:1fr}.bwlp-premium-logo-grid{grid-template-columns:1fr}.bwlp-qr-style-grid-compact{grid-template-columns:repeat(2,minmax(0,1fr));}}

/* v3.5.0 product ready polish */
.bwlp-user-dashboard .bwlp-form-success,
.bwlp-user-dashboard .bwlp-form-error{margin-top:12px}
.bwlp-user-dashboard .bwlp-premium-preview-card{box-shadow:0 12px 30px rgba(16,24,40,.06)}
.bwlp-user-dashboard .bwlp-table td,.bwlp-user-dashboard .bwlp-table th{vertical-align:middle}
.bwlp-user-dashboard .bwlp-qr-style-card{transition:transform .15s ease, box-shadow .15s ease}
.bwlp-user-dashboard .bwlp-qr-style-card:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(16,24,40,.08)}


/* v3.6.3 short URL scoped notices */
.bwlp-table-success,
.bwlp-table-error{
  margin-bottom: 14px;
}


/* v3.6.4 current-link QR save */
.bwlp-branding-success,
.bwlp-branding-error{
  margin-top: 12px;
}


/* v3.6.6 sanity cleanup */
.bwlp-scoped-notice,
.bwlp-table-success,
.bwlp-table-error,
.bwlp-branding-success,
.bwlp-branding-error,
.bwlp-form-success,
.bwlp-form-error{
  margin-bottom: 14px;
}
