/* Attachments Pro – Frontend CSS */

/* ── CSS Variables (overridden by inline from PHP) ──────────────── */
:root {
    --ap-primary:    #6366f1;
    --ap-secondary:  #8b5cf6;
    --ap-card-bg:    #ffffff;
    --ap-card-brd:   #e2e8f0;
    --ap-unlocked:   #10b981;
    --ap-text:       #1e293b;
    --ap-text-light: #64748b;
    --ap-btn-text:   #ffffff;
    --ap-radius:     16px;
    --ap-shadow:     0 4px 24px rgba(0,0,0,.10);
    --ap-speed:      600ms;
    --ap-cols:       3;
}

/* ── Grid layout ─────────────────────────────────────────────────── */
.ap-attachments {
    display: grid;
    grid-template-columns: repeat(var(--ap-cols), 1fr);
    gap: 20px;
    margin: 24px 0;
    container-type: inline-size;
}

@container (max-width: 640px) {
    .ap-attachments { grid-template-columns: 1fr; }
}
@container (min-width: 641px) and (max-width: 900px) {
    .ap-attachments { grid-template-columns: repeat(2, 1fr); }
}

.ap-layout-list.ap-attachments {
    grid-template-columns: 1fr;
}
.ap-layout-list .ap-card {
    flex-direction: row;
    min-height: 80px;
}

/* ── Flip Card Container ─────────────────────────────────────────── */
.ap-card {
    position: relative;
    height: 220px;
    perspective: 1000px;
    cursor: default;
    transition: transform .15s ease;
    will-change: transform;
}

.ap-card-front,
.ap-card-back {
    position: absolute;
    inset: 0;
    border-radius: var(--ap-radius);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transition: transform var(--ap-speed) cubic-bezier(.4,0,.2,1);
}

/* ── Front face ──────────────────────────────────────────────────── */
.ap-card-front {
    background: var(--ap-card-bg);
    border: 1.5px solid var(--ap-card-brd);
    box-shadow: var(--ap-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 18px 16px;
    text-align: center;
    transform: rotateY(0deg);
}

.ap-card.ap-glass .ap-card-front {
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    border-color: rgba(255,255,255,.35);
}

/* ── Back face ───────────────────────────────────────────────────── */
.ap-card-back {
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-secondary));
    box-shadow: var(--ap-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transform: rotateY(180deg);
    overflow: hidden;
}

.ap-card.ap-flipped .ap-card-front { transform: rotateY(-180deg); }
.ap-card.ap-flipped .ap-card-back  { transform: rotateY(0deg); }

/* ── Back content ────────────────────────────────────────────────── */
.ap-card-back-content {
    width: 100%;
}

.ap-back-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.ap-msg {
    color: #fff;
    font-size: .9rem;
    line-height: 1.5;
    margin: 0;
    font-weight: 500;
}

/* ── Icon ────────────────────────────────────────────────────────── */
.ap-card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ap-primary) 0%, var(--ap-secondary) 100%);
    border-radius: 14px;
    flex-shrink: 0;
}

.ap-icon-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: invert(1);
}

.ap-icon-emoji {
    font-size: 28px;
    line-height: 1;
}

/* ── Card info ───────────────────────────────────────────────────── */
.ap-card-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.ap-card-name {
    font-size: .95rem;
    font-weight: 700;
    color: var(--ap-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ap-card-desc {
    font-size: .78rem;
    color: var(--ap-text-light);
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ap-card-meta {
    display: flex;
    gap: 10px;
    font-size: .75rem;
    color: var(--ap-text-light);
    align-items: center;
}

.ap-downloads { opacity: .7; }

/* ── Buttons ─────────────────────────────────────────────────────── */
.ap-btn-primary,
.ap-btn-secondary,
.ap-btn-back {
    display: inline-block;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: opacity .15s, transform .1s;
    text-align: center;
    white-space: nowrap;
}

.ap-btn-primary {
    background: #fff;
    color: var(--ap-primary);
}

.ap-btn-secondary {
    background: rgba(255,255,255,.2);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.5);
}

.ap-btn-back {
    background: transparent;
    color: rgba(255,255,255,.7);
    font-size: .8rem;
    padding: 6px 12px;
}

.ap-btn-download {
    background: linear-gradient(135deg, var(--ap-primary), var(--ap-secondary));
    color: var(--ap-btn-text);
    padding: 10px 22px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .1s, box-shadow .15s;
    box-shadow: 0 4px 14px rgba(99,102,241,.3);
    width: 100%;
    max-width: 200px;
}

.ap-btn-download:hover {
    opacity: .92;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99,102,241,.4);
}

.ap-btn-primary:hover  { opacity: .9; transform: translateY(-1px); }
.ap-btn-secondary:hover { opacity: .8; }
.ap-back-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }

/* ── Unlocked card ───────────────────────────────────────────────── */
.ap-card.ap-unlocked .ap-card-front {
    border-color: var(--ap-unlocked);
    box-shadow: 0 0 0 2px var(--ap-unlocked), var(--ap-shadow);
}

.ap-unlocked-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--ap-unlocked);
    color: #fff;
    font-size: var(--ap-fn-badge, 11px);
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
}

/* ── Success state ───────────────────────────────────────────────── */
.ap-success-icon {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    animation: ap-pop .4s cubic-bezier(.175,.885,.32,1.275);
}

@keyframes ap-pop {
    0%   { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ── Skeleton loader ─────────────────────────────────────────────── */
.ap-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: ap-shimmer 1.4s infinite;
    border-radius: 8px;
}

@keyframes ap-shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 600px) {
    .ap-attachments { grid-template-columns: 1fr; }
    .ap-card { height: 200px; }
}

/* ── Font size variables ─────────────────────────────────────────── */
:root {
    --ap-fn-name:   15px;
    --ap-fn-desc:   12px;
    --ap-fn-meta:   11px;
    --ap-fn-btn-dl: 14px;
    --ap-fn-msg:    14px;
    --ap-fn-btn-ac: 13px;
}

.ap-card-name      { font-size: var(--ap-fn-name) !important; }
.ap-card-desc      { font-size: var(--ap-fn-desc) !important; }
.ap-card-meta      { font-size: var(--ap-fn-meta) !important; }
.ap-btn-download   { font-size: var(--ap-fn-btn-dl) !important; }
.ap-msg            { font-size: var(--ap-fn-msg) !important; }
.ap-btn-primary,
.ap-btn-secondary,
.ap-btn-back       { font-size: var(--ap-fn-btn-ac) !important; }

/* ── Styl LIST (jak na screenshocie – ikona + info + przycisk) ───── */
.ap-layout-list .ap-card {
    height: auto;
    min-height: 80px;
}

.ap-layout-list .ap-card-front {
    flex-direction: row;
    text-align: left;
    gap: 14px;
    padding: 14px 16px;
    align-items: center;
}

.ap-layout-list .ap-card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
}

.ap-layout-list .ap-card-info {
    align-items: flex-start;
    flex: 1;
}

.ap-layout-list .ap-card-name { font-size: var(--ap-fn-name); }

.ap-layout-list .ap-btn-download {
    flex-shrink: 0;
    width: auto;
    padding: 9px 18px;
}

/* ── Styl COMPACT (gęsta lista) ──────────────────────────────────── */
.ap-layout-compact.ap-attachments {
    grid-template-columns: 1fr;
    gap: 4px;
}

.ap-layout-compact .ap-card {
    height: auto;
    min-height: 52px;
}

.ap-layout-compact .ap-card-front {
    flex-direction: row;
    padding: 10px 14px;
    gap: 10px;
    border-radius: 8px;
}

.ap-layout-compact .ap-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 7px;
}

.ap-layout-compact .ap-card-desc { display: none; }
.ap-layout-compact .ap-btn-download { padding: 6px 14px; width: auto; }

/* ── Styl DOWNLOAD LIST (styl z Paywall PRO) ────────────────────── */
.ap-layout-dl-list.ap-attachments {
    grid-template-columns: 1fr;
    gap: 0;
}

.ap-layout-dl-list .ap-card {
    height: auto;
}

.ap-layout-dl-list .ap-card-front {
    flex-direction: row;
    padding: 12px 16px;
    gap: 14px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    box-shadow: none;
}

.ap-layout-dl-list .ap-card:first-child .ap-card-front {
    border-radius: var(--ap-radius) var(--ap-radius) 0 0;
    border-top: 1.5px solid var(--ap-card-brd);
}

.ap-layout-dl-list .ap-card:last-child .ap-card-front {
    border-radius: 0 0 var(--ap-radius) var(--ap-radius);
}

.ap-layout-dl-list .ap-card-info { align-items: flex-start; }
.ap-layout-dl-list .ap-card-desc { display: none; }
.ap-layout-dl-list .ap-btn-download { width: auto; padding: 8px 16px; }

/* ── Kompaktowy layout - back face pełna szerokość ──────────────── */
.ap-layout-compact .ap-card-back,
.ap-layout-list .ap-card-back {
    padding: 14px 16px;
}

.ap-layout-compact .ap-back-inner,
.ap-layout-list .ap-back-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
}

.ap-layout-compact .ap-back-actions,
.ap-layout-list .ap-back-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
}

.ap-layout-compact .ap-btn-primary,
.ap-layout-compact .ap-btn-secondary,
.ap-layout-list .ap-btn-primary,
.ap-layout-list .ap-btn-secondary {
    padding: 7px 14px;
    flex: 1;
    text-align: center;
}

.ap-layout-compact .ap-btn-back,
.ap-layout-list .ap-btn-back {
    padding: 5px 10px;
}

/* Kompaktowy - minimalna wysokość po flip */
.ap-layout-compact .ap-card.ap-flipped,
.ap-layout-list .ap-card.ap-flipped {
    min-height: 110px;
}

/* DL-list back też */
.ap-layout-dl-list .ap-card-back {
    padding: 14px 16px;
}

/* ── Ekran "Przygotowuję plik" z countdown ──────────────────────── */
.ap-state-preparing {
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px;
}

.ap-preparing-icon {
    font-size: 2rem;
    line-height: 1;
    animation: ap-bounce 1s ease-in-out infinite alternate;
}

@keyframes ap-bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-6px); }
}

.ap-preparing-text {
    margin: 0 !important;
    font-size: var(--ap-fn-msg) !important;
    color: var(--ap-prep-text, var(--ap-text)) !important;
    font-weight: 600;
}

.ap-countdown-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.ap-countdown-svg {
    width: 72px;
    height: 72px;
    transform: rotate(-90deg);
}

.ap-cd-bg {
    fill: none;
    stroke: var(--ap-card-brd, #e2e8f0);
    stroke-width: 8;
}

.ap-cd-ring {
    fill: none;
    stroke: var(--ap-countdown, #6366f1);
    stroke-width: 8;
    stroke-linecap: round;
    animation: ap-countdown-drain linear forwards;
}

@keyframes ap-countdown-drain {
    from { stroke-dashoffset: 0; }
    to   { stroke-dashoffset: var(--ap-cd-circ, 251.33); }
}

.ap-countdown-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ap-cd-num, var(--ap-countdown, #6366f1));
    pointer-events: none;
}

/* ── Nagłówek listy załączników ─────────────────────────────────── */
.ap-header {
    font-size: var(--ap-fn-header, 16px);
    font-weight: 700;
    margin: 0 0 12px 0;
    padding: 0;
    line-height: 1.4;
}

/* ── Widget / shortcode: Najczęściej pobierane ──────────────────── */
.ap-top-downloads {
    margin: 0 0 1.5em 0;
}

.ap-top-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--ap-text, #1e293b);
}

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

.ap-top-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--ap-card-bg, #fff);
    border: 1px solid var(--ap-card-brd, #e2e8f0);
    border-radius: 8px;
    /* font-size dziedziczone z <ol> – ustawialne przez widget */
    color: var(--ap-text, #1e293b);
    transition: background .15s;
}

.ap-top-item:hover {
    background: #f8fafc;
}

.ap-top-icon {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.ap-top-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
}

.ap-top-count {
    flex-shrink: 0;
    font-size: .8rem;
    color: var(--ap-text-light, #64748b);
    font-weight: 600;
    white-space: nowrap;
}

/* ── Pasek limitu ────────────────────────────────────────────────── */
.ap-limit-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ap-limit-bar.ap-limit-ok {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
}

.ap-limit-bar.ap-limit-exceeded {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
}

.ap-limit-icon {
    font-size: 1.1em;
    flex-shrink: 0;
    line-height: 1;
}

.ap-limit-text {
    flex: 1;
    font-weight: 600;
    min-width: 0;
}

.ap-limit-progress {
    width: 80px;
    height: 6px;
    background: #d1fae5;
    border-radius: 99px;
    overflow: hidden;
    flex-shrink: 0;
}

.ap-limit-fill {
    height: 100%;
    background: #22c55e;
    border-radius: 99px;
    transition: width .4s ease;
}

.ap-limit-upgrade {
    flex-shrink: 0;
    padding: 4px 12px;
    background: var(--ap-primary, #6366f1);
    color: #fff !important;
    border-radius: 20px;
    font-size: .85em;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity .15s;
}

.ap-limit-upgrade:hover { opacity: .85; }

/* ── Stan: link gotowy (przycisk Otwórz link) ───────────────────── */
.ap-state-link-ready {
    gap: 10px;
    text-align: center;
}

.ap-back-actions--center {
    justify-content: center;
    text-align: center;
    width: 100%;
    display: flex;
}

.ap-open-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 28px !important;
    font-size: var(--ap-fn-btn-ac, 13px);
    font-weight: 700;
    text-decoration: none !important;
    background: var(--ap-primary, #6366f1) !important;
    color: var(--ap-btn-text, #fff) !important;
    border-radius: 8px;
    transition: opacity .15s;
    white-space: nowrap;
    margin: 0 auto;
}

.ap-open-link-btn:hover { opacity: .85; }

/* ── Countdown resetu w pasku limitu ────────────────────────────── */
.ap-reset-countdown {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    color: #ef4444;
    min-width: 4ch;
}

/* ── Link tytułu posta w widgecie ───────────────────────────────── */
.ap-top-name[href] {
    text-decoration: none;
    transition: opacity .15s;
}
.ap-top-name[href]:hover {
    opacity: .75;
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════════════
   Skeleton UI + lazy reveal
   ══════════════════════════════════════════════════════════════════ */

.ap-lazy-wrapper {
    position: relative;
}

/* ── Shimmer animacja ─────────────────────────────────────────────── */
@keyframes ap-shimmer {
    0%   { background-position: -400px 0; }
    100% { background-position:  400px 0; }
}

.ap-sk {
    border-radius: 6px;
    background: linear-gradient(
        90deg,
        #e2e8f0 25%,
        #f1f5f9 50%,
        #e2e8f0 75%
    );
    background-size: 800px 100%;
    animation: ap-shimmer 1.4s ease-in-out infinite;
}

/* ── Kontener szkieletów – dopasowany do siatki kart ─────────────── */
.ap-skeletons {
    /* dziedziczy klasę ap-layout-grid/list z PHP */
}

/* ── Pojedyncza karta-szkielet ───────────────────────────────────── */
.ap-skeleton-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 20px 16px;
    background: var(--ap-card-bg, #fff);
    border: 1px solid var(--ap-card-brd, #e2e8f0);
    border-radius: var(--ap-radius, 16px);
    box-shadow: var(--ap-shadow, 0 4px 24px rgba(0,0,0,.10));
    box-sizing: border-box;
    /* Dopasowana struktura do .ap-card – wysokość wynika z zawartości */
}

.ap-sk-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    flex-shrink: 0;
}

.ap-sk-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.ap-sk-title {
    width: 70%;
    height: 14px;
}

.ap-sk-subtitle {
    width: 45%;
    height: 11px;
}

.ap-sk-btn {
    width: 80px;
    height: 32px;
    border-radius: 8px;
    margin-top: 6px;
}

/* Opóźnienie shimmer dla każdej karty z osobna */
.ap-skeleton-card:nth-child(2) .ap-sk { animation-delay: .15s; }
.ap-skeleton-card:nth-child(3) .ap-sk { animation-delay: .30s; }
.ap-skeleton-card:nth-child(4) .ap-sk { animation-delay: .45s; }
.ap-skeleton-card:nth-child(5) .ap-sk { animation-delay: .60s; }
.ap-skeleton-card:nth-child(6) .ap-sk { animation-delay: .75s; }

/* ── Karty ukryte przed wejściem w viewport ──────────────────────── */
.ap-cards-hidden {
    display: none;
}

/* ── Reveal animacja – każda karta z opóźnieniem ─────────────────── */
@keyframes ap-card-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ap-card-reveal {
    opacity: 0;
}

.ap-cards-visible .ap-card-reveal {
    animation: ap-card-in .45s cubic-bezier(.22,.68,0,1.2) forwards;
}

/* Kaskadowe opóźnienia dla kolejnych kart */
.ap-cards-visible .ap-card-reveal:nth-child(1)  { animation-delay: .00s; }
.ap-cards-visible .ap-card-reveal:nth-child(2)  { animation-delay: .07s; }
.ap-cards-visible .ap-card-reveal:nth-child(3)  { animation-delay: .14s; }
.ap-cards-visible .ap-card-reveal:nth-child(4)  { animation-delay: .21s; }
.ap-cards-visible .ap-card-reveal:nth-child(5)  { animation-delay: .28s; }
.ap-cards-visible .ap-card-reveal:nth-child(6)  { animation-delay: .35s; }
.ap-cards-visible .ap-card-reveal:nth-child(7)  { animation-delay: .42s; }
.ap-cards-visible .ap-card-reveal:nth-child(8)  { animation-delay: .49s; }
.ap-cards-visible .ap-card-reveal:nth-child(9)  { animation-delay: .56s; }
.ap-cards-visible .ap-card-reveal:nth-child(10) { animation-delay: .63s; }

/* ══════════════════════════════════════════════════════════════════
   Sponsor – złoty glow i blokada
   ══════════════════════════════════════════════════════════════════ */

.ap-wrap .ap-card.ap-sponsor {
    --ap-sponsor-glow: #f59e0b; /* nadpisywane inline z PHP */
    box-shadow:
        0 0 0 2px var(--ap-sponsor-glow),
        0 0 18px 4px color-mix(in srgb, var(--ap-sponsor-glow) 40%, transparent);
    animation: ap-sponsor-pulse 2.8s ease-in-out infinite;
}

@keyframes ap-sponsor-pulse {
    0%, 100% { box-shadow: 0 0 0 2px var(--ap-sponsor-glow), 0 0 14px 3px color-mix(in srgb, var(--ap-sponsor-glow) 30%, transparent); }
    50%       { box-shadow: 0 0 0 2px var(--ap-sponsor-glow), 0 0 26px 8px color-mix(in srgb, var(--ap-sponsor-glow) 55%, transparent); }
}

/* Fallback gdy color-mix nie jest wspierany (Safari < 16.4, Firefox < 113) */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
    .ap-wrap .ap-card.ap-sponsor {
        box-shadow: 0 0 0 2px var(--ap-sponsor-glow), 0 0 18px 4px var(--ap-sponsor-glow);
    }
}

/* Odznaka sponsora w rogu */
.ap-sponsor-badge {
    position: absolute;
    top: 8px;
    left: 10px;
    background: var(--ap-sponsor-glow, #f59e0b);
    color: #fff;
    font-size: var(--ap-fn-badge, 11px);
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: .2px;
    text-shadow: 0 1px 2px rgba(0,0,0,.25);
}

/* Stan: sponsor locked */
.ap-state-sponsor-locked {
    align-items: center;
    text-align: center;
    gap: 10px;
}

.ap-sponsor-lock-icon {
    font-size: 2rem;
    line-height: 1;
}

/* ── Load More ──────────────────────────────────────────────────── */
.ap-load-more-wrap {
    text-align: center;
    margin: 16px 0 8px;
}

.ap-load-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: var(--ap-card-bg, #fff);
    border: 2px solid var(--ap-primary, #6366f1);
    border-radius: 8px;
    color: var(--ap-primary, #6366f1);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.ap-load-more:hover {
    background: var(--ap-primary, #6366f1);
    color: #fff;
}

.ap-load-more:disabled {
    opacity: .5;
    cursor: default;
}

.ap-load-more-count {
    font-weight: 400;
    opacity: .8;
}
