
  .wp-theme-overlay{
    position:fixed;
    inset:0;
    z-index:1600;
    display:none;
    align-items:center;
    justify-content:center;
    backdrop-filter:blur(14px);
    background:
      radial-gradient(circle at 0 0, rgba(37,99,235,0.55), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(76,29,149,0.55), transparent 55%),
      rgba(15,23,42,0.78);
  }
  .wp-theme-panel{
    width:min(960px, calc(100% - 32px));
    padding:18px 18px 16px;
    border-radius:24px;
    background:rgba(15,23,42,0.98);
    border:1px solid rgba(148,163,255,0.7);
    box-shadow:0 30px 80px rgba(15,23,42,0.96);
    color:var(--ink);
  }
  .wp-theme-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:12px;
  }
  .wp-theme-title{
    font-size:16px;
    font-weight:700;
  }
  .wp-theme-sub{
    font-size:12px;
    color:var(--muted);
  }
  .wp-theme-close{
    border-radius:999px;
    border:1px solid rgba(148,163,255,0.7);
    padding:6px 12px;
    background:rgba(15,23,42,0.96);
    color:var(--ink);
    cursor:pointer;
    font-size:12px;
  }
  .wp-theme-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
    gap:10px;
  }
  .wp-theme-card{
    position:relative;
    border-radius:18px;
    padding:10px 10px 9px;
    text-align:left;
    cursor:pointer;
    border:1px solid rgba(148,163,255,0.35);
    background:#020617;
    box-shadow:0 14px 40px rgba(15,23,42,0.9);
    overflow:hidden;
    transition:
      transform 120ms ease,
      box-shadow 120ms ease,
      border-color 120ms ease,
      background 120ms ease;
    --theme-swatch: linear-gradient(135deg,#1d4ed8,#020617);
  }
  .wp-theme-card::before{
    content:"";
    position:absolute;
    inset:-1px;
    background:var(--theme-swatch);
    opacity:0.92;
    pointer-events:none;
  }
  .wp-theme-card-inner{
    position:relative;
    z-index:1;
  }
  .wp-theme-card-name{
    display:inline-flex;
    padding:3px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:600;
    background:rgba(15,23,42,0.92);
    color:var(--ink);
  }
  .wp-theme-card-tag{
    margin-top:6px;
    font-size:11px;
    color:var(--muted);
  }
  .wp-theme-card-check{
    position:absolute;
    top:6px;
    right:6px;
    width:18px;
    height:18px;
    border-radius:999px;
    border:1px solid rgba(248,250,252,0.9);
    background:rgba(15,23,42,0.9);
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:11px;
    color:#e5edff;
    opacity:0;
    transform:scale(.7);
    transition:opacity 120ms ease, transform 120ms ease;
    z-index:2;
  }
  .wp-theme-card:hover{
    transform:translateY(-1px);
    border-color:rgba(191,219,254,0.9);
    box-shadow:0 16px 48px rgba(37,99,235,0.85);
  }
  .wp-theme-card.active{
    border-color:rgba(191,219,254,1);
    box-shadow:0 0 32px rgba(59,130,246,0.9);
  }
  .wp-theme-card.active .wp-theme-card-check{
    opacity:1;
    transform:scale(1);
  }
  @media (max-width:768px){
    .wp-theme-panel{
      width:calc(100% - 18px);
      padding:14px 14px 12px;
      border-radius:20px;
    }
    .wp-theme-grid{
      grid-template-columns:repeat(2, minmax(0, 1fr));
    }
  }
