/* ============================================================
   Instagram Bulk Video Downloader — Fully Customizable UI
   Responsive: 320px → ∞   |   Kadence & Gutenberg Ready
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── Scoped box-sizing reset ─────────────────────────────────── */
.ibvd-container,
.ibvd-container *,
.ibvd-container *::before,
.ibvd-container *::after {
    box-sizing: border-box;
}

/* ── Root container + Dynamic CSS Variables ─────────────────── */
.ibvd-container {
    /* Default CSS tokens */
    --ibvd-bg: #0c0c13;
    --ibvd-border: rgba(255, 255, 255, 0.08);
    --ibvd-radius: 24px;
    --ibvd-blur: 0px;
    --ibvd-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    --ibvd-glow-1: rgba(124, 58, 237, 0.18);
    --ibvd-glow-2: rgba(192, 38, 211, 0.13);

    --ibvd-title-start: #ffffff;
    --ibvd-title-end: #f472b6;
    --ibvd-subtitle-color: #7c8fa6;
    --ibvd-text: #f1f5f9;
    --ibvd-muted: #7c8fa6;

    --ibvd-input-bg: #1a1a28;
    --ibvd-input-border: rgba(255, 255, 255, 0.09);
    --ibvd-input-focus: rgba(139, 92, 246, 0.65);
    --ibvd-input-color: #f1f5f9;
    --ibvd-input-placeholder: #4b5563;
    --ibvd-input-icon: #475569;

    --ibvd-paste-bg: transparent;
    --ibvd-paste-color: #64748b;
    --ibvd-paste-hover: #c4b5fd;

    --ibvd-btn-start: #7c3aed;
    --ibvd-btn-end: #c026d3;
    --ibvd-btn-text: #ffffff;
    --ibvd-btn-hover-start: #6d28d9;
    --ibvd-btn-hover-end: #a21caf;
    --ibvd-btn-radius: 16px;
    --ibvd-btn-shadow: rgba(124, 58, 237, 0.42);

    --ibvd-profile-bg: #1a1a28;
    --ibvd-profile-border: rgba(255, 255, 255, 0.08);
    --ibvd-profile-name: #ffffff;
    --ibvd-profile-stats-num: #ffffff;
    --ibvd-profile-stats-label: #7c8fa6;

    --ibvd-card-bg: #13131e;
    --ibvd-card-border: rgba(255, 255, 255, 0.08);
    --ibvd-card-radius: 12px;
    --ibvd-badge-bg: rgba(0, 0, 0, 0.6);
    --ibvd-badge-color: #ffffff;

    --ibvd-dl-bg: rgba(124, 58, 237, 0.85);
    --ibvd-dl-hover-bg: rgba(109, 40, 217, 0.95);
    --ibvd-dl-color: #ffffff;
    --ibvd-dl-radius: 6px;

    --ibvd-pager-bg: #1a1a28;
    --ibvd-pager-border: rgba(255, 255, 255, 0.08);
    --ibvd-pager-color: #7c8fa6;
    --ibvd-pager-active-bg: #7c3aed;
    --ibvd-pager-active-color: #ffffff;
    --ibvd-pager-radius: 8px;

    --ibvd-cols: 5;
    --ibvd-cols-tablet: 3;
    --ibvd-cols-mobile: 2;
    --ibvd-gap: 10px;

    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--ibvd-bg);
    color: var(--ibvd-text);
    border: 1px solid var(--ibvd-border);
    border-radius: var(--ibvd-radius);
    box-shadow: var(--ibvd-shadow);
    backdrop-filter: blur(var(--ibvd-blur));
    -webkit-backdrop-filter: blur(var(--ibvd-blur));
    padding: 2.25rem 2rem 2.75rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    margin: 0 auto;
    display: block;
}

/* Prevent unwanted paragraph/break spaces from WordPress themes */
.ibvd-container p:empty,
.ibvd-container > p:empty,
.ibvd-container br {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ── Decorative Background Glow Blobs via CSS Pseudo-elements (No HTML nodes = No empty space bug!) ── */
.ibvd-container.has-glow::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    width: 420px;
    height: 420px;
    top: -180px;
    right: -100px;
    background: radial-gradient(circle, var(--ibvd-glow-1), transparent 70%);
}

.ibvd-container.has-glow::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    width: 300px;
    height: 300px;
    bottom: -120px;
    left: -80px;
    background: radial-gradient(circle, var(--ibvd-glow-2), transparent 70%);
}

/* Lift direct children above glowing blobs */
.ibvd-container > * {
    position: relative;
    z-index: 1;
}

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
.ibvd-header {
    text-align: center;
    margin: 0 0 1.8rem 0;
    padding: 0;
}

.ibvd-logo-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin: 0 0 0.4rem 0;
    padding: 0;
}

.ibvd-logo-badge {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(220, 39, 67, 0.35);
}

.ibvd-logo-badge svg {
    width: 22px;
    height: 22px;
    display: block;
}

.ibvd-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: clamp(1.25rem, 3.5vw, 1.85rem) !important;
    font-weight: 800 !important;
    letter-spacing: -0.035em !important;
    line-height: 1.2 !important;
    background: linear-gradient(135deg, var(--ibvd-title-start) 0%, var(--ibvd-title-end) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.ibvd-subtitle {
    margin: 0.3rem 0 0 0 !important;
    padding: 0 !important;
    color: var(--ibvd-subtitle-color) !important;
    font-size: 0.88rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
}

/* ════════════════════════════════════════════════════════════
   SEARCH & INPUT BAR
   ════════════════════════════════════════════════════════════ */
.ibvd-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ibvd-input-row {
    display: flex;
    align-items: stretch;
    background: var(--ibvd-input-bg);
    border: 1.5px solid var(--ibvd-input-border);
    border-radius: var(--ibvd-btn-radius);
    overflow: hidden;
    transition: border-color 0.22s, box-shadow 0.22s;
}

.ibvd-input-row:focus-within {
    border-color: var(--ibvd-input-focus);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.ibvd-input-wrap {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
}

.ibvd-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--ibvd-input-icon);
    width: 18px;
    height: 18px;
    display: block;
    flex-shrink: 0;
    transition: color 0.22s;
}

.ibvd-input-row:focus-within .ibvd-input-icon {
    color: var(--ibvd-btn-start);
}

.ibvd-input {
    flex: 1 !important;
    width: 100% !important;
    padding: 0.9rem 0.75rem 0.9rem 2.65rem !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    color: var(--ibvd-input-color) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.93rem !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    min-height: 52px !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    display: block !important;
}

.ibvd-input::placeholder {
    color: var(--ibvd-input-placeholder) !important;
    opacity: 1 !important;
}

.ibvd-paste-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0 1rem;
    background: var(--ibvd-paste-bg) !important;
    border: none !important;
    border-left: 1px solid var(--ibvd-input-border) !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--ibvd-paste-color) !important;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.18s, background 0.18s;
    margin: 0 !important;
    height: auto;
}

.ibvd-paste-btn:hover {
    color: var(--ibvd-paste-hover) !important;
    background: rgba(139, 92, 246, 0.08) !important;
}

.ibvd-paste-btn svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}

.ibvd-input-hint {
    font-size: 0.74rem;
    color: var(--ibvd-muted);
    padding-left: 0.5rem;
    line-height: 1.4;
    margin: 0;
}

/* ── Primary Action Button (Get Videos) ──────────────────────── */
.ibvd-btn-fetch {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    padding: 0.85rem 1.5rem !important;
    background: linear-gradient(135deg, var(--ibvd-btn-start) 0%, var(--ibvd-btn-end) 100%) !important;
    color: var(--ibvd-btn-text) !important;
    border: none !important;
    border-radius: var(--ibvd-btn-radius) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.94rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    min-height: 50px !important;
    line-height: 1 !important;
    position: relative !important;
    overflow: hidden !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0.35rem 0 0 !important;
    text-decoration: none !important;
    box-shadow: 0 5px 22px var(--ibvd-btn-shadow) !important;
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s, background 0.2s !important;
}

.ibvd-btn-fetch::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.12), transparent 60%);
    pointer-events: none;
}

.ibvd-btn-fetch:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    background: linear-gradient(135deg, var(--ibvd-btn-hover-start) 0%, var(--ibvd-btn-hover-end) 100%) !important;
    box-shadow: 0 10px 30px var(--ibvd-btn-shadow) !important;
}

.ibvd-btn-fetch:active:not(:disabled) {
    transform: translateY(0) !important;
}

.ibvd-btn-fetch:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

.ibvd-btn-fetch svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Spinner */
.ibvd-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ibvd-spin 0.65s linear infinite;
    flex-shrink: 0;
}

@keyframes ibvd-spin {
    to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════════════════════════
   STATUS MESSAGE
   ════════════════════════════════════════════════════════════ */
.ibvd-status {
    display: none;
    margin-top: 1rem;
    padding: 0.85rem 1.1rem;
    border-radius: var(--ibvd-card-radius);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
    animation: ibvd-fadedown 0.28s ease;
}

@keyframes ibvd-fadedown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.ibvd-status.info {
    display: block;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #c4b5fd;
}

.ibvd-status.success {
    display: block;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
}

.ibvd-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #fca5a5;
}

.ibvd-dot-pulse {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    animation: ibvd-pulse 1s ease-in-out infinite;
    vertical-align: middle;
    margin-right: 2px;
}

@keyframes ibvd-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
}

/* ════════════════════════════════════════════════════════════
   API LOADING PULSE
   ════════════════════════════════════════════════════════════ */
.ibvd-loading-pulse {
    display: none;
    text-align: center;
    padding: 2.5rem 1rem;
    animation: ibvd-fadedown 0.35s ease;
}

.ibvd-lp-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ibvd-scale-pulse 1.4s ease-in-out infinite;
    box-shadow: 0 8px 28px rgba(220, 39, 67, 0.35);
}

.ibvd-lp-icon svg {
    width: 28px;
    height: 28px;
}

@keyframes ibvd-scale-pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 8px 28px rgba(220, 39, 67, 0.35); }
    50% { transform: scale(1.08); box-shadow: 0 12px 36px rgba(220, 39, 67, 0.55); }
}

.ibvd-lp-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 5px;
    height: 30px;
    margin: 0 auto 1rem;
}

.ibvd-lp-bar {
    width: 5px;
    border-radius: 3px;
    background: linear-gradient(to top, var(--ibvd-btn-start), var(--ibvd-btn-end));
    animation: ibvd-bar-wave 1.1s ease-in-out infinite;
}

.ibvd-lp-bar:nth-child(1) { animation-delay: 0s; height: 40%; }
.ibvd-lp-bar:nth-child(2) { animation-delay: 0.15s; height: 70%; }
.ibvd-lp-bar:nth-child(3) { animation-delay: 0.3s; height: 100%; }
.ibvd-lp-bar:nth-child(4) { animation-delay: 0.45s; height: 70%; }
.ibvd-lp-bar:nth-child(5) { animation-delay: 0.6s; height: 40%; }

@keyframes ibvd-bar-wave {
    0%, 100% { transform: scaleY(0.4); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

.ibvd-lp-text {
    color: var(--ibvd-muted);
    font-size: 0.86rem;
    font-weight: 500;
    line-height: 1.5;
}

.ibvd-lp-text strong {
    color: var(--ibvd-text);
    font-weight: 700;
}

/* ════════════════════════════════════════════════════════════
   PROFILE CARD
   ════════════════════════════════════════════════════════════ */
.ibvd-profile-info {
    display: none;
    margin-top: 1.6rem;
    background: var(--ibvd-profile-bg);
    border: 1px solid var(--ibvd-profile-border);
    border-radius: var(--ibvd-radius);
    padding: 1.2rem 1.5rem;
    animation: ibvd-fadedown 0.35s ease;
}

.ibvd-profile-flex {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.ibvd-avatar-wrap {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    box-shadow: 0 4px 16px rgba(220, 39, 67, 0.3);
}

.ibvd-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--ibvd-bg);
    background: var(--ibvd-input-bg);
    display: block;
}

.ibvd-meta {
    flex: 1;
    min-width: 0;
}

.ibvd-name {
    margin: 0 0 0.12rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ibvd-profile-name);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ibvd-username-text {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    color: var(--ibvd-muted);
    font-weight: 500;
}

.ibvd-stats {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.ibvd-stat-item {
    text-align: center;
}

.ibvd-stat-num {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ibvd-profile-stats-num);
    line-height: 1.2;
}

.ibvd-stat-label {
    font-size: 0.67rem;
    color: var(--ibvd-profile-stats-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

/* ════════════════════════════════════════════════════════════
   SECTION LABEL (Above Grid)
   ════════════════════════════════════════════════════════════ */
.ibvd-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 1.6rem 0 0.9rem;
}

.ibvd-section-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ibvd-muted);
}

.ibvd-count-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #c4b5fd;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 100px;
    padding: 0.2rem 0.65rem;
}

/* ════════════════════════════════════════════════════════════
   VIDEO GRID
   ════════════════════════════════════════════════════════════ */
.ibvd-grid {
    display: grid;
    grid-template-columns: repeat(var(--ibvd-cols, 5), 1fr);
    gap: var(--ibvd-gap, 10px);
}

.ibvd-video-card {
    position: relative;
    border-radius: var(--ibvd-card-radius);
    overflow: hidden;
    background: var(--ibvd-card-bg);
    aspect-ratio: 1 / 1;
    cursor: pointer;
    border: 1px solid var(--ibvd-card-border);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.22s, box-shadow 0.3s;
    animation: ibvd-card-in 0.35s ease both;
}

@keyframes ibvd-card-in {
    from {
        opacity: 0;
        transform: scale(0.88) translateY(8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.ibvd-video-card:hover {
    transform: translateY(-4px) scale(1.03);
    border-color: var(--ibvd-btn-start);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--ibvd-btn-start);
    z-index: 2;
}

.ibvd-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.ibvd-video-card:hover img {
    transform: scale(1.08);
}

.ibvd-card-no-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ibvd-input-bg);
    color: var(--ibvd-muted);
}

.ibvd-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.12) 55%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.55rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.ibvd-video-card:hover .ibvd-overlay {
    opacity: 1;
}

.ibvd-card-type {
    font-size: 0.56rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    background: var(--ibvd-badge-bg);
    color: var(--ibvd-badge-color);
    padding: 2px 5px;
    border-radius: 4px;
    align-self: flex-start;
    margin-bottom: 0.35rem;
}

.ibvd-btn-download {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.28rem !important;
    width: 100% !important;
    padding: 0.45rem !important;
    background: var(--ibvd-dl-bg) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: var(--ibvd-dl-radius) !important;
    color: var(--ibvd-dl-color) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.18s, transform 0.15s !important;
    letter-spacing: 0.02em !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.ibvd-btn-download:hover {
    background: var(--ibvd-dl-hover-bg) !important;
    transform: scale(1.02);
}

.ibvd-btn-download svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════ */
.ibvd-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.8rem;
    flex-wrap: wrap;
}

.ibvd-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    background: var(--ibvd-pager-bg);
    border: 1px solid var(--ibvd-pager-border);
    border-radius: var(--ibvd-pager-radius);
    color: var(--ibvd-pager-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    -webkit-appearance: none;
    appearance: none;
}

.ibvd-page-btn:hover:not(.active):not(:disabled) {
    border-color: var(--ibvd-btn-start);
    color: #fff;
    background: rgba(139, 92, 246, 0.1);
}

.ibvd-page-btn.active {
    background: var(--ibvd-pager-active-bg);
    border-color: transparent;
    color: var(--ibvd-pager-active-color);
    box-shadow: 0 2px 12px var(--ibvd-btn-shadow);
}

.ibvd-page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.ibvd-page-ellipsis {
    color: var(--ibvd-muted);
    font-size: 0.85rem;
    padding: 0 0.15rem;
    line-height: 36px;
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════════════════ */

/* Tablet (≤1024px) */
@media (max-width: 1024px) {
    .ibvd-grid {
        grid-template-columns: repeat(var(--ibvd-cols-tablet, 3), 1fr);
    }
}

/* Small Tablet / Large Mobile (≤768px) */
@media (max-width: 768px) {
    .ibvd-container {
        padding: 1.75rem 1.25rem 2rem;
    }

    .ibvd-grid {
        grid-template-columns: repeat(var(--ibvd-cols-tablet, 3), 1fr);
        gap: 8px;
    }

    .ibvd-title {
        font-size: 1.4rem;
    }

    .ibvd-logo-badge {
        width: 38px;
        height: 38px;
    }
}

/* Phone (≤480px) */
@media (max-width: 480px) {
    .ibvd-container {
        padding: 1.5rem 1rem 1.8rem;
    }

    .ibvd-grid {
        grid-template-columns: repeat(var(--ibvd-cols-mobile, 2), 1fr);
        gap: 7px;
    }

    .ibvd-title {
        font-size: 1.15rem;
    }

    .ibvd-avatar-wrap {
        width: 54px;
        height: 54px;
    }

    .ibvd-stats {
        gap: 0.85rem;
    }
}

/* Small phones (≤360px) */
@media (max-width: 360px) {
    .ibvd-container {
        padding: 1.2rem 0.75rem 1.5rem;
    }

    .ibvd-grid {
        grid-template-columns: repeat(var(--ibvd-cols-mobile, 2), 1fr);
        gap: 6px;
    }

    .ibvd-title {
        font-size: 1rem;
    }

    .ibvd-input {
        font-size: 0.85rem !important;
        padding-left: 2.2rem !important;
    }

    .ibvd-btn-fetch {
        font-size: 0.86rem !important;
        padding: 0.75rem 1rem !important;
    }
}