/* ═══════════════════════════════════════════════
   Image Boost — Premium Admin Stylesheet
   ═══════════════════════════════════════════════ */


/* ─── CSS Variables ────────────────────────────── */
:root {
    --imgboost-primary: #6366f1;
    --imgboost-primary-dark: #4f46e5;
    --imgboost-primary-light: #a5b4fc;
    --imgboost-success: #10b981;
    --imgboost-warning: #f59e0b;
    --imgboost-danger: #ef4444;
    --imgboost-info: #3b82f6;
    --imgboost-purple: #8b5cf6;
    --imgboost-bg: #0f172a;
    --imgboost-bg-card: #1e293b;
    --imgboost-bg-card-hover: #334155;
    --imgboost-border: #334155;
    --imgboost-text: #e2e8f0;
    --imgboost-text-muted: #94a3b8;
    --imgboost-text-dim: #64748b;
    --imgboost-radius: 16px;
    --imgboost-radius-sm: 10px;
    --imgboost-shadow: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
    --imgboost-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
    --imgboost-glow: 0 0 30px rgba(99,102,241,0.2);
}

/* ─── Hide WP Admin Notices ────────────────────── */
body[class*="image-boost"] .notice,
body[class*="image-boost"] div.updated,
body[class*="image-boost"] div.error,
body[class*="image-boost"] .update-nag {
    display: none !important;
}

/* ─── Base Wrap ────────────────────────────────── */
.imgboost-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
    color: var(--imgboost-text);
    -webkit-font-smoothing: antialiased;
}

.imgboost-wrap * {
    box-sizing: border-box;
}

/* ─── Header ───────────────────────────────────── */
.imgboost-header {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 30%, #4338ca 60%, #6366f1 100%);
    border-radius: var(--imgboost-radius);
    padding: 32px 40px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--imgboost-shadow-lg), var(--imgboost-glow);
}

.imgboost-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.imgboost-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.imgboost-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.imgboost-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.imgboost-logo {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.2);
}

.imgboost-logo .dashicons {
    font-size: 28px;
    width: 28px;
    height: 28px;
    color: #fff;
}

.imgboost-header h1 {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    padding: 0;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.imgboost-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin: 4px 0 0;
    font-weight: 400;
}

.imgboost-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.imgboost-engine-badge {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
}

.imgboost-format-badges {
    display: flex;
    gap: 6px;
}

.imgboost-fmt-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

.imgboost-fmt-active {
    background: rgba(16,185,129,0.15);
    color: #6ee7b7;
    border-color: rgba(16,185,129,0.3);
}

.imgboost-fmt-inactive {
    background: rgba(239,68,68,0.15);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.3);
}

/* ─── Stats Grid ───────────────────────────────── */
.imgboost-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.imgboost-stat-card {
    background: var(--imgboost-bg-card);
    border-radius: var(--imgboost-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--imgboost-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.imgboost-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: var(--imgboost-radius) var(--imgboost-radius) 0 0;
}

.imgboost-stat-total::before { background: linear-gradient(90deg, var(--imgboost-info), var(--imgboost-primary)); }
.imgboost-stat-optimized::before { background: linear-gradient(90deg, var(--imgboost-success), #34d399); }
.imgboost-stat-saved::before { background: linear-gradient(90deg, var(--imgboost-purple), #a78bfa); }
.imgboost-stat-avg::before { background: linear-gradient(90deg, var(--imgboost-warning), #fbbf24); }

.imgboost-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--imgboost-shadow-lg);
    border-color: var(--imgboost-primary);
}

.imgboost-stat-icon {
    font-size: 36px;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.imgboost-stat-info {
    display: flex;
    flex-direction: column;
}

.imgboost-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.imgboost-stat-label {
    font-size: 13px;
    color: var(--imgboost-text-muted);
    font-weight: 500;
    margin-top: 2px;
}

/* ─── Progress Ring ────────────────────────────── */
.imgboost-progress-section {
    background: var(--imgboost-bg-card);
    border-radius: var(--imgboost-radius);
    padding: 40px;
    border: 1px solid var(--imgboost-border);
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 28px;
}

.imgboost-progress-ring-container {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.imgboost-progress-ring {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
}

.imgboost-progress-bg {
    fill: none;
    stroke: var(--imgboost-border);
    stroke-width: 8;
}

.imgboost-progress-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke: var(--imgboost-primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.imgboost-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.imgboost-progress-pct {
    display: block;
    font-size: 26px; /* Shrunk from 32px to stay inside circle */
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.imgboost-progress-label {
    display: block;
    font-size: 12px;
    color: var(--imgboost-text-muted);
    font-weight: 500;
}

.imgboost-progress-info {
    flex: 1;
}

.imgboost-progress-info p {
    font-size: 16px;
    color: var(--imgboost-text);
    margin: 0 0 16px;
}

.imgboost-all-done {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: var(--imgboost-radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.imgboost-all-done span {
    font-size: 28px;
}

.imgboost-all-done p {
    margin: 0 !important;
    color: #6ee7b7;
    font-weight: 600;
}

/* ─── Buttons ──────────────────────────────────── */
.imgboost-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--imgboost-radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    line-height: 1.4;
}

.imgboost-btn-primary {
    background: linear-gradient(135deg, var(--imgboost-primary), var(--imgboost-primary-dark));
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.imgboost-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
    color: #fff;
}

.imgboost-btn-secondary {
    background: var(--imgboost-bg-card-hover);
    color: var(--imgboost-text);
    border: 1px solid var(--imgboost-border);
}

.imgboost-btn-secondary:hover {
    background: #475569;
    color: #fff;
}

.imgboost-btn-success {
    background: linear-gradient(135deg, var(--imgboost-success), #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.imgboost-btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
    color: #fff;
}

.imgboost-section {
    margin-bottom: 28px;
}

.imgboost-section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--imgboost-primary);
    margin: 0 0 20px;
    padding: 0;
}

/* ─── Compression Level Cards ──────────────────── */
.imgboost-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.imgboost-level-card {
    background: var(--imgboost-bg-card);
    border-radius: var(--imgboost-radius);
    padding: 28px;
    border: 2px solid var(--imgboost-border);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.imgboost-level-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--imgboost-shadow-lg);
    border-color: var(--level-color);
}

.imgboost-level-active {
    border-color: var(--level-color) !important;
    box-shadow: 0 0 0 1px var(--level-color), 0 0 30px rgba(99,102,241,0.15);
}

.imgboost-level-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.imgboost-level-icon {
    font-size: 24px;
}

.imgboost-level-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.imgboost-level-tag {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.imgboost-level-desc {
    font-size: 13px;
    color: var(--imgboost-text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}

.imgboost-level-savings {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--imgboost-border);
}

.imgboost-level-savings-label {
    font-size: 12px;
    color: var(--imgboost-text-dim);
}

.imgboost-level-savings-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--imgboost-success);
}

.imgboost-level-active-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--level-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
}

/* ─── Bulk Optimize Page ───────────────────────── */
.imgboost-bulk-controls {
    background: var(--imgboost-bg-card);
    border-radius: var(--imgboost-radius);
    padding: 32px;
    border: 1px solid var(--imgboost-border);
    margin-bottom: 24px;
}

.imgboost-bulk-summary {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--imgboost-border);
}

.imgboost-bulk-stat {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
    text-align: left;
}

.imgboost-bulk-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.imgboost-bulk-stat-label {
    font-size: 14px;
    color: var(--imgboost-text-muted);
    font-weight: 600;
}

.imgboost-text-success { color: var(--imgboost-success) !important; }
.imgboost-text-warning { color: var(--imgboost-warning) !important; }

.imgboost-bulk-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.imgboost-bulk-level-select {
    display: flex;
    align-items: center;
    gap: 12px;
}

.imgboost-bulk-level-select label {
    font-size: 14px;
    font-weight: 600;
    color: var(--imgboost-text);
    white-space: nowrap;
}

.imgboost-bulk-buttons {
    display: flex;
    gap: 10px;
}

/* ─── Select & Input ───────────────────────────── */
.imgboost-select,
.imgboost-input {
    background: var(--imgboost-bg);
    color: var(--imgboost-text);
    border: 1px solid var(--imgboost-border);
    border-radius: var(--imgboost-radius-sm);
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    transition: border-color 0.2s;
    outline: none;
}

.imgboost-select:focus,
.imgboost-input:focus {
    border-color: var(--imgboost-primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.imgboost-input {
    width: 120px;
}

/* ─── Progress Bar ─────────────────────────────── */
.imgboost-bulk-progress {
    background: var(--imgboost-bg-card);
    border-radius: var(--imgboost-radius);
    padding: 28px 32px;
    border: 1px solid var(--imgboost-border);
    margin-bottom: 24px;
}

.imgboost-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

#bulk-progress-pct {
    color: var(--imgboost-primary-light);
    font-size: 18px;
    font-weight: 800;
}

.imgboost-progress-bar-container {
    background: var(--imgboost-bg);
    border-radius: 12px;
    height: 20px;
    overflow: hidden;
    position: relative;
}

.imgboost-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--imgboost-primary), var(--imgboost-purple), var(--imgboost-primary));
    background-size: 200% 100%;
    border-radius: 12px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    animation: imgboost-shimmer 2s linear infinite;
}

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

.imgboost-progress-bar-glow {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
    border-radius: 0 12px 12px 0;
}

.imgboost-progress-details {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 12px;
    color: var(--imgboost-text-muted);
}

/* ─── Results Table ────────────────────────────── */
.imgboost-bulk-results {
    background: var(--imgboost-bg-card);
    border-radius: var(--imgboost-radius);
    padding: 28px 32px;
    border: 1px solid var(--imgboost-border);
}

.imgboost-bulk-results h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px;
}

.imgboost-results-table-wrap {
    overflow-x: auto;
    border-radius: var(--imgboost-radius-sm);
    border: 1px solid var(--imgboost-border);
}

.imgboost-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.imgboost-results-table th {
    background: var(--imgboost-bg);
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: var(--imgboost-text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--imgboost-border);
}

.imgboost-results-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--imgboost-border);
    color: var(--imgboost-text);
    vertical-align: middle;
}

.imgboost-results-table tr:last-child td {
    border-bottom: none;
}

.imgboost-results-table tr:hover td {
    background: rgba(99,102,241,0.05);
}

.imgboost-results-table .imgboost-result-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

.imgboost-result-savings {
    font-weight: 700;
    color: var(--imgboost-success);
}

.imgboost-result-status-ok {
    color: var(--imgboost-success);
    font-weight: 600;
}

.imgboost-result-status-err {
    color: var(--imgboost-danger);
    font-weight: 600;
}

/* ─── Settings Page ────────────────────────────── */
.imgboost-settings-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.imgboost-settings-section {
    background: var(--imgboost-bg-card);
    border-radius: var(--imgboost-radius);
    padding: 32px;
    border: 1px solid var(--imgboost-border);
}

.imgboost-settings-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--imgboost-border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.imgboost-settings-title .dashicons {
    color: var(--imgboost-primary-light);
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.imgboost-setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.imgboost-setting-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.imgboost-setting-label {
    flex: 1;
    padding-right: 24px;
}

.imgboost-setting-label label {
    font-size: 14px;
    font-weight: 600;
    color: var(--imgboost-text);
    display: block;
    margin-bottom: 4px;
}

.imgboost-setting-desc {
    font-size: 12px;
    color: var(--imgboost-text-dim);
    margin: 0;
    line-height: 1.5;
}

.imgboost-warning {
    display: inline-block;
    color: var(--imgboost-warning);
    font-weight: 600;
    margin-top: 4px;
}

.imgboost-setting-field {
    flex-shrink: 0;
}

/* ─── Toggle Switch ────────────────────────────── */
.imgboost-toggle {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.imgboost-toggle input {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
    visibility: hidden !important;
    -webkit-appearance: none !important;
    pointer-events: none !important;
}

.imgboost-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--imgboost-bg);
    border: 2px solid var(--imgboost-border);
    border-radius: 28px;
    transition: all 0.3s;
}

.imgboost-toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 2px;
    top: 2px;
    background: var(--imgboost-text-muted);
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.imgboost-toggle input:checked + .imgboost-toggle-slider {
    background: var(--imgboost-primary);
    border-color: var(--imgboost-primary);
}

.imgboost-toggle input:checked + .imgboost-toggle-slider::before {
    transform: translateX(24px);
    background: #fff;
}

.imgboost-toggle input:disabled + .imgboost-toggle-slider {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── Settings Footer ──────────────────────────── */
.imgboost-settings-footer {
    display: flex;
    align-items: center;
    gap: 16px;
}

.imgboost-btn-save {
    padding: 14px 32px;
    font-size: 15px;
}

.imgboost-save-status {
    font-size: 14px;
    font-weight: 600;
    color: var(--imgboost-success);
    opacity: 0;
    transition: opacity 0.3s;
}

.imgboost-save-status.visible {
    opacity: 1;
}

/* ─── Responsive ───────────────────────────────── */
@media (max-width: 1024px) {
    .imgboost-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .imgboost-levels-grid {
        grid-template-columns: 1fr;
    }
    .imgboost-progress-section {
        flex-direction: column;
        text-align: center;
    }
    .imgboost-header-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .imgboost-header-left {
        flex-direction: column;
    }
    .imgboost-bulk-actions {
        flex-direction: column;
    }
    .imgboost-bulk-summary {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .imgboost-stats-grid {
        grid-template-columns: 1fr;
    }
    .imgboost-header {
        padding: 24px;
    }
    .imgboost-setting-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .imgboost-setting-label {
        padding-right: 0;
    }
}

/* ─── Animations ───────────────────────────────── */
@keyframes imgboost-fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.imgboost-stat-card,
.imgboost-level-card,
.imgboost-settings-section {
    animation: imgboost-fadeIn 0.5s ease-out;
}

.imgboost-stat-card:nth-child(2) { animation-delay: 0.1s; }
.imgboost-stat-card:nth-child(3) { animation-delay: 0.2s; }
.imgboost-stat-card:nth-child(4) { animation-delay: 0.3s; }

.imgboost-level-card:nth-child(2) { animation-delay: 0.1s; }
.imgboost-level-card:nth-child(3) { animation-delay: 0.2s; }

/* ─── Media Library Column ───────────────────────── */
.column-imgboost { width: 180px; }
.imgboost-col { font-size: 12px; }
.imgboost-badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-bottom: 4px; }
.imgboost-optimized { background: #d4edda; color: #155724; }
.imgboost-pending { background: #fff3cd; color: #856404; }
.imgboost-error { background: #f8d7da; color: #721c24; }
.imgboost-details { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; }
.imgboost-savings { font-weight: 700; color: #28a745; }
.imgboost-level { font-size: 11px; color: #666; }
.imgboost-sizes { font-size: 10px; color: #999; }
.imgboost-error-msg { display: block; font-size: 10px; color: #dc3545; margin: 2px 0; }
.imgboost-optimize-btn, .imgboost-restore-btn { margin-top: 4px !important; font-size: 11px !important; }

/* ─── Support Page ─────────────────────────────── */
.imgboost-support-wrap { display: flex; justify-content: center; align-items: center; margin-top: 40px; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; width: 100%; }
.imgboost-support-card { background: var(--imgboost-bg-card); border-radius: 20px; padding: 40px; width: 100%; max-width: 100%; text-align: center; box-shadow: 0 10px 40px rgba(0,0,0,0.5); position: relative; overflow: hidden; z-index: 1; border: 1px solid rgba(255,255,255,0.05); }

/* Animated Avatar Border */
.imgboost-dev-avatar-wrapper { position: relative; width: 130px; height: 130px; margin: 0 auto 20px; border-radius: 50%; padding: 4px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 20px rgba(99, 102, 241, 0.4); }
.imgboost-dev-avatar-wrapper::before { content: ''; position: absolute; inset: 0; background: conic-gradient(from 0deg, var(--imgboost-primary), var(--imgboost-purple), var(--imgboost-info), var(--imgboost-primary)); animation: imgboost-spin-avatar 4s linear infinite; z-index: 0; border-radius: 50%; }
.imgboost-dev-avatar-wrapper::after { content: ''; position: absolute; inset: 4px; background: var(--imgboost-bg-card); border-radius: 50%; z-index: 1; }
@keyframes imgboost-spin-avatar { 100% { transform: rotate(360deg); } }

.imgboost-dev-avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; position: relative; z-index: 2; border: 3px solid var(--imgboost-bg-card); transition: transform 0.3s ease; }
.imgboost-dev-avatar:hover { transform: scale(1.05); }
.imgboost-dev-name { font-size: 28px; font-weight: 700; color: #fff; margin: 0 0 10px 0; }
.imgboost-dev-role { font-size: 14px; color: var(--imgboost-primary-light); margin: 0 0 20px 0; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; }
.imgboost-contact-info { margin-top: 30px; display: flex; flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 15px; }
.imgboost-contact-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 50px; color: #fff !important; text-decoration: none; font-weight: 600; font-size: 14px; transition: transform 0.3s, opacity 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.2); border: none; }
.imgboost-contact-btn:hover { transform: translateY(-3px); opacity: 0.9; }
.imgboost-contact-btn:focus { outline: none; box-shadow: 0 0 0 2px #fff; }
.btn-email { background: #ea4335; } 
.btn-whatsapp { background: #25D366; }
.btn-website { background: var(--imgboost-primary); }

/* Full Width Features Grid */
.imgboost-features-grid-full { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; width: 100%; margin-top: 20px; }
.imgboost-feature-item-full { background: var(--imgboost-bg-card); padding: 25px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); transition: transform 0.3s, box-shadow 0.3s; box-shadow: 0 4px 15px rgba(0,0,0,0.2); display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.imgboost-feature-item-full:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.4); border-color: rgba(99,102,241,0.3); }
.imgboost-feature-item-full .dashicons { font-size: 32px; width: 32px; height: 32px; margin-bottom: 15px; color: var(--imgboost-primary-light); }
.imgboost-feature-item-full strong { display: block; font-size: 16px; color: #fff; margin-bottom: 8px; font-weight: 600; }
.imgboost-feature-item-full p { font-size: 14px; color: var(--imgboost-text-muted); line-height: 1.5; margin: 0; }

/* Envato requirement: hide notices via CSS on our plugin pages only instead of remove_all_actions */
.toplevel_page_image-boost .update-nag,
.toplevel_page_image-boost .notice,
.image-boost_page_image-boost-bulk .update-nag,
.image-boost_page_image-boost-bulk .notice,
.image-boost_page_image-boost-settings .update-nag,
.image-boost_page_image-boost-settings .notice {
    display: none !important;
}

/* Dashboard Analytics Grid */
.imgboost-analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
.imgboost-pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }
@media (max-width: 900px) { .imgboost-analytics-grid, .imgboost-pro-grid { grid-template-columns: 1fr; } }
.imgboost-chart-card, .imgboost-slider-card { background: var(--imgboost-bg-card); padding: 25px; border-radius: 12px; box-shadow: var(--imgboost-shadow-md); border: 1px solid var(--imgboost-border); display: flex; flex-direction: column; }
.imgboost-chart-card h3, .imgboost-slider-card h3 { margin: 0 0 20px 0; font-size: 18px; color: #fff; display: flex; align-items: center; gap: 10px; }
.imgboost-slider-desc { text-align: center; color: var(--imgboost-text-muted); font-size: 13px; margin-top: auto; padding-top: 15px; font-style: italic; }

/* Before / After Slider */
.imgboost-comparison-wrap { position: relative; width: 100%; height: 260px; overflow: hidden; border-radius: 8px; cursor: ew-resize; background: #000; box-shadow: inset 0 2px 10px rgba(0,0,0,0.2); }
.imgboost-comp-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.imgboost-comp-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; pointer-events: none; }
.imgboost-comp-original { clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%); z-index: 2; transition: clip-path 0.05s linear; }
.imgboost-comp-optimized { z-index: 1; }

.imgboost-comp-badge { position: absolute; bottom: 15px; padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8); backdrop-filter: blur(4px); pointer-events: none; }
.imgboost-badge-before { left: 15px; background: rgba(220, 53, 69, 0.8); z-index: 3; }
.imgboost-badge-after { right: 15px; background: rgba(40, 167, 69, 0.8); z-index: 3; }

.imgboost-comp-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: #fff; z-index: 4; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 15px rgba(0,0,0,0.4); }
.imgboost-comp-arrows { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border-radius: 50%; border: 2px solid rgba(255,255,255,0.8); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transition: background 0.2s; }
.imgboost-comp-arrows:hover { background: rgba(255,255,255,0.25); }
.imgboost-comp-arrows::before, .imgboost-comp-arrows::after { content: ''; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; position: absolute; top: 50%; transform: translateY(-50%); opacity: 0.8; }
.imgboost-comp-arrows::before { border-right: 6px solid #fff; left: 10px; }
.imgboost-comp-arrows::after { border-left: 6px solid #fff; right: 10px; }


