/* ==========================================================================
   FRYNZY CLEANER & OPTIMIZER PRO — STYLESHEET
   Clean Modern White Design & iOS-grade transitions
   ========================================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

.fcp-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 100015 !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    animation: fcpFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fcpFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Topbar (White theme with Top-Left Return Arrow) */
.fcp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: calc(var(--sat, 0px) + 10px);
    padding-bottom: 12px;
    padding-left: 16px;
    padding-right: 16px;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
    z-index: 100016 !important;
}

.fcp-topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fcp-topbar-back-btn,
.fcp-topbar-action-btn {
    border: none;
    background: #f1f5f9;
    color: #334155;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.fcp-topbar-back-btn:active,
.fcp-topbar-action-btn:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

.fcp-topbar-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.fcp-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Scrollable Body Container */
.fcp-body {
    flex: 1 1 0%;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px calc(var(--sab, 0px) + 20px) !important;
    box-sizing: border-box;
}

.fcp-body > div {
    width: 100%;
    box-sizing: border-box;
}

/* Status Banner */
.fcp-status-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid #e2e8f0;
    font-size: 0.88rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    flex-shrink: 0;
}

.fcp-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    flex-shrink: 0;
}

.fcp-status-chip {
    margin-left: auto;
    font-size: 0.78rem;
    background: #f1f5f9;
    color: #64748b;
    padding: 3px 10px;
    border-radius: 8px;
    font-weight: 600;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   MODULE 1 : TABLEAU DE BORD (DASHBOARD)
   ───────────────────────────────────────────────────────────── */

.fcp-orb-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    width: 100%;
}

.fcp-orb-canvas-wrap {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    flex-shrink: 0;
}

.fcp-orb-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.fcp-orb-center-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.fcp-orb-score-val {
    font-size: 2.4rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.fcp-orb-score-lbl {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.06em;
    margin-top: 6px;
}

/* Primary Action Buttons */
.fcp-primary-btn {
    width: 100%;
    max-width: 280px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    padding: 13px 20px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
    transition: transform 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
}

.fcp-primary-btn:active {
    transform: scale(0.97);
    opacity: 0.92;
}

.fcp-clean-btn {
    background: linear-gradient(135deg, #059669, #047857);
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28);
}

.fcp-cool-btn {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
}

/* Section Title */
.fcp-section-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin: 18px 0 12px;
}

/* 2x2 Grid of Stat Cards */
.fcp-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
}

.fcp-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.fcp-stat-card:active {
    transform: scale(0.97);
    background: #f8fafc;
}

.fcp-stat-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.fcp-icon-green { background: rgba(16, 185, 129, 0.12); color: #059669; }
.fcp-icon-blue  { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.fcp-icon-cyan  { background: rgba(2, 132, 199, 0.12); color: #0284c7; }
.fcp-icon-temp  { background: rgba(220, 38, 38, 0.12); color: #dc2626; }

.fcp-stat-card-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
}

.fcp-stat-card-lbl {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 4px;
}

.fcp-stat-card-action {
    margin-top: 10px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fcp-mini-progress {
    width: 100%;
    height: 5px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.fcp-mini-progress-fill {
    height: 100%;
    background: #2563eb;
    border-radius: 3px;
}

/* ─────────────────────────────────────────────────────────────
   MODULE 2 : NETTOYEUR DE STOCKAGE (JUNK CLEANER)
   ───────────────────────────────────────────────────────────── */

.fcp-vortex-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    height: 200px;
    width: 100%;
    flex-shrink: 0;
}

.fcp-vortex-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.fcp-vortex-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    text-align: center;
}

.fcp-vortex-size {
    font-size: 2.3rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.fcp-vortex-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: #059669;
    letter-spacing: 0.06em;
    margin-top: 4px;
}

.fcp-item-row {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 13px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    flex-shrink: 0;
}

.fcp-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #059669;
    cursor: pointer;
    flex-shrink: 0;
}

.fcp-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.fcp-item-info {
    flex: 1;
    min-width: 0;
}

.fcp-item-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
}

.fcp-item-sub {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 1px;
}

.fcp-item-size {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────────
   MODULE 3 : FRIGO D'APPLICATIONS (APP FREEZER)
   ───────────────────────────────────────────────────────────── */

.fcp-frost-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 16px;
    min-height: 180px;
    width: 100%;
    flex-shrink: 0;
}

.fcp-frost-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.fcp-frost-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
}

.fcp-frost-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
}

.fcp-frost-title i {
    color: #0284c7;
    font-size: 1.25rem;
}

.fcp-frost-desc {
    font-size: 0.83rem;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
    margin: 8px 0 14px;
    max-width: 320px;
}

.fcp-glass-pill-btn {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 24px;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25);
    transition: transform 0.15s ease, opacity 0.15s ease;
    flex-shrink: 0;
}

.fcp-glass-pill-btn:active {
    transform: scale(0.97);
}

.fcp-tabs-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    flex-shrink: 0;
}

.fcp-tab-btn {
    flex: 1;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.fcp-tab-btn.active {
    background: #0284c7;
    color: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.2);
}

.fcp-search-wrap,
.fcp-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    width: 100%;
    flex-shrink: 0;
}

.fcp-search-wrap i,
.fcp-search-bar i {
    color: #94a3b8;
    font-size: 0.95rem;
}

.fcp-search-wrap input,
.fcp-search-bar input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 0.9rem;
    color: #0f172a;
}

.fcp-apps-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.fcp-app-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
    flex-shrink: 0;
}

.fcp-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f1f5f9;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    overflow: hidden;
}

.fcp-app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fcp-app-details {
    flex: 1;
    min-width: 0;
}

.fcp-app-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcp-app-pkg {
    font-size: 0.74rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.fcp-app-freeze-btn {
    border: none;
    padding: 7px 16px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.fcp-app-freeze-btn.freeze {
    background: #e0f2fe;
    color: #0284c7;
}

.fcp-app-freeze-btn.freeze:active {
    background: #bae6fd;
}

.fcp-app-freeze-btn.unfreeze {
    background: #fee2e2;
    color: #dc2626;
}

.fcp-app-freeze-btn.unfreeze:active {
    background: #fecaca;
}

/* ─────────────────────────────────────────────────────────────
   MODULE 4 : REFROIDISSEUR CPU & BATTERIE
   ───────────────────────────────────────────────────────────── */

.fcp-cooler-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    min-height: 220px;
    width: 100%;
    flex-shrink: 0;
}

.fcp-ice-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

.fcp-cooler-overlay {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.fcp-temp-display-wrap,
.fcp-temp-display {
    text-align: center;
    margin-bottom: 12px;
}

.fcp-temp-val {
    font-size: 2.8rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.02em;
}

.fcp-temp-status {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0284c7;
    margin-top: 6px;
}

.fcp-thermometer-bar,
.fcp-thermo-bar {
    width: 100%;
    max-width: 260px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0 18px;
}

.fcp-thermometer-fill,
.fcp-thermo-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7, #38bdf8, #ef4444);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.fcp-battery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 16px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    width: 100%;
    flex-shrink: 0;
}

.fcp-battery-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fcp-battery-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(2, 132, 199, 0.12);
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.fcp-battery-level {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
}

.fcp-battery-time {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

.fcp-modes-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
    width: 100%;
}

.fcp-mode-card {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 15px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.fcp-mode-card.active {
    border-color: #0284c7;
    background: #f0f9ff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.1);
}

.fcp-mode-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.fcp-mode-card.active .fcp-mode-radio {
    border-color: #0284c7;
    background: #0284c7;
}

.fcp-mode-card.active .fcp-mode-radio::after {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
}

.fcp-mode-info {
    flex: 1;
    min-width: 0;
}

.fcp-mode-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
}

.fcp-mode-sub,
.fcp-mode-desc {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 2px;
}

/* ─────────────────────────────────────────────────────────────
   BOTTOM NAVIGATION BAR (SUSPENDED & FIXED AT BOTTOM)
   ───────────────────────────────────────────────────────────── */

.fcp-bottom-nav {
    display: none !important;
}

.fcp-nav-item {
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 14px;
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.fcp-nav-item i {
    font-size: 1.2rem;
}

.fcp-nav-item.active {
    color: #2563eb;
    font-weight: 700;
}

/* Settings Badges */
.fcp-badge-pill {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 16px;
    margin-right: 6px;
    flex-shrink: 0;
    border: 1px solid #dadce0;
    background: #ffffff;
    color: #1a73e8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.fcp-badge-green,
.fcp-badge-cyan,
.fcp-badge-temp,
#fcpSettingsHealthBadge,
#fcpSettingsJunkBadge,
#fcpSettingsFrozenBadge,
#fcpSettingsTempBadge {
    background: #ffffff !important;
    color: #1a73e8 !important;
    border: 1px solid #dadce0 !important;
    border-radius: 16px !important;
    font-weight: 700 !important;
}

[data-theme="dark"] #fcpSettingsHealthBadge,
[data-theme="dark"] #fcpSettingsJunkBadge,
[data-theme="dark"] #fcpSettingsFrozenBadge,
[data-theme="dark"] #fcpSettingsTempBadge {
    background: #1e293b !important;
    color: #60a5fa !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}



/* ═════════════════════════════════════════════════════════════════════════
   CLEAN LUXURY TAB CARDS (Apple / Samsung Device Care Style - NO CANVAS BEHIND TEXT)
   ═════════════════════════════════════════════════════════════════════════ */

/* Module 1 : Dashboard Health Card */
.fcp-health-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px 20px 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.fcp-health-gauge-wrap {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.fcp-health-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.fcp-gauge-bg {
    stroke: #f1f5f9;
}

.fcp-gauge-fill {
    stroke: #10b981;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.8s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.4s ease;
}

.fcp-health-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.fcp-health-score-val {
    font-size: 3rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
}

.fcp-health-score-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.08em;
    margin-top: 4px;
}

.fcp-health-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    text-align: center;
}

.fcp-health-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #ecfdf5;
    color: #059669;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.fcp-health-meta-desc {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Module 2, 3, 4 : Clean Header Cards */
.fcp-clean-header-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 22px 18px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
    box-sizing: border-box;
}

.fcp-card-icon-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
}

.fcp-storage-hero {
    margin: 14px 0 16px;
    width: 100%;
}

.fcp-storage-val {
    font-size: 3rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
}

.fcp-storage-sub {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 6px;
}

.fcp-seg-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 9999px;
    display: flex;
    overflow: hidden;
    margin-top: 4px;
}

.fcp-seg-fill {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fcp-seg-cache { background: #0ea5e9; }
.fcp-seg-large { background: #f59e0b; }
.fcp-seg-apks { background: #8b5cf6; }

.fcp-seg-legend {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.76rem;
    color: #64748b;
    font-weight: 600;
}

.fcp-freezer-hero {
    width: 100%;
    margin: 14px 0 10px;
}

.fcp-freezer-row {
    display: flex;
    align-items: center;
    justify-content: space-around;
    text-align: center;
    width: 100%;
}

.fcp-freezer-val {
    font-size: 2.6rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
}

.fcp-freezer-lbl {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

.fcp-freezer-divider {
    width: 1px;
    height: 40px;
    background: #e2e8f0;
}

.fcp-cooler-hero {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin: 14px 0 14px;
    width: 100%;
}

.fcp-temp-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 9999px;
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ═════════════════════════════════════════════════════════════════════════
   DEDICATED FULL-SCREEN PROCESS SCREEN (3D Living Model & Telemetry)
   ═════════════════════════════════════════════════════════════════════════ */
.fcp-process-screen {
    position: absolute !important;
    inset: 0 !important;
    z-index: 100025 !important;
    background: #ffffff !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    animation: fcpProcessSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fcpProcessSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.fcp-process-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--sat, 0px) + 12px) 18px 12px;
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.fcp-process-mode-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.fcp-process-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.15s ease;
}

.fcp-process-close-btn:active {
    background: #e2e8f0;
    transform: scale(0.95);
}

.fcp-process-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 18px calc(var(--sab, 0px) + 24px);
    width: 100%;
    box-sizing: border-box;
}

.fcp-process-3d-stage {
    width: 100%;
    max-width: 360px;
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    position: relative;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(241, 245, 249, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
}

.fcp-process-canvas {
    width: 100%;
    max-width: 340px;
    height: 230px;
    display: block;
}

.fcp-process-telemetry {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fcp-process-metric-hero {
    text-align: center;
    margin-bottom: 14px;
}

.fcp-proc-num {
    font-size: 3.2rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    letter-spacing: -0.03em;
}

.fcp-proc-unit {
    font-size: 1.5rem;
    font-weight: 800;
    color: #10b981;
    margin-left: 4px;
}

.fcp-proc-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 4px;
}

.fcp-process-progress-box {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.fcp-proc-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.fcp-proc-step-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 78%;
}

.fcp-proc-pct-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0284c7;
}

.fcp-proc-progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
}

.fcp-proc-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0284c7 0%, #10b981 100%);
    border-radius: 9999px;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.fcp-process-chips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
}

.fcp-proc-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
    box-sizing: border-box;
}

.fcp-proc-chip-icon {
    font-size: 0.95rem;
    color: #0284c7;
    margin-bottom: 2px;
}

.fcp-proc-chip-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.1;
}

.fcp-proc-chip-lbl {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
}

.fcp-proc-done-btn {
    width: 100%;
    margin-top: 6px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    box-shadow: 0 6px 20px -2px rgba(5, 150, 105, 0.4) !important;
    animation: fcpPulseDone 2s infinite ease-in-out;
}

@keyframes fcpPulseDone {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}


/* ═════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE STYLING FOR ALL CLEANER PRO ELEMENTS & PREVENT UNSTYLED DOM
   ═════════════════════════════════════════════════════════════════════════ */

/* Performance 2x2 Grid & Stat Cards */
.fcp-stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.fcp-stat-card:active {
    background: #f8fafc;
    transform: scale(0.98);
}

.fcp-stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.fcp-stat-card-icon.junk, .fcp-stat-card-icon.fcp-icon-green { background: #ecfdf5; color: #059669; }
.fcp-stat-card-icon.cpu, .fcp-stat-card-icon.fcp-icon-temp { background: #fee2e2; color: #ef4444; }
.fcp-stat-card-icon.ram, .fcp-stat-card-icon.fcp-icon-blue { background: #e0f2fe; color: #0284c7; }
.fcp-stat-card-icon.battery, .fcp-stat-card-icon.fcp-icon-cyan { background: #f0fdf4; color: #16a34a; }

.fcp-stat-card-info {
    flex: 1 1 auto;
    min-width: 0;
}

.fcp-stat-card-lbl {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcp-stat-card-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.fcp-stat-card-sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 2px;
}

.fcp-stat-arrow {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-left: auto;
}

/* Tip Banner */
.fcp-tip-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 18px;
}

.fcp-tip-banner i {
    font-size: 1.2rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.fcp-tip-text {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.35;
}

.fcp-tip-text strong {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 1px;
}

/* Junk Detected Item Rows */
.fcp-item-row {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fcp-item-row:active {
    background: #f8fafc;
}

.fcp-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.fcp-item-icon.cache { background: #e0f2fe; color: #0284c7; }
.fcp-item-icon.large { background: #fef3c7; color: #d97706; }
.fcp-item-icon.apks { background: #f3e8ff; color: #9333ea; }

.fcp-item-info {
    flex: 1 1 auto;
    min-width: 0;
}

.fcp-item-name, .fcp-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.fcp-item-desc, .fcp-item-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

.fcp-item-size {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

/* Battery Banner & Modes */
.fcp-battery-banner {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.fcp-battery-icon-large {
    font-size: 1.8rem;
    color: #10b981;
    flex-shrink: 0;
}

.fcp-battery-info {
    display: flex;
    flex-direction: column;
}

.fcp-battery-sub {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
}

.fcp-modes-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.fcp-mode-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 14px;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.fcp-mode-card.active {
    border-color: #0284c7;
    background: #f0f9ff;
}

.fcp-mode-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: transparent;
    flex-shrink: 0;
}

.fcp-mode-card.active .fcp-mode-check {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.fcp-mode-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.fcp-mode-icon.normal { background: #f1f5f9; color: #475569; }
.fcp-mode-icon.eco { background: #ecfdf5; color: #059669; }
.fcp-mode-icon.ultra { background: #fef2f2; color: #dc2626; }

.fcp-mode-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.fcp-mode-desc {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

/* Tabs Wrap & Loading Msg */
.fcp-tabs-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
}

.fcp-loading-msg {
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Secure Folder 3D Animation Container */
.frynzy-secure-phone-3d-wrap {
    width: 100%;
    max-width: 360px;
    height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
}

.frynzy-secure-phone-3d-canvas {
    width: 100%;
    max-width: 340px;
    height: 210px;
    display: block;
}


.fcp-storage-card, .fcp-freezer-card, .fcp-cooler-card-new {
    width: 100%;
}

.fcp-proc-chip-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ═════════════════════════════════════════════════════════════════════════
   COMPREHENSIVE STYLING FOR ALL CLEANER PRO ELEMENTS & PREVENT UNSTYLED DOM
   ═════════════════════════════════════════════════════════════════════════ */

/* Performance 2x2 Grid & Stat Cards */
.fcp-stat-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.fcp-stat-card:active {
    background: #f8fafc;
    transform: scale(0.98);
}

.fcp-stat-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.fcp-stat-card-icon.junk, .fcp-stat-card-icon.fcp-icon-green { background: #ecfdf5; color: #059669; }
.fcp-stat-card-icon.cpu, .fcp-stat-card-icon.fcp-icon-temp { background: #fee2e2; color: #ef4444; }
.fcp-stat-card-icon.ram, .fcp-stat-card-icon.fcp-icon-blue { background: #e0f2fe; color: #0284c7; }
.fcp-stat-card-icon.battery, .fcp-stat-card-icon.fcp-icon-cyan { background: #f0fdf4; color: #16a34a; }

.fcp-stat-card-info {
    flex: 1 1 auto;
    min-width: 0;
}

.fcp-stat-card-lbl {
    font-size: 0.76rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fcp-stat-card-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.fcp-stat-card-sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: #94a3b8;
    margin-top: 2px;
}

.fcp-stat-arrow {
    font-size: 0.8rem;
    color: #cbd5e1;
    margin-left: auto;
}

/* Tip Banner */
.fcp-tip-banner {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 18px;
}

.fcp-tip-banner i {
    font-size: 1.2rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.fcp-tip-text {
    display: flex;
    flex-direction: column;
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.35;
}

.fcp-tip-text strong {
    color: #0f172a;
    font-weight: 700;
    margin-bottom: 1px;
}

/* Junk Detected Item Rows */
.fcp-item-row {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.fcp-item-row:active {
    background: #f8fafc;
}

.fcp-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.fcp-item-icon.cache { background: #e0f2fe; color: #0284c7; }
.fcp-item-icon.large { background: #fef3c7; color: #d97706; }
.fcp-item-icon.apks { background: #f3e8ff; color: #9333ea; }

.fcp-item-info {
    flex: 1 1 auto;
    min-width: 0;
}

.fcp-item-name, .fcp-item-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.fcp-item-desc, .fcp-item-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 2px;
}

.fcp-item-size {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

/* Battery Banner & Modes */
.fcp-battery-banner {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.fcp-battery-icon-large {
    font-size: 1.8rem;
    color: #10b981;
    flex-shrink: 0;
}

.fcp-battery-info {
    display: flex;
    flex-direction: column;
}

.fcp-battery-sub {
    font-size: 0.76rem;
    color: #64748b;
    margin-top: 2px;
}

.fcp-modes-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.fcp-mode-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 14px 14px;
    border: 1.5px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}

.fcp-mode-card.active {
    border-color: #0284c7;
    background: #f0f9ff;
}

.fcp-mode-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    color: transparent;
    flex-shrink: 0;
}

.fcp-mode-card.active .fcp-mode-check {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff;
}

.fcp-mode-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.fcp-mode-icon.normal { background: #f1f5f9; color: #475569; }
.fcp-mode-icon.eco { background: #ecfdf5; color: #059669; }
.fcp-mode-icon.ultra { background: #fef2f2; color: #dc2626; }

.fcp-mode-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
}

.fcp-mode-desc {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

/* Tabs Wrap & Loading Msg */
.fcp-tabs-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
    width: 100%;
}

.fcp-loading-msg {
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

/* Secure Folder 3D Animation Container */
.frynzy-secure-phone-3d-wrap {
    width: 100%;
    max-width: 360px;
    height: 215px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    position: relative;
    border-radius: 20px;
    background: radial-gradient(circle at center, rgba(248, 250, 252, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
}

.frynzy-secure-phone-3d-canvas {
    width: 100%;
    max-width: 340px;
    height: 210px;
    display: block;
}
