:root{
  --bg:#070707;
  --panel:#0f0f10;
  --panel2:#0b0b0c;
  --text:#f2f2f2;
  --muted:#a8a8a8;
  --line:rgba(255,255,255,.10);
  --yellow:#ffd400;
  --yellow2:#ffb800;
  --shadow:0 12px 40px rgba(0,0,0,.45);
  --radius:18px;
  --radius2:14px;
  --sidebar-w:240px;
  --container-pad:18px;
}

*{
  box-sizing:border-box;
  min-width:0;
}

html,
body{
  height:100%;
  width:100%;
  max-width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,"Noto Sans","Apple Color Emoji","Segoe UI Emoji";
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255,212,0,.16), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(255,184,0,.12), transparent 55%),
    var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  text-rendering:optimizeLegibility;
}

img,
svg,
video,
canvas{
  max-width:100%;
  height:auto;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

h1{
  margin:0 0 10px 0;
  font-size:26px;
  line-height:1.2;
}

h2{
  margin:0 0 10px 0;
  font-size:18px;
  line-height:1.25;
}

h3{
  margin:0 0 8px 0;
  font-size:16px;
  line-height:1.25;
}

p{
  margin:0 0 10px 0;
  line-height:1.5;
}

.muted{color:var(--muted)}
.small{font-size:12px}

.topbar{
  position:sticky;
  top:0;
  z-index:20;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(5,5,6,.72);
  backdrop-filter:blur(10px);
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}

.dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:var(--yellow);
  box-shadow:0 0 0 4px rgba(255,212,0,.12);
  flex:0 0 auto;
}

.top-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.chip{
  padding:7px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);
  font-size:12px;
  white-space:nowrap;
}

.container{
  width:100%;
  max-width:100%;
  margin:22px 0;
  padding:0 var(--container-pad);
}

.grid-center{
  min-height:calc(100vh - 110px);
  display:grid;
  place-items:center;
}

.split{
  display:grid;
  grid-template-columns:var(--sidebar-w) minmax(0,1fr);
  gap:18px;
  width:100%;
  max-width:100%;
  align-items:start;
}

.sidenav{
  position:sticky;
  top:78px;
  align-self:start;
  background:rgba(255,255,255,.04);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:10px;
  box-shadow:var(--shadow);
  width:100%;
}

.navitem{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  margin:6px 0;
  background:transparent;
  border:1px solid transparent;
  color:var(--text);
  transition:.2s ease;
  line-height:1.3;
}

.navicon{
  width:14px;
  min-width:14px;
  text-align:center;
  opacity:.9;
}

.navitem:hover,
.navitem.active{
  background:rgba(255,212,0,.08);
  border-color:rgba(255,212,0,.20);
}

.content{
  min-width:0;
  width:100%;
  max-width:100%;
}

.card{
  width:100%;
  max-width:100%;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  box-shadow:var(--shadow);
  margin:12px 0;
  overflow:hidden;
}

.card-auth{
  max-width:420px;
  width:100%;
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:12px 0;
}

.kpi{
  background:rgba(0,0,0,.22);
  border:1px solid var(--line);
  border-radius:var(--radius2);
  padding:12px;
}

.kpi-label{
  color:var(--muted);
  font-size:12px;
}

.kpi-value{
  font-size:22px;
  font-weight:800;
  margin-top:6px;
  line-height:1.2;
}

.form{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.grid-2{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.span-2{
  grid-column:1 / -1;
}

label{
  display:block;
  margin-bottom:6px;
  font-size:12px;
  color:var(--muted);
  line-height:1.35;
}

.input,
select.input,
textarea.input{
  width:100%;
  max-width:100%;
  padding:12px 12px;
  border-radius:14px;
  background:rgba(0,0,0,.25);
  border:1px solid var(--line);
  color:var(--text);
  outline:none;
  appearance:none;
  font:inherit;
}

textarea.input{
  min-height:110px;
  resize:vertical;
}

.input:focus,
select.input:focus,
textarea.input:focus{
  border-color:rgba(255,212,0,.45);
  box-shadow:0 0 0 3px rgba(255,212,0,.12);
}

.check{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,212,0,.35);
  background:linear-gradient(180deg, rgba(255,212,0,.95), rgba(255,184,0,.95));
  color:#121212;
  font-weight:800;
  cursor:pointer;
  transition:.2s ease;
  text-align:center;
  white-space:nowrap;
}

.btn:hover{
  filter:brightness(1.02);
  transform:translateY(-1px);
}

.btn-ghost{
  background:rgba(255,255,255,.06);
  color:var(--text);
  border:1px solid var(--line);
}

.btn-ghost:hover{
  border-color:rgba(255,212,0,.25);
  background:rgba(255,212,0,.08);
}

.toast{
  border-radius:14px;
  padding:10px 12px;
  border:1px solid var(--line);
  margin:10px 0;
  line-height:1.45;
}

.toast.ok{
  background:rgba(34,197,94,.10);
  border-color:rgba(34,197,94,.25);
}

.toast.err{
  background:rgba(239,68,68,.10);
  border-color:rgba(239,68,68,.25);
}

.table-wrap{
  width:100%;
  max-width:100%;
  overflow:auto;
  border-radius:14px;
  border:1px solid var(--line);
  -webkit-overflow-scrolling:touch;
}

.table{
  width:100%;
  border-collapse:collapse;
  min-width:980px;
  background:rgba(0,0,0,.16);
}

.table th,
.table td{
  padding:10px 10px;
  border-bottom:1px solid var(--line);
  text-align:left;
  font-size:13px;
  vertical-align:middle;
}

.table td{
  word-break:break-word;
}

.table th{
  color:var(--muted);
  font-weight:700;
  background:rgba(255,255,255,.02);
  white-space:nowrap;
}

.table tr:hover td{
  background:rgba(255,212,0,.05);
}

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-size:12px;
  line-height:1.2;
  white-space:nowrap;
}

.pill-ok{
  border-color:rgba(34,197,94,.35);
  background:rgba(34,197,94,.10);
}

.pill-warn{
  border-color:rgba(255,212,0,.35);
  background:rgba(255,212,0,.10);
}

.pill-idle{
  background:rgba(255,255,255,.05);
}

.list{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.list li{
  padding:10px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.18);
}

.tabs{
  display:flex;
  gap:10px;
  flex-wrap:nowrap;
}

.tabs.slider-tabs{
  display:flex;
  align-items:center;
  gap:10px;
  overflow-x:auto;
  overflow-y:hidden;
  padding:6px;
  margin:0;
  border:1px solid var(--line);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
  scrollbar-width:thin;
  scrollbar-color:rgba(255,212,0,.25) transparent;
  -webkit-overflow-scrolling:touch;
}

.tabs.slider-tabs::-webkit-scrollbar{
  height:6px;
}

.tabs.slider-tabs::-webkit-scrollbar-thumb{
  background:rgba(255,212,0,.25);
  border-radius:999px;
}

.tab-btn{
  appearance:none;
  border:none;
  outline:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid transparent;
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:800;
  font-size:14px;
  white-space:nowrap;
  cursor:pointer;
  transition:all .18s ease;
}

.tab-btn:hover{
  background:rgba(255,212,0,.08);
  border-color:rgba(255,212,0,.18);
  transform:translateY(-1px);
}

.tab-btn.active{
  background:linear-gradient(180deg, rgba(255,212,0,.18), rgba(255,184,0,.10));
  border-color:rgba(255,212,0,.35);
  color:#fff7bf;
  box-shadow:
    0 0 0 1px rgba(255,212,0,.08) inset,
    0 8px 24px rgba(255,184,0,.10);
}

.tab-pane{
  display:none;
  animation:fadeTab .18s ease;
}

.tab-pane.active{
  display:block;
}

.members-panels,
.archive-panels{
  position:relative;
}

@keyframes fadeTab{
  from{
    opacity:0;
    transform:translateY(4px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

.form-inline{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.mini-input{
  min-width:140px;
  width:auto;
}

.modal{
  position:fixed;
  inset:0;
  display:none;
  z-index:9999;
}

.modal.show{
  display:block;
}

.modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter:blur(4px);
}

.modal-box{
  position:relative;
  z-index:2;
  width:min(920px, calc(100vw - 24px));
  max-height:90vh;
  overflow:auto;
  margin:4vh auto 0;
  background:linear-gradient(180deg, rgba(18,18,18,.98), rgba(10,10,10,.98));
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  padding:18px;
  box-shadow:0 20px 80px rgba(0,0,0,.55);
}

.user-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.user-actions .btn{
  min-width:92px;
}

.archive-tabs{
  margin:14px 0 10px 0;
}

/* XL ekrani */
@media (min-width:1600px){
  :root{
    --sidebar-w:260px;
    --container-pad:24px;
  }

  .container{
    padding:0 var(--container-pad);
  }

  .split{
    gap:22px;
  }

  .card{
    padding:16px;
  }
}

/* Laptop / manji desktop */
@media (max-width:1200px){
  :root{
    --sidebar-w:220px;
  }

  .table{
    min-width:900px;
  }
}

/* Tablet */
@media (max-width:900px){
  :root{
    --container-pad:12px;
  }

  .split{
    grid-template-columns:1fr;
  }

  .sidenav{
    position:static;
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    padding:8px;
  }

  .navitem{
    margin:0;
  }

  .kpis{
    grid-template-columns:1fr;
  }

  .grid-2{
    grid-template-columns:1fr;
  }

  .span-2{
    grid-column:auto;
  }

  .table{
    min-width:760px;
  }

  .modal-box{
    width:min(92vw, 920px);
  }
}

/* Veći telefoni i mali tableti */
@media (max-width:768px){
  .container{
    padding:0 10px;
  }

  .topbar{
    padding:12px 12px;
  }

  h1{
    font-size:22px;
  }

  h2{
    font-size:17px;
  }

  .card{
    padding:12px;
    border-radius:16px;
  }

  .table{
    min-width:680px;
  }

  .modal-box{
    width:calc(100vw - 16px);
    margin:2vh auto 0;
    padding:14px;
    border-radius:16px;
  }

  .tabs.slider-tabs{
    gap:8px;
    padding:5px;
  }

  .tab-btn{
    min-height:40px;
    padding:10px 14px;
    font-size:13px;
  }

  .user-actions{
    width:100%;
  }
}

/* Mobiteli */
@media (max-width:560px){
  :root{
    --container-pad:8px;
  }

  body{
    font-size:14px;
  }

  .topbar{
    flex-direction:column;
    align-items:flex-start;
  }

  .top-actions{
    width:100%;
    justify-content:flex-start;
  }

  .container{
    padding:0 8px;
    margin:14px 0;
  }

  h1{
    font-size:20px;
  }

  h2{
    font-size:16px;
  }

  h3{
    font-size:15px;
  }

  .card{
    padding:10px;
    margin:10px 0;
    border-radius:14px;
  }

  .input,
  select.input,
  textarea.input{
    padding:11px 12px;
    border-radius:12px;
  }

  .btn{
    width:100%;
    min-height:42px;
    padding:11px 12px;
  }

  .row .btn,
  .user-actions .btn,
  .form-inline .btn{
    width:auto;
  }

  .row{
    align-items:stretch;
  }

  .chip{
    white-space:normal;
  }

  .table{
    min-width:620px;
  }

  .table th,
  .table td{
    padding:9px 8px;
    font-size:12px;
  }

  .pill{
    font-size:11px;
    padding:5px 8px;
  }

  .modal-box{
    width:calc(100vw - 12px);
    padding:12px;
    border-radius:14px;
  }
}

/* Jako uski uređaji */
@media (max-width:380px){
  .container{
    padding:0 6px;
  }

  .topbar{
    padding:10px;
  }

  .card{
    padding:9px;
  }

  .tab-btn{
    padding:9px 12px;
    font-size:12px;
  }

  .btn{
    font-size:13px;
  }
}

.sidenav .navsubitem{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  margin: -2px 0 2px 26px;
  padding:9px 12px;
  border-radius:12px;
  text-decoration:none;
  color:#aeb8c8;
  font-size:13px;
  font-weight:600;
  transition:all .2s ease;
}

.sidenav .navsubitem:hover{
  background:rgba(255,255,255,0.04);
  color:#fff;
  transform:translateX(3px);
}

.sidenav .navsubitem.active{
  background:rgba(130,38,65,0.14);
  color:#fff;
}

.package-card{
  max-width:760px;
}

.form-grid{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.form-row{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.form-row label{
  font-size:13px;
  font-weight:700;
  color:#dce3ee;
}

.form-row input{
  height:48px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#fff;
  padding:0 14px;
  font-size:14px;
  outline:none;
}

.form-row input:focus{
  border-color:#822641;
  box-shadow:0 0 0 3px rgba(130,38,65,.18);
}

.form-actions{
  padding-top:8px;
}

.alert{
  padding:14px 16px;
  border-radius:14px;
  margin-bottom:16px;
  font-weight:600;
}

.alert.success{
  background:rgba(25,195,125,.12);
  color:#7cf0bb;
  border:1px solid rgba(25,195,125,.2);
}

.alert.error{
  background:rgba(239,68,68,.12);
  color:#ffb3b3;
  border:1px solid rgba(239,68,68,.2);
}

.package-kpis{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.package-card .helper{
  margin:-4px 0 6px;
}

@media (max-width: 900px){
  .package-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width: 640px){
  .package-kpis{
    grid-template-columns:1fr;
  }
}


.navgroup{display:flex;flex-direction:column;gap:2px}

.revenue-filter-card{margin-bottom:16px}
.revenue-filter-form{gap:14px}
.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.revenue-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.revenue-kpis,.revenue-package-kpis{grid-template-columns:repeat(4,minmax(0,1fr))}
.revenue-table th,.revenue-table td{vertical-align:top}
.form-row select,.filter-grid .input,.filter-grid select{height:48px;border-radius:14px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#fff;padding:0 14px;font-size:14px;outline:none}
.form-row select:focus,.filter-grid .input:focus,.filter-grid select:focus{border-color:#822641;box-shadow:0 0 0 3px rgba(130,38,65,.18)}
@media (max-width: 900px){.revenue-kpis,.revenue-package-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width: 640px){.revenue-kpis,.revenue-package-kpis,.filter-grid{grid-template-columns:1fr}}


.revenue-subtabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 16px}
.subtab{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 16px;border-radius:12px;text-decoration:none;font-weight:700;font-size:14px;color:#d7dde7;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.06);transition:all .2s ease}
.subtab:hover{color:#fff;background:rgba(255,255,255,.06)}
.subtab.active{background:rgba(130,38,65,.18);border-color:rgba(130,38,65,.35);color:#fff}
.filter-row{display:grid;grid-template-columns:1fr 1fr 1fr 1fr auto;gap:14px;align-items:end}
.filter-actions.single-row{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.revenue-kpis-main{grid-template-columns:repeat(6,minmax(0,1fr))}
.revenue-charts-grid{display:grid;grid-template-columns:1.4fr .9fr;gap:16px;margin:16px 0}
.revenue-bottom-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:16px;margin-top:16px}
.chart-card{min-height:360px}
.chart-head{margin-bottom:10px}
.chart-canvas-wrap{position:relative;height:280px}
.chart-canvas-wrap-donut{height:280px;max-width:420px;margin:0 auto}
.top-users-list{display:flex;flex-direction:column;gap:10px}
.top-user-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.05)}
.top-user-rank{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(130,38,65,.18);color:#fff;font-weight:800}
.top-user-meta{display:flex;flex-direction:column;gap:2px}
.top-user-meta strong{color:#fff}
.top-user-meta span{color:#b9c5d6;font-size:13px}
.compact-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width: 1200px){.revenue-kpis-main{grid-template-columns:repeat(3,minmax(0,1fr))}.revenue-charts-grid,.revenue-bottom-grid{grid-template-columns:1fr}.chart-card{min-height:320px}}
@media (max-width: 900px){.filter-row{grid-template-columns:1fr 1fr}.compact-kpis{grid-template-columns:1fr}}
@media (max-width: 640px){.filter-row,.revenue-kpis-main{grid-template-columns:1fr}.filter-actions.single-row .btn{width:100%;justify-content:center}}




/* Revenue UI refinements */
.revenue-subtabs{
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
  overflow-x:auto;
  padding-bottom:4px;
  margin:0 0 18px;
}
.revenue-subtabs .subtab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:46px;
  padding:0 18px;
  border-radius:14px;
  border:1px solid rgba(255,212,0,.38);
  background:linear-gradient(180deg, rgba(255,212,0,.16), rgba(255,184,0,.08));
  color:#fff5c2 !important;
  font-weight:800;
  text-decoration:none !important;
  white-space:nowrap;
  box-shadow:0 10px 24px rgba(0,0,0,.18);
  transition:all .2s ease;
}
.revenue-subtabs .subtab:hover{
  border-color:rgba(255,212,0,.55);
  background:linear-gradient(180deg, rgba(255,212,0,.24), rgba(255,184,0,.14));
  color:#fffbe6 !important;
  transform:translateY(-1px);
}
.revenue-subtabs .subtab.active{
  background:linear-gradient(180deg, rgba(255,216,64,.98), rgba(255,184,0,.98));
  border-color:rgba(255,212,0,.75);
  color:#1b1605 !important;
  box-shadow:0 12px 28px rgba(255,184,0,.20);
}
.revenue-subtabs .subtab i{font-size:14px}

.revenue-filter-card{
  overflow-x:auto;
}
.filter-row.single-line{
  display:grid;
  grid-template-columns:minmax(130px,150px) minmax(130px,150px) minmax(150px,180px) minmax(150px,180px) auto;
  gap:14px;
  align-items:end;
  min-width:860px;
}
.filter-row.single-line > div{
  min-width:0;
}
.filter-row.single-line .filter-actions{
  display:flex;
  align-items:end;
  gap:10px;
  flex:0 0 auto;
}
.filter-row.single-line .filter-actions .btn,
.filter-row.single-line .filter-actions .btn-ghost{
  min-width:92px;
  white-space:nowrap;
}

@media (max-width: 768px){
  .revenue-subtabs{
    flex-direction:column;
    overflow:visible;
  }
  .revenue-subtabs .subtab{
    width:100%;
  }
  .filter-row.single-line{
    min-width:0;
    grid-template-columns:1fr;
  }
  .filter-row.single-line .filter-actions{
    flex-direction:column;
    align-items:stretch;
  }
  .filter-row.single-line .filter-actions .btn,
  .filter-row.single-line .filter-actions .btn-ghost{
    width:100%;
  }
}

.select-wrap{
  position:relative;
}

.select-wrap::after{
  content:"";
  position:absolute;
  right:14px;
  top:50%;
  width:12px;
  height:12px;
  transform:translateY(-50%);
  pointer-events:none;
  background-repeat:no-repeat;
  background-position:center;
  background-size:12px 12px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pwa-description-editor{
  background:#060606 !important;
  color:#ffffff !important;
  border:1px solid rgba(255,255,255,.12) !important;
}

.pwa-description-box{
  background:#000000;
  color:#ffffff;
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:16px;
  line-height:1.6;
  min-height:110px;
}

.pwa-icon-preview-wrap{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:16px;
}

.pwa-icon-card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.pwa-icon-box{
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#0b0b0c;
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:16px;
}

.pwa-icon-box img{
  max-width:120px;
  max-height:120px;
  object-fit:contain;
  filter:drop-shadow(0 8px 18px rgba(0,0,0,.35));
}

.pbk-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.pbk-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.66);
  backdrop-filter:blur(2px);
}

.pbk-modal-card{
  position:relative;
  z-index:2;
  width:min(760px, 100%);
  max-height:90vh;
  overflow:auto;
  background:linear-gradient(180deg, rgba(21,21,22,.98), rgba(9,9,10,.98));
  border:1px solid rgba(255,255,255,.10);
  border-radius:22px;
  box-shadow:0 24px 70px rgba(0,0,0,.45);
  padding:18px;
}

body.modal-open{
  overflow:hidden;
}

@media (max-width: 760px){
  .pwa-icon-preview-wrap{
    grid-template-columns:1fr;
  }
}