  /* =========================
     VIP MODAL (CSS)
     ========================= */
  :root{
    --vip-panel: #2f353f;
    --vip-panel-2: #272d36;
    --vip-text: rgba(255,255,255,.92);
    --vip-border: rgba(255,255,255,.12);
    --vip-shadow: 0 22px 70px rgba(0,0,0,.45);
    --vip-overlay: rgba(0,0,0,.50);
    --vip-accent: #f7c948;
    --vip-accent-text: #111;
  }

  .vip-modal-overlay{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99999;
    padding: 16px;

    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;

    background: var(--vip-overlay);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    -webkit-transition: opacity .18s ease, visibility .18s ease;
    transition: opacity .18s ease, visibility .18s ease;
  }
  .vip-modal-overlay.vip-modal-overlay--open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .vip-modal{
    width: 760px;
    max-width: 100%;
    background: linear-gradient(180deg, var(--vip-panel), var(--vip-panel-2));
    color: var(--vip-text);
    border: 1px solid var(--vip-border);
    border-radius: 14px;
    box-shadow: var(--vip-shadow);
    overflow: hidden;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }

  .vip-modal__header{
    display:flex;
    gap:12px;
    align-items:flex-start;
    justify-content:space-between;
    padding:16px 16px 8px;
    background: rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .vip-modal__headtext{
    min-width:0;
    position:relative;
    padding-left:12px;
  }
  .vip-modal__headtext::before{
    content:"";
    position:absolute;
    left:0; top:4px; bottom:4px;
    width:4px;
    border-radius:6px;
    background: linear-gradient(180deg, #f7c948, rgba(247,201,72,.35));
  }

  .vip-modal__title{
    margin:0;
    font-size:20px;
    line-height:1.22;
    font-weight:900;
    color: rgba(255,255,255,.98);
    text-shadow: 0 1px 0 rgba(0,0,0,.35), 0 6px 16px rgba(0,0,0,.35);
  }
  .vip-modal__subtitle{
    margin:4px 0 0;
    font-size:14px;
    line-height:1.35;
    color: rgba(255,255,255,.82);
  }

  .vip-modal__close{
    appearance:none;
    border:0;
    background:transparent;
    color: rgba(255,255,255,.88);
    font-size:26px;
    line-height:1;
    cursor:pointer;
    padding:2px 8px;
    border-radius:10px;
    flex:0 0 auto;
  }
  .vip-modal__close:hover{ background: rgba(255,255,255,.10); }

  .vip-modal__body{ padding: 10px 16px 12px; }

  .vip-perks{ display:grid; gap:8px; margin:0; }

  .vip-perk{
    --perk-color:#f7c948;
    display:grid;
    grid-template-columns: 18px 1fr;
    gap:10px;
    align-items:start;

    padding:9px 12px;
    border-radius:12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);

    text-decoration:none;
    color: var(--vip-text);
    cursor:pointer;

    transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease, filter .14s ease;
  }

  .vip-perk__ico{
    width:18px; height:18px;
    border-radius:999px;
    position:relative;
    top:2px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.20);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
    transition: transform .14s ease, filter .14s ease;
  }
  .vip-perk__ico::after{
    content:"";
    position:absolute;
    inset:4px;
    border-radius:999px;
    background: var(--perk-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,.14);
    transition: inset .14s ease, box-shadow .14s ease, filter .14s ease;
  }

  .vip-perk__text{ line-height:1.35; color: rgba(255,255,255,.94); }

  .vip-perk:hover{
    transform: translateY(-1px);
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 10px 24px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.06);
  }
  .vip-perk:active{ transform: translateY(0); filter: brightness(.99); }
  .vip-perk:focus-visible{ outline: 2px solid rgba(247,201,72,.55); outline-offset: 2px; }
  .vip-perk:hover .vip-perk__ico{ transform: scale(1.04); filter: brightness(1.06); }
  .vip-perk:hover .vip-perk__ico::after{
    inset:3px;
    filter: brightness(1.06);
    box-shadow: 0 0 0 3px rgba(0,0,0,.14), 0 0 14px rgba(247,201,72,.35);
  }

  .vip-perk--c1  { --perk-color:#f7c948; }
  .vip-perk--c2  { --perk-color:#4dd4ff; }
  .vip-perk--c3  { --perk-color:#7cff6b; }
  .vip-perk--c4  { --perk-color:#b18cff; }
  .vip-perk--c5  { --perk-color:#ff6b6b; }
  .vip-perk--c6  { --perk-color:#38d6a5; }
  .vip-perk--c7  { --perk-color:#ff8ad8; }
  .vip-perk--c8  { --perk-color:#6ba6ff; }
  .vip-perk--c9  { --perk-color:#ffa24c; }
  .vip-perk--c10 { --perk-color:#9be15d; }
  .vip-perk--c11 { --perk-color:#ff4d8d; }
  .vip-perk--c12 { --perk-color:#8debff; }

  .vip-modal__footer{
    padding:14px 16px 16px;
    border-top:1px solid rgba(255,255,255,.08);
    background: rgba(0,0,0,.08);
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    justify-content:flex-end;
  }
  .vip-modal__note{
    margin-right:auto;
    font-size:12px;
    opacity:.82;
  }

  .vip-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 14px;
    border-radius:12px;
    border:1px solid rgba(255,255,255,.16);
    text-decoration:none;
    cursor:pointer;
    font-weight:800;
    font-size:14px;
    user-select:none;
    transition: filter .12s ease, background .12s ease;
    min-width: 120px;
  }
  .vip-btn--primary{
    background: var(--vip-accent);
    color: var(--vip-accent-text);
    border-color: rgba(0,0,0,.14);
  }
  .vip-btn--primary:hover{ filter: brightness(.97); }
  .vip-btn--ghost{
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.92);
  }
  .vip-btn--ghost:hover{ background: rgba(255,255,255,.10); }

  @media (max-width: 480px){
    .vip-btn{ width:100%; }
    .vip-modal__note{ width:100%; order:3; margin:0; }
    .vip-modal__footer{ justify-content: stretch; }
  }

  /* ===== VIP MODAL — MOBILE FULL ADAPTATION ===== */
  @media (max-width: 768px){
    .vip-modal-overlay{
      padding: 8px;
      align-items: flex-start;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    .vip-modal{
      width: 100%;
      max-width: 100%;
      max-height: none;
      border-radius: 12px;
      margin: auto 0;
    }
    .vip-modal__header{
      padding: 14px 16px;
      position: sticky;
      top: 0;
      z-index: 2;
      background: inherit;
    }
    .vip-modal__title{ font-size: 16px; line-height: 1.3; }
    .vip-modal__subtitle{ font-size: 12px; }
    .vip-modal__body{ padding: 12px; }
    .vip-perks{ gap: 6px; }
    .vip-perk{ padding: 8px 10px; border-radius: 8px; }
    .vip-perk__text{ font-size: 12px; line-height: 1.4; }
    .vip-perk__ico{ width: 20px; height: 20px; font-size: 12px; flex-shrink: 0; }
    .vip-modal__footer{
      padding: 12px;
      flex-wrap: wrap;
      gap: 8px;
      position: sticky;
      bottom: 0;
      z-index: 2;
      background: var(--vip-panel-2);
    }
    .vip-btn{ padding: 10px 16px; font-size: 13px; border-radius: 8px; }
    .vip-modal__close{ width: 30px; height: 30px; font-size: 20px; }
  }
  @media (max-width: 380px){
    .vip-modal-overlay{ padding: 0; }
    .vip-modal{
      border-radius: 0;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
    }
    .vip-modal__body{ flex: 1; overflow-y: auto; }
    .vip-modal__title{ font-size: 14px; }
    .vip-perk{ padding: 6px 8px; }
    .vip-perk__text{ font-size: 11px; }
    .vip-btn{ padding: 10px 12px; font-size: 12px; }
  }

  /* =========================
     ADBLOCK MODAL (CSS)
     ========================= */
  .ab-modal-overlay{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000; /* выше VIP */
    padding: 16px;
    background: rgba(0,0,0,.58);

    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
  }

  .ab-modal{
    width: 720px;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;

    background: linear-gradient(180deg, #2f353f, #272d36);
    color: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 22px 70px rgba(0,0,0,.45);

    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }

  .ab-modal__header{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;

    padding: 16px 16px 10px;
    background: rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.10);
  }

  .ab-modal__headtext{
    position: relative;
    padding-left: 12px;
    min-width: 0;
  }

  .ab-modal__headtext::before{
    content:"";
    position:absolute;
    left:0; top:4px; bottom:4px;
    width:4px;
    border-radius:6px;
    background: linear-gradient(180deg, #ff6b6b, rgba(255,107,107,.35));
  }

  .ab-modal__title{
    margin: 0;
    font-size: 20px;
    line-height: 1.22;
    font-weight: 900;
    color: rgba(255,255,255,.98);
  }

  .ab-modal__subtitle{
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.35;
    color: rgba(255,255,255,.88);
  }

  .ab-modal__close{
    appearance: none;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.92);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 8px;
    border-radius: 10px;
  }

  .ab-modal__close:hover{ background: rgba(255,255,255,.10); }

  .ab-modal__body{ padding: 14px 16px 16px; }

  .ab-modal__text{ color: rgba(255,255,255,.96); }
  .ab-modal__text p{
    margin: 0 0 10px;
    line-height: 1.55;
    font-size: 14px;
    color: rgba(255,255,255,.96);
  }
  .ab-modal__text strong{ color:#fff; font-weight:900; }

  .ab-modal__tips{
    display: grid;
    gap: 8px;
    margin: 10px 0 14px;
  }

  .ab-tip{
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;

    padding: 9px 12px;
    border-radius: 12px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
  }

  .ab-tip__dot{
    width: 18px;
    height: 18px;
    border-radius: 999px;
    position: relative;
    top: 2px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.20);
  }

  .ab-tip__dot::after{
    content:"";
    position:absolute;
    inset:4px;
    border-radius:999px;
    background:#ff6b6b;
    box-shadow: 0 0 0 3px rgba(0,0,0,.14);
  }

  .ab-modal__actions{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }

  .ab-btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.16);
    text-decoration: none;
    cursor: pointer;
    font-weight: 800;
    font-size: 14px;
    user-select: none;
    min-width: 200px;
    transition: background .12s ease, filter .12s ease;
  }

  .ab-btn--primary{
    background: #f7c948;
    color: #111;
    border-color: rgba(0,0,0,.14);
  }
  .ab-btn--primary:hover{ filter: brightness(.97); }

  .ab-btn--ghost{
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.96);
  }
  .ab-btn--ghost:hover{ background: rgba(255,255,255,.10); }

  .ab-btn--ghost2{
    background: rgba(255,255,255,.02);
    color: rgba(255,255,255,.92);
  }
  .ab-btn--ghost2:hover{ background: rgba(255,255,255,.08); }

  .ab-modal__status{
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,.88);
    min-height: 18px;
  }

  @media (max-width: 480px){
    .ab-btn{ width: 100%; min-width: 0; }
  }

  /* ===== AB MODAL — MOBILE FULL ADAPTATION ===== */
  @media (max-width: 768px){
    .ab-modal-overlay{
      padding: 8px;
      align-items: flex-start;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    .ab-modal{
      width: 100%;
      max-width: 100%;
      max-height: none;
      border-radius: 12px;
      margin: auto 0;
    }
    .ab-modal__header{
      padding: 14px 16px;
      position: sticky;
      top: 0;
      z-index: 2;
      background: inherit;
    }
    .ab-modal__title{ font-size: 16px; line-height: 1.3; }
    .ab-modal__subtitle{ font-size: 12px; }
    .ab-modal__body{ padding: 12px; }
    .ab-modal__text p{ font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
    .ab-modal__tips{ gap: 6px; margin: 10px 0; }
    .ab-tip{ font-size: 12px; padding: 6px 0; }
    .ab-modal__actions{
      flex-wrap: wrap;
      gap: 8px;
    }
    .ab-btn{ padding: 10px 16px; font-size: 13px; border-radius: 8px; }
    .ab-modal__close{ width: 30px; height: 30px; font-size: 20px; }
  }
  @media (max-width: 380px){
    .ab-modal-overlay{ padding: 0; }
    .ab-modal{
      border-radius: 0;
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
    }
    .ab-modal__body{ flex: 1; overflow-y: auto; }
    .ab-modal__title{ font-size: 14px; }
    .ab-modal__text p{ font-size: 12px; }
    .ab-tip{ font-size: 11px; }
    .ab-btn{ padding: 10px 12px; font-size: 12px; }
  }