/* =================================================
                VIRALAI FINAL UI
================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Inter,Arial,sans-serif;
}

body{
    background:#070B14;
    color:white;
    display:flex;
}

/* ================= SIDEBAR ================= */

.sidebar{

    position: fixed !important;

    left: 0 !important;

    top: 0 !important;

    width: 270px !important;

    height: 100vh !important;
    height: 100dvh !important;

    max-height: 100vh !important;

    background: #0d1321 !important;

    border-right: 1px solid rgba(255,255,255,.06);

    padding: 24px 20px;

    display: flex !important;

    flex-direction: column;

    overflow-y: auto !important; /* Forces the sidebar to become scrollable */
    -webkit-overflow-scrolling: touch;

    z-index: 1000 !important;

}

/* Custom smooth scrollbar for the sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.2);
    border-radius: 4px;
}

.sidebar-top{

    text-align:center;

    margin-bottom:35px;

}

.sidebar-logo{

    width:150px;

    height:150px;

    object-fit:contain;

    display:block;

    margin:0 auto 10px;

    filter:

    drop-shadow(
    0 0 35px rgba(34,211,238,.65)
    );

    transition:.35s ease;

}


.sidebar-logo:hover{

    transform:scale(1.08);

    filter:

    drop-shadow(
    0 0 50px rgba(34,211,238,.9)
    );

}

.sidebar h2{

    color:#ffffff;

    font-size:24px;

    font-weight:800;

    margin-top:5px;

    margin-bottom:6px;

    letter-spacing:-.5px;

}

.sidebar p{

    color:#94A3B8;

    line-height:1.6;

    font-size:14px;

}

.sidebar-menu{

    margin-top:34px;

    display:flex;

    flex-direction:column;

    gap:10px;

}

.sidebar-menu a{

    display:flex;

    align-items:center;

    gap:12px;

    color:#cbd5e1;

    text-decoration:none;

    padding:15px 18px;

    border-radius:14px;

    transition:.3s;

    font-weight:600;

}

.sidebar-menu a:hover{

    background:rgba(255,255,255,.04);

    color:#ffffff;

    transform:translateX(4px);

}

.sidebar-menu .active{

    background:linear-gradient(
    90deg,
    rgba(34,211,238,.18),
    rgba(34,211,238,.05)
    );

    color:#22d3ee;

    border:1px solid rgba(34,211,238,.18);

    box-shadow:
    0 0 18px rgba(34,211,238,.08);

}
/* ===== SIDEBAR BOTTOM ===== */

/* ===== SIDEBAR BOTTOM ===== */

.sidebar-bottom{

    margin-top: auto !important;

    padding-top: 20px;
    padding-bottom: 40px !important; /* Gives breathing room at the bottom so version label is reachable */

    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0 !important;

}

.creator-card{

    display:flex;

    align-items:center;

    gap:14px;

    padding:16px;

    border-radius:18px;

    background:#151d2f;

    border:1px solid rgba(255,255,255,.06);

    transition:.3s;

}

.creator-card:hover{

    border-color:rgba(34,211,238,.18);

    box-shadow:
    0 0 18px rgba(34,211,238,.10);

}

.creator-avatar{

    width:52px;

    height:52px;

    border-radius:50%;

    background:linear-gradient(135deg,#38bdf8,#2563eb);

    color:white;

    font-weight:700;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

}

.creator-info h4{

    color:white;

    margin:0;

    font-size:16px;

}

.creator-info p{

    margin-top:4px;

    color:#94A3B8;

    font-size:13px;

}

/* ================= MAIN ================= */

.dashboard{

    margin-left: 270px !important; /* Matches the exact width of the sidebar so they never overlap */

    width: calc(100% - 270px) !important;

    padding: 35px;

}

/* ================= SMALL CREATOR COACH HERO ================= */


.creator-coach{

    display:flex;

    justify-content:space-between;

    align-items:center;

    min-height:150px;

    background:

    radial-gradient(
        circle at right,
        rgba(34,211,238,.12),
        transparent 35%
    ),

    linear-gradient(
        135deg,
        #172554,
        #0f172a
    );

    border:1px solid rgba(34,211,238,.12);

    border-radius:20px;

    padding:18px 30px;

    margin-bottom:25px;

    overflow:hidden;

    position:relative;

    box-shadow:

    0 12px 30px rgba(0,0,0,.25);

}



.creator-coach::before{

    content:"";

    position:absolute;

    right:-100px;

    top:-100px;

    width:240px;

    height:240px;

    background:rgba(34,211,238,.08);

    border-radius:50%;

}



.coach-left{

    max-width:600px;

    position:relative;

    z-index:2;

}



.coach-badge{

    display:inline-flex;

    align-items:center;

    gap:6px;

    background:rgba(34,211,238,.12);

    color:#22d3ee;

    padding:6px 14px;

    border-radius:50px;

    font-size:12px;

    font-weight:700;

    margin-bottom:10px;

    border:1px solid rgba(34,211,238,.18);

}



.coach-left h1{

    font-size:32px;

    line-height:1.1;

    font-weight:900;

    letter-spacing:-.8px;

    margin-bottom:8px;

    white-space:nowrap;

}



.coach-left p{

    color:#94A3B8;

    font-size:13px;

    line-height:1.5;

    max-width:480px;

}



/* ================= HERO LOGO ================= */


.coach-right{

    display:flex;

    justify-content:center;

    align-items:center;

    padding-right:10px;

    position:relative;

    z-index:2;

}



.coach-right img{

    width:120px;

    height:120px;

    object-fit:contain;

    filter:

    drop-shadow(
    0 0 30px rgba(34,211,238,.75)
    );

    animation:logoFloat 4s ease-in-out infinite;

}



@keyframes logoFloat{

    0%{

        transform:translateY(0);

    }

    50%{

        transform:translateY(-6px);

    }

    100%{

        transform:translateY(0);

    }

}

/* ================= PREMIUM STATS CARDS ================= */


.stats{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:20px;

    margin-bottom:30px;

}



/* CARD */

.stat-card{

    position:relative;

    overflow:hidden;

    background:

    linear-gradient(
        145deg,
        #18263d,
        #101827
    );

    border-radius:22px;

    padding:22px;

    min-height:160px;

    border:1px solid rgba(255,255,255,.07);

    transition:.35s ease;

    box-shadow:

    0 15px 35px rgba(0,0,0,.3);

}



.stat-card:hover{

    transform:translateY(-6px);

}



/* GLOW BACKGROUND */


.stat-card::before{

    content:"";

    position:absolute;

    width:150px;

    height:150px;

    right:-50px;

    top:-50px;

    border-radius:50%;

    opacity:.25;

    filter:blur(15px);

}



/* COLORS */


.stat-card.blue::before{

    background:#22d3ee;

}


.stat-card.purple::before{

    background:#a855f7;

}


.stat-card.green::before{

    background:#22c55e;

}


.stat-card.orange::before{

    background:#f59e0b;

}



/* HEADER */


.stat-header{

    display:flex;

    align-items:center;

    gap:15px;

    position:relative;

    z-index:2;

}



/* ICON */


.stat-icon{

    width:58px;

    height:58px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:26px;

    background:rgba(255,255,255,.05);

    flex-shrink:0;

}



/* ICON COLORS */


.stat-card.blue .stat-icon{

    color:#22d3ee;

    border:2px solid #22d3ee;

    box-shadow:0 0 20px rgba(34,211,238,.35);

}


.stat-card.purple .stat-icon{

    color:#a855f7;

    border:2px solid #a855f7;

    box-shadow:0 0 20px rgba(168,85,247,.35);

}


.stat-card.green .stat-icon{

    color:#22c55e;

    border:2px solid #22c55e;

    box-shadow:0 0 20px rgba(34,197,94,.35);

}


.stat-card.orange .stat-icon{

    color:#f59e0b;

    border:2px solid #f59e0b;

    box-shadow:0 0 20px rgba(245,158,11,.35);

}



/* TEXT */


.stat-text p{

    color:#94A3B8;

    font-size:13px;

    margin-bottom:6px;

}



.stat-text h2{

    font-size:32px;

    font-weight:900;

    line-height:1;

}



/* NUMBER COLORS */


.stat-card.blue .stat-text h2{

    color:#22d3ee;

}


.stat-card.purple .stat-text h2{

    color:#c084fc;

}


.stat-card.green .stat-text h2{

    color:#4ade80;

}


.stat-card.orange .stat-text h2{

    color:#fbbf24;

}



/* MINI GRAPH AREA */


.stat-graph{

    height:35px;

    margin-top:20px;

    opacity:.8;

    position:relative;

}



/* GRAPH LINES */


.stat-graph::after{

    content:"";

    position:absolute;

    left:0;

    bottom:5px;

    width:100%;

    height:25px;

    background:

    linear-gradient(
        135deg,
        transparent 0%,
        transparent 15%,
        rgba(34,211,238,.8) 16%,
        transparent 17%,
        transparent 35%,
        rgba(34,211,238,.8) 36%,
        transparent 37%,
        transparent 55%,
        rgba(34,211,238,.8) 56%,
        transparent 57%
    );

}



/* DIFFERENT GRAPH COLORS */


.stat-card.purple .stat-graph::after{

    filter:hue-rotate(80deg);

}


.stat-card.green .stat-graph::after{

    filter:hue-rotate(140deg);

}


.stat-card.orange .stat-graph::after{

    filter:hue-rotate(220deg);

}

/* ================= STAT TEXT PURE WHITE ================= */


.stat-text p{

    color:#ffffff;

    font-size:14px;

    font-weight:700;

    letter-spacing:.2px;

}


.stat-text h2{

    font-weight:900;

    text-shadow:

    0 0 15px rgba(34,211,238,.25);

}
/* =================================================
                DASHBOARD GRID
================================================= */

/* =========================================
   DASHBOARD GRID
========================================= */

.dashboard-grid{

    display:grid;

    grid-template-columns:1.75fr 1fr;

    gap:24px;

    align-items:stretch;

}

.left-column,
.right-column{

    display:flex;

    flex-direction:column;

}

.left-column{

    gap:24px;

}

.right-column{

    height:100%;

}

.right-column .dashboard-card{

    flex:1;

    display:flex;

    flex-direction:column;

    justify-content:space-between;

}

/* ================= LEFT COLUMN ================= */

.main-column{

    display:flex;

    flex-direction:column;

    gap:28px;

}

/* ====================================
UPLOAD + PREVIEW GRID
==================================== */

.upload-analysis-grid{

display:grid;

grid-template-columns:1fr 1fr;

gap:24px;

margin-bottom:30px;

}

/* ====================================
AI PREVIEW CARD
==================================== */

.preview-card{

padding:24px;
display:flex;
flex-direction:column;
height:500px;
overflow:hidden;

}

.preview-card h2{

font-size:30px;
font-weight:800;
margin-bottom:6px;
color:#fff;

}

.preview-card>p{

font-size:14px;
margin-bottom:20px;
color:#cbd5e1;

}

/* ===========================
AI ENGINE
=========================== */

.preview-brain{

position:relative;
height:270px;
display:flex;
justify-content:center;
align-items:center;
overflow:hidden;

}

.analysis-status{

position:absolute;

left:50%;
bottom:18px;

transform:translateX(-50%);

display:none;

padding:6px 14px;

background:rgba(9,15,30,.88);

border:1px solid rgba(0,212,255,.25);

border-radius:999px;

color:#00d4ff;

font-size:12px;

font-weight:600;

line-height:1;

white-space:nowrap;

box-shadow:0 6px 18px rgba(0,212,255,.15);

backdrop-filter:blur(8px);

z-index:100;

pointer-events:none;

transition:opacity .3s ease;

}

/* ===========================
CENTER ROBOT
=========================== */

.robot-core{

position:relative;
width:180px;
height:180px;
display:flex;
justify-content:center;
align-items:center;
z-index:5;

}

#aiRobot{

width:170px;
height:170px;
object-fit:contain;
position:relative;
z-index:5;
transition:.35s;

}

.orbit{

position:absolute;
width:220px;
height:220px;
left:50%;
top:50%;
margin-left:-110px;
margin-top:-110px;
pointer-events:none;
z-index:20;

}

.orbit .preview-pill{

z-index:25;

}

/* ===========================
SCAN RINGS
=========================== */

.scan-ring{

position:absolute;
width:150px;
height:150px;
border-radius:50%;
border:2px solid rgba(0,212,255,.25);
opacity:0;

}

.scan-ring.ring2{

width:180px;
height:180px;

}

/* ===========================
ORBITS
=========================== */

.orbit{

position:absolute;
width:220px;
height:220px;
left:50%;
top:50%;
margin-left:-110px;
margin-top:-110px;
pointer-events:none;

}
.orbit .preview-pill{

position:absolute;
left:50%;
top:50%;

padding:7px 12px;

border-radius:999px;

background:#162133;

border:1px solid rgba(255,255,255,.12);

color:#fff;

font-size:11px;

font-weight:600;

white-space:nowrap;

box-shadow:0 8px 20px rgba(0,0,0,.25);

transform:
translate(-50%,-50%)
translateY(-105px);

}

/* Starting positions */

.orbit-1{

transform:rotate(0deg);

}

.orbit-2{

transform:rotate(72deg);

}

.orbit-3{

transform:rotate(144deg);

}

.orbit-4{

transform:rotate(216deg);

}

.orbit-5{

transform:rotate(288deg);

}

/* ===========================
FOOTER
=========================== */

.preview-footer{

margin-top:18px;
display:flex;
align-items:center;
gap:12px;
padding:14px 16px;
background:#162133;
border-radius:16px;

}

.preview-clock{

width:42px;
height:42px;
display:flex;
justify-content:center;
align-items:center;
border-radius:50%;
background:#1f2b40;
font-size:18px;

}

.preview-footer h3{

font-size:24px;
margin:0;
color:#22d3ee;

}

.preview-footer small{

font-size:12px;
color:#cbd5e1;

}

/* ===========================
ANALYZING STATE
=========================== */

.preview-brain.analyzing #aiRobot{

animation:robotPulse 1.7s ease-in-out infinite;
filter:drop-shadow(0 0 18px rgba(0,212,255,.65));

}

.preview-brain.analyzing .scan-ring{

opacity:1;
animation:ringPulse 2s linear infinite;

}

.preview-brain.analyzing .ring2{

animation-delay:1s;

}

.preview-brain.analyzing .orbit-1{

animation:orbit1 8s linear infinite;

}

.preview-brain.analyzing .orbit-2{

animation:orbit2 8s linear infinite;

}

.preview-brain.analyzing .orbit-3{

animation:orbit3 8s linear infinite;

}

.preview-brain.analyzing .orbit-4{

animation:orbit4 8s linear infinite;

}

.preview-brain.analyzing .orbit-5{

animation:orbit5 8s linear infinite;

}

.preview-brain.analyzing .orbit .preview-pill{

animation:counterSpin 8s linear infinite;

}

/* ===========================
KEYFRAMES
=========================== */

@keyframes robotPulse{

0%{transform:scale(1);}
50%{transform:scale(1.06);}
100%{transform:scale(1);}

}

@keyframes orbit1{

from{transform:rotate(0deg);}
to{transform:rotate(360deg);}

}

@keyframes orbit2{

from{transform:rotate(72deg);}
to{transform:rotate(432deg);}

}

@keyframes orbit3{

from{transform:rotate(144deg);}
to{transform:rotate(504deg);}

}

@keyframes orbit4{

from{transform:rotate(216deg);}
to{transform:rotate(576deg);}

}

@keyframes orbit5{

from{transform:rotate(288deg);}
to{transform:rotate(648deg);}

}

@keyframes counterSpin{

from{

transform:
translate(-50%,-50%)
translateY(-105px)
rotate(0deg);

}

to{

transform:
translate(-50%,-50%)
translateY(-105px)
rotate(-360deg);

}

}
@keyframes ringPulse{

0%{
transform:scale(.9);
opacity:.15;
}

50%{
opacity:.7;
}

100%{
transform:scale(1.1);
opacity:0;
}

}

/* ====================================
PREVIEW RESULTS
==================================== */

.preview-results{

display:none;
height:100%;
width:100%;
padding:0;
box-sizing:border-box;
transform-origin:top center;

}
.preview-results h2{

font-size:34px;
text-align:center;
margin:0;
line-height:1;
color:#00d4ff;

}

.preview-results small{

display:block;
text-align:center;
margin:4px 0 12px;
font-size:13px;
color:#94a3b8;

}

.preview-result-list{

display:flex;
flex-direction:column;
gap:6px;

}

.preview-result-list div{

display:flex;
justify-content:space-between;
align-items:center;
padding:6px 10px;
border-radius:8px;
background:#162133;
font-size:13px;
color:#fff;

}

.preview-result-list strong{

color:#00d4ff;
font-size:13px;

}

#resultCoach{

margin-top:8px;
padding:10px 12px;
border-radius:10px;
background:#162133;
font-size:13px;
line-height:1.4;
color:#cbd5e1;

}

@keyframes fadeIn{

from{

opacity:0;

transform:translateY(10px);

}

to{

opacity:1;

transform:translateY(0);

}

}

/* ================= PREMIUM UPLOAD CARD ================= */

.upload-card{

    position:relative;

    overflow:hidden;

    background:
    linear-gradient(
        145deg,
        #1a2942 0%,
        #131f34 45%,
        #0f172a 100%
    );

    border:1px solid rgba(255,255,255,.08);

    border-radius:28px;

    padding:30px;

    box-shadow:
    0 20px 50px rgba(0,0,0,.45);

}

/* Large glow */

.upload-card::before{

    content:"";

    position:absolute;

    top:-180px;

    right:-160px;

    width:420px;

    height:420px;

    border-radius:50%;

    background:
    radial-gradient(
        circle,
        rgba(34,211,238,.18) 0%,
        rgba(34,211,238,.08) 35%,
        transparent 70%
    );

    pointer-events:none;

}

/* Small glow */

.upload-card::after{

    content:"";

    position:absolute;

    bottom:-120px;

    left:-100px;

    width:250px;

    height:250px;

    border-radius:50%;

    background:
    radial-gradient(
        circle,
        rgba(59,130,246,.12),
        transparent 70%
    );

    pointer-events:none;

}

.upload-card::before{

    content:"";

    position:absolute;

    right:-120px;

    top:-120px;

    width:280px;

    height:280px;

    background:

    radial-gradient(
        circle,
        rgba(34,211,238,.18),
        transparent 70%
    );

}

.card-header h2{

    color:#ffffff;

    font-size:26px;

    font-weight:850;

    margin-bottom:8px;

}

.card-header p{

    color:#ffffff;

    opacity:.75;

    font-size:14px;

}

/* ================= PREMIUM UPLOAD ZONE ================= */

.upload-zone{

    position:relative;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    min-height:330px;

    padding:55px 35px;

    border:2px dashed rgba(34,211,238,.45);

    border-radius:28px;

    background:
    linear-gradient(
        180deg,
        rgba(22,34,52,.96),
        rgba(13,23,42,.98)
    );

    transition:.35s ease;

    cursor:pointer;

}

/* top glow */

.upload-zone::before{

    content:"";

    position:absolute;

    top:-120px;

    left:50%;

    transform:translateX(-50%);

    width:420px;

    height:240px;

    background:
    radial-gradient(
        circle,
        rgba(34,211,238,.18),
        transparent 70%
    );

    pointer-events:none;

}

/* bottom glow */

.upload-zone::after{

    content:"";

    position:absolute;

    bottom:-130px;

    left:50%;

    transform:translateX(-50%);

    width:350px;

    height:220px;

    background:
    radial-gradient(
        circle,
        rgba(59,130,246,.12),
        transparent 70%
    );

    pointer-events:none;

}

.upload-zone:hover{

    border-color:#22d3ee;

    transform:translateY(-4px);

    box-shadow:
    0 18px 40px rgba(0,0,0,.35),
    0 0 45px rgba(34,211,238,.18);

}


/* Upload icon */


.upload-icon{

    width:82px;

    height:82px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    background:

    rgba(34,211,238,.12);

    border:1px solid rgba(34,211,238,.35);

    margin-bottom:18px;

}

.upload-icon svg{

    width:42px;

    height:42px;

    color:#22d3ee;

}

/* Upload text */

.upload-zone h3{

    color:#ffffff;

    font-size:20px;

    font-weight:800;

    margin-bottom:6px;

}

.upload-zone p{

    color:#ffffff;

    opacity:.7;

    font-size:14px;

}

.browse-link{

    color:#22d3ee;

    font-weight:700;

}

/* File tags */

.upload-formats{

    display:flex;

    gap:10px;

    margin-top:15px;

}
.upload-formats span{

    padding:6px 12px;

    border-radius:50px;

    background:#1e293b;

    color:#ffffff;

    font-size:12px;

}

/* ================= CLOUD ICON ================= */

.upload-icon{

    width:90px;

    height:90px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:

        linear-gradient(
            135deg,
            rgba(34,211,238,.15),
            rgba(59,130,246,.18)
        );

    border:1px solid rgba(34,211,238,.35);

    margin-bottom:24px;

    transition:.3s;

}

.upload-icon svg{

    width:42px;

    height:42px;

    color:#22d3ee;

}

.upload-zone:hover .upload-icon{

    transform:scale(1.08);

}

/* ================= TEXT ================= */

.upload-label h3{

    font-size:16px;

    font-weight:700;

    color:#ffffff;

    margin-bottom:2px;

}

.upload-label p{

    margin:0;

    font-size:14px;

    color:#94A3B8;

}

.upload-label .browse-link{

    color:#22d3ee;

    font-weight:600;

}

/* ================= FILE TYPES ================= */

.upload-formats{

    display:flex;

    gap:8px;

    margin-top:10px;

}

.upload-formats span{

    padding:4px 10px;

    border-radius:999px;

    background:#1c2537;

    color:#94A3B8;

    font-size:10px;

    font-weight:600;

}

/* ================= PREMIUM ANALYZE BUTTON ================= */

.primary-btn{

    width:100%;

    margin-top:18px;

    padding:16px;

    border:none;

    border-radius:16px;

    background:
    linear-gradient(
        135deg,
        #22d3ee,
        #2563eb
    );

    color:#ffffff;

    font-size:18px;

    font-weight:800;

    letter-spacing:.3px;

    cursor:pointer;

    transition:.35s ease;

    box-shadow:
    0 10px 25px rgba(34,211,238,.25);

}


.primary-btn:hover{

    transform:translateY(-3px);

    box-shadow:

    0 15px 35px rgba(34,211,238,.45);

}


.primary-btn:active{

    transform:scale(.98);

}


.primary-btn:disabled{

    background:#273449;

    color:#94A3B8;

    cursor:not-allowed;

    box-shadow:none;

    transform:none;

}

/* ================= PRIVACY ================= */

.privacy-note{

    margin-top:10px;

    font-size:12px;

    color:#94A3B8;

}

/* ================= VIDEO CARD ================= */

.card{

    background:#0d1628;

    border-radius:16px;

    padding:16px;

    margin-top:14px;

    border:1px solid rgba(255,255,255,.05);

}

/* ================= PROGRESS ================= */

.progress-bar{

    width:100%;

    height:10px;

    background:#1c2940;

    border-radius:999px;

    overflow:hidden;

    margin-top:16px;

}

#progressFill{

    width:0;

    height:100%;

    background:#22d3ee;

    transition:.35s;

}

/* ================= RIGHT COLUMN ================= */

.side-column{

    display:flex;

}

.insight-card{

    width:100%;

    background:#101827;

    border-radius:22px;

    padding:28px;

    border:1px solid rgba(255,255,255,.05);

    position:sticky;

    top:30px;

}

.insight-card h2{

    margin-bottom:24px;

    font-size:24px;

}

.insight-item{

    background:#0d1628;

    border-radius:16px;

    padding:18px;

    margin-bottom:16px;

    transition:.3s;

}

.insight-item:hover{

    transform:translateX(6px);

    border-left:4px solid #22d3ee;

}

.insight-item strong{

    display:block;

    margin-bottom:8px;

}

.insight-item p{

    color:#94A3B8;

    font-size:14px;

    line-height:1.5;

}

/* =================================================
            RECENT ANALYSES
================================================= */

.analysis-section{

    margin-top:30px;

    background:#101827;

    border-radius:22px;

    padding:30px;

    border:1px solid rgba(255,255,255,.05);

}

.section-title{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

}

.section-title h2{

    font-size:24px;

}

.section-title span{

    color:#94A3B8;

}

#historyList .card{

    margin-bottom:18px;

}

/* ================= SCORE ================= */

.score-box{

    background:#0d1628;

    border-radius:18px;

    padding:25px;

    text-align:center;

    margin:25px 0;

}

.score-box h1{

    font-size:60px;

    color:#22d3ee;

}

.metric{

    display:flex;

    justify-content:space-between;

    align-items:center;

    background:#0d1628;

    border-radius:14px;

    padding:16px 18px;

    margin:12px 0;

}

.metric span:last-child{

    color:#22d3ee;

    font-weight:700;

}

/* ================= MODAL ================= */

.modal{

    display:none;

    position:fixed;

    inset:0;

    justify-content:center;

    align-items:center;

    background:rgba(27, 21, 21, 0.75);

    backdrop-filter:blur(6px);

    z-index:9999;

}

.modal-content{

    width:90%;

    max-width:850px;

    max-height:90vh;

    overflow-y:auto;

    background:#101827;

    border-radius:24px;

    padding:35px;

    border:1px solid rgba(34,211,238,.15);

}

.close-modal{

    float:right;

    font-size:34px;

    cursor:pointer;

    color:#22d3ee;

}
.close-modal:hover

/* ==========================================
   FINAL SCROLLABLE & RESPONSIVE SIDEBAR FIX
   ================================          */
.sidebar {
    position: fixed !important;
    left: 0 !important;
    top: 0 !important;
    width: 270px !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    background: #0d1321 !important;
    border-right: 1px solid rgba(255, 255, 255, .06) !important;
    padding: 20px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important; /* Forces internal smooth vertical scrolling */
    -webkit-overflow-scrolling: touch;
    z-index: 1000 !important;
}

/* Custom clean scrollbar for the sidebar */
.sidebar::-webkit-scrollbar {
    width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: rgba(34, 211, 238, 0.2);
    border-radius: 4px;
}

.sidebar-top {
    text-align: center;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.sidebar-logo {
    width: 110px !important;
    height: 110px !important;
    object-fit: contain;
    display: block;
    margin: 0 auto 2px;
    filter: drop-shadow(0 0 20px rgba(34, 211, 238, .6));
}

.sidebar-menu {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #cbd5e1;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    transition: .3s;
    font-weight: 600;
    font-size: 14px;
}

/* FIXED: Removed flex-shrink:0 so content flows past viewport and enables natural scrolling */
.sidebar-bottom {
    margin-top: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding-bottom: 40px !important; /* Generous padding at the base for smooth bottom scrolling */
}

.creator-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: #151d2f;
    border: 1px solid rgba(255, 255, 255, .06);
}

.creator-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.creator-info h4 {
    color: white;
    margin: 0;
    font-size: 13px;
}

.creator-info p {
    margin: 2px 0 0 0;
    color: #94A3B8;
    font-size: 11px;
}

.upgrade-card {
    background: #101827;
    border: 1px solid rgba(34, 211, 238, 0.12);
    border-radius: 14px;
    padding: 12px 14px;
}

.upgrade-card p {
    color: #94A3B8;
    font-size: 11px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.upgrade-btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 12px;
    background: #22d3ee;
    color: #08111f;
}

.storage-card {
    background: #101827;
    border: 1px solid rgba(255, 255, 255, .05);
    border-radius: 14px;
    padding: 10px 14px;
}

.storage-card h3 {
    font-size: 11px;
    color: #94A3B8;
    margin-bottom: 2px;
}

.storage-card p {
    font-size: 12px;
    color: #fff;
    margin: 0;
}

.storage-meter {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 99px;
    margin-top: 6px;
    overflow: hidden;
}

.storage-meter span {
    display: block;
    height: 100%;
    background: #22d3ee;
    border-radius: inherit;
}

.storage-card small {
    display: block;
    text-align: right;
    font-size: 10px;
    color: #94A3B8;
    margin-top: 2px;
}

.version-label {
    font-size: 11px;
    color: #64748b;
    text-align: center;
    padding-bottom: 4px;
}

/* ===========================
   PREMIUM STATS CARDS
=========================== */

.stats{

    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-top:28px;

}

.stat-card{

    position:relative;
    overflow:hidden;

    background:#1A2233;

    border:1px solid rgba(255,255,255,.06);

    border-radius:20px;

    padding:24px;

    transition:.35s ease;

    box-shadow:
        0 10px 30px rgba(0,0,0,.35);

}

.stat-card::before{

    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;

}

/* ---------- BLUE ---------- */

.stat-card.blue::before{

    background:
    radial-gradient(circle at top right,
    rgba(34,211,238,.14),
    transparent 60%);

}

/* ---------- PURPLE ---------- */

.stat-card.purple::before{

    background:
    radial-gradient(circle at top right,
    rgba(168,85,247,.14),
    transparent 60%);

}

/* ---------- GREEN ---------- */

.stat-card.green::before{

    background:
    radial-gradient(circle at top right,
    rgba(34,197,94,.14),
    transparent 60%);

}

/* ---------- ORANGE ---------- */

.stat-card.orange::before{

    background:
    radial-gradient(circle at top right,
    rgba(245,158,11,.14),
    transparent 60%);

}

.stat-header{

    display:flex;
    align-items:center;
    gap:18px;
    margin-bottom:18px;

}

.stat-icon{

    width:62px;
    height:62px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    font-size:28px;

    background:rgba(255,255,255,.04);

}

.stat-card.blue .stat-icon{

    color:#22d3ee;
    border:2px solid #22d3ee;

}

.stat-card.purple .stat-icon{

    color:#a855f7;
    border:2px solid #a855f7;

}

.stat-card.green .stat-icon{

    color:#22c55e;
    border:2px solid #22c55e;

}

.stat-card.orange .stat-icon{

    color:#f59e0b;
    border:2px solid #f59e0b;

}

.stat-text{

    display:flex;
    flex-direction:column;

}

.stat-text p{

    color:#94A3B8;
    font-size:13px;
    margin:0;

}

.stat-text h2{

    margin-top:6px;

    font-size:30px;
    font-weight:800;

}

.stat-card.blue .stat-text h2{color:#22d3ee;}
.stat-card.purple .stat-text h2{color:#a855f7;}
.stat-card.green .stat-text h2{color:#22c55e;}
.stat-card.orange .stat-text h2{color:#f59e0b;}

.stat-card:hover{

    transform:translateY(-6px);

}

/* GRAPH */

.stat-graph{

    width:100%;

    height:42px;

    background-repeat:no-repeat;

    background-position:center;

    background-size:100% 100%;

    opacity:.95;

}

/* BLUE GRAPH */

.stat-card.blue .stat-graph{

background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 30 L20 28 L40 22 L60 25 L80 16 L100 18 L120 12 L140 15 L160 10 L180 14 L200 8 L220 12 L240 4' stroke='%2322d3ee' stroke-width='3.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");

}

/* PURPLE GRAPH */

.stat-card.purple .stat-graph{

background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 30 L20 27 L40 24 L60 18 L80 21 L100 14 L120 17 L140 10 L160 13 L180 9 L200 12 L220 7 L240 3' stroke='%23a855f7' stroke-width='3.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");

}

/* GREEN GRAPH */

.stat-card.green .stat-graph{

background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 32 L20 30 L40 28 L60 24 L80 20 L100 22 L120 18 L140 12 L160 10 L180 9 L200 7 L220 5 L240 2' stroke='%2322c55e' stroke-width='3.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");

}

/* ORANGE GRAPH */

.stat-card.orange .stat-graph{

background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 40'%3E%3Cpath d='M0 32 L20 26 L40 28 L60 20 L80 23 L100 16 L120 18 L140 11 L160 14 L180 8 L200 10 L220 5 L240 2' stroke='%23f59e0b' stroke-width='3.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");

}

/* ==========================
   RECENT ANALYSES
========================== */

.recent-section{

    margin-top:40px;

}

.section-title{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;

}

.history-grid{

    display:flex;

    flex-direction:column;

    gap:18px;

    position:relative;

    overflow:visible;

}

/* Make sure the history card can wrap its height vertically when opened */
.history-card {
    position: relative;
    display: flex;
    flex-wrap: wrap; /* Allows the dropdown to take a full new row inside the card */
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: #111827;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 18px;
    transition: all 0.25s ease;
    overflow: visible !important;
}

.history-card:hover{

    border-color:#22d3ee;

    box-shadow:0 15px 35px rgba(34,211,238,.18);

    z-index: 50; /* Bring hovered card above others so its dropdown stays visible */

}


.thumb{

    width:74px;
    height:74px;

    overflow:hidden;

    border-radius:14px;

    flex-shrink:0;

    background:#0f172a;

}

.thumb img{

    width:100%;
    height:100%;
    object-fit:cover;

}

.thumb-placeholder{

    width:100%;
    height:100%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:linear-gradient(135deg,#38bdf8,#2563eb);

    color:white;

    font-size:26px;

}

.history-info{

    flex:1;

}

.history-info h3{

    color:#fff;
    font-size:16px;
    margin-bottom:6px;

}

.history-info p{

    color:#94A3B8;
    font-size:13px;

}

.score-circle{

    width:58px;
    height:58px;

    border-radius:50%;

    display:flex;
    justify-content:center;
    align-items:center;

    background:linear-gradient(135deg,#06b6d4,#2563eb);

    color:white;

    font-weight:700;

    flex-shrink:0;

}

.status{

    padding:6px 14px;

    border-radius:999px;

    font-size:12px;

    font-weight:700;

}

.excellent{

    background:rgba(34,197,94,.15);

    color:#22c55e;

}

.high{

    background:rgba(59,130,246,.15);

    color:#3b82f6;

}

.medium{

    background:rgba(245,158,11,.15);

    color:#f59e0b;

}

.low{

    background:rgba(239,68,68,.15);

    color:#ef4444;

}

.report-btn{

    padding:10px 18px;

    border:none;

    border-radius:12px;

    background:linear-gradient(135deg,#06b6d4,#2563eb);

    color:white;

    cursor:pointer;

    transition:.3s;

}

.report-btn:hover{

    transform:translateY(-2px);

}

.empty-history{

    padding:50px;

    text-align:center;

    border-radius:18px;

    background:#101827;

    border:1px solid rgba(255,255,255,.05);

}

.empty-icon{

    font-size:48px;

    margin-bottom:16px;

}

.analysis-card{

    background:#111827;

    border-radius:20px;

    padding:25px;

    margin-top:20px;

    min-height:560px;

    transition:all .35s ease;

}
        
        .creator-score-card{
        display:flex;
        flex-direction:column;
        align-items:center;
        margin:25px 0;
        }
        
        .score-circle-large{
        width:130px;
        height:130px;
        border-radius:50%;
        border:8px solid #19d3ff;
        display:flex;
        flex-direction:column;
        align-items:center;
        justify-content:center;
        font-size:42px;
        font-weight:700;
        color:#fff;
        box-shadow:0 0 30px rgba(25,211,255,.25);
        }
        
        .score-circle-large small{
        font-size:16px;
        color:#8ea2b8;
        }
        
        .metrics{
        display:flex;
        flex-direction:column;
        gap:14px;
        margin-top:25px;
        }
        
        .metric-row{
        display:flex;
        justify-content:space-between;
        padding:14px 18px;
        background:#182233;
        border-radius:12px;
        }
        
        .metric-row strong{
        color:#19d3ff;
        }
        
        .result-card{
        margin-top:20px;
        padding:18px;
        background:#182233;
        border-radius:14px;
        border:1px solid rgba(255,255,255,.05);
        }
        
        .progress-bar{
        margin-top:20px;
        height:8px;
        background:#222;
        border-radius:20px;
        overflow:hidden;
        }
        
        .progress-fill{
        width:0%;
        height:100%;
        background:#19d3ff;
        transition:width .4s;
        }

        .analysis-loading{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    min-height:420px;

    text-align:center;

}

#analysisResults{

    min-height:420px;

    animation:fadeUp .45s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(12px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

    
}

.observations{

    margin-top:24px;

}

.observations h3{

    margin-bottom:16px;

    font-size:18px;

}

.observation-card{

    background:#182233;

    border:1px solid rgba(255,255,255,.06);

    border-radius:14px;

    padding:16px;

    margin-bottom:12px;

    transition:.3s;

}

.observation-card:hover{

    border-color:#22d3ee;

    transform:translateY(-2px);

}

.observation-card strong{

    display:block;

    margin-bottom:6px;

    color:#22d3ee;

}

.observation-card p{

    color:#cbd5e1;

    line-height:1.5;

}

        .upload-icon{

            width:80px;
            
            height:80px;
            
            border-radius:50%;
            
            background:rgba(34,211,238,.12);
            
            display:flex;
            
            align-items:center;
            
            justify-content:center;
            
            font-size:36px;
            
            color:#22d3ee;
            
            }
            
            .browse-link{
            
            color:#22d3ee;
            
            font-weight:600;
            
            }
            
            .upload-formats{
            
            display:flex;
            
            gap:10px;
            
            flex-wrap:wrap;
            
            justify-content:center;
            
            margin-top:10px;
            
            }
            
            .upload-formats span{
            
            padding:6px 12px;
            
            background:#162133;
            
            border-radius:999px;
            
            font-size:12px;
            
            color:#9fb3c8;
            
            }
            
            .selected-file{

                display:flex;
                
                align-items:center;
                
                gap:18px;
                
                padding:16px 18px;
                
                margin-top:18px;
                
                background:#182131;
                
                border:1px solid rgba(255,255,255,.06);
                
                border-radius:18px;
                
                }

                .video-preview{

                    width:170px;
                
                    height:96px;
                
                    border-radius:16px;
                
                    overflow:hidden;
                
                    flex-shrink:0;
                
                }
                
                .preview-image{

    width:100%;

    height:100%;

    position:relative;

    overflow:hidden;

    border-radius:16px;

    background:#0f172a;

}

.preview-image video{

    width:100%;

    height:100%;

    object-fit:cover;

    display:block;

}
                
                .preview-image::before{
                
                    content:"▶";
                
                    width:54px;
                
                    height:54px;
                
                    border-radius:50%;
                
                    background:rgba(34,211,238,.15);
                
                    border:2px solid rgba(34,211,238,.45);
                
                    color:#22d3ee;
                
                    display:flex;
                
                    align-items:center;
                
                    justify-content:center;
                
                    font-size:22px;
                
                    backdrop-filter:blur(6px);
                
                    box-shadow:0 0 22px rgba(34,211,238,.28);
                
                    transition:.3s;

                    z-index:2;
                    
                    pointer-events:none;
                
                }
                
                .preview-image:hover::before{
                
                    transform:scale(1.08);
                
                    box-shadow:0 0 30px rgba(34,211,238,.45);
                
                }

                .preview-image.has-video::before{

    display:none;

}
                    
                    .video-details{
                    
                    flex:1;
                    
                    }
                    
                    .video-details h3{
                    
                        margin-bottom:10px;
                        font-size:19px;
                        font-weight:700;
                    
                    }
                    
                    .video-details p{
                    
                    color:#94A3B8;
                    
                    margin-bottom:8px;
                    
                    }
                    
                    .ready-text{
                    
                    color:#22c55e;
                    
                    font-weight:700;
                    
                    }
                    
                    .remove-video{
                    
                    width:48px;
                    
                    height:48px;
                    
                    border:none;
                    
                    border-radius:50%;
                    
                    background:#222b3d;
                    
                    color:white;
                    
                    cursor:pointer;
                    
                    font-size:20px;
                    
                    transition:.3s;

                    flex-shrink:0;
                    
                    }
                    
                    .remove-video:hover{
                    
                    background:#ef4444;
                    
                    }
            
            .file-preview{
            
            display:flex;
            
            align-items:center;
            
            gap:15px;
            
            }
            
            .file-icon{
            
            width:48px;
            
            height:48px;
            
            border-radius:12px;
            
            background:#22d3ee22;
            
            display:flex;
            
            align-items:center;
            
            justify-content:center;
            
            font-size:22px;
            
            }
            
            .file-details{
            
            display:flex;
            
            flex-direction:column;
            
            }
            
            .file-details small{
            
            margin-top:4px;
            
            color:#8ea2b8;
            
            }

            /* ================= UPLOAD ZONE ================= */

           .upload-zone{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    min-height:280px;

    padding:45px 30px;

    border:2px dashed rgba(34,211,238,.28);

    border-radius:22px;

    background:
        radial-gradient(circle at top,
        rgba(34,211,238,.08),
        transparent 60%),
        #101827;

    cursor:pointer;

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.upload-zone:hover{

    border-color:#22d3ee;

    transform:translateY(-4px);

    box-shadow:
        0 15px 35px rgba(0,0,0,.28),
        0 0 30px rgba(34,211,238,.15);

}

/* ================= RIGHT ANALYSIS PANEL ================= */

.right-column .dashboard-card{

    background:#101827;

    border:1px solid rgba(255,255,255,.05);

    border-radius:22px;

    padding:28px;

    display:flex;

    flex-direction:column;

    height:100%;

    min-height:730px;

}

.right-column .dashboard-card h2{

    font-size:32px;

    margin-bottom:28px;

}

.feature-list{

    display:flex;

    flex-direction:column;

    gap:22px;

    flex:1;

justify-content:space-between;

}

.feature-item{

    display:flex;

    align-items:flex-start;

    gap:18px;

}

.feature-item span{

    width:56px;

    height:56px;

    border-radius:50%;

    background:rgba(34,211,238,.12);

    border:1px solid rgba(34,211,238,.25);

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:24px;

    flex-shrink:0;

}

.feature-item strong{

    display:block;

    font-size:18px;

    margin-bottom:6px;

    color:#fff;

}

.feature-item p{

    color:#94A3B8;

    line-height:1.5;

    font-size:15px;

}
/* ================= INSIGHT BOX ================= */

.insight-box{

    margin-top:30px;

    display:flex;

    align-items:center;

    gap:16px;

    padding:18px;

    border-radius:18px;

    background:#131d2f;

    border:1px solid rgba(255,255,255,.06);

}

.insight-icon{

    width:52px;

    height:52px;

    border-radius:50%;

    display:flex;

    align-items:center;

    justify-content:center;

    background:rgba(34,211,238,.12);

    color:#22d3ee;

    font-size:22px;

    flex-shrink:0;

}

.insight-box p{

    margin:0;

    color:#cbd5e1;

    line-height:1.5;

}

.insight-box span{

    color:#22d3ee;

    font-weight:700;

}

/* ===========================
   REPORTS PAGE
=========================== */

.reports-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:25px;
}

#reportSearch{
    width:320px;
    max-width:100%;
    padding:12px 16px;
    background:#182233;
    border:1px solid rgba(255,255,255,.08);
    border-radius:12px;
    color:#fff;
    outline:none;
    transition:.3s;
}

#reportSearch:focus{
    border-color:#22d3ee;
    box-shadow:0 0 0 4px rgba(34,211,238,.12);
}

.reports-grid{
    display:flex;
    flex-direction:column;
    gap:18px;
}

/* Report Cards */

.reports-grid .history-card{
    background:#182233;
}

.report-actions{
    display:flex;
    gap:10px;
}

.delete-report-btn{
    padding:10px 16px;
    border:none;
    border-radius:10px;
    background:#ef4444;
    color:#fff;
    cursor:pointer;
    transition:.3s;
}

.delete-report-btn:hover{
    background:#dc2626;
}

/* Reports Stats */

.reports-stat{
    display:flex;
    align-items:center;
    gap:18px;
}

.reports-stat .stat-icon{
    width:60px;
    height:60px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    background:rgba(110,92,255,.12);
}

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

.stat-info span{
    color:#94A3B8;
    font-size:14px;
}

.stat-info h1{
    margin:0;
    font-size:32px;
}

/* ================= TOP BAR ================= */

.top-bar{

    display:grid;
    grid-template-columns:1fr auto auto;
    align-items:center;
    gap:28px;
    margin-bottom:28px;

}

.welcome-text h1{

    font-size:48px;
    font-weight:900;
    color:#ffffff;
    letter-spacing:-1.5px;
    margin-bottom:8px;
    white-space:nowrap;

}

.welcome-text p{

    font-size:16px;
    color:#ffffff;
    opacity:.82;
    font-weight:500;

}

/* SEARCH */

.search-box{

    width:330px;
    height:58px;

    background:#182338;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    padding:0 20px;

    display:flex;
    align-items:center;
    gap:12px;

    transition:.3s;

}

.search-box:hover,
.search-box:focus-within{

    border-color:#22d3ee;

    box-shadow:0 0 20px rgba(34,211,238,.18);

}

.search-box input{

    flex:1;

    background:none;

    border:none;

    outline:none;

    color:#fff;

    font-size:15px;

}

.search-box input::placeholder{

    color:#b8c3d6;

}

/* RIGHT */

.top-right{

    display:flex;
    align-items:center;
    gap:14px;

}

.top-icons{

    display:flex;
    gap:12px;

}

.top-icon{

    width:50px;
    height:50px;

    border:none;

    border-radius:16px;

    background:#182338;

    color:#fff;

    font-size:19px;

    cursor:pointer;

    transition:.25s;

}

.top-icon:hover{

    background:#22d3ee;
    color:#08111f;
    transform:translateY(-2px);

}

/* ================= LOGO ONLY ================= */

.profile-menu{

    width:72px;
    height:72px;

    background:#182338;

    border:1px solid rgba(255,255,255,.08);

    border-radius:18px;

    display:flex;
    justify-content:center;
    align-items:center;

    cursor:pointer;

    transition:.3s;

}

.profile-menu:hover{

    border-color:#22d3ee;

    box-shadow:0 0 20px rgba(34,211,238,.22);

}

.profile-menu img{

    width:48px;
    height:48px;

    object-fit:contain;

    filter:drop-shadow(0 0 12px rgba(34,211,238,.45));

}

.profile-text{

    display:none;

}

.dashboard-card,
.stat-card{

    background:
    linear-gradient(
    145deg,
    rgba(20,35,60,.95),
    rgba(10,18,35,.95)
    );

    border:1px solid rgba(34,211,238,.12);

    box-shadow:
    0 0 30px rgba(0,0,0,.35),
    inset 0 0 25px rgba(34,211,238,.03);

}

/* =================================================
        PART 6 — FINAL PREMIUM POLISH
================================================= */


/* ================= GLOBAL TEXT FIX ================= */

h1,
h2,
h3,
h4,
strong{

    color:#ffffff;

}


p{

    color:#cbd5e1;

}


/* ================= TOP WELCOME TEXT ================= */

.welcome-text h1{

    color:#ffffff;

    font-weight:900;

    font-size:38px;

    letter-spacing:-1px;

}


.welcome-text p{

    color:#ffffff;

    font-weight:500;

    opacity:.9;

}



/* ================= SEARCH BOX ================= */


.search-box input{

    color:#ffffff;

}


.search-box input::placeholder{

    color:#ffffff;

    opacity:.65;

}



/* ================= HERO TEXT ================= */


.coach-left h1{

    color:#ffffff;

    white-space:nowrap;

}


.coach-left p{

    color:#ffffff;

    font-weight:500;

}


/* ================= STAT TEXT ================= */


.stat-text p{

    color:#ffffff;

    font-weight:600;

}


.stat-text h2{

    font-weight:900;

}



/* ================= UPLOAD CARD ================= */


.upload-card h2{

    color:#ffffff;

    font-weight:900;
font-size:25px;
}


.upload-card p{

    color:#ffffff;

    opacity:.85;

}


.upload-label h3{

    color:#ffffff;

}



/* ================= RIGHT ANALYSIS PANEL ================= */


.right-column .dashboard-card h2{

    color:#ffffff;

    font-weight:900;
    font-size:30px;

    line-height:1.3;

}


.feature-item strong{

    color:#ffffff;

    font-weight:800;

}


.feature-item p{

    color:#ffffff;

    opacity:.85;

}


/* ================= INSIGHT BOX ================= */


.insight-box p{

    color:#ffffff;

    font-weight:600;

}



/* ================= RECENT ANALYSIS ================= */


.section-title h2{

    color:#ffffff;

    font-weight:900;

}


.history-info h3{

    color:#ffffff;

    font-weight:800;

}


.history-info p{

    color:#ffffff;

    opacity:.75;

}



/* ================= PROFILE LOGO FIX ================= */


/* remove AI Creator Coach text */

.profile-menu{

    width:100px;

    height:100px;

    background:#182233;

    border-radius:22px;

}


.profile-menu img{

    width:90px;

    height:90px;

}



/* hide profile text */

.profile-text{

    display:none;

}



/* ================= SIDEBAR LOGO ================= */


.sidebar-logo{

    width:200px;

}


/* ================= CARD GLOW ================= */


.dashboard-card:hover,
.stat-card:hover{

    box-shadow:

    0 20px 45px rgba(34,211,238,.18);

}



/* ================= BUTTON PREMIUM ================= */


.primary-btn{

    font-weight:900;

    letter-spacing:.3px;

}


/* ================= MOBILE SAFETY ================= */


@media(max-width:1200px){

    .stats{

        grid-template-columns:repeat(2,1fr);

    }


    .coach-left h1{

        white-space:normal;

    }

}


@media(max-width:800px){

    .stats{

        grid-template-columns:1fr;

    }


    .creator-coach{

        flex-direction:column;

        text-align:center;

    }


    .coach-right img{

        width:220px;

        height:220px;

    }

}

/* =================================================
   Dashboard reference alignment — scoped overrides
================================================= */
:root{--bg:#02060e;--panel:#08111f;--panel-2:#0b1628;--line:#1b2a40;--muted:#b4c0d5;--blue:#1598ff;--purple:#8b36ff;}
body{background:radial-gradient(circle at 48% 0%,#071323 0,#02060e 38%);min-width:1180px;color:#f7f9ff}
.sidebar{width:222px;padding:27px 17px 22px;background:linear-gradient(180deg,#02050d,#050b15);border-right:1px solid #162035}
.sidebar-top{height:104px;margin:0 10px 27px;display:flex;align-items:center;gap:9px;text-align:left;overflow:hidden}
.brand-mark{width:57px;height:68px;overflow:hidden;flex:0 0 57px;display:grid;place-items:center}
.sidebar-logo{width:104px!important;height:104px;max-width:none;object-fit:cover;object-position:50% 37%;margin:0;filter:drop-shadow(0 0 10px rgba(36,194,255,.56));transform:scale(1.55)}
.sidebar-logo:hover{transform:scale(1.7)}
.brand-copy strong{font-size:28px;line-height:1;font-weight:800;letter-spacing:-1.4px}.brand-copy strong span{color:#c45cff}.brand-copy p{font-size:12px;line-height:1.4;white-space:nowrap;color:#c7cfe0}
.sidebar-menu{margin:0;gap:8px}.sidebar-menu a{height:50px;padding:0 14px;border-radius:9px;font-size:14px;font-weight:600;gap:12px}.sidebar-menu .active{color:#fff;background:linear-gradient(110deg,#1828b8,#3d32e9);border-color:#4248f4;box-shadow:0 8px 22px rgba(43,55,255,.22)}
.sidebar-bottom{padding:0;margin-top:auto}.creator-card{padding:15px;border-radius:10px;background:#08111f;border-color:#1b2940}.creator-avatar{width:40px;height:40px;font-size:16px;background:linear-gradient(135deg,#0b315f,#1645a0)}.creator-info h4{font-size:14px}.creator-info p{font-size:12px}
.dashboard{margin-left:222px;width:calc(100% - 222px);padding:20px 25px 28px;max-width:1536px}
.top-bar{height:70px;margin:0 4px 19px;display:flex;align-items:center;gap:24px}.welcome-text{margin-right:auto}.welcome-text h1{font-size:25px;letter-spacing:-.8px;white-space:nowrap}.welcome-text p{font-size:14px;margin-top:7px;color:#bec9dc}.search-box{width:307px;height:48px;border-radius:12px;background:#050913;border:1px solid #2a3448;padding:0 15px}.search-box input{font-size:14px}.top-right{gap:25px}.top-icons{gap:14px}.top-icon{width:45px;height:45px;border-radius:50%;font-size:18px;background:#050913;border-color:#1f2b3d}.profile-menu{width:216px;height:64px;padding:8px 14px;border-radius:13px;display:flex;align-items:center;gap:10px;background:#050913;border:1px solid #2a3448}.profile-menu img{width:42px;height:42px;border-radius:50%;object-fit:cover;object-position:50% 35%;transform:none}.profile-text{display:flex!important;flex-direction:column;gap:3px;line-height:1.1}.profile-text strong{font-size:14px}.profile-text span{font-size:12px;color:#c4ccdb}.profile-chevron{margin-left:auto;font-size:18px;color:#eaf0ff}
.creator-coach{display:none}
.stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 17px}.stat-card{height:171px;padding:19px 20px;border-radius:14px;background:#091525;border-color:#1d2d43;overflow:hidden}.stat-card::before{opacity:1}.stat-header{gap:15px}.stat-icon{width:48px;height:48px;font-size:22px}.stat-text p{font-size:14px;font-weight:500;color:#d4dcf0}.stat-text h2{font-size:29px;color:#f6f8ff!important;margin-top:7px}.stat-graph{height:52px;margin-top:11px}.stat-graph::after{height:45px;opacity:1}
.dashboard-grid{display:grid;grid-template-columns:minmax(720px,2.05fr) minmax(290px,.68fr);gap:17px;align-items:start}.left-column{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px}.upload-analysis-grid{display:none}.dashboard-card{background:linear-gradient(145deg,#0a1525,#07111f);border:1px solid #1d2b41;box-shadow:0 10px 25px rgba(0,0,0,.2)}
.preview-card{grid-column:2;grid-row:1;height:460px;padding:18px}.upload-card{grid-column:1;grid-row:1;height:460px;padding:18px}.preview-card h2,.card-header h2,.right-column .dashboard-card h2{font-size:20px;letter-spacing:-.5px}.preview-card>p,.card-header p{font-size:13px;margin-top:6px;color:#c2ccdf}.preview-brain{height:266px;margin-top:9px;background:radial-gradient(circle at center,rgba(18,138,255,.2),transparent 45%)}.preview-brain::before{content:"";position:absolute;inset:45px 80px;border:1px solid rgba(36,138,255,.28);border-radius:50%;box-shadow:0 0 0 24px rgba(22,111,223,.06),0 0 0 48px rgba(22,111,223,.035)}.preview-brain img{width:126px;height:126px;object-fit:cover;object-position:50% 35%;border-radius:50%;filter:drop-shadow(0 0 17px #0ab6ff);z-index:1}.preview-pill{z-index:2;padding:10px 16px;font-size:12px;background:#071322;border-color:#1d75c8;border-radius:22px}.top{top:8px}.left{left:0}.right{right:0}.bottom-left{bottom:9px;left:0}.bottom-right{right:0;bottom:9px}.preview-footer{height:85px;margin-top:8px;padding:14px 21px;border-radius:11px;background:#091525;border-color:#29415e}.preview-clock{font-size:30px}.preview-footer small{font-size:13px}.preview-footer h3{font-size:20px;color:#04baff}
.upload-card::before,.upload-card::after{display:none}.upload-zone{height:182px;margin-top:17px;border-radius:10px;background:rgba(7,15,29,.5);border-color:#334b70;display:flex;flex-direction:column;justify-content:center;gap:7px}.upload-icon{width:47px;height:47px;font-size:23px;margin:0 auto 3px}.upload-label h3,.upload-zone h3{font-size:14px}.upload-label p,.upload-zone p{font-size:13px}.upload-formats{display:none}.selected-file{margin-top:10px;padding:9px;border-radius:10px}.primary-btn{height:45px;margin-top:13px;border-radius:7px;background:linear-gradient(100deg,#0759e8,#7925d9);font-size:15px}.privacy-note{font-size:11px;margin-top:10px}.recent-section{grid-column:1 / -1;grid-row:2;margin-top:0;background:linear-gradient(145deg,#081323,#06101d);border:1px solid #1d2b41;border-radius:12px;padding:13px}.section-title{margin-bottom:10px}.section-title h2{font-size:19px}.secondary-btn{padding:8px 13px;font-size:12px}.history-grid{gap:8px}.history-card{height:74px;padding:9px 11px;border-radius:10px;background:#091526;border-color:#12233b}.thumb{width:54px;height:54px;border-radius:7px}.history-info h3{font-size:14px}.history-info p{font-size:12px}.score-circle{width:54px;height:54px;font-size:17px}.status{font-size:12px}.report-btn{padding:10px 17px;font-size:12px}.right-column{display:block}.right-column .dashboard-card{min-height:698px;padding:18px}.feature-list{gap:25px;margin-top:26px}.feature-item{gap:17px;align-items:flex-start}.feature-item span{width:50px;height:50px;font-size:21px;flex:0 0 50px}.feature-item strong{font-size:15px}.feature-item p{font-size:13px;line-height:1.55}.insight-box{margin-top:28px;min-height:105px;padding:19px 15px;border-color:#7a36df;background:linear-gradient(110deg,rgba(55,32,126,.26),rgba(6,14,28,.2));border-radius:10px}.insight-icon{font-size:28px}.insight-box p{font-size:13px}.insight-box span{color:#f3f6ff}
@media(max-width:1250px){.dashboard{padding:18px}.dashboard-grid{grid-template-columns:minmax(620px,2fr) minmax(270px,.75fr)}.profile-menu{width:70px;justify-content:center}.profile-text,.profile-chevron{display:none!important}.search-box{width:245px}.preview-pill{font-size:10px;padding:8px 10px}}

/* Second fidelity pass: reference-only elements and proportions. */
.brand-mark{height:76px}.sidebar-logo{width:132px!important;height:132px;transform:scale(1.08) translateY(-13px);object-position:50% 37%;filter:drop-shadow(0 0 12px rgba(32,196,255,.75))}.sidebar-logo:hover{transform:scale(1.12) translateY(-13px)}
.sidebar-bottom{display:flex;flex-direction:column;gap:18px}.upgrade-card{padding:0 15px 16px;border:1px solid #1b2940;border-radius:10px;background:#050b15}.upgrade-btn{width:100%;height:40px;margin:0 -0px 15px;border:0;border-radius:6px;color:#f5f0ff;font-size:14px;font-weight:700;background:linear-gradient(100deg,#6720c8,#3340ed);box-shadow:0 5px 17px rgba(107,45,235,.22)}.upgrade-card p{font-size:11px;line-height:1.8;color:#c5cede}.storage-card{position:relative;padding:18px 15px;border:1px solid #1b2940;border-radius:10px;background:#07111f}.storage-card h3{font-size:14px;margin-bottom:20px}.storage-card p{font-size:14px;color:#dce4f2}.storage-card p strong{color:#fff}.storage-card p span{color:#a5b1c5}.storage-meter{height:10px;margin-top:15px;overflow:hidden;border-radius:9px;background:#131e31}.storage-meter span{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#1648ee,#9c55ed)}.storage-card small{position:absolute;right:15px;bottom:19px;font-size:11px;color:#c5cede}.version-label{font-size:12px;color:#c5cede;padding:0 15px}.version-label i{display:inline-block;width:12px;height:12px;margin-right:9px;border-radius:50%;vertical-align:-2px;background:#30dd62;box-shadow:0 0 12px #30dd62}
.upload-zone{gap:5px}.upload-zone h3{font-weight:500}.choose-file{display:inline-flex;align-items:center;justify-content:center;width:136px;height:37px;margin:2px auto 1px;border-radius:6px;color:white;font-weight:700;font-size:13px;background:linear-gradient(100deg,#1358e8,#9639dc);box-shadow:0 5px 15px rgba(82,43,221,.28)}.upload-formats{display:block!important;font-size:11px;color:#acbbd1}.upload-formats span{border:0!important;background:transparent!important;padding:0!important;color:#acbbd1!important}
.preview-brain{background:radial-gradient(circle at center,rgba(11,125,255,.29),transparent 28%),repeating-conic-gradient(from 0deg,rgba(29,128,255,.32) 0deg 1deg,transparent 1deg 30deg);background-size:auto,240px 240px;background-repeat:no-repeat;background-position:center}.preview-brain::after{content:"";position:absolute;inset:34px 54px;border-radius:50%;background:repeating-radial-gradient(circle,transparent 0 28px,rgba(16,125,244,.33) 29px 30px);opacity:.7;pointer-events:none}.preview-brain img{position:relative;width:115px;height:115px;z-index:1;transform:scale(1.15);object-position:50% 37%}
.right-column .dashboard-card{position:relative;display:flex;flex-direction:column}.feature-list{font-size:0}.feature-list .feature-item{font-size:14px}.feature-list>.feature-item:nth-of-type(6){display:none}.right-column>.insight-box{display:none}.coach-card{display:flex!important;align-items:center;gap:15px;margin-top:auto;padding:18px 16px;border:1px solid #8441dc;border-radius:10px;background:linear-gradient(105deg,rgba(46,32,117,.34),rgba(10,15,31,.55));font-size:14px}.coach-trophy{font-size:31px}.coach-card h3{font-size:15px;margin:0 0 7px}.coach-card p{font-size:12px;line-height:1.55;color:#c3cce1}
.history-card{grid-template-columns:54px minmax(110px,1fr) minmax(125px,auto) auto auto auto auto!important;display:grid;align-items:center;column-gap:16px}.history-info{min-width:0}.history-meta{display:flex;gap:14px;color:#c3cee1;font-size:12px;white-space:nowrap}.history-score{justify-self:end}.history-card .status{justify-self:center}.history-card .report-btn{justify-self:end}.history-more,.history-delete{width:40px;height:37px;padding:0;border:0;border-radius:7px;background:#101b30;color:#d7e3fb;font-size:16px;cursor:pointer}.history-delete{font-size:19px}.history-more:hover,.history-delete:hover{background:#1a2944;color:#fff}.secondary-btn{background:#142039;color:#fff;border-color:#22344e}

/* Third fidelity pass: remove non-reference fragments and refine reference details. */
.sidebar-top{display:flex!important;visibility:visible!important;position:relative;z-index:2;height:104px!important;margin-bottom:27px!important}.sidebar-menu{margin-top:0!important}.brand-copy{display:block!important;visibility:visible!important}.brand-copy strong{color:#fff}.brand-copy p{display:block!important}
.top-icon{display:grid!important;place-items:center;border:1px solid #1e2b40!important;background:#050913!important;color:#fff;position:relative}.top-icon:nth-child(2)::after{content:'3';position:absolute;top:-5px;right:-3px;width:17px;height:17px;border-radius:50%;display:grid;place-items:center;background:#f32847;color:#fff;font:700 10px Arial}
.stat-card{position:relative}.stat-delta{position:absolute;left:85px;top:87px;color:#39e775;font-size:12px;font-weight:700}.stat-delta.streak-delta{color:#f9ab17}.stat-card.purple .stat-text h2::after{content:' /100';font-size:15px;font-weight:500;color:#c6d0e1}.stat-card.orange .stat-text h2::after{content:' Days';font-size:15px;font-weight:500;color:#eef2fc}.stat-card .stat-graph{margin-top:27px}.stat-card .stat-graph::after{background-size:100% 100%;filter:none}
.preview-brain{overflow:hidden;background:radial-gradient(circle at center,rgba(5,143,255,.32),transparent 28%),repeating-conic-gradient(from 0deg,rgba(29,128,255,.18) 0deg 1deg,transparent 1deg 30deg)!important}.preview-brain img{width:120px!important;height:120px!important;transform:translateY(18px) scale(2.55)!important;filter:drop-shadow(0 0 14px #05b7ff)!important}.preview-brain::before{inset:54px 98px!important;box-shadow:0 0 0 20px rgba(22,111,223,.055),0 0 0 40px rgba(22,111,223,.035)!important}.preview-brain::after{inset:49px 84px!important;opacity:.4!important}
.right-column .dashboard-card>.insight-box{display:none!important}.right-column .dashboard-card{min-height:698px!important;height:698px!important;overflow:hidden}.coach-card{margin-top:auto!important}.feature-list{gap:23px!important}.feature-list+.insight-box{display:none!important}
.score-circle{background:radial-gradient(circle,#0a1728 55%,transparent 57%),conic-gradient(#0e9fff 0 78%,#12334c 78% 100%)!important;box-shadow:none!important;color:#eef7ff!important}.history-delete{font-size:0!important}.history-delete::after{content:'⌫';font-size:20px;line-height:1}.secondary-btn{border:0!important;border-radius:6px!important}.history-more{letter-spacing:1px}

/* Final requested alignment: source logo only, plus matching card height. */
.sidebar-top{height:126px!important;margin:0 0 22px!important;display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px;overflow:visible!important}
.sidebar-top .sidebar-logo{display:block!important;width:145px!important;height:100px!important;max-width:145px!important;object-fit:cover!important;object-position:50% 35%!important;transform:none!important;margin:0!important;filter:drop-shadow(0 0 10px rgba(39,194,255,.55))!important}
.sidebar-top .sidebar-logo:hover{transform:none!important}.sidebar-top>p{display:block!important;margin:0!important;color:#c4cede!important;font-size:12px!important;line-height:1.2!important;white-space:nowrap}
.upload-card,.preview-card{height:460px!important;min-height:460px!important;max-height:460px!important;align-self:start;overflow:hidden}.preview-card .preview-brain{height:252px!important}.preview-card .preview-footer{margin-top:5px!important}

/* =================================================
   REPORTS PAGE — reference-aligned presentation
================================================= */
body.reports-page{display:block;min-width:1240px;background:radial-gradient(circle at 50% 0,#071323,#02060d 42%);color:#f7f9ff}
.reports-sidebar{position:fixed;inset:0 auto 0 0;width:210px;padding:26px 15px 20px;border-right:1px solid #172237;background:linear-gradient(180deg,#02060c,#050b14);display:flex;flex-direction:column}.reports-brand{text-align:center;height:103px;margin-bottom:18px}.reports-brand img{width:150px;height:73px;object-fit:cover;object-position:50% 36%;filter:drop-shadow(0 0 9px rgba(27,188,255,.5))}.reports-brand p{font-size:12px;color:#c5cedf;margin-top:-1px}.reports-nav{display:flex;flex-direction:column;gap:8px}.reports-nav a{height:47px;display:flex;align-items:center;gap:16px;padding:0 14px;border-radius:8px;color:#e5ebf8;font-size:14px;font-weight:600;text-decoration:none}.reports-nav a span{font-size:21px;color:#bdd5ff}.reports-nav a.active{background:linear-gradient(100deg,#641ae1,#4615bc);box-shadow:0 7px 22px rgba(102,33,245,.35)}.reports-side-bottom{margin-top:auto;display:flex;flex-direction:column;gap:20px}.reports-upgrade,.reports-user,.reports-storage{border:1px solid #1b2940;border-radius:9px;background:#07111f}.reports-upgrade{padding:16px 14px}.reports-upgrade b{font-size:13px}.reports-upgrade p{font-size:11px;line-height:1.7;color:#c2cce0;margin:12px 0}.reports-upgrade button,.top-video>button{width:100%;height:35px;border:0;border-radius:6px;background:linear-gradient(100deg,#7420d7,#4a20db);color:#fff;font-weight:700}.reports-user{display:flex;align-items:center;gap:11px;padding:14px}.reports-user i{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;font-style:normal;font-weight:700;background:linear-gradient(135deg,#6948c9,#31116c)}.reports-user b{display:block;font-size:13px}.reports-user small{font-size:11px;color:#c7d1e3}.reports-user>span{margin-left:auto}.reports-storage{position:relative;padding:17px 14px}.reports-storage>b{font-size:13px}.reports-storage p{font-size:13px;margin:19px 0 14px;color:#c3cce1}.reports-storage p strong{color:#fff}.reports-storage>div{height:9px;border-radius:8px;background:#152137;overflow:hidden}.reports-storage>div i{display:block;width:38%;height:100%;background:linear-gradient(90deg,#632ce3,#b05afb);border-radius:inherit}.reports-storage>small{position:absolute;right:14px;bottom:15px;font-size:11px;color:#c3cce1}.reports-version{font-size:12px;color:#c4cede;margin:0 14px}.reports-version i{display:inline-block;width:11px;height:11px;margin-right:9px;border-radius:50%;background:#35e36c}
.reports-main{margin-left:210px;padding:25px 20px 18px;max-width:1536px}.reports-topbar{height:63px;display:flex;align-items:start;gap:22px;margin-bottom:19px}.reports-topbar>div:first-child{margin-right:auto}.reports-topbar h1{font-size:28px;letter-spacing:-.8px;line-height:1;margin:4px 0 9px}.reports-topbar p{font-size:14px;color:#c4cede}.reports-search{position:relative;width:302px;height:44px}.reports-search input{width:100%;height:100%;padding:0 45px 0 15px;background:#050a13;border:1px solid #2b374b;border-radius:10px;color:#fff;outline:0}.reports-search span{position:absolute;right:15px;top:9px;font-size:23px}.reports-tools{display:flex;gap:12px}.reports-tools button{position:relative;width:43px;height:43px;border-radius:50%;border:1px solid #1b293f;background:#050a13;color:#fff;font-size:18px}.reports-tools .notice::after{content:'3';position:absolute;right:-4px;top:-5px;width:16px;height:16px;display:grid;place-items:center;border-radius:50%;background:#f32d4e;font-size:10px}.reports-profile{width:211px;height:58px;padding:8px 12px;display:flex;align-items:center;gap:9px;border:1px solid #29364a;border-radius:11px;background:#050a13}.reports-profile img{width:39px;height:39px;border-radius:50%;object-fit:cover;object-position:50% 35%}.reports-profile b,.reports-profile small{display:block}.reports-profile b{font-size:14px}.reports-profile small{font-size:11px;color:#c5cede;margin-top:3px}.reports-profile>span{margin-left:auto}
.reports-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-bottom:16px}.reports-metric{position:relative;height:171px;padding:16px 20px;border:1px solid #1d2b40;border-radius:9px;background:linear-gradient(145deg,#091525,#07111e);overflow:hidden}.reports-metric>span{float:left;width:27px;height:27px;margin-right:8px;display:grid;place-items:center;border-radius:8px;font-size:15px}.reports-metric>div{display:flex;flex-direction:column;gap:10px}.reports-metric b{font-size:13px}.reports-metric strong{font-size:30px;line-height:1}.reports-metric strong em{font-size:16px;font-style:normal;font-weight:500;color:#c4cede}.reports-metric small{font-size:12px;color:#3ee870;font-weight:700}.reports-metric.red small{color:#cbd4e4;font-weight:400}.reports-metric i{position:absolute;left:20px;right:20px;bottom:18px;height:32px;background:linear-gradient(155deg,transparent 43%,currentColor 45%,transparent 47%,transparent 55%,currentColor 57%,transparent 59%,transparent 68%,currentColor 70%,transparent 72%);opacity:.95}.reports-metric.purple{color:#a54bff}.reports-metric.yellow{color:#ffbd27}.reports-metric.green{color:#38db68}.reports-metric.red{color:#ff5353}.reports-metric b,.reports-metric strong{color:#f7f9ff}.reports-metric small{color:#3ee870}
.reports-layout{display:grid;grid-template-columns:minmax(700px,3fr) minmax(310px,1.18fr);gap:16px}.reports-history,.reports-insights>section{border:1px solid #1d2a3e;border-radius:9px;background:linear-gradient(145deg,#091524,#07111d)}.reports-history{overflow:hidden}.reports-history>h2{padding:19px 17px 16px;font-size:18px}
.reports-columns,.report-row{display:grid;grid-template-columns:1.65fr 1.05fr .92fr .95fr .8fr 1.2fr;align-items:center}.reports-columns{height:38px;padding:0 17px;border-top:1px solid #1d2a3e;border-bottom:1px solid #1d2a3e;color:#c7d2e4;font-size:11px}.reports-grid{display:block}.report-row{min-height:70px;margin:0 17px;border-bottom:1px solid #172639}.report-video{display:flex;align-items:center;gap:11px;min-width:0}.report-thumb{width:70px;height:52px;border-radius:6px;overflow:hidden;background:linear-gradient(135deg,#1769aa,#0b1e36);flex:0 0 70px}.report-thumb img{width:100%;height:100%;object-fit:cover}.report-name{font-weight:700;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.report-date{font-size:12px;line-height:1.5;color:#d4dceb}.report-score{width:49px;height:49px;display:grid;place-items:center;border-radius:50%;font-size:16px;font-weight:800;background:radial-gradient(circle,#081423 57%,transparent 59%),conic-gradient(#277ff5 0 78%,#243347 78%)}.report-badge{justify-self:start;padding:5px 14px;border:1px solid #219c51;border-radius:14px;color:#4cea7d;font-size:11px}.report-badge.medium{border-color:#a36b06;color:#ffbd22}.report-badge.low{border-color:#a1303c;color:#fb5960}.report-duration{font-size:12px;color:#d5deef}.report-actions{display:flex;gap:11px;justify-content:flex-end}.report-actions .report-btn{height:31px;padding:0 14px;border:1px solid #8541df;border-radius:6px;background:transparent;color:#c982ff;font-size:11px}.report-actions .delete-report-btn{width:32px;height:32px;padding:0;border:0;border-radius:6px;background:#101b2c;color:#e2e8f6;font-size:0}.report-actions .delete-report-btn::after{content:'⋮';font-size:19px}.reports-pager{height:56px;padding:0 17px;display:flex;align-items:center;justify-content:space-between;color:#c5cfdf;font-size:11px}.reports-pager div{display:flex;gap:8px}.reports-pager button{width:29px;height:29px;border:0;border-radius:5px;background:#0d1828;color:#d5dded}.reports-pager button.selected{background:#5921d4;color:#fff}.reports-pager select{height:28px;background:#0b1626;border:1px solid #25334a;color:#fff;border-radius:5px}
.reports-insights{display:flex;flex-direction:column;gap:15px}.trend-card{overflow:hidden}.trend-card header{display:flex;align-items:center;justify-content:space-between;padding:16px 16px 10px}.trend-card h2{font-size:16px}.trend-card header button{height:32px;padding:0 11px;border:1px solid #29384c;border-radius:7px;background:#0b1523;color:#fff;font-size:11px}.trend-card>p{margin:6px 16px;font-size:12px}.trend-chart{position:relative;height:169px;padding:0 17px}.trend-chart svg{position:absolute;inset:12px 16px 30px;width:calc(100% - 32px);height:110px;overflow:visible}.trend-chart path{fill:none;stroke:#9845fa;stroke-width:3}.trend-chart::before{content:'';position:absolute;left:17px;right:17px;top:44px;bottom:31px;background:repeating-linear-gradient(0deg,transparent 0 31px,#1d2a3c 32px 33px)}.trend-value{position:absolute;right:17px;top:19px;padding:5px 7px;border-radius:5px;background:#7133d9;font-weight:800;font-size:12px}.chart-axis{position:absolute;left:18px;right:18px;bottom:10px;display:flex;justify-content:space-between;font-size:10px;color:#c7d0e0}.distribution-card{padding:16px}.distribution-card h3,.top-video h3{font-size:15px;margin:0 0 18px}.distribution-card>div{display:flex;align-items:center;gap:19px}.donut{width:126px;height:126px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(circle,#081423 53%,transparent 55%),conic-gradient(#36d866 0 33%,#337eea 33% 71%,#ffb71e 71% 92%,#ff5555 92%)}.donut strong{font-size:24px}.donut small{font-size:10px;color:#c3cde1}.distribution-card ul{list-style:none;padding:0;margin:0;flex:1}.distribution-card li{margin:10px 0;font-size:10px;color:#c6d1e3;white-space:nowrap}.distribution-card li i{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:7px;background:#36d866}.distribution-card li:nth-child(2) i{background:#337eea}.distribution-card li:nth-child(3) i{background:#ffb71e}.distribution-card li:nth-child(4) i{background:#ff5555}.distribution-card li b{float:right;font-weight:500}.top-video{padding:16px}.top-video>div{display:flex;align-items:center;gap:13px}.top-video-art{width:144px;height:100px;display:grid;place-items:center;border-radius:7px;background:linear-gradient(135deg,#07507a,#0a172b 60%,#5a1cc3);font-size:52px;color:#6bd6ff}.top-video p{margin:0}.top-video p b,.top-video p small{display:block}.top-video p b{font-size:14px;margin-bottom:9px}.top-video p em{display:inline-block;padding:5px 7px;border-radius:6px;background:#104b2d;color:#70f092;font-size:11px;font-style:normal;font-weight:800}.top-video p small{margin-top:9px;font-size:11px;line-height:1.55;color:#cbd5e6}.top-video p small strong{color:#3ee870}.top-video>button{margin-top:17px}
@media(max-width:1300px){.reports-main{padding:22px 16px}.reports-stats{gap:12px}.reports-metric{padding:14px}.reports-layout{grid-template-columns:minmax(650px,2.6fr) minmax(290px,1.1fr)}.reports-profile{width:192px}.reports-search{width:260px}.reports-columns,.report-row{grid-template-columns:1.55fr 1fr .8fr .9fr .65fr 1.1fr}.report-thumb{width:60px;flex-basis:60px}.report-actions{gap:6px}}

/* MY VIDEOS PAGE */
body.videos-page{display:block;min-width:1240px;background:radial-gradient(circle at 50% 0,#071323,#02060d 42%);color:#f7f9ff}.videos-sidebar{position:fixed;inset:0 auto 0 0;width:210px;padding:26px 15px 20px;border-right:1px solid #172237;background:#030812;display:flex;flex-direction:column}.videos-brand{text-align:center;height:103px;margin-bottom:18px}.videos-brand img{width:150px;height:73px;object-fit:cover;object-position:50% 36%;filter:drop-shadow(0 0 9px #168fc0)}.videos-brand p{font-size:12px;color:#c5cedf;margin-top:-1px}.videos-sidebar nav{display:flex;flex-direction:column;gap:8px}.videos-sidebar nav a{height:47px;display:flex;align-items:center;gap:16px;padding:0 14px;border-radius:8px;color:#e5ebf8;font-size:14px;font-weight:600;text-decoration:none}.videos-sidebar nav a span{font-size:21px;color:#bdd5ff}.videos-sidebar nav a.active{background:linear-gradient(100deg,#641ae1,#4615bc);box-shadow:0 7px 22px #4d1cc577}.videos-side-bottom{margin-top:auto;display:flex;flex-direction:column;gap:20px}.videos-upgrade,.videos-user,.videos-storage{border:1px solid #1b2940;border-radius:9px;background:#07111f}.videos-upgrade{padding:16px 14px}.videos-upgrade b{font-size:13px}.videos-upgrade p{font-size:11px;line-height:1.7;color:#c2cce0;margin:12px 0}.videos-upgrade button,.video-filters .apply{width:100%;height:35px;border:0;border-radius:6px;background:linear-gradient(100deg,#7420d7,#4a20db);color:#fff;font-weight:700}.videos-user{display:flex;align-items:center;gap:11px;padding:14px}.videos-user i{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;font-style:normal;font-weight:700;background:linear-gradient(135deg,#6948c9,#31116c)}.videos-user b,.videos-user small{display:block}.videos-user b{font-size:13px}.videos-user small{font-size:11px;color:#c7d1e3}.videos-user>span{margin-left:auto}.videos-storage{position:relative;padding:17px 14px}.videos-storage>b{font-size:13px}.videos-storage p{font-size:13px;margin:19px 0 14px;color:#c3cce1}.videos-storage p strong{color:#fff}.videos-storage>div,.video-storage-card>div{height:9px;border-radius:8px;background:#152137;overflow:hidden}.videos-storage>div i,.video-storage-card>div i{display:block;width:38%;height:100%;background:linear-gradient(90deg,#632ce3,#b05afb);border-radius:inherit}.videos-storage>small{position:absolute;right:14px;bottom:15px;font-size:11px;color:#c3cce1}.videos-version{font-size:12px;color:#c4cede;margin:0 14px}.videos-version i{display:inline-block;width:11px;height:11px;margin-right:9px;border-radius:50%;background:#35e36c}.videos-main{margin-left:210px;padding:25px 20px 18px;max-width:1536px}.videos-topbar{height:63px;display:flex;align-items:start;gap:14px;margin-bottom:19px}.videos-topbar>div:first-child{margin-right:auto}.videos-topbar h1{font-size:28px;letter-spacing:-.8px;line-height:1;margin:4px 0 9px}.videos-topbar p{font-size:14px;color:#c4cede}.videos-search,.filter-search{position:relative;width:272px;height:42px}.videos-search input,.filter-search input{width:100%;height:100%;padding:0 42px 0 14px;background:#050a13;border:1px solid #7240cb;border-radius:8px;color:#fff;outline:0}.videos-search span,.filter-search span{position:absolute;right:13px;top:8px;font-size:22px}.filter-button,.view-buttons button{width:42px;height:42px;border:0;border-radius:7px;background:#101c2d;color:#e5eafe;font-size:18px}.filter-button{background:#6325d4}.view-buttons{display:flex}.videos-tools{display:flex;gap:11px}.videos-tools button{position:relative;width:42px;height:42px;border-radius:50%;border:1px solid #1b293f;background:#050a13;color:#fff;font-size:18px}.videos-tools .notice::after{content:'3';position:absolute;right:-4px;top:-5px;width:16px;height:16px;display:grid;place-items:center;border-radius:50%;background:#f32d4e;font-size:10px}.videos-profile{width:196px;height:58px;padding:8px 12px;display:flex;align-items:center;gap:9px;border:1px solid #29364a;border-radius:11px;background:#050a13}.videos-profile img{width:39px;height:39px;border-radius:50%;object-fit:cover;object-position:50% 35%}.videos-profile b,.videos-profile small{display:block}.videos-profile b{font-size:14px}.videos-profile small{font-size:11px;color:#c5cede;margin-top:3px}.videos-profile>span{margin-left:auto}.videos-layout{display:grid;grid-template-columns:minmax(700px,3.1fr) minmax(280px,.95fr);gap:17px}.videos-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin-bottom:16px}.video-metric{position:relative;height:169px;padding:16px;border:1px solid #1d2b40;border-radius:9px;background:linear-gradient(145deg,#091525,#07111e);overflow:hidden}.video-metric>span{float:left;width:45px;height:45px;margin-right:12px;display:grid;place-items:center;border-radius:50%;font-size:23px}.video-metric b{font-size:12px}.video-metric strong{display:block;margin-top:11px;font-size:28px}.video-metric strong em{font-size:15px;font-style:normal}.video-metric .best-name{font-size:15px}.video-metric small{display:block;margin-top:10px;color:#40e978;font-size:11px;font-weight:700}.video-metric i{position:absolute;left:16px;right:16px;bottom:17px;height:26px;background:linear-gradient(155deg,transparent 42%,currentColor 44%,transparent 47%,transparent 58%,currentColor 60%,transparent 63%);opacity:.9}.video-metric.purple{color:#9c44f5}.video-metric.blue{color:#17b8ff}.video-metric.green{color:#3ee86e}.video-metric.yellow{color:#f7aa18}.video-metric b,.video-metric strong{color:#f8faff}.videos-gallery{border:1px solid #1d2b40;border-radius:9px;background:linear-gradient(145deg,#091524,#07111d);overflow:hidden}.videos-gallery>header{height:64px;padding:0 15px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #1d2a3e}.video-tabs{display:flex;gap:12px}.video-tabs button,.videos-gallery select{height:33px;padding:0 13px;border:0;border-radius:7px;background:#111d30;color:#d8e1f0;font-size:12px}.video-tabs button.active{background:linear-gradient(100deg,#7025dc,#4a1ec6);color:#fff}.video-tabs b{padding:2px 6px;border-radius:8px;background:#ffffff26;font-size:10px}.videos-gallery header>label{font-size:12px}.videos-gallery select{margin-left:8px;border:1px solid #2b3a51}.videos-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;padding:18px 15px 12px;min-height:580px}.video-card{min-width:0;border:1px solid #26364d;border-radius:9px;overflow:hidden;background:#091524}.video-card.high{border-color:#37d65c;box-shadow:0 0 12px #2dd95b38}.video-image{height:136px;position:relative;background:linear-gradient(135deg,#1b4c82,#0c1424 55%,#7540ba);overflow:hidden}.video-image img{width:100%;height:100%;object-fit:cover}.video-image::after{content:attr(data-duration);position:absolute;right:7px;bottom:7px;padding:4px 7px;border-radius:5px;background:#02060d;color:#fff;font-size:11px}.video-card-body{padding:13px}.video-card h3{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-card .video-date{font-size:11px;color:#c5cede;margin:8px 0}.video-score{font-size:20px;font-weight:800}.video-score small{font-size:13px;color:#c5cede}.video-card .video-badge{float:right;margin-top:4px;padding:5px 12px;border-radius:13px;background:#103d28;color:#4fe47a;font-size:11px}.video-card .video-badge.medium{background:#3d2a09;color:#ffc32c}.video-card .video-badge.low{background:#3d151b;color:#ff6671}.video-actions{display:flex;gap:9px;margin-top:14px}.video-actions button{flex:1;height:30px;border:0;border-radius:6px;background:#101b2d;color:#dce5f4}.videos-gallery>footer{height:55px;border-top:1px solid #1d2a3e;padding:0 15px;display:flex;align-items:center;justify-content:space-between}.videos-gallery>footer button,.videos-gallery>footer select{width:31px;height:29px;margin-right:8px;border:0;border-radius:5px;background:#0d1828;color:#dce5f4}.videos-gallery>footer button.active{background:#5b22d4}.videos-gallery>footer label{font-size:12px;color:#c5cede}.videos-right{display:flex;flex-direction:column;gap:15px}.videos-right section{border:1px solid #1d2a3e;border-radius:9px;background:linear-gradient(145deg,#091524,#07111d)}.video-statistics header,.video-filters header{display:flex;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid #1d2a3e}.video-statistics h2,.video-storage-card h2,.video-filters h2{font-size:16px}.video-statistics header button,.video-filters header button{border:0;background:transparent;color:#d5def0;font-size:11px}.video-statistics p{display:flex;margin:0;padding:14px 16px;font-size:12px;color:#c7d1e3}.video-statistics p b{margin-left:auto;color:#fff}.video-statistics p em{width:43px;text-align:right;color:#42e875;font-style:normal;font-weight:700}.video-storage-card{padding:18px}.video-storage-card p{font-size:13px;margin:21px 0 13px;color:#c5cede}.video-storage-card p b{color:#fff}.video-storage-card p span{float:right}.video-storage-card button{width:100%;height:39px;margin-top:30px;border:1px solid #2b3a4d;border-radius:6px;background:transparent;color:#dce5f4}.video-filters{padding:0 16px 16px}.video-filters header{margin:0 -16px 13px}.video-filters header button{color:#bf64ff}.filter-search{display:block;width:100%;height:38px;margin-bottom:10px}.filter-search input{border-color:#27364d}.video-filters>button{width:100%;height:38px;margin:5px 0;padding:0 12px;text-align:left;border:1px solid #26354b;border-radius:6px;background:#0b1523;color:#dbe3f2}.video-filters>button.apply{text-align:center;margin-top:12px}

/* SETTINGS PAGE */
body.settings-page{display:block;min-width:1240px;background:radial-gradient(circle at 50% 0,#071323,#02060d 42%);color:#f7f9ff}.settings-main{margin-left:210px;padding:16px 16px 20px;max-width:1536px}.settings-top{height:68px;display:flex;align-items:start;gap:18px}.settings-top>div:first-child{margin-right:auto}.settings-top h1{font-size:28px;margin:5px 0 8px}.settings-top p{font-size:14px;color:#c4cede}.settings-tabs{height:50px;display:flex;align-items:center;justify-content:space-around;border:1px solid #1d2b40;border-radius:9px;background:#091421;margin:15px 0}.settings-tabs button{height:100%;padding:0 12px;border:0;background:transparent;color:#d4dceb;font-size:13px}.settings-tabs button.active{color:#b66aff;border-bottom:3px solid #8e35ed}.settings-grid{display:grid;grid-template-columns:1.1fr 1.14fr .84fr;gap:13px}.settings-left,.settings-center,.settings-right{display:flex;flex-direction:column;gap:13px}.settings-card{padding:17px;border:1px solid #1c2b40;border-radius:9px;background:linear-gradient(145deg,#091524,#07111d)}.settings-card h2{font-size:16px;margin:0 0 8px}.settings-card>p{font-size:12px;color:#c1cce0;margin:0 0 18px}.profile-card{height:269px}.profile-content{display:flex;gap:35px;align-items:center}.profile-content>div{text-align:center}.profile-content img{width:115px;height:115px;border-radius:50%;object-fit:cover;object-position:50% 36%;border:1px solid #8440dd}.profile-content>div button,.profile-content form>button{width:112px;height:32px;margin-top:9px;border:1px solid #2c3b51;border-radius:6px;background:#081321;color:#fff;font-size:11px}.profile-content form{flex:1}.profile-content label{display:block;font-size:11px;margin:0 0 10px}.profile-content input,.preferences select,.switches select{display:block;width:100%;height:33px;margin-top:6px;padding:0 10px;border:1px solid #26364b;border-radius:6px;background:#050b14;color:#fff}.profile-content form>button{width:100%;border-color:#25344a;color:#b65dff}.appearance-card{height:313px}.appearance-card>b,.preferences>b{display:block;margin:17px 0 9px;font-size:11px}.theme-options{display:flex;gap:10px}.theme-options button{height:64px;flex:1;border:1px solid #2b3b50;border-radius:7px;background:#07111d;color:#fff}.theme-options .selected{border-color:#9f3df3;background:#1b102f}.colors{display:flex;gap:20px}.colors i{width:31px;height:31px;border-radius:50%;background:#226ce8}.colors i:nth-child(2){background:#16b9e7}.colors i:nth-child(3){background:#30c65d}.colors i:nth-child(4){background:#f3a51d}.colors i:nth-child(5){background:#f03c3c}.colors i:nth-child(6){background:#e52e82}.colors i.selected{background:#6b24df;border:3px solid #e8d7ff}.preferences{height:365px}.analysis-modes,.platforms{display:flex;gap:10px}.analysis-modes button{height:100px;flex:1;padding:12px;text-align:left;border:1px solid #2b3b50;border-radius:7px;background:#07111d;color:#d7e0f0;font-size:18px}.analysis-modes button.selected{border-color:#a13ff4;background:#211132}.analysis-modes strong,.analysis-modes small{display:block;font-size:11px;margin-top:7px}.analysis-modes small{font-size:10px;color:#c3cde0;line-height:1.4}.platforms button{height:37px;flex:1;border:1px solid #26364b;border-radius:6px;background:#07111d;color:#fff;font-size:10px}.preferences select{height:32px}.storage-settings{height:229px}.storage-squares{display:flex;gap:9px}.storage-squares span{flex:1;padding:10px;border:1px solid #203047;border-radius:7px;font-size:10px;color:#c7d1e5}.storage-squares strong,.storage-squares small{display:block}.storage-squares strong{font-size:23px;color:#2486ff;margin:5px 0}.storage-squares span:nth-child(2) strong{color:#35d55c}.storage-squares span:nth-child(3) strong{color:#a64df9}.storage-squares small{color:#70db9c}.bar{position:relative;height:10px;margin:14px 0;border-radius:8px;background:#18253a}.bar i{display:block;width:20%;height:100%;border-radius:inherit;background:linear-gradient(90deg,#6f23d8,#b65dfc)}.bar small{position:absolute;right:0;top:-1px;transform:translateX(32px)}.storage-settings>div:last-child{display:flex;gap:10px}.storage-settings button{height:32px;flex:1;border:1px solid #26364b;border-radius:6px;background:transparent;color:#fff}.settings-card .danger{border:1px solid #7e2534!important;background:transparent!important;color:#ff6570!important}.switches{padding:17px 16px}.switches label,.about label{position:relative;display:block;padding:10px 34px 10px 0;border-bottom:1px solid #142439;font-size:11px}.switches label small{display:block;margin:5px 0 0;color:#b9c5da;font-size:10px}.switches input{position:absolute;right:0;top:13px;appearance:none;width:29px;height:18px;border-radius:18px;background:#647084}.switches input:checked{background:#8c35e5}.switches input::before{content:'';position:absolute;left:2px;top:2px;width:14px;height:14px;border-radius:50%;background:#fff}.switches input:checked::before{left:13px}.switches select,.switches button{position:absolute;right:0;top:8px;width:116px;height:30px}.about label span{float:right}.about>button{width:100%;height:34px;margin-top:12px;border-radius:6px}.subscriptions{margin-top:13px}.subscriptions h2{font-size:17px}.subscriptions h2 small{font-weight:400;color:#c4cede;font-size:12px}.subscriptions>div{display:flex;gap:15px}.subscriptions article{position:relative;flex:1;min-height:170px;padding:15px;border:1px solid #203047;border-radius:8px;background:#07111d}.subscriptions article.pro{border-color:#7030c8;background:linear-gradient(110deg,#141129,#0a1120)}.subscriptions h3{font-size:14px;margin:0}.subscriptions em{margin-left:13px;padding:4px 8px;border-radius:5px;background:#1e59bb;font-style:normal;font-size:10px}.subscriptions .pro em{background:#6b27c9}.subscriptions p{font-size:11px;line-height:1.8;color:#d1daeb}.subscriptions article>strong{position:absolute;right:16px;bottom:31px;font-size:25px}.subscriptions article>strong small{font-size:11px}.subscriptions .pro button{position:absolute;right:16px;bottom:14px;width:148px;height:34px;border:0;border-radius:6px;background:linear-gradient(100deg,#7225dc,#4b1cce);color:#fff;font-weight:700}

/* Settings reference layout correction: subscription shares the lower left two columns. */
.settings-main{position:relative;min-height:1010px;padding-bottom:18px}.settings-grid{padding-bottom:0}.subscriptions{position:absolute;left:16px;top:780px;width:calc(100% - 332px);margin:0!important;background:linear-gradient(145deg,#091524,#07111d)!important}.subscriptions>div{gap:14px}.subscriptions article{min-height:171px}.settings-right{z-index:1}.settings-card{background:linear-gradient(145deg,#091625,#07111d);border-color:#1b2a40}.settings-tabs{background:linear-gradient(90deg,#0b1523,#091421);border-color:#1c2a3f}.theme-options .selected,.analysis-modes button.selected{box-shadow:inset 0 0 18px rgba(125,43,225,.12)}.storage-settings .bar{background:#17243a}.storage-settings .bar i{width:20%;background:linear-gradient(90deg,#6c26df,#b45afd)}
@media(max-width:1280px){.subscriptions{width:calc(100% - 298px);top:780px}.subscriptions article{min-height:170px}.subscriptions article>strong{bottom:28px}.subscriptions .pro button{width:136px}}

/* Settings fidelity refinement. */
.settings-page .reports-sidebar{height:100vh}.settings-page .reports-side-bottom{margin-top:auto!important}.settings-page .reports-nav{gap:9px}.settings-page .reports-nav a{height:48px}.settings-page .reports-upgrade{background:linear-gradient(145deg,#081320,#050b14)}.settings-page .reports-user,.settings-page .reports-storage{background:#07111e}.settings-page .profile-content{display:grid!important;grid-template-columns:150px minmax(0,1fr)!important;gap:18px!important;align-items:center}.settings-page .profile-content form{min-width:0}.settings-page .profile-content input{width:100%!important}.settings-page .profile-content>div{text-align:center}.settings-page .settings-grid{align-items:start}.settings-page .settings-left,.settings-page .settings-center,.settings-page .settings-right{gap:14px}.settings-page .settings-card{box-shadow:0 10px 24px rgba(0,0,0,.16)}.settings-page .subscriptions{box-shadow:0 10px 24px rgba(0,0,0,.16)}.settings-page .subscriptions .pro{box-shadow:inset 0 0 28px rgba(96,39,192,.11)}.settings-page .settings-right .about{min-height:230px}.settings-page .switches label{min-height:50px}.settings-page .settings-tabs button{font-weight:500}

/* Exact-fit corrections for the Settings reference. */
.settings-main{min-height:1010px}.subscriptions{top:750px!important}.subscriptions article.pro>strong{right:162px!important;bottom:67px!important;white-space:nowrap}.subscriptions .pro button{right:18px!important;bottom:19px!important;width:148px!important}.subscriptions article{min-height:172px!important}.analysis-modes{gap:11px!important}.analysis-modes button{min-width:0!important;overflow:hidden;padding:10px!important;font-size:17px!important}.analysis-modes strong{font-size:12px!important;white-space:nowrap}.analysis-modes small{font-size:10px!important;line-height:1.35!important}.platforms{gap:8px!important}.platforms button{padding:0 5px!important;white-space:nowrap;font-size:9px!important}.preferences{height:365px!important}.storage-settings{height:229px!important}.settings-right .about{min-height:232px!important}.settings-card h2{font-size:16px!important}.settings-card>p{font-size:12px!important}.settings-page .reports-brand img{object-position:50% 34%}.settings-page .reports-brand p{font-size:12px!important}

/* Pro plan: reserve a dedicated column for the price and action. */
.subscriptions article.pro{display:grid!important;grid-template-columns:minmax(0,1fr) 166px!important;grid-template-rows:28px minmax(0,1fr) 36px!important;column-gap:10px!important}.subscriptions article.pro h3{grid-column:1 / -1;grid-row:1}.subscriptions article.pro p{grid-column:1;grid-row:2;margin:0!important}.subscriptions article.pro>strong{position:static!important;grid-column:2!important;grid-row:2!important;align-self:end!important;justify-self:center!important;white-space:nowrap!important;font-size:24px!important}.subscriptions article.pro button{position:static!important;grid-column:2!important;grid-row:3!important;width:148px!important;height:34px!important;align-self:end!important;justify-self:center!important}.subscriptions article.pro>strong small{font-size:11px!important}

/* Align the lower subscription row with the right-hand About panel. */
.settings-main{min-height:1010px!important}.subscriptions{top:780px!important;min-height:231px!important}.subscriptions>div{height:172px}.subscriptions article{height:172px!important}.settings-right .about{min-height:231px!important}

/* Show the entire ViralAI mark in the Settings sidebar. */
.settings-page .reports-brand{height:116px!important;margin-bottom:14px!important;overflow:visible!important}.settings-page .reports-brand img{display:block!important;width:160px!important;height:96px!important;margin:0 auto!important;object-fit:cover!important;object-position:50% 42%!important}.settings-page .reports-brand p{margin-top:0!important}

/* Make the lower-left subscription row finish exactly with About ViralAI. */
.settings-main{min-height:1068px!important}.subscriptions{top:806px!important;height:262px!important;min-height:262px!important}.subscriptions>div{height:202px!important}.subscriptions article{height:202px!important}.settings-right .about{min-height:262px!important}

/* Show the complete supplied logo on Reports and My Videos. */
.reports-page .reports-brand{height:116px!important;margin-bottom:14px!important;overflow:visible!important}.reports-page .reports-brand img{display:block!important;width:160px!important;height:96px!important;margin:0 auto!important;object-fit:cover!important;object-position:50% 42%!important}.reports-page .reports-brand p{margin-top:0!important}.videos-page .videos-brand{height:116px!important;margin-bottom:14px!important;overflow:visible!important}.videos-page .videos-brand img{display:block!important;width:160px!important;height:96px!important;margin:0 auto!important;object-fit:cover!important;object-position:50% 42%!important}.videos-page .videos-brand p{margin-top:0!important}

/* Bridge the existing report renderer to the reference table layout. */
.reports-page .reports-grid{display:block!important}.reports-page .reports-grid .history-card{display:grid!important;grid-template-columns:1.65fr 1.05fr .92fr .95fr .8fr 1.2fr!important;align-items:center;min-height:70px!important;height:auto!important;margin:0 17px!important;padding:0!important;column-gap:0!important;border:0!important;border-bottom:1px solid #172639!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}.reports-page .reports-grid .thumb{width:70px!important;height:52px!important;border-radius:6px!important}.reports-page .reports-grid .history-info{grid-column:1;grid-row:1;margin-left:81px}.reports-page .reports-grid .history-info h3{font-size:13px!important;white-space:nowrap}.reports-page .reports-grid .history-info p{font-size:12px!important;line-height:1.5}.reports-page .reports-grid .history-score{grid-column:3;grid-row:1}.reports-page .reports-grid .score-circle{width:49px!important;height:49px!important;font-size:16px!important}.reports-page .reports-grid .status{grid-column:4;grid-row:1;justify-self:start;padding:5px 14px!important;border:1px solid #219c51!important;border-radius:14px!important;background:transparent!important;color:#4cea7d!important;font-size:11px!important}.reports-page .reports-grid .status.medium{border-color:#a36b06!important;color:#ffbd22!important}.reports-page .reports-grid .status.low{border-color:#a1303c!important;color:#fb5960!important}.reports-page .reports-grid .report-duration{grid-column:5;grid-row:1;font-size:12px;color:#d5deef}.reports-page .reports-grid .report-actions{grid-column:6;grid-row:1;display:flex!important;justify-content:flex-end;gap:11px}.reports-page .reports-grid .report-btn{height:31px!important;padding:0 14px!important;border:1px solid #8541df!important;border-radius:6px!important;background:transparent!important;color:#c982ff!important;font-size:11px!important}.reports-page .reports-grid .delete-report-btn{width:32px!important;height:32px!important;padding:0!important;border:0!important;border-radius:6px!important;background:#101b2c!important;color:transparent!important;font-size:0!important}.reports-page .reports-grid .delete-report-btn::after{content:'⋮';font-size:19px;color:#e2e8f6}.reports-page .reports-grid .thumb-placeholder{height:100%;display:grid;place-items:center}.reports-page .reports-grid .history-card:has(.thumb){position:relative}.reports-page .reports-grid .history-card>.thumb{position:absolute;left:0;top:9px}.reports-page .reports-grid .history-info p{max-width:95px}.reports-page .reports-grid .history-info p::first-line{font-size:12px}

/* ==========================================
   VIRALAI AI ENGINE
========================================== */

.ai-engine{
    display:flex;
    justify-content:center;
    align-items:center;
    margin:28px 0;
}

.ai-core{
    width:130px;
    height:130px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:64px;

    background:
    radial-gradient(circle,
    rgba(34,211,238,.22),
    rgba(34,211,238,.05));

    border:2px solid rgba(34,211,238,.25);

    box-shadow:
    0 0 18px rgba(34,211,238,.20),
    0 0 45px rgba(34,211,238,.10);

    animation:enginePulse 3s ease-in-out infinite;
}

.engine-status{
    text-align:center;
    margin-top:15px;
}

.engine-status h3{
    color:#ffffff;
    font-size:24px;
    font-weight:700;
    margin-bottom:8px;
}

.engine-status p{
    color:#ffffff;
    opacity:.85;
    font-size:15px;
    line-height:1.6;
}

@keyframes enginePulse{

    0%{
        transform:scale(1);
        box-shadow:
        0 0 18px rgba(34,211,238,.20),
        0 0 45px rgba(34,211,238,.10);
    }

    50%{
        transform:scale(1.06);
        box-shadow:
        0 0 35px rgba(34,211,238,.45),
        0 0 70px rgba(34,211,238,.22);
    }

    100%{
        transform:scale(1);
        box-shadow:
        0 0 18px rgba(34,211,238,.20),
        0 0 45px rgba(34,211,238,.10);
    }

}

/* ==========================================
   AI ENGINE
========================================== */

#aiEngine{
    margin-top:25px;
    padding-top:22px;
    border-top:1px solid rgba(255,255,255,.08);
}

.ai-engine-state{
    text-align:center;
}

.ai-status{
    color:#ffffff;
    font-size:15px;
    font-weight:600;
}

.ai-progress{
    width:100%;
    height:8px;
    background:#1e293b;
    border-radius:100px;
    overflow:hidden;
    margin-bottom:18px;
}

#aiProgressFill{
    width:0%;
    height:100%;
    background:linear-gradient(90deg,#2563eb,#22d3ee);
    transition:width .4s ease;
}

.result-score{
    margin-bottom:20px;
}

.result-score h2{
    font-size:54px;
    color:#ffffff;
    margin:0;
}

.result-score span{
    color:#94a3b8;
}

.mini-metrics{
    display:grid;
    grid-template-columns:1fr;
    gap:10px;
    margin:20px 0;
}

.mini-metrics div{
    display:flex;
    justify-content:space-between;
    color:#ffffff;
    padding:10px 14px;
    border-radius:10px;
    background:rgba(255,255,255,.05);
}

.coach-result{
    margin-top:18px;
    color:#cbd5e1;
    line-height:1.6;
}

/* ===========================
   HISTORY DROPDOWN MENU
=========================== */

.history-menu{

    position:relative;

    display:inline-block;

    z-index:1000;

}

.history-more{

width:34px;
height:34px;

border:none;
border-radius:10px;

background:#162133;
color:#fff;

font-size:18px;
cursor:pointer;

transition:.25s;

}

.history-more:hover{

background:#1d2c43;

}

/* Force the dropdown into the normal document flow so it pushes cards down */
.history-dropdown {
    display: none;
    position: static !important; /* Removes absolute floating completely */
    width: 100% !important; /* Spans the full width of the card */
    margin-top: 12px;
    background: #0d1322;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 12px;
    
    /* 3x2 Grid layout */
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    z-index: 10;
}

/* When active, show as grid which forces the card height to expand and push the next card */
.history-dropdown.show {
    display: grid !important;
}

.history-dropdown button {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: #162133;
    color: #fff;
    text-align: center;
    font-size: 13px;
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
}

.history-dropdown button:hover {
    background: #1d2c43;
}

.delete-option{

color:#ff6b6b !important;

}
/* --- VIRALAI FINAL DROPDOWN FIX --- */

/* Ensure history cards allow the floating menu to anchor correctly */
.history-card {
    position: relative !important;
    overflow: visible !important;
}

/* Ensure the menu container acts as the positioning reference */
.history-menu {
    position: relative !important;
    overflow: visible !important;
}

/* Floating 3x2 Grid Dropdown */
.history-dropdown {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    width: 420px !important;
    background: #0d1322 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 14px !important;
    padding: 10px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8) !important;
    z-index: 999999 !important;
    
    /* 3 Columns by 2 Rows Grid */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

/* Active State */
.history-dropdown.show {
    display: grid !important;
}

/* Dropdown Action Buttons */
.history-dropdown button {
    width: 100% !important;
    padding: 10px 8px !important;
    border: none !important;
    background: #162133 !important;
    color: #fff !important;
    text-align: center !important;
    font-size: 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.history-dropdown button:hover {
    background: #1d2c43 !important;
}

.history-dropdown button.delete-option:hover {
    background: #7f1d1d !important;
}

/* --- PROFESSIONAL COLOR-CODED EXPANDABLE ACTION PANEL --- */

.history-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative !important;
    height: auto !important;
    transition: none !important;
    overflow: visible !important;
}

.history-main-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 20px !important;
}

.history-dropdown {
    display: none !important;
    position: static !important;
    width: 100% !important;
    margin-top: 16px !important;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.98) 0%, rgba(14, 21, 38, 0.98) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    border-top: 2px solid rgba(56, 189, 248, 0.5) !important;
    border-radius: 12px !important;
    padding: 16px 18px !important;
    box-sizing: border-box !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease !important;
}

.history-dropdown.show {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

/* Base Button Styling */
.history-dropdown button {
    flex: 1 !important;
    padding: 11px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: rgba(20, 30, 50, 0.8) !important;
    color: #cbd5e1 !important;
    text-align: center !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.2px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* 1. View Details (Neutral Sleek Blue) */
.history-dropdown button:nth-child(1):hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(56, 189, 248, 0.15);
}

/* 2. Rename (Indigo Tint) */
.history-dropdown button:nth-child(2):hover {
    background: rgba(129, 140, 248, 0.15) !important;
    border-color: rgba(129, 140, 248, 0.4) !important;
    color: #818cf8 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(129, 140, 248, 0.15);
}

/* 3. Duplicate Report (Purple Tint) */
.history-dropdown button:nth-child(3):hover {
    background: rgba(192, 132, 252, 0.15) !important;
    border-color: rgba(192, 132, 252, 0.4) !important;
    color: #c084fc !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(192, 132, 252, 0.15);
}

/* 4. Download PDF (Emerald/Success Tint) */
.history-dropdown button:nth-child(4):hover {
    background: rgba(52, 211, 153, 0.15) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
    color: #34d399 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(52, 211, 153, 0.15);
}

/* 5. Share (Cyan/Sky Tint) */
.history-dropdown button:nth-child(5):hover {
    background: rgba(45, 212, 191, 0.15) !important;
    border-color: rgba(45, 212, 191, 0.4) !important;
    color: #2dd4bf !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(45, 212, 191, 0.15);
}

/* 6. Delete (Destructive Crimson Tint) */
.history-dropdown button.delete-option {
    color: #fca5a5 !important;
}

.history-dropdown button.delete-option:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fef2f2 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.22);
}

/* ==========================================
   VIRALAI - NOTIFICATION CENTER STYLES
   ================================          */

.top-icon-container {
    position: relative;
    display: inline-block;
}

/* Notification Dropdown Panel */
.notification-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: #0d1322;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(34, 211, 238, 0.05);
    z-index: 999999;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInDown 0.25s ease forwards;
}

.notification-dropdown.show {
    display: flex !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.notification-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(16, 24, 39, 0.7);
}

.notification-header h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.notification-header-actions {
    display: flex;
    gap: 10px;
}

.notification-header-actions button {
    background: none;
    border: none;
    color: #22d3ee;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    padding: 2px 4px;
    transition: opacity 0.2s;
}

.notification-header-actions button:hover {
    opacity: 0.8;
}

/* List Area */
.notification-list {
    overflow-y: auto;
    max-height: 340px;
    display: flex;
    flex-direction: column;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: #0d1322;
    transition: background 0.2s ease;
    cursor: pointer;
    position: relative;
}

.notification-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.notification-item.unread {
    background: rgba(34, 211, 238, 0.04);
}

.notification-item.unread::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22d3ee;
}

.notification-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 3px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-content p {
    font-size: 12px;
    color: #94a3b8;
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.notification-time {
    font-size: 10px;
    color: #64748b;
}

/* Empty State */
.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
}

/* Footer / Clear All */
.notification-footer {
    padding: 10px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    background: rgba(13, 19, 34, 0.9);
}

.notification-footer button {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.notification-footer button:hover {
    color: #f87171;
}

/* ==========================================
   VIRALAI - LIVE SEARCH EMPTY STATE
   ================================          */
.search-empty-state {
    padding: 45px 20px;
    text-align: center;
    background: #101827;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    color: #94a3b8;
}

.search-empty-state .empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.search-empty-state h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}

.search-empty-state p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================
   VIRALAI - LIVE SEARCH EMPTY STATE
   ================================          */
.search-empty-state {
    padding: 45px 20px;
    text-align: center;
    background: #101827;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 18px;
    color: #94a3b8;
}

.search-empty-state .empty-icon {
    font-size: 42px;
    margin-bottom: 12px;
}

.search-empty-state h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 4px;
}

.search-empty-state p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* ==========================================
   VIRALAI - PROFESSIONAL GLOBAL FLOATING SEARCH
   ================================          */

.search-container {
    position: relative;
}

/* Floating Dropdown Panel */
.global-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    min-width: 380px;
    max-height: 420px;
    background: #0d1322;
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.85), 0 0 25px rgba(34, 211, 238, 0.08);
    z-index: 99999;
    overflow-y: auto;
    flex-direction: column;
    padding: 10px;
    animation: searchFadeIn 0.2s ease forwards;
}

.global-search-dropdown.show {
    display: flex !important;
}

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

/* Section Headings inside Dropdown */
.search-dropdown-header {
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-dropdown-header button {
    background: none;
    border: none;
    color: #22d3ee;
    cursor: pointer;
    font-size: 11px;
}

/* Recent Search Pills / Rows */
.recent-search-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: #cbd5e1;
    font-size: 13px;
    transition: background 0.2s;
}

.recent-search-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

/* Floating Result Cards */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    background: #0d1322;
    transition: background 0.2s, transform 0.15s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.search-result-item:hover {
    background: rgba(34, 211, 238, 0.08);
}

.search-result-thumb {
    width: 48px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    background: #111827;
    flex-shrink: 0;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-info p {
    font-size: 11px;
    color: #94a3b8;
    margin: 0;
}

.search-result-score {
    text-align: right;
    flex-shrink: 0;
}

.search-result-score span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #22d3ee;
}

.search-result-score small {
    font-size: 10px;
    color: #94a3b8;
}

/* Empty State */
.search-dropdown-empty {
    padding: 30px 15px;
    text-align: center;
    color: #94a3b8;
}

.search-dropdown-empty h3 {
    color: #fff;
    font-size: 14px;
    margin: 8px 0 4px 0;
}

.search-dropdown-empty p {
    font-size: 12px;
    margin: 0;
}

/* ==========================================
   VIRALAI - DEDICATED SEARCH RESULTS VIEW
   ================================          */

.search-results-view {
    display: none;
    padding: 20px 0;
    animation: fadeInView 0.25s ease forwards;
}

.search-results-view.show {
    display: block !important;
}

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

.search-results-header-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.search-back-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
}

.search-back-btn:hover {
    background: rgba(34, 211, 238, 0.15);
    border-color: rgba(34, 211, 238, 0.3);
    color: #22d3ee;
}

.search-results-title-box h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px 0;
}

.search-results-title-box p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* Search Results Grid Layout */
.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ==========================================
   VIRALAI - PROFESSIONAL PROFILE MENU & MODALS
   ================================          */

.profile-container {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 12px;
    border-radius: 12px;
    transition: background 0.2s, border-color 0.2s;
}

.profile-menu:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(34, 211, 238, 0.3);
}

.profile-menu img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-text {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    line-height: 1.2;
}

.profile-text strong {
    color: #fff;
    font-weight: 600;
}

.profile-text span {
    color: #94a3b8;
    font-size: 10px;
}

.profile-chevron {
    color: #94a3b8;
    font-size: 14px;
    transition: transform 0.2s;
}

/* SaaS Account Dropdown Panel */
.profile-dropdown-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 240px;
    background: #0d1322;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 8px;
    animation: fadeInDropdown 0.2s ease forwards;
}

.profile-dropdown-panel.show {
    display: block !important;
}

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

.profile-dropdown-header {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 6px;
}

.profile-dropdown-header h5 {
    color: #fff;
    font-size: 13px;
    margin: 0 0 2px 0;
}

.profile-dropdown-header p {
    color: #94a3b8;
    font-size: 11px;
    margin: 0;
}

.profile-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, color 0.15s;
}

.profile-dropdown-item:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #22d3ee;
}

.profile-dropdown-item.danger {
    color: #f87171;
}

.profile-dropdown-item.danger:hover {
    background: rgba(248, 113, 113, 0.1);
    color: #fca5a5;
}

.profile-dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 6px 0;
}

/* Modal Shared Styles for Profile Popups */
.profile-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInModal 0.2s ease forwards;
}

.profile-modal.show {
    display: flex !important;
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

.profile-modal-content {
    background: #0d1322;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 100%;
    max-width: 480px;
    padding: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    color: #fff;
    position: relative;
}

.profile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 12px;
}

.profile-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.profile-modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
}

.profile-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.profile-form-group {
    margin-bottom: 16px;
}

.profile-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 6px;
}

.profile-form-group input,
.profile-form-group select {
    width: 100%;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.profile-form-group input:focus {
    border-color: #22d3ee;
}

.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 20px;
}

.profile-stat-box {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 12px;
}

.profile-stat-box span {
    font-size: 11px;
    color: #94a3b8;
}

.profile-stat-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: #22d3ee;
    margin: 4px 0 0 0;
}

/* ==========================================
   VIRALAI - PREMIUM UPGRADE POPUP (PHASE 8)
   ================================          */

.upgrade-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 17, 0.75);
    backdrop-filter: blur(8px);
    z-index: 3000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInUpgradeModal 0.25s ease forwards;
}

.upgrade-modal-overlay.show {
    display: flex !important;
}

@keyframes fadeInUpgradeModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.upgrade-modal-box {
    background: #0d1322;
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    padding: 32px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7), 0 0 40px rgba(245, 158, 11, 0.15);
    color: #fff;
    position: relative;
    transform: scale(0.95);
    animation: scaleUpUpgradeBox 0.25s ease forwards;
}

@keyframes scaleUpUpgradeBox {
    to {
        transform: scale(1);
    }
}

.upgrade-modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s, color 0.2s;
}

.upgrade-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.upgrade-header-section {
    text-align: center;
    margin-bottom: 24px;
}

.upgrade-header-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: #f59e0b;
    margin: 0 0 8px 0;
}

.upgrade-header-section p {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}

/* Feature Comparison Table */
.upgrade-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.upgrade-feature-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
}

.upgrade-feature-col.pro-col {
    background: rgba(245, 158, 11, 0.03);
    border-color: rgba(245, 158, 11, 0.25);
}

.upgrade-feature-col h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #fff;
}

.upgrade-feature-col.pro-col h4 {
    color: #fbbf24;
}

.upgrade-feature-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
}

.upgrade-feature-col ul li {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Pricing Cards Layout */
.upgrade-pricing-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.upgrade-pricing-card {
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.upgrade-pricing-card:hover {
    border-color: rgba(245, 158, 11, 0.4);
    transform: translateY(-2px);
}

.upgrade-pricing-card.highlighted {
    background: #111827;
    border-color: #f59e0b;
}

.upgrade-badge-save {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #f59e0b;
    color: #0d1322;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.upgrade-pricing-card h5 {
    font-size: 13px;
    color: #94a3b8;
    margin: 0 0 4px 0;
}

.upgrade-pricing-card .price {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.upgrade-pricing-card .price span {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 400;
}

.upgrade-btn-select {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
}

.upgrade-pricing-card:not(.highlighted) .upgrade-btn-select {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.upgrade-pricing-card:not(.highlighted) .upgrade-btn-select:hover {
    background: rgba(255, 255, 255, 0.1);
}

.upgrade-pricing-card.highlighted .upgrade-btn-select {
    background: #f59e0b;
    color: #0d1322;
}
.upgrade-pricing-card.highlighted .upgrade-btn-select:hover {
    opacity: 0.9;
}

.upgrade-coming-soon-notice {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 8px;
    margin-bottom: 20px;
}

.upgrade-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================
   ViralAI - Locked Header & Body Grid Synchronization
   ========================================== */

.reports-columns,
.reports-grid .history-card {
    display: grid !important;
    grid-template-columns: 2.2fr 1.4fr 1fr 1fr 0.9fr 1fr !important;
    align-items: center !important;
    gap: 16px !important;
}

.reports-columns {
    padding: 0 16px 10px 0 !important;
    margin-bottom: 2px !important;
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
}

/* Header Alignments matching columns 1-to-1 */
.reports-columns div:nth-child(1),
.reports-columns div:nth-child(2) {
    text-align: left !important;
}

.reports-columns div:nth-child(3),
.reports-columns div:nth-child(4) {
    display: flex !important;
    justify-content: center !important;
}

.reports-columns div:nth-child(5) {
    text-align: center !important;
}

.reports-columns div:nth-child(6) {
    display: flex !important;
    justify-content: flex-end !important;
}

.reports-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding: 0 !important;
}

.reports-grid .history-card-wrapper {
    background: #0d1322 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    transition: background 0.15s ease !important;
}

.reports-grid .history-card-wrapper:hover {
    background: #111a2e !important;
}

.reports-grid .history-card {
    background: transparent !important;
    border: none !important;
    margin-bottom: 0 !important;
    position: relative !important;
}

/* Dashboard-style Horizontal Dropdown Panel */
.reports-grid .history-dropdown {
    display: none !important;
    width: 100% !important;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.98) 0%, rgba(14, 21, 38, 0.98) 100%) !important;
    border-top: 2px solid rgba(56, 189, 248, 0.5) !important;
    padding: 12px 16px !important;
    box-sizing: border-box !important;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.reports-grid .history-dropdown.show {
    display: flex !important;
}

.reports-grid .history-dropdown button {
    flex: 1 !important;
    padding: 10px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: rgba(20, 30, 50, 0.8) !important;
    color: #cbd5e1 !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.reports-grid .history-dropdown button:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    transform: translateY(-2px);
}

.reports-grid .history-dropdown button.delete-option {
    color: #fca5a5 !important;
}

.reports-grid .history-dropdown button.delete-option:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fef2f2 !important;
}

/* ==========================================
   Dashboard-Matching Horizontal Action Panel
   ========================================== */

.reports-grid .history-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    position: relative !important;
    height: auto !important;
    overflow: visible !important;
}

.reports-grid .history-dropdown {
    display: none !important;
    position: static !important;
    width: 100% !important;
    margin-top: 14px !important;
    background: linear-gradient(180deg, rgba(10, 15, 28, 0.98) 0%, rgba(14, 21, 38, 0.98) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.2) !important;
    border-top: 2px solid rgba(56, 189, 248, 0.5) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    box-sizing: border-box !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6) !important;
    
    display: none !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

.reports-grid .history-dropdown.show {
    display: flex !important;
}

.reports-grid .history-dropdown button {
    flex: 1 !important;
    padding: 10px 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    background: rgba(20, 30, 50, 0.8) !important;
    color: #cbd5e1 !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    white-space: nowrap !important;
    transition: all 0.2s ease !important;
}

.reports-grid .history-dropdown button:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #38bdf8 !important;
    transform: translateY(-2px);
}

.reports-grid .history-dropdown button.delete-option {
    color: #fca5a5 !important;
}

.reports-grid .history-dropdown button.delete-option:hover {
    background: rgba(239, 68, 68, 0.18) !important;
    border-color: rgba(239, 68, 68, 0.45) !important;
    color: #fef2f2 !important;
}

/* ==========================================
   ViralAI - Isolated Reports Header Alignment
   ========================================== */
.reports-page .reports-columns {
    display: grid !important;
    grid-template-columns: 1.65fr 1.05fr .92fr .95fr .8fr 1.2fr !important;
    align-items: center !important;
    padding: 0 17px !important;
    height: 38px !important;
    box-sizing: border-box !important;
}

.reports-page .reports-columns div:nth-child(1),
.reports-page .reports-columns div:nth-child(2) {
    text-align: left !important;
}

.reports-page .reports-columns div:nth-child(3),
.reports-page .reports-columns div:nth-child(4) {
    display: flex !important;
    justify-content: center !important;
}

.reports-page .reports-columns div:nth-child(5) {
    text-align: center !important;
}

.reports-page .reports-columns div:nth-child(6) {
    display: flex !important;
    justify-content: flex-end !important;
}

/* ==========================================
   Fix Reports Grid Layout
   ================================          */
.reports-layout {
    display: grid !important;
    grid-template-columns: minmax(700px, 3fr) minmax(310px, 1.18fr) !important;
    gap: 16px !important;
    align-items: start !important;
}

.reports-history {
    grid-column: 1 !important;
    grid-row: 1 / span 3 !important;
}

.reports-insights {
    grid-column: 2 !important;
    grid-row: 1 / span 3 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

#aiAnalyticsSummary {
    grid-column: 1 / -1 !important;
    grid-row: 1 !important;
    margin-bottom: 16px !important;
}

/* ==========================================
   ViralAI Phase 2: Interactive Video Enhancements
   ========================================== */

/* Subtle Hover Effect & Action Reveal */
.video-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.video-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    border-color: rgba(34, 211, 238, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(34, 211, 238, 0.15) !important;
}

/* Three-dot Card Dropdown Menu */
.video-card-menu-panel {
    display: none;
    position: absolute;
    right: 15px;
    bottom: 50px;
    width: 180px;
    background: #0d1322;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    z-index: 999;
    padding: 6px;
    flex-direction: column;
    gap: 4px;
}

.video-card-menu-panel.show {
    display: flex !important;
}

.video-card-menu-panel button {
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 12px;
    text-align: left;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.video-card-menu-panel button:hover {
    background: rgba(34, 211, 238, 0.15);
    color: #22d3ee;
}

.video-card-menu-panel button.danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Video Preview Modal */
.video-preview-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 17, 0.85);
    backdrop-filter: blur(6px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-preview-modal-overlay.show {
    display: flex !important;
}

.video-preview-modal-box {
    background: #0d1322;
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 20px;
    width: 100%;
    max-width: 650px;
    padding: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* =========================================================
   VIRALAI REFERENCE SETTINGS LAYOUT (MATCHING REFERENCE)
   ========================================================= */
.settings-main {
    margin-left: 270px;
    width: calc(100% - 270px);
    padding: 35px;
}

.settings-grid-ref {
    display: grid;
    grid-template-columns: 1.1fr 1.15fr 0.95fr;
    gap: 20px;
    margin-bottom: 20px;
    align-items: start;
}

.settings-card {
    background: #101827;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 24px;
}

.settings-card h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.settings-card > p {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 20px;
}

/* Profile Card Custom Grid */
.profile-card .profile-content {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 20px;
    align-items: start;
}

.profile-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.profile-avatar-col img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(34, 211, 238, 0.4);
}

.profile-avatar-col button {
    padding: 5px 10px;
    background: #1a263d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
}

.profile-form-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-form-col label {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-form-col input {
    background: #0b1322;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    outline: none;
}

.profile-form-col button {
    padding: 6px 12px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    width: fit-content;
}

/* AI Preferences */
.preferences b, .appearance-card b {
    font-size: 12px;
    color: #cbd5e1;
    display: block;
    margin-bottom: 8px;
}

.analysis-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.analysis-modes button {
    padding: 10px 8px;
    background: #07111d;
    border: 1px solid #2b3b50;
    border-radius: 10px;
    color: #cbd5e1;
    text-align: left;
    cursor: pointer;
    font-size: 12px;
}

.analysis-modes button.selected {
    background: #211132;
    border-color: #a13ff4;
    color: #fff;
}

.analysis-modes strong {
    font-size: 11px;
    display: block;
    margin-top: 4px;
    color: #fff;
}

.analysis-modes small {
    font-size: 9px;
    color: #94a3b8;
    display: block;
    line-height: 1.3;
}

.platforms {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.platforms button {
    flex: 1;
    padding: 8px 4px;
    background: #07111d;
    border: 1px solid #26364b;
    color: #fff;
    border-radius: 6px;
    font-size: 10px;
    cursor: pointer;
}

.preferences select {
    width: 100%;
    background: #0b1322;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    outline: none;
}

/* Notifications & Privacy Switches */
.switches label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #cbd5e1;
    cursor: pointer;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.switches label:last-child {
    border-bottom: none;
}

.switches span b {
    display: block;
    color: #fff;
    font-size: 12px;
}

.switches span small {
    display: block;
    color: #94a3b8;
    font-size: 10px;
}

.switches input[type="checkbox"] {
    appearance: none;
    width: 32px;
    height: 18px;
    border-radius: 18px;
    background: #334155;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.switches input[type="checkbox"]:checked {
    background: #8c35e5;
}

.switches input[type="checkbox"]::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    transition: left 0.2s;
}

.switches input[type="checkbox"]:checked::before {
    left: 16px;
}

/* Appearance Theme & Colors */
.theme-options {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.theme-options button {
    flex: 1;
    padding: 12px;
    background: #07111d;
    border: 1px solid #2b3b50;
    border-radius: 8px;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.theme-options button.selected {
    background: #1b102f;
    border-color: #9f3df3;
}

.colors {
    display: flex;
    gap: 12px;
}

.colors i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.colors i.selected {
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Storage Squares */
.storage-squares {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.storage-squares span {
    flex: 1;
    background: #0b1322;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: #94a3b8;
}

.storage-squares strong {
    display: block;
    font-size: 18px;
    color: #22d3ee;
    margin-top: 4px;
}

.bar {
    height: 8px;
    background: #18253a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 14px;
}

.bar i {
    display: block;
    width: 24%;
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #22d3ee);
    border-radius: inherit;
}

/* About Footer Bar */
.about-footer-ref {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px !important;
    margin-top: 20px;
}

/* Content-fit correction: all first-row settings cards share a full, non-clipping height. */
@media (min-width: 1201px) {
  .settings-page .settings-grid { grid-template-rows:500px 210px!important; row-gap:26px!important; }
  .settings-page .profile-card,
  .settings-page .preferences,
  .settings-page .settings-right .switches:first-child { height:500px!important; min-height:500px!important; }
  .settings-page .profile-card,
  .settings-page .preferences,
  .settings-page .settings-right .switches:first-child { overflow:hidden!important; }

  .settings-page .profile-content { gap:26px!important; }
  .settings-page .profile-content form { gap:14px!important; }
  .settings-page .profile-content form > div { gap:6px!important; }
  .settings-page .profile-content form input,
  .settings-page .profile-content form button { height:32px!important; }
  .settings-page .profile-content form button { width:72px!important; flex-basis:72px!important; }
  .settings-page .profile-content > div { gap:14px!important; }

  .settings-page .preferences > div { padding-bottom:24px; }
  .settings-page .analysis-modes { gap:14px!important; margin-bottom:18px!important; }
  .settings-page .platforms { gap:12px!important; margin-bottom:18px!important; }
  .settings-page .preferences select { height:34px!important; margin-top:5px!important; }

  .settings-page .settings-right .switches:first-child > div > div { gap:11px!important; }
  .settings-page .settings-right .switches:first-child label { min-height:46px!important; padding:8px 30px 8px 0!important; }
  .settings-page .settings-right .switches:first-child input { top:14px!important; }

  .settings-page .appearance-card,
  .settings-page .storage-settings,
  .settings-page .settings-right .switches:nth-child(2) { height:210px!important; min-height:210px!important; }
  .settings-page .storage-settings button { height:34px!important; }
  .settings-page .appearance-card .theme-options { margin-bottom:20px!important; }
  .settings-page .settings-right .switches:nth-child(2) > div:first-child > div { gap:8px!important; }
  .settings-page .settings-right .switches:nth-child(2) select { align-self:center; }
}

/* At narrower widths, cards return to natural height and stack instead of cropping. */
@media (max-width: 1200px) {
  .settings-page .settings-grid { grid-template-rows:none!important; }
  .settings-page .settings-card,
  .settings-page .profile-card,
  .settings-page .preferences,
  .settings-page .switches,
  .settings-page .appearance-card,
  .settings-page .storage-settings { height:auto!important; min-height:0!important; overflow:visible!important; }
}

/* Screenshot-matched Settings desktop proportions (1280px reference). */
@media (min-width: 1201px) {
  .settings-page .sidebar { width:178px!important; padding:17px 11px 14px!important; background:linear-gradient(180deg,#02060c,#050b14)!important; }
  .settings-page .sidebar-top { height:101px!important; margin:0 0 14px!important; gap:2px!important; }.settings-page .sidebar-top .sidebar-logo { width:142px!important; height:76px!important; object-position:50% 42%!important; }
  .settings-page .sidebar-menu { gap:7px!important; }.settings-page .sidebar-menu a { height:40px!important; padding:0 10px!important; border-radius:7px!important; font-size:12px!important; gap:10px!important; }.settings-page .sidebar-menu .active { background:linear-gradient(100deg,#641ae1,#4615bc)!important; border:0!important; }
  .settings-page .sidebar-bottom { gap:12px!important; padding-bottom:0!important; }.settings-page .reports-upgrade { padding:13px 12px!important; border-radius:8px!important; }.settings-page .reports-upgrade b { font-size:12px!important; }.settings-page .reports-upgrade p { margin:9px 0!important; font-size:10px!important; }.settings-page .reports-upgrade button { height:30px!important; font-size:11px!important; }.settings-page .reports-user { padding:10px!important; border-radius:8px!important; }.settings-page .reports-storage,.settings-page .reports-version { display:none!important; }
  .settings-page .settings-main { margin-left:178px!important; width:calc(100% - 178px)!important; padding:16px 26px 12px 18px!important; min-height:0!important; }
  .settings-page .settings-top { min-height:47px!important; height:47px!important; margin-bottom:14px!important; }.settings-page .settings-top h1 { font-size:25px!important; margin:0!important; }.settings-page .settings-top p { margin-top:5px!important; font-size:11px!important; }.settings-page .top-icons { gap:8px!important; }.settings-page .top-icon { width:39px!important; height:39px!important; border-radius:13px!important; font-size:15px!important; }.settings-page .profile-menu { width:150px!important; height:45px!important; padding:6px 9px!important; border-radius:9px!important; }.settings-page .profile-menu img { width:31px!important; height:31px!important; }.settings-page .profile-text strong { font-size:11px!important; }.settings-page .profile-text span { font-size:10px!important; }
  .settings-page .settings-tabs { min-height:35px!important; height:35px!important; margin:0 0 10px!important; padding:1px 4px!important; border-radius:7px!important; }.settings-page .settings-tabs button { min-height:31px!important; padding:0 10px!important; font-size:10px!important; }
  .settings-page .settings-grid { grid-template-columns:1.04fr 1.14fr .98fr!important; grid-template-rows:274px 185px!important; gap:10px 11px!important; }.settings-page .settings-left,.settings-page .settings-center,.settings-page .settings-right { display:contents!important; }.settings-page .profile-card { grid-area:1 / 1!important; }.settings-page .preferences { grid-area:1 / 2!important; }.settings-page .settings-right .switches:first-child { grid-area:1 / 3!important; }.settings-page .appearance-card { grid-area:2 / 1!important; }.settings-page .storage-settings { grid-area:2 / 2!important; }.settings-page .settings-right .switches:nth-child(2) { grid-area:2 / 3!important; }.settings-page .settings-right .about { display:none!important; }
  /* The source cards carry large inline min-heights; reset them so grid rows cannot overlap. */
  .settings-page .settings-card { min-height:0!important; height:auto!important; overflow:hidden!important; }
  .settings-page .settings-right .switches:nth-child(2) > div:first-child > p { margin-bottom:5px!important; }
  .settings-page .settings-right .switches:nth-child(2) > div:first-child > div { gap:4px!important; }
  .settings-page .settings-right .switches:nth-child(2) label { min-height:22px!important; padding:3px 0!important; }
  .settings-page .settings-right .switches:nth-child(2) > div:last-child { margin-top:4px!important; gap:7px!important; }
  .settings-page .settings-right .switches:nth-child(2) > div:last-child button { height:25px!important; }
  .settings-page .settings-card { padding:16px!important; border-radius:8px!important; box-shadow:0 7px 18px rgba(0,0,0,.16)!important; }.settings-page .settings-card h2 { font-size:14px!important; margin-bottom:5px!important; }.settings-page .settings-card>p { margin-bottom:11px!important; font-size:10px!important; }
  .settings-page .profile-content { grid-template-columns:90px minmax(0,1fr)!important; gap:14px!important; }.settings-page .profile-content form { gap:6px!important; }.settings-page .profile-content input,.settings-page .preferences select,.settings-page .switches select { height:27px!important; font-size:10px!important; }.settings-page .profile-content form>button,.settings-page .storage-settings button { height:26px!important; padding:0 8px!important; font-size:10px!important; }.settings-page .profile-content img { width:61px!important; height:61px!important; }.settings-page .profile-content>div { gap:7px!important; }.settings-page .profile-content label { margin-bottom:4px!important; }
  .settings-page .appearance-card .theme-options { gap:8px!important; margin-bottom:10px!important; }.settings-page .appearance-card .theme-options button { height:37px!important; padding:0!important; font-size:10px!important; }.settings-page .appearance-card>b,.settings-page .preferences>b { margin:10px 0 6px!important; font-size:10px!important; }.settings-page .colors { gap:16px!important; }.settings-page .colors i { width:23px!important; height:23px!important; }
  .settings-page .analysis-modes { gap:8px!important; margin-bottom:10px!important; }.settings-page .analysis-modes button { min-height:75px!important; padding:8px!important; font-size:14px!important; }.settings-page .analysis-modes strong { margin-top:4px!important; font-size:10px!important; }.settings-page .analysis-modes small { margin-top:4px!important; font-size:8px!important; }.settings-page .platforms { gap:6px!important; margin-bottom:10px!important; }.settings-page .platforms button { height:26px!important; padding:0 3px!important; font-size:8px!important; }
  .settings-page .storage-squares { gap:6px!important; margin-bottom:10px!important; }.settings-page .storage-squares span { padding:8px!important; font-size:8px!important; }.settings-page .storage-squares strong { margin:3px 0!important; font-size:18px!important; }.settings-page .storage-squares small { font-size:8px!important; }.settings-page .bar { height:7px!important; margin:10px 0!important; }.settings-page .storage-settings>div:last-child { gap:8px!important; }
  .settings-page .switches { padding:16px!important; }.settings-page .switches label { padding:6px 30px 6px 0!important; font-size:10px!important; }.settings-page .switches label small { margin-top:3px!important; font-size:8px!important; }.settings-page .switches input { top:8px!important; width:27px!important; height:16px!important; }.settings-page .switches input:checked::before { left:12px!important; }.settings-page .switches input::before { width:12px!important; height:12px!important; }.settings-page .switches select,.settings-page .switches button { top:5px!important; height:25px!important; font-size:9px!important; }
  .settings-page .subscriptions { position:static!important; width:auto!important; height:auto!important; min-height:0!important; margin:12px 0 10px!important; padding:14px 16px!important; border-radius:8px!important; }.settings-page .subscriptions h2 { margin-bottom:9px!important; font-size:14px!important; }.settings-page .subscriptions>div { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; height:auto!important; gap:13px!important; }.settings-page .subscriptions article { height:auto!important; min-height:120px!important; padding:12px!important; border-radius:7px!important; }.settings-page .subscriptions article h3 { font-size:12px!important; }.settings-page .subscriptions article p { font-size:9px!important; line-height:1.45!important; }.settings-page .subscriptions article>div:last-child { margin-top:6px!important; }.settings-page .subscriptions article button { padding:6px 12px!important; font-size:10px!important; }.settings-page .subscriptions article strong { font-size:19px!important; }
  .settings-page main > .about { min-height:68px!important; margin-top:0!important; padding:10px 16px!important; border-radius:8px!important; }.settings-page main > .about h3 { font-size:12px!important; }.settings-page main > .about p,.settings-page main > .about span { font-size:9px!important; }.settings-page main > .about button { width:124px!important; height:29px!important; padding:0!important; font-size:10px!important; }

  /* Final alignment pass: let each card breathe without sacrificing its content. */
  .settings-page .settings-grid { grid-template-columns:.96fr 1.20fr .96fr!important; grid-template-rows:274px 210px!important; gap:24px!important; }
  .settings-page .profile-content { grid-template-columns:96px minmax(0,1fr)!important; gap:22px!important; }
  .settings-page .profile-content form > div > div { display:flex!important; gap:8px!important; }
  .settings-page .profile-content form input { min-width:0!important; width:100%!important; }
  .settings-page .profile-content form button { width:64px!important; flex:0 0 64px!important; }

  .settings-page .analysis-modes { gap:12px!important; margin-bottom:13px!important; }
  .settings-page .platforms { gap:10px!important; margin-bottom:13px!important; }
  .settings-page .preferences select { margin-top:3px!important; }

  /* The source uses one wrapper around Storage; it must not inherit the old flex layout. */
  .settings-page .storage-settings > div:last-child { display:block!important; margin-top:0!important; }
  .settings-page .storage-settings > div:last-child > p { display:block!important; margin:0 0 12px!important; }
  .settings-page .storage-squares { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:10px!important; margin:0 0 12px!important; }
  .settings-page .storage-squares span { min-width:0; padding:9px!important; font-size:9px!important; white-space:nowrap; }
  .settings-page .storage-squares strong { font-size:18px!important; white-space:nowrap; }
  .settings-page .storage-squares small { white-space:nowrap; }
  .settings-page .storage-settings .bar { margin:9px 0 12px!important; }
  .settings-page .storage-settings > div:last-child > div:last-child { display:flex!important; gap:10px!important; }
  .settings-page .storage-settings button { min-width:0; height:30px!important; flex:1!important; white-space:nowrap; }

  .settings-page .switches label { padding:8px 30px 8px 0!important; }
  .settings-page .switches input { right:0!important; }
  .settings-page .settings-right .switches:nth-child(2) label { padding:5px 0!important; }
  .settings-page .settings-right .switches:nth-child(2) select { width:112px!important; }

  .settings-page .appearance-card .theme-options { margin-bottom:16px!important; }
  .settings-page .appearance-card .colors { gap:20px!important; }

  .settings-page .subscriptions { margin:24px 0 14px!important; }
  .settings-page .subscriptions > div { align-items:stretch!important; }
  .settings-page .subscriptions article { display:flex!important; flex-direction:column!important; min-height:132px!important; }
  .settings-page .subscriptions article > div:last-child { margin-top:auto!important; min-height:28px; }
  .settings-page main > .about { padding:13px 24px!important; }
}

/* Keep this last: it overrides the compact preview dimensions above. */
@media (min-width: 1201px) {
  .settings-page .settings-grid { grid-template-rows:500px 210px!important; row-gap:26px!important; }
  .settings-page .profile-card,
  .settings-page .preferences,
  .settings-page .settings-right .switches:first-child { height:500px!important; min-height:500px!important; }
  .settings-page .profile-content { gap:26px!important; }
  .settings-page .profile-content form { gap:14px!important; }
  .settings-page .profile-content form input,
  .settings-page .profile-content form button { height:32px!important; }
  .settings-page .profile-content form button { width:72px!important; flex-basis:72px!important; }
  .settings-page .preferences > div { padding-bottom:24px; }
  .settings-page .analysis-modes { gap:14px!important; margin-bottom:18px!important; }
  .settings-page .platforms { gap:12px!important; margin-bottom:18px!important; }
  .settings-page .preferences select { height:34px!important; margin-top:5px!important; }
  .settings-page .settings-right .switches:first-child > div > div { gap:11px!important; }
  .settings-page .settings-right .switches:first-child label { min-height:46px!important; padding:8px 30px 8px 0!important; }
  .settings-page .settings-right .switches:first-child input { top:14px!important; }
  .settings-page .appearance-card,
  .settings-page .storage-settings,
  .settings-page .settings-right .switches:nth-child(2) { height:210px!important; min-height:210px!important; }
}

/* Final reference balance: complete content and no header-floating Privacy actions. */
@media (min-width: 1201px) {
  .settings-page .settings-grid { grid-template-rows:330px 210px!important; row-gap:24px!important; }
  .settings-page .profile-card,
  .settings-page .preferences,
  .settings-page .settings-right .switches:first-child { height:330px!important; min-height:330px!important; }
  .settings-page .profile-card,
  .settings-page .preferences,
  .settings-page .settings-right .switches:first-child { overflow:hidden!important; }
  .settings-page .profile-content { gap:22px!important; }
  .settings-page .profile-content form { gap:7px!important; }
  .settings-page .profile-content form input,
  .settings-page .profile-content form button { height:27px!important; }
  .settings-page .analysis-modes { gap:12px!important; margin-bottom:10px!important; }
  .settings-page .platforms { gap:10px!important; margin-bottom:10px!important; }
  .settings-page .preferences > div { padding-bottom:0!important; }
  .settings-page .preferences select { height:28px!important; margin-top:2px!important; }
  .settings-page .settings-right .switches:first-child > div > div { gap:5px!important; }
  .settings-page .settings-right .switches:first-child label { min-height:33px!important; padding:5px 30px 5px 0!important; }
  .settings-page .settings-right .switches:first-child input { top:9px!important; }
  .settings-page .settings-right .switches:nth-child(2) > div:last-child { display:flex!important; position:static!important; gap:8px!important; margin-top:8px!important; }
  .settings-page .settings-right .switches:nth-child(2) > div:last-child button { position:static!important; width:auto!important; height:28px!important; flex:1!important; }
}

/* Final polish — deliberately modest so complete first-row content remains visible. */
@media (min-width: 1201px) {
  .settings-page .settings-grid { grid-template-rows:320px 210px!important; gap:24px!important; }
  .settings-page .profile-card,
  .settings-page .preferences,
  .settings-page .settings-right .switches:first-child { height:320px!important; min-height:320px!important; }
  .settings-page .settings-card { border-color:rgba(148,163,184,.14)!important; border-radius:12px!important; box-shadow:0 10px 24px rgba(0,0,0,.14)!important; }
  .settings-page .settings-card h2 { font-size:15px!important; font-weight:700!important; }
  .settings-page .settings-card > p { color:#9aa8bc!important; }

  .settings-page .profile-content { gap:28px!important; }
  .settings-page .profile-content form { gap:8px!important; }
  .settings-page .profile-content form > div { gap:5px!important; }
  .settings-page .profile-content form button { width:72px!important; flex-basis:72px!important; }

  .settings-page .preferences { display:flex!important; flex-direction:column!important; }
  .settings-page .preferences > div { display:flex!important; flex:1!important; flex-direction:column!important; }
  .settings-page .preferences .analysis-modes { margin-bottom:14px!important; }
  .settings-page .preferences .platforms { margin-bottom:14px!important; }
  .settings-page .preferences select { margin-top:auto!important; margin-bottom:18px!important; }

  .settings-page .settings-right .switches:first-child > div > div { gap:8px!important; }
  .settings-page .settings-right .switches:first-child label { min-height:36px!important; }

  .settings-page .appearance-card .theme-options { margin-bottom:22px!important; }
  .settings-page .appearance-card .colors { gap:22px!important; padding-bottom:4px; }
  .settings-page .storage-squares { margin-bottom:14px!important; }
  .settings-page .storage-settings .bar { margin:14px 0!important; }
  .settings-page .storage-settings button { height:36px!important; }
  .settings-page .settings-right .switches:nth-child(2) > div:last-child { margin-top:12px!important; }
  .settings-page .settings-right .switches:nth-child(2) > div:last-child button { height:30px!important; }
  .settings-page .subscriptions { padding-top:20px!important; }
  .settings-page .about { padding-left:28px!important; padding-right:28px!important; }
}
/* =========================================================
   MY VIDEOS PAGE POLISH & SCORE RING FIX (ISOLATED)
   ========================================================= */
body.videos-page .videos-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    padding: 20px !important;
}

body.videos-page .video-card {
    background: #091524 !important;
    border: 1px solid #26364d !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

body.videos-page .video-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(34, 211, 238, 0.4) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6) !important;
}

body.videos-page .video-image {
    height: 140px !important;
    position: relative !important;
    background: #0f172a !important;
    overflow: hidden !important;
}

body.videos-page .video-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

body.videos-page .video-card-body {
    padding: 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

body.videos-page .video-card h3 {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.videos-page .video-date {
    font-size: 11px !important;
    color: #94a3b8 !important;
    margin: 0 0 6px 0 !important;
}

body.videos-page .video-score {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #22d3ee !important;
}

body.videos-page .video-score small {
    font-size: 12px !important;
    color: #94a3b8 !important;
    font-weight: 400 !important;
}

/* Score Ring Layout Stabilization */
body.videos-page .score-ring-container {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    display: grid !important;
    place-items: center !important;
    flex-shrink: 0 !important;
}

body.videos-page .score-ring-container svg {
    width: 44px !important;
    height: 44px !important;
    transform: rotate(-90deg);
}

body.videos-page .score-ring-bg {
    fill: none !important;
    stroke: rgba(255, 255, 255, 0.08) !important;
    stroke-width: 4px !important;
}

body.videos-page .score-ring-fill {
    fill: none !important;
    stroke-width: 4px !important;
    stroke-linecap: round !important;
    transition: stroke-dashoffset 0.6s ease !important;
}

body.videos-page .video-actions {
    display: flex !important;
    gap: 8px !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

body.videos-page .video-actions button {
    flex: 1 !important;
    height: 32px !important;
    border: none !important;
    border-radius: 8px !important;
    background: #111827 !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    transition: background 0.2s, color 0.2s !important;
}

body.videos-page .video-actions button:hover {
    background: rgba(34, 211, 238, 0.15) !important;
    color: #22d3ee !important;
}


/* =========================================================
   MY VIDEOS CARD HOVER REVEAL EFFECT (ISOLATED)
   ========================================================= */

/* 1. Hide the action buttons by default */
body.videos-page .video-card .video-actions {
    display: flex !important;
    gap: 8px !important;
    margin-top: 12px !important;
    padding-top: 10px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    
    opacity: 0 !important;
    transform: translateY(8px) !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease, transform 0.25s ease !important;
}

/* 2. Reveal the action buttons smoothly when hovering over the card */
body.videos-page .video-card:hover .video-actions {
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}
/* =========================================================
   CONTENTS-ONLY FIT FIX (BOX CONTAINER UNTOUCHED)
   ========================================================= */
   .settings-page .profile-card form {
    gap: 4px !important;
}

.settings-page .profile-card form label {
    font-size: 10px !important;
    margin-bottom: 1px !important;
}

.settings-page .profile-card form input {
    height: 26px !important;
    padding: 2px 8px !important;
    font-size: 11px !important;
}

.settings-page .profile-card form button,
.settings-page .profile-card .change-photo-btn {
    height: 26px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
}

/* =========================================================
   ViralAI Settings — Platform Selected State Styling
   ========================================================= */
.platforms button.selected {
    border-color: #9f3df3 !important;
    background: #1b102f !important;
    color: #fff !important;
    box-shadow: inset 0 0 18px rgba(125, 43, 225, 0.12) !important;
}


/* =========================================================
   ViralAI — Storage Manager Thumbnail Grid Redesign (Fixed)
   ========================================================= */

#storageManagerFileList {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    padding: 4px !important;
    box-sizing: border-box !important;
}

@media (max-width: 900px) {
    #storageManagerFileList {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}
@media (max-width: 550px) {
    #storageManagerFileList {
        grid-template-columns: 1fr !important;
    }
}

.storage-media-card {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    background: #111827 !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.storage-media-card:hover {
    transform: translateY(-4px) scale(1.01) !important;
    border-color: rgba(34, 211, 238, 0.45) !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 15px rgba(34, 211, 238, 0.15) !important;
}

.storage-media-thumb {
    position: relative !important;
    width: 100% !important;
    height: 110px !important;
    background: #090d16 !important;
    overflow: hidden !important;
    display: block !important;
}

.storage-media-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.35s ease !important;
}

.storage-media-card:hover .storage-media-thumb img {
    transform: scale(1.08) !important;
}

.storage-media-checkbox-wrap {
    position: absolute !important;
    top: 8px !important;
    left: 8px !important;
    z-index: 5 !important;
    background: rgba(13, 19, 34, 0.75) !important;
    padding: 3px 5px !important;
    border-radius: 6px !important;
    backdrop-filter: blur(4px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.storage-media-checkbox-wrap input[type="checkbox"] {
    width: 15px !important;
    height: 15px !important;
    accent-color: #22d3ee !important;
    cursor: pointer !important;
    display: block !important;
}

.storage-media-preview-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(5, 8, 17, 0.45) !important;
    display: grid !important;
    place-items: center !important;
    opacity: 0 !important;
    transition: opacity 0.2s ease !important;
    z-index: 3 !important;
}

.storage-media-card:hover .storage-media-preview-overlay {
    opacity: 1 !important;
}

.storage-media-preview-overlay span {
    background: rgba(34, 211, 238, 0.2) !important;
    border: 1px solid rgba(34, 211, 238, 0.5) !important;
    color: #22d3ee !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    backdrop-filter: blur(4px) !important;
}

.storage-media-body {
    padding: 10px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.storage-media-title-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

.storage-media-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 !important;
    flex: 1 !important;
}

.storage-media-platform {
    font-size: 12px !important;
    flex-shrink: 0 !important;
}

.storage-media-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    font-size: 10px !important;
    color: #94a3b8 !important;
}

/* =========================================================
   Privacy & Data Box Shrink-to-Fit Fix (Nothing Removed)
   ========================================================= */

/* Reduce line height and compact toggle labels inside the Privacy card */
.settings-card:has(#toggleUsageAnalytics) label,
.settings-card:has(#toggleUsageAnalytics) label span,
.settings-card:has(#toggleUsageAnalytics) label b {
    padding: 0px 0 !important;
    font-size: 9.5px !important;
    line-height: 1.0 !important;
    font-weight: 500 !important;
}

/* Shrink the toggle switches slightly */
.settings-card:has(#toggleUsageAnalytics) input[type="checkbox"] {
    transform: scale(0.65);
}

/* Compact the paragraph description */
.settings-card:has(#toggleUsageAnalytics) p {
    margin-bottom: 1px !important;
    font-size: 9.5px !important;
    line-height: 1.1 !important;
}

/* Position and style the Auto-delete row clearly without overlap */
.settings-card:has(#toggleUsageAnalytics) div:has(select) {
    margin-top: 0px !important;
    margin-bottom: 1px !important;
    clear: both !important;
    font-size: 9.5px !important;
}

.settings-card:has(#toggleUsageAnalytics) select {
    font-size: 9.5px !important;
    height: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Compact the action buttons at the bottom so they sit fully inside */
.settings-card:has(#toggleUsageAnalytics) button.danger {
    height: 22px !important;
    font-size: 8.5px !important;
    padding: 0 3px !important;
    margin-top: 2px !important;
}

/* =========================================================
   ViralAI — Clean Preview Card & Orbit Fix
   ========================================================= */

/* Ensure the preview card has enough height so elements don't get cut off */
.preview-card {
    height: 520px !important;
    overflow: visible !important;
}

/* Give the robot animation canvas plenty of space and breathing room */
.preview-brain {
    height: 290px !important;
    margin-top: 10px !important;
    position: relative !important;
}

/* Scale down the orbit radius slightly so the pills stay well inside the box borders */
.preview-brain .orbit {
    width: 200px !important;
    height: 200px !important;
    margin-left: -100px !important;
    margin-top: -100px !important;
}

.preview-brain .orbit .preview-pill {
    transform: translate(-50%, -50%) translateY(-95px) !important;
    font-size: 10px !important;
    padding: 5px 10px !important;
}

/* =========================================================
   ViralAI — Phase 3 Universal Accent CSS (Text Safe)
   ========================================================= */

/* 1. Accent Color Definitions */
body.accent-purple { --viral-color: #8b36ff; }
body.accent-blue { --viral-color: #2563eb; }
body.accent-green { --viral-color: #22c55e; }
body.accent-yellow { --viral-color: #f59e0b; }
body.accent-orange { --viral-color: #f97316; }
body.accent-pink { --viral-color: #ec4899; }
body.accent-red { --viral-color: #ef4444; }


/* 2. UNIVERSAL BUTTONS: Every single button across all 4 pages changes background while text stays safely white */
body[class*="accent-"] button,
body[class*="accent-"] .primary-btn,
body[class*="accent-"] .report-btn,
body[class*="accent-"] .upgrade-btn,
body[class*="accent-"] .upgrade-btn-select,
body[class*="accent-"] .reports-upgrade button,
body[class*="accent-"] .videos-upgrade button,
body[class*="accent-"] input[type="button"],
body[class*="accent-"] input[type="submit"] {
    background: var(--viral-color) !important;
    border-color: var(--viral-color) !important;
    color: #ffffff !important; /* Forces all button letters to remain crisp white and readable */
}


/* 3. ACTIVE TABS & NAVIGATION */
body[class*="accent-"] .sidebar-menu a.active,
body[class*="accent-"] .videos-sidebar nav a.active,
body[class*="accent-"] .reports-nav a.active,
body[class*="accent-"] .settings-tabs button.active,
body[class*="accent-"] .video-tabs button.active,
body[class*="accent-"] .reports-pager button.selected {
    background: var(--viral-color) !important;
    border-color: var(--viral-color) !important;
    color: #ffffff !important;
}

/* 4. LINKS */
body[class*="accent-"] a {
    color: var(--viral-color) !important;
}

/* 5. PROGRESS BARS */
body[class*="accent-"] .storage-meter span,
body[class*="accent-"] #progressFill,
body[class*="accent-"] #aiProgressFill,
body[class*="accent-"] .storage-settings .bar i,
body[class*="accent-"] .videos-storage > div i,
body[class*="accent-"] .video-storage-card > div i,
body[class*="accent-"] #storageModalBarFill,
body[class*="accent-"] #storageManagerBarFill {
    background: var(--viral-color) !important;
}

/* 6. BORDERS & HOVERS */
body[class*="accent-"] .dashboard-card:hover,
body[class*="accent-"] .history-card:hover,
body[class*="accent-"] .video-card:hover,
body[class*="accent-"] .reports-grid .history-card:hover {
    border-color: var(--viral-color) !important;
}

/* 7. AI BADGES & PILLS */
body[class*="accent-"] .status,
body[class*="accent-"] .video-badge,
body[class*="accent-"] .coach-badge,
body[class*="accent-"] .preview-pill {
    color: var(--viral-color) !important;
    border-color: var(--viral-color) !important;
}

/* 8. FOCUS OUTLINES & SWITCHES */
body[class*="accent-"] button:focus-visible,
body[class*="accent-"] input:focus-visible,
body[class*="accent-"] select:focus-visible {
    outline: 2px solid var(--viral-color) !important;
}

body[class*="accent-"] .switches input[type="checkbox"]:checked {
    background: var(--viral-color) !important;
}

/* =========================================================
   ViralAI — Phase 3 Corrections (Fixing AI Cards & Sidebar Text)
   ========================================================= */

/* 1. Prevent AI Preference Cards from turning solid color — keep them transparent/normal background, style ONLY borders/outlines */
body[class*="accent-"] .analysis-modes button,
body[class*="accent-"] .analysis-modes div,
body[class*="accent-"] .analysis-mode-card {
    background: #182338 !important; /* Restore normal dark card background */
}

body[class*="accent-"] .analysis-modes button.selected,
body[class*="accent-"] .analysis-modes div.selected {
    border-color: var(--viral-color) !important;
    background: rgba(255, 255, 255, 0.02) !important; /* Subtle transparent gradient feel */
}

/* 2. Ensure Left Sidebar text/links remain normal uncolored text */
body[class*="accent-"] .sidebar nav a,
body[class*="accent-"] .sidebar-menu a,
body[class*="accent-"] .sidebar p,
body[class*="accent-"] .sidebar span {
    color: inherit !important; /* Keeps regular text color unless it's the active tab */
}

body[class*="accent-"] .sidebar-menu a.active {
    color: #ffffff !important; /* Only active tab text stays white */
}

/* =========================================================
   ViralAI — Maximum Compactness & Professional Default Style
   ========================================================= */

/* Deeply compress inner spacing of the appearance card */
.settings-section-appearance,
.appearance-card {
    padding: 16px !important;
    gap: 4px !important;
}

/* Shrink headers and text spaces further */
.appearance-card h2, 
.appearance-card h3 {
    font-size: 14px !important;
    margin-bottom: 0px !important;
}

.appearance-card p {
    font-size: 10px !important;
    margin-bottom: 6px !important;
}

.appearance-card label, 
.appearance-card .theme-label {
    font-size: 10px !important;
    margin-bottom: 2px !important;
}

/* Make Theme buttons tighter and smaller */
.appearance-card .theme-options button,
.appearance-card button[class*="theme"] {
    padding: 4px 8px !important;
    font-size: 11px !important;
    min-height: 28px !important;
    height: 28px !important;
}

/* Compact the color swatches row */
.appearance-card .colors {
    gap: 5px !important;
    margin-top: 2px !important;
    margin-bottom: 0 !important;
}

.appearance-card .colors i {
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
}

/* Professional, clean Default button (Zero childish glow) */
#resetDefaultAccentBtn {
    padding: 2px 6px !important;
    font-size: 9px !important;
    height: 22px !important;
    line-height: 1 !important;
    margin-left: 4px !important;
    border-radius: 4px !important;
    box-shadow: none !important; /* Strips out the glow completely */
}

/* =========================================================
   ViralAI — Premium Deep Accent Engine CSS
   ========================================================= */

/* Deep, rich, premium color definitions */
body.accent-purple { --viral-color: #581c87; }
body.accent-blue { --viral-color: #1e3a8a; }
body.accent-green { --viral-color: #14532d; }
body.accent-yellow { --viral-color: #78350f; }
body.accent-orange { --viral-color: #7c2d12; }
body.accent-pink { --viral-color: #831843; }
body.accent-red { --viral-color: #7f1d1d; }

/* Apply deep color to buttons across all pages */
body[class*="accent-"] button.primary-btn,
body[class*="accent-"] .primary-btn,
body[class*="accent-"] .report-btn,
body[class*="accent-"] .upgrade-btn {
    background: var(--viral-color) !important;
    border-color: var(--viral-color) !important;
}

/* Apply deep color to active menu links & tabs */
body[class*="accent-"] .sidebar-menu a.active,
body[class*="accent-"] .videos-sidebar nav a.active,
body[class*="accent-"] .reports-nav a.active,
body[class*="accent-"] .settings-tabs button.active {
    background: var(--viral-color) !important;
    border-color: var(--viral-color) !important;
}

/* Apply deep color to progress meters & bars */
body[class*="accent-"] .storage-meter span,
body[class*="accent-"] #progressFill,
body[class*="accent-"] .bar i {
    background: var(--viral-color) !important;
}

/* Style the color swatches visually in the box */
.colors i[data-color="purple"] { background: #581c87 !important; }
.colors i[data-color="blue"] { background: #1e3a8a !important; }
.colors i[data-color="green"] { background: #14532d !important; }
.colors i[data-color="yellow"] { background: #78350f !important; }
.colors i[data-color="orange"] { background: #7c2d12 !important; }
.colors i[data-color="pink"] { background: #831843 !important; }
.colors i[data-color="red"] { background: #7f1d1d !important; }

/* Professional Default Button Styles & Active State */
#resetDefaultAccentBtn {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin-left: 15px !important;
    transition: all 0.2s ease !important;
}

#resetDefaultAccentBtn.active,
#resetDefaultAccentBtn:hover {
    background: #2563eb !important;
    border-color: #60a5fa !important;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.5) !important;
}

/* 1. Force the body and viewport wrapper to hold a rigid minimum width and enable scrolling */
html, body {
    min-width: 1440px; /* Adjust this to your exact baseline design width (e.g., 1440px or 1280px) */
    overflow-x: auto;  /* Allows smooth horizontal scrolling when zoomed in */
    overflow-y: auto;
}

/* 2. Lock the root application shell dimensions */
.app-container, 
.dashboard-layout, 
.main-content-wrapper {
    min-width: 1440px;
    width: 100vw;
    box-sizing: border-box;
}

/* 3. Disable auto-wrapping grids so elements NEVER shift to a new line */
.metrics-grid, 
.stats-container {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
    width: max-content; /* Forces elements to stay in a single rigid row */
}

.dashboard-middle-grid, 
.content-grid-3-col {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1.5rem;
    width: max-content;
}

/* 4. Lock individual card widths so they never squish or break */
.card, 
.metric-card, 
.upload-card, 
.preview-card, 
.info-card {
    flex-shrink: 0 !important; /* Prevents cards from compressing */
}

/* 1. Ensure the video container grid uses fixed row tracks instead of stretching */
.videos-grid, 
.my-videos-grid, 
.video-card-container {
    display: grid;
    /* Defines a fixed row height so cards never stretch vertically when there are fewer items */
    grid-template-rows: repeat(auto-fill, 420px); /* Adjust '420px' to match your exact desired card height */
    grid-template-columns: repeat(4, 1fr); /* Keeps your 4 columns uniform */
    gap: 1.5rem;
    align-content: start; /* Forces rows to stay packed at the top instead of distributing empty space */
}

/* 2. Lock individual video card dimensions to prevent vertical expansion */
.video-card {
    height: 420px !important; /* Matches the row track height */
    max-height: 420px !important;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* 3. Ensure card image and content areas handle internal spacing safely */
.video-card-thumb {
    height: 180px; /* Lock your thumbnail image height */
    flex-shrink: 0;
}

.video-card-content {
    flex: 1;
    overflow: hidden; /* Prevents text overflow if content varies */
}

.coming-soon-modal {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 420px !important;
    max-width: 92% !important;
    background: #161B26 !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 20px !important;
    padding: 40px !important;
    color: white !important;
    box-shadow: 0 25px 80px rgba(0,0,0,.45) !important;
    box-sizing: border-box !important;
}

.coming-soon-modal button {
    display: block !important;
    width: 100% !important;
    margin-top: 28px !important;
}

/* =========================================================
   ViralAI — Lightweight Tooltip Engine for Top & View Icons
   ========================================================= */
[data-tooltip-text],
.top-icon[title],
.view-btn[data-tooltip-text] {
    position: relative;
}

[data-tooltip-text]:hover::after {
    content: attr(data-tooltip-text);
    position: absolute;
    bottom: -36px;
    left: 50%;
    transform: translateX(-50%);
    background: #050913;
    color: #eaf0ff;
    border: 1px solid rgba(34, 211, 238, 0.3);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    z-index: 99999;
    pointer-events: none;
}

/* =========================================================
   ViralAI — Active View Button Styling
   ========================================================= */
.view-buttons .view-btn {
    background: #182338;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
}

.view-buttons .view-btn:hover {
    background: rgba(34, 211, 238, 0.1);
    color: #fff;
    border-color: rgba(34, 211, 238, 0.3);
}

.view-buttons .view-btn.active {
    background: rgba(34, 211, 238, 0.15) !important;
    border-color: #22d3ee !important;
    color: #22d3ee !important;
    box-shadow: 0 0 12px rgba(34, 211, 238, 0.25);
}

/* =========================================================
   ViralAI — Absolute True Horizontal List View Override
   ========================================================= */
#videosList.viral-true-list-view {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    gap: 12px !important;
}

#videosList.viral-true-list-view > div,
#videosList.viral-true-list-view .video-card,
#videosList.viral-true-list-view article {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 20px !important;
    padding: 14px 20px !important;
}

#videosList.viral-true-list-view img,
#videosList.viral-true-list-view .video-thumbnail,
#videosList.viral-true-list-view .video-image {
    width: 130px !important;
    height: 75px !important;
    flex-shrink: 0 !important;
    object-fit: cover !important;
    border-radius: 8px !important;
}

.history-table-header {
    display: grid !important;
    grid-template-columns: 2.2fr 1.4fr 1fr 1fr 0.9fr 1fr !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 0 18px 12px 18px !important;
    box-sizing: border-box !important;
}


.reports-history .reports-columns.history-table-header {
    display: grid !important;
    grid-template-columns: 2fr 1.2fr 1fr 1fr 1fr 120px !important;
    align-items: center !important;
    padding: 0 16px 12px 16px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #8a9bbc !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

.reports-history .reports-columns.history-table-header div {
    text-align: left;
}

.reports-history .reports-columns.history-table-header div:nth-child(3),
.reports-history .reports-columns.history-table-header div:nth-child(4),
.reports-history .reports-columns.history-table-header div:nth-child(5) {
    text-align: center;
}

.reports-history .reports-columns.history-table-header div:nth-child(6) {
    text-align: right;
    padding-right: 90px;
}

/* ================= LOCKED NON-SHIFTING REPORTS TABLE ================= */

/* Lock the main container width so it doesn't reflow unpredictably */
.reports-history {
    width: 100% !important;
    max-width: 1100px !important; /* Adjust this to match your exact container width */
    margin: 0 auto !important;
}

/* Force both header and row grids to use exact pixel track sizes */
.reports-history .reports-columns,
.reports-history .history-table-header {
    display: grid !important;
    grid-template-columns: 320px 180px 110px 110px 100px 130px !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

/* Header Specific Styling */
.reports-history .history-table-header {
    padding: 0 16px 12px 16px !important;
    margin-bottom: 8px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #8a9bbc !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

/* Column Alignment Rules */
.reports-history .history-table-header div {
    text-align: left;
}

.reports-history .history-table-header div:nth-child(3),
.reports-history .history-table-header div:nth-child(4),
.reports-history .history-table-header div:nth-child(5) {
    text-align: center;
}

.reports-history .history-table-header div:nth-child(6) {
    text-align: right;
    padding-right: 25px; /* Safely pulls 'Action' in line with your buttons */
}

/* === ViralAI Final Grid Spacing & Overflow Fix === */

/* 1. Force grid container to collapse row gaps completely */
.videos-grid, 
.video-container, 
#videosContainer,
[class*="videos-grid"],
[class*="video-grid"] {
  display: grid !important;
  grid-template-rows: repeat(2, auto) !important;
  grid-auto-rows: max-content !important;
  row-gap: 8px !important;
  height: auto !important;
}

/* 2. Prevent card clipping by setting explicit overflow visible */
.video-card {
  height: auto !important;
  min-height: 300px !important;
  max-height: 315px !important;
  padding: 10px !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  overflow: visible !important;
}

/* 3. Keep thumbnail proportions clean */
.video-card img, 
.video-card .video-image, 
.video-card [class*="thumbnail"] {
  height: 130px !important;
  min-height: 130px !important;
  max-height: 130px !important;
  border-radius: 8px !important;
  object-fit: cover !important;
  width: 100% !important;
}

/* 4. Allow action container and elements to pop out fully without clipping */
.video-card .video-card-body,
.video-card [class*="body"], 
.video-card [class*="content"] {
  padding: 4px 0 !important;
  overflow: visible !important;
}

.video-card .video-actions,
.video-card [class*="actions"] {
  overflow: visible !important;
  margin-top: auto !important;
  position: relative !important;
  top: -14px !important;
}

