/* ── ANIMATIONS ──────────────────────────────────────────────────────────────── */
@keyframes cdp-fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes cdp-fade-out-up {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-10px); }
}
@keyframes cdp-card-pop {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── PAGE LOAD – fires once on first paint ───────────────────────────────────── */
.cdp-topbar {
    animation: cdp-fade-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cdp-hero {
    animation: cdp-fade-up 0.65s cubic-bezier(0.16, 1, 0.3, 1) 90ms both;
}
.cdp-tabs-bar {
    animation: cdp-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) 170ms both;
}

/* Initial section + card stagger (class added in PHP on first active section) */
.cdp-section-content.cdp-first-load {
    animation: cdp-fade-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) 230ms both;
}
.cdp-section-content.cdp-first-load .cdp-card {
    animation: cdp-card-pop 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(280ms + var(--cdp-i, 0) * 32ms);
}

/* ── TAB SWITCH TRANSITIONS – driven by JS attributes ────────────────────────── */
.cdp-section-content[data-entering] {
    animation: cdp-fade-up 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cdp-section-content[data-entering] .cdp-card {
    animation: cdp-card-pop 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: calc(40ms + var(--cdp-i, 0) * 30ms);
}
.cdp-section-content[data-leaving] {
    animation: cdp-fade-out-up 0.16s ease-in both;
    pointer-events: none;
}

/* ── RESET & BASE ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    width: 100%; min-height: 100%;
    background: var(--cdp-bg-color, #0d1117);
    color: var(--cdp-ui-color, #fff);
    font-family: var(--cdp-body-font, 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body { overflow-y: auto; }
button { cursor: pointer; font-family: inherit; }
a { text-decoration: none; }

/* ── BACKGROUND ─────────────────────────────────────────────────────────────── */
.cdp-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-color: var(--cdp-bg-color, #0d1117);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.cdp-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--cdp-bg-overlay, rgba(0,0,0,0.6));
}
.cdp-noise {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* ── LAYOUT SHELL ────────────────────────────────────────────────────────────── */
.cdp-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── TOPBAR ──────────────────────────────────────────────────────────────────── */
.cdp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px;
    position: sticky;
    top: 0;
    z-index: 100;
    background: transparent;
}
.cdp-logo-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
}
.cdp-logo img {
    max-height: 52px;
    max-width: 240px;
    width: auto;
    display: block;
    object-fit: contain;
}
.cdp-topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cdp-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    backdrop-filter: blur(8px);
}
.cdp-top-btn:hover {
    background: rgba(255,255,255,0.14);
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}
.cdp-top-btn svg { flex-shrink: 0; }

/* ── HERO ────────────────────────────────────────────────────────────────────── */
.cdp-hero {
    padding: 48px 36px 36px;
}
.cdp-hero-inner { max-width: 700px; }
.cdp-hero h1 {
    margin: 0 0 8px;
    font-family: var(--cdp-title-font, 'Montserrat', sans-serif);
    font-size: var(--cdp-title-size, 3.2rem);
    font-weight: var(--cdp-title-weight, 600);
    color: var(--cdp-title-color, #fff);
    line-height: 1.12;
    letter-spacing: -0.02em;
}
.cdp-hero .cdp-subtitle {
    margin: 0;
    font-family: var(--cdp-subtitle-font, 'Montserrat', sans-serif);
    font-size: var(--cdp-subtitle-size, 1rem);
    font-weight: 400;
    color: var(--cdp-subtitle-color, #8b9ab0);
    letter-spacing: 0.01em;
}
.cdp-hero-meta {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.cdp-hero-badge {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

/* ── SECTION TABS ────────────────────────────────────────────────────────────── */
.cdp-tabs-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 28px;
    border-bottom: none;
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 76px;
    z-index: 90;
    background: rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}
.cdp-tabs-bar::-webkit-scrollbar { display: none; }

.cdp-tab-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 20px;
    color: rgba(255,255,255,0.4);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    white-space: nowrap;
    transition: color 0.22s, background 0.22s, border-color 0.22s, box-shadow 0.22s;
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.cdp-tab-btn:hover {
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.1);
}
.cdp-tab-btn.cdp-tab--active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 2px 8px rgba(0,0,0,0.3);
}
.cdp-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 5px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    font-size: 10px;
    font-weight: 600;
    margin-left: 7px;
    color: rgba(255,255,255,0.35);
    transition: background 0.22s, color 0.22s;
}
.cdp-tab-btn.cdp-tab--active .cdp-tab-count {
    background: var(--cdp-accent, #4f9cf9);
    color: #fff;
    box-shadow: 0 0 8px rgba(79,156,249,0.4);
}

/* ── CONTENT AREA ────────────────────────────────────────────────────────────── */
.cdp-content {
    flex: 1;
    padding: 28px 36px 60px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(0, 0, 0, 0.2);
    position: relative;
}
/* Gradient that bleeds down from the tabs bar into the content */
.cdp-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
    z-index: 0;
}
.cdp-section-content { display: none; }
.cdp-section-content.cdp-active { display: block; }

/* ── TOOLBAR (select / download controls) ────────────────────────────────────── */
.cdp-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.cdp-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cdp-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.cdp-file-count {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.04em;
}

/* ── GRID ────────────────────────────────────────────────────────────────────── */
.cdp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
@media (max-width: 600px) {
    .cdp-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
}

/* ── MEDIA CARD ──────────────────────────────────────────────────────────────── */
.cdp-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    aspect-ratio: 4/3;
    cursor: pointer;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cdp-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.cdp-card-thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s;
}
.cdp-card:hover .cdp-card-thumb { transform: scale(1.04); }
.cdp-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cdp-card:hover .cdp-card-overlay { opacity: 1; }
.cdp-card-overlay-actions {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 10px;
    right: 10px;
}
.cdp-card-action {
    width: 34px; height: 34px;
    border-radius: 6px;
    background: rgba(0,0,0,0.55);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    flex-shrink: 0;
}
.cdp-card-action:hover { background: rgba(255,255,255,0.18); }

/* Video card indicator */
.cdp-card--video .cdp-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    pointer-events: none;
}
.cdp-card--video:hover .cdp-play-badge {
    background: var(--cdp-accent, #4f9cf9);
    border-color: var(--cdp-accent, #4f9cf9);
    transform: translate(-50%, -50%) scale(1.1);
}
.cdp-card--video .cdp-play-badge svg { margin-left: 3px; color: #fff; }

/* Video type badge */
.cdp-type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
    background: rgba(0,0,0,0.65);
    color: rgba(255,255,255,0.75);
    border: 1px solid rgba(255,255,255,0.12);
    pointer-events: none;
}

/* Select checkbox */
.cdp-card-check {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px; height: 22px;
    border-radius: 5px;
    background: rgba(0,0,0,0.5);
    border: 1.5px solid rgba(255,255,255,0.4);
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    pointer-events: none;
    z-index: 5;
}
.cdp-selecting .cdp-card-check { display: flex; }
.cdp-card--selected .cdp-card-check {
    background: var(--cdp-accent, #4f9cf9);
    border-color: var(--cdp-accent, #4f9cf9);
    color: #fff;
}
.cdp-card--selected {
    border-color: var(--cdp-accent, #4f9cf9);
    box-shadow: 0 0 0 2px var(--cdp-accent, #4f9cf9);
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────────── */
.cdp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background 0.18s, border-color 0.18s, color 0.18s, opacity 0.18s;
    border: 1px solid transparent;
}
.cdp-btn--ghost {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.14);
    color: rgba(255,255,255,0.75);
}
.cdp-btn--ghost:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.28);
    color: #fff;
}
.cdp-btn--primary {
    background: var(--cdp-accent, #4f9cf9);
    border-color: var(--cdp-accent, #4f9cf9);
    color: #fff;
}
.cdp-btn--primary:hover { opacity: 0.85; }
.cdp-btn--primary:disabled { opacity: 0.4; cursor: not-allowed; }
.cdp-btn--active {
    background: rgba(79,156,249,0.15);
    border-color: var(--cdp-accent, #4f9cf9);
    color: var(--cdp-accent, #4f9cf9);
}

/* ── FLOATING SELECT BAR ─────────────────────────────────────────────────────── */
.cdp-select-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 200;
    background: rgba(20, 24, 32, 0.96);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 320px;
    backdrop-filter: blur(16px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s, transform 0.22s;
}
.cdp-select-bar.cdp-select-bar--visible {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.cdp-select-count {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
    flex: 1;
}
.cdp-select-actions { display: flex; gap: 8px; }

/* ── PHOTO LIGHTBOX ──────────────────────────────────────────────────────────── */
.cdp-photo-lb {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,0.96);
    display: flex;
    flex-direction: column;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s;
}
.cdp-photo-lb.cdp-lb--open { opacity: 1; pointer-events: all; }
.cdp-lb-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: rgba(0,0,0,0.4);
    flex-shrink: 0;
}
.cdp-lb-counter {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
    flex: 1;
    font-weight: 500;
    letter-spacing: 0.04em;
}
.cdp-lb-top-btn {
    width: 36px; height: 36px;
    border-radius: 6px;
    background: none;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s, color 0.18s;
}
.cdp-lb-top-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.cdp-lb-close {
    font-size: 22px;
    line-height: 1;
    color: rgba(255,255,255,0.7);
    background: none;
    border: none;
    padding: 0 4px;
    transition: color 0.18s;
}
.cdp-lb-close:hover { color: #fff; }
.cdp-lb-body {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cdp-lb-img-wrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.cdp-lb-img {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}
.cdp-lb-img-next {
    position: absolute;
    inset: 0;
    max-width: 90%;
    max-height: 85vh;
    margin: auto;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    border-radius: 4px;
}
.cdp-lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 64px;
    background: rgba(0,0,0,0.3);
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.18s, color 0.18s;
    z-index: 10;
}
.cdp-lb-arrow:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cdp-lb-prev { left: 12px; }
.cdp-lb-next { right: 12px; }
.cdp-lb-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.cdp-lb-spinner {
    width: 32px; height: 32px;
    border: 2px solid rgba(255,255,255,0.12);
    border-top-color: rgba(255,255,255,0.7);
    border-radius: 50%;
    animation: cdp-spin 0.7s linear infinite;
}
@keyframes cdp-spin { to { transform: rotate(360deg); } }
.cdp-lb-footer {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0,0,0,0.4);
    flex-shrink: 0;
}
.cdp-lb-name {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
    font-weight: 500;
}
.cdp-lb-dl {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: color 0.18s;
}
.cdp-lb-dl:hover { color: #fff; }
.cdp-lb-progress-track {
    height: 2px;
    background: rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.cdp-lb-progress-bar {
    height: 100%;
    background: var(--cdp-accent, #4f9cf9);
    width: 0%;
    transition: width 5s linear;
}

/* ── VIDEO LIGHTBOX ──────────────────────────────────────────────────────────── */
.cdp-video-lb {
    position: fixed;
    inset: 0;
    z-index: 600;
    background: rgba(0,0,0,0.97);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.cdp-video-lb.cdp-lb--open { display: flex; }
.cdp-video-lb-header {
    position: absolute;
    top: 0; left: 0; right: 0;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 10;
}
.cdp-video-lb-title {
    position: absolute;
    left: 20px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    letter-spacing: 0.02em;
    max-width: 60%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cdp-video-lb-close {
    width: 36px; height: 36px;
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s;
    z-index: 10;
}
.cdp-video-lb-close:hover { background: rgba(255,255,255,0.2); color: #fff; }
.cdp-video-lb-player {
    width: 90%;
    max-width: 1100px;
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
}
.cdp-video-lb-player iframe {
    width: 100%; height: 100%;
    border: none;
    display: block;
}
.cdp-video-lb-dl {
    margin-top: 14px;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}
.cdp-video-lb-dl.cdp-show { display: flex; }

/* ── SHARE TOAST ─────────────────────────────────────────────────────────────── */
.cdp-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(20,24,32,0.96);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 999;
    backdrop-filter: blur(12px);
}
.cdp-toast.cdp-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── PASSWORD GATE ───────────────────────────────────────────────────────────── */
.cdp-pw-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}
.cdp-pw-box {
    width: 100%;
    max-width: 400px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 44px 40px;
    text-align: center;
    backdrop-filter: blur(16px);
}
.cdp-pw-logo { max-height: 44px; max-width: 180px; margin: 0 auto 28px; display: block; }
.cdp-pw-title {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}
.cdp-pw-subtitle {
    margin: 0 0 28px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.45);
}
.cdp-pw-error {
    margin-bottom: 12px;
    font-size: 13px;
    color: #f87171;
    font-weight: 500;
}
.cdp-pw-form { display: flex; flex-direction: column; gap: 10px; }
.cdp-pw-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.14);
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.18s;
}
.cdp-pw-input:focus { border-color: var(--cdp-accent, #4f9cf9); }
.cdp-pw-input::placeholder { color: rgba(255,255,255,0.3); }
.cdp-pw-submit {
    padding: 12px;
    border-radius: 8px;
    background: var(--cdp-accent, #4f9cf9);
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: opacity 0.18s;
}
.cdp-pw-submit:hover { opacity: 0.85; }

/* ── EMPTY STATE ─────────────────────────────────────────────────────────────── */
.cdp-empty {
    padding: 60px 20px;
    text-align: center;
    color: rgba(255,255,255,0.25);
    font-size: 14px;
}
.cdp-empty svg { margin-bottom: 14px; opacity: 0.3; }

/* ── FOOTER ──────────────────────────────────────────────────────────────────── */
.cdp-footer {
    padding: 20px 36px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cdp-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    font-weight: 500;
    transition: background 0.18s, color 0.18s;
}
.cdp-review-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ── EXPIRY BADGE ────────────────────────────────────────────────────────────── */
.cdp-expiry-badge {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 300;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(15, 20, 30, 0.88);
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.02em;
    backdrop-filter: blur(12px);
    pointer-events: none;
    transition: opacity 0.3s;
}
/* Urgency colors when close to expiry */
.cdp-expiry-badge--urgent {
    color: #f59e0b;
    border-color: rgba(245,158,11,0.3);
    background: rgba(30, 20, 5, 0.9);
}
.cdp-expiry-badge--critical {
    color: #f87171;
    border-color: rgba(248,113,113,0.3);
    background: rgba(30, 10, 10, 0.9);
}

/* ── EXPIRED GATE ────────────────────────────────────────────────────────────── */
.cdp-expired-gate {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 2;
}
.cdp-expired-icon {
    margin: 0 auto 20px;
    width: 72px; height: 72px;
    border-radius: 50%;
    background: rgba(248,113,113,0.1);
    border: 1px solid rgba(248,113,113,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f87171;
}
.cdp-expired-contact {
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    line-height: 1.7;
    text-align: center;
}
.cdp-expired-email {
    color: var(--cdp-accent, #4f9cf9);
    font-weight: 600;
    transition: opacity 0.18s;
}
.cdp-expired-email:hover { opacity: 0.75; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .cdp-topbar { padding: 16px 18px; }
    .cdp-hero { padding: 28px 18px 24px; }
    .cdp-hero h1 { font-size: clamp(1.6rem, 6vw, 3.2rem); }
    .cdp-tabs-bar { padding: 6px 12px; }
    .cdp-content { padding: 20px 18px 48px; }
    .cdp-video-lb-player { width: 98%; }
    .cdp-lb-img { max-width: 98%; max-height: 70vh; }
    .cdp-lb-img-next { max-width: 98%; max-height: 70vh; }
}
