/* ============================================================
   SELF2.CLICK — style.css
   Dark YouTube-style theme with premium feel
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ── TOKENS ──────────────────────────────────────────────── */
:root {
    --bg:        #0f0f0f;
    --bg2:       #1a1a1a;
    --bg3:       #242424;
    --bg4:       #2e2e2e;
    --border:    #2a2a2a;
    --border2:   #3a3a3a;
    --text:      #f1f1f1;
    --text2:     #aaaaaa;
    --text3:     #666;
    --accent:    #ff0000;
    --accent2:   #ff4444;
    --blue:      #065fd4;
    --green:     #00c853;
    --sidebar-w: 230px;
    --header-h:  56px;
    --radius:    10px;
    --radius-lg: 16px;
    --shadow:    0 4px 20px rgba(0,0,0,.5);
    --font:      'DM Sans', sans-serif;
    --mono:      'Space Mono', monospace;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--font); background:var(--bg); color:var(--text); min-height:100vh; overflow-x:hidden; }
a { text-decoration:none; color:inherit; cursor:pointer; }
button { font-family:var(--font); cursor:pointer; border:none; outline:none; background:none; }
input, textarea { font-family:var(--font); }
img { display:block; }
svg { display:block; flex-shrink:0; }
pre, code { font-family:var(--mono); }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:var(--bg4); border-radius:3px; }
::-webkit-scrollbar-thumb:hover { background:var(--border2); }

/* ── UTILS ───────────────────────────────────────────────── */
.loader {
    width:40px; height:40px;
    border:3px solid var(--border);
    border-top-color:var(--accent);
    border-radius:50%;
    animation:spin .8s linear infinite;
}
.dot-spin {
    width:18px; height:18px;
    border:2px solid rgba(255,255,255,.3);
    border-top-color:#fff;
    border-radius:50%;
    animation:spin .8s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

.empty-msg { text-align:center; padding:60px; color:var(--text2); font-size:15px; }

/* ── LOGIN ───────────────────────────────────────────────── */
.login-page {
    min-height:100vh; display:flex;
    align-items:center; justify-content:center;
    background:radial-gradient(ellipse at 60% 40%, #1a0a2e 0%, #0d0d0d 60%);
    padding:20px; position:relative; overflow:hidden;
}
.login-bg { position:absolute; inset:0; pointer-events:none; overflow:hidden; }
.login-orb {
    position:absolute; border-radius:50%; filter:blur(80px); opacity:.3;
}
.orb1 { width:500px; height:500px; background:#6366f1; top:-100px; right:-100px; animation:drift1 8s ease-in-out infinite; }
.orb2 { width:400px; height:400px; background:#a855f7; bottom:-100px; left:-100px; animation:drift2 10s ease-in-out infinite; }
.orb3 { width:300px; height:300px; background:#3b82f6; top:40%; left:40%; animation:drift3 12s ease-in-out infinite; }
@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-40px,30px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(30px,-40px)} }
@keyframes drift3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-30px,-30px)} }

.login-card {
    background:rgba(20,20,20,.85);
    backdrop-filter:blur(24px);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px; padding:52px 48px;
    text-align:center; max-width:480px; width:100%;
    box-shadow:0 24px 80px rgba(0,0,0,.6);
    position:relative; z-index:1;
    animation:slideUp .6s ease;
}
@keyframes slideUp { from{opacity:0;transform:translateY(40px)} to{opacity:1;transform:translateY(0)} }

.login-badge {
    display:inline-block; background:rgba(99,102,241,.2);
    border:1px solid rgba(99,102,241,.4);
    color:#818cf8; font-size:11px; font-weight:600;
    letter-spacing:2px; padding:4px 14px; border-radius:20px;
    margin-bottom:24px;
}
.login-logo {
    width:72px; height:72px; background:linear-gradient(135deg,#ff0000,#cc0000);
    border-radius:20px; display:flex; align-items:center; justify-content:center;
    font-size:28px; font-weight:700; color:#fff; margin:0 auto 20px;
    box-shadow:0 8px 24px rgba(255,0,0,.3);
}
.login-title { font-size:32px; font-weight:700; color:#fff; margin-bottom:8px; }
.login-subtitle { color:var(--text2); font-size:14px; margin-bottom:24px; }
.login-features {
    display:flex; gap:10px; flex-wrap:wrap; justify-content:center; margin-bottom:32px;
}
.login-features span {
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.1);
    color:var(--text2); font-size:12px; padding:5px 12px; border-radius:20px;
}
.login-google { display:flex; justify-content:center; margin-bottom:16px; }
.login-note { color:var(--text3); font-size:12px; }

/* ── HEADER ──────────────────────────────────────────────── */
.header {
    height:var(--header-h); background:var(--bg);
    border-bottom:1px solid var(--border);
    display:flex; align-items:center; gap:16px;
    padding:0 16px; position:sticky; top:0; z-index:200;
}
.header-left { display:flex; align-items:center; gap:12px; flex-shrink:0; }
.hamburger {
    width:36px; height:36px; border-radius:50%;
    display:flex; flex-direction:column; align-items:center; justify-content:center;
    gap:4px; transition:background .2s;
}
.hamburger:hover { background:var(--bg3); }
.hamburger span { width:18px; height:2px; background:var(--text); border-radius:2px; }

.brand { display:flex; align-items:center; gap:10px; }
.brand-logo {
    width:34px; height:34px; background:linear-gradient(135deg,#ff0000,#cc0000);
    border-radius:9px; display:flex; align-items:center; justify-content:center;
    font-size:14px; font-weight:700; color:#fff; flex-shrink:0;
}
.brand-name { font-size:18px; font-weight:700; color:var(--text); white-space:nowrap; }

.header-search { flex:1; max-width:600px; }
.search-wrap {
    display:flex; align-items:center; gap:8px;
    background:var(--bg2); border:1px solid var(--border2);
    border-radius:24px; padding:0 6px 0 14px;
    transition:border-color .2s;
}
.search-wrap:focus-within { border-color:var(--blue); }
.search-ico { color:var(--text2); flex-shrink:0; }
.search-wrap input {
    flex:1; background:none; border:none; outline:none;
    color:var(--text); font-size:14px; padding:9px 8px;
}
.search-wrap input::placeholder { color:var(--text3); }
.search-go {
    background:var(--bg3); color:var(--text2); border-radius:18px;
    padding:5px 14px; font-size:13px; font-weight:500;
    transition:background .2s, color .2s;
}
.search-go:hover { background:var(--bg4); color:var(--text); }

.header-right { display:flex; align-items:center; gap:10px; margin-left:auto; }
.user-pill {
    display:flex; align-items:center; gap:8px;
    background:var(--bg2); border:1px solid var(--border);
    border-radius:20px; padding:5px 14px;
}
.user-dot { width:8px; height:8px; background:var(--green); border-radius:50%; flex-shrink:0; }
.user-pill span { font-size:13px; color:var(--text2); max-width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.logout-btn {
    display:flex; align-items:center; gap:6px;
    background:rgba(239,68,68,.15); color:#f87171;
    border:1px solid rgba(239,68,68,.3); border-radius:20px;
    padding:6px 14px; font-size:13px; font-weight:500; transition:all .2s;
}
.logout-btn:hover { background:rgba(239,68,68,.25); }

/* ── APP BODY ────────────────────────────────────────────── */
.app-body { display:flex; height:calc(100vh - var(--header-h)); overflow:hidden; }

/* ── SIDEBAR ─────────────────────────────────────────────── */
.sidebar {
    width:var(--sidebar-w); min-width:var(--sidebar-w);
    background:var(--bg); border-right:1px solid var(--border);
    overflow-y:auto; overflow-x:hidden;
    transition:width .25s ease, min-width .25s ease, transform .25s ease;
    flex-shrink:0; height:100%;
}
.sidebar.hidden { width:0; min-width:0; overflow:hidden; }
.sidebar nav { padding:8px 0 40px; }

.nav-link {
    display:flex; align-items:center; gap:14px;
    padding:9px 18px; color:var(--text2); font-size:14px; font-weight:500;
    border-radius:var(--radius); margin:1px 8px;
    transition:background .15s, color .15s;
}
.nav-link:hover { background:var(--bg3); color:var(--text); }
.nav-link.active { background:var(--bg3); color:var(--text); }
.nav-link.active .nav-ico path { fill:var(--accent); }
.nav-ico { width:20px; height:20px; flex-shrink:0; }
.nav-emoji { font-size:16px; width:20px; text-align:center; flex-shrink:0; }

.nav-sep {
    font-size:11px; font-weight:600; color:var(--text3);
    text-transform:uppercase; letter-spacing:1px;
    padding:16px 18px 6px;
}

/* ── MAIN CONTENT ────────────────────────────────────────── */
.main-content { flex:1; overflow-y:auto; min-width:0; }
.section { display:none; }
.section.active { display:block; }

/* ── YOUTUBE BROWSE ──────────────────────────────────────── */
.yt-section-wrap { padding:20px 20px 0; }
.yt-toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.yt-section-title { font-size:18px; font-weight:600; color:var(--text); }
.icon-btn {
    width:36px; height:36px; border-radius:50%;
    background:var(--bg3); display:flex; align-items:center; justify-content:center;
    transition:background .2s;
}
.icon-btn:hover { background:var(--bg4); }
.icon-btn svg path { fill:var(--text2); }

.loading-box { display:flex; flex-direction:column; align-items:center; gap:14px; padding:60px; color:var(--text2); font-size:14px; }

/* Video Grid */
.yt-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(290px, 1fr));
    gap:16px; padding-bottom:30px;
}
.yt-card { cursor:pointer; }
.yt-card:hover .yt-card-thumb img { transform:scale(1.04); }
.yt-card:hover .yt-play-ico { opacity:1; }
.yt-card-thumb {
    position:relative; padding-top:56.25%;
    background:var(--bg3); border-radius:var(--radius); overflow:hidden;
}
.yt-card-thumb img {
    position:absolute; inset:0; width:100%; height:100%;
    object-fit:cover; transition:transform .3s ease;
}
.yt-play-ico {
    position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
    font-size:36px; color:#fff; background:rgba(0,0,0,.5);
    opacity:0; transition:opacity .2s;
}
.yt-card-info { padding:10px 4px 4px; }
.yt-card-title {
    font-size:14px; font-weight:500; color:var(--text);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    line-height:1.4; margin-bottom:5px;
}
.yt-card-sub { font-size:12px; color:var(--text2); display:block; margin-bottom:2px; }
.yt-card-views { font-size:12px; color:var(--text3); }

/* ── YOUTUBE PLAYER ──────────────────────────────────────── */
.yt-layout { display:flex; gap:20px; padding:16px 20px; }
.yt-primary { flex:1; min-width:0; }
.yt-player-box {
    position:relative; padding-top:56.25%;
    background:#000; border-radius:var(--radius-lg); overflow:hidden;
}
.yt-player-box iframe { position:absolute; inset:0; width:100%; height:100%; }

.yt-video-info { padding:14px 0; }
.yt-video-info h1 { font-size:18px; font-weight:600; color:var(--text); line-height:1.4; margin-bottom:10px; }
.yt-meta { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; }
.yt-channel-name { font-size:14px; font-weight:500; color:var(--text2); }
.yt-views { font-size:13px; color:var(--text3); }

/* Suggestions Sidebar */
.yt-sidebar { width:380px; flex-shrink:0; }
.yt-sidebar-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:0 0 12px; border-bottom:1px solid var(--border); margin-bottom:12px;
}
.yt-sidebar-header span { font-size:15px; font-weight:600; color:var(--text); }
.back-btn {
    font-size:13px; color:var(--text2); padding:5px 12px;
    background:var(--bg3); border-radius:16px; transition:background .2s;
}
.back-btn:hover { background:var(--bg4); color:var(--text); }

.sugg-card {
    display:flex; gap:8px; padding:6px; border-radius:var(--radius);
    cursor:pointer; transition:background .2s;
}
.sugg-card:hover { background:var(--bg3); }
.sugg-card img {
    width:160px; height:90px; object-fit:cover;
    border-radius:8px; flex-shrink:0; background:var(--bg3);
}
.sugg-info { flex:1; min-width:0; padding:2px 0; }
.sugg-info p {
    font-size:13px; font-weight:500; color:var(--text);
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    line-height:1.35; margin-bottom:4px;
}
.sugg-info span { display:block; font-size:12px; color:var(--text2); margin-bottom:2px; }

/* ── AI CHATBOT ──────────────────────────────────────────── */
#ai-select-screen {
    min-height:calc(100vh - var(--header-h));
    display:flex; align-items:center; justify-content:center;
    padding:40px 20px;
}
.ai-select-wrap { max-width:880px; width:100%; }
.ai-select-header { text-align:center; margin-bottom:44px; }
.ai-select-header h1 { font-size:36px; font-weight:700; color:var(--text); margin-bottom:10px; }
.ai-select-header p { font-size:15px; color:var(--text2); }

.ai-cards { display:grid; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:24px; }
.ai-card {
    position:relative; background:var(--bg2); border:1px solid var(--border2);
    border-radius:20px; padding:36px 32px; cursor:pointer; overflow:hidden;
    transition:transform .3s, border-color .3s, box-shadow .3s;
}
.ai-card:hover { transform:translateY(-6px); box-shadow:0 16px 48px rgba(0,0,0,.4); }

.ai-card-glow {
    position:absolute; top:-40px; right:-40px;
    width:200px; height:200px; border-radius:50%; filter:blur(60px); opacity:.2;
}
.openai-card { border-color:rgba(16,163,127,.3); }
.openai-card:hover { border-color:#10a37f; box-shadow:0 16px 48px rgba(16,163,127,.15); }
.openai-card .ai-card-glow { background:#10a37f; }
.claude-card { border-color:rgba(204,120,92,.3); }
.claude-card:hover { border-color:#cc785c; box-shadow:0 16px 48px rgba(204,120,92,.15); }
.claude-card .ai-card-glow { background:#cc785c; }

.ai-card-icon {
    width:72px; height:72px; border-radius:18px;
    display:flex; align-items:center; justify-content:center; margin-bottom:20px;
}
.openai-card .ai-card-icon { background:linear-gradient(135deg,#10a37f,#0d8f6f); }
.claude-card .ai-card-icon { background:linear-gradient(135deg,#cc785c,#b86a50); }

.ai-card h3 { font-size:22px; font-weight:700; color:var(--text); margin-bottom:8px; }
.ai-card>p { font-size:14px; color:var(--text2); margin-bottom:20px; }
.ai-card ul { list-style:none; margin-bottom:28px; }
.ai-card ul li { font-size:14px; color:var(--text2); padding:4px 0; }

.ai-select-btn {
    width:100%; padding:13px; border-radius:30px; font-size:15px; font-weight:600;
    color:#fff; transition:opacity .2s;
}
.openai-card .ai-select-btn { background:linear-gradient(135deg,#10a37f,#0d8f6f); }
.claude-card .ai-select-btn { background:linear-gradient(135deg,#cc785c,#b86a50); }
.ai-select-btn:hover { opacity:.9; }

/* Chat UI */
.chat-ui {
    height:calc(100vh - var(--header-h));
    display:flex; flex-direction:column;
}
.chat-topbar {
    display:flex; align-items:center; justify-content:space-between;
    padding:12px 24px; background:var(--bg2);
    border-bottom:1px solid var(--border); flex-shrink:0;
}
.chat-topbar-left { display:flex; align-items:center; gap:10px; }
.chat-ai-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
#chat-ai-label { font-size:15px; font-weight:600; color:var(--text); }
.chat-online { font-size:12px; color:var(--green); }
.change-ai-btn {
    font-size:13px; color:var(--text2); padding:6px 14px;
    background:var(--bg3); border-radius:16px; transition:background .2s;
}
.change-ai-btn:hover { background:var(--bg4); color:var(--text); }

.chat-msgs {
    flex:1; overflow-y:auto; padding:20px 24px;
    display:flex; flex-direction:column; gap:12px;
}
.chat-bubble { display:flex; gap:10px; animation:fadeIn .25s ease; }
.chat-bubble.user { flex-direction:row-reverse; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

.bubble-inner {
    max-width:70%; padding:12px 16px; border-radius:18px;
    font-size:14px; line-height:1.6; color:var(--text); word-break:break-word;
}
.bot .bubble-inner {
    background:var(--bg3); border-bottom-left-radius:6px;
}
.user .bubble-inner {
    background:var(--blue); color:#fff; border-bottom-right-radius:6px;
}
.err .bubble-inner { background:rgba(239,68,68,.15); color:#f87171; }

/* Thinking animation */
.thinking .bubble-inner {
    background:var(--bg3); padding:14px 18px;
    display:flex; gap:5px; align-items:center;
}
.thinking .bubble-inner span {
    width:7px; height:7px; background:var(--text2);
    border-radius:50%; animation:blink 1.2s infinite;
}
.thinking .bubble-inner span:nth-child(2) { animation-delay:.2s; }
.thinking .bubble-inner span:nth-child(3) { animation-delay:.4s; }
@keyframes blink { 0%,80%,100%{opacity:.2} 40%{opacity:1} }

.bubble-inner code {
    background:rgba(255,255,255,.1); padding:1px 5px;
    border-radius:4px; font-size:13px;
}
.bubble-inner pre {
    background:rgba(0,0,0,.3); border-radius:8px; padding:12px 14px;
    overflow-x:auto; margin:8px 0; font-size:13px;
}

.chat-input-row {
    display:flex; align-items:flex-end; gap:10px;
    padding:14px 24px; background:var(--bg2); border-top:1px solid var(--border); flex-shrink:0;
}
#chat-input {
    flex:1; background:var(--bg3); border:1px solid var(--border2);
    border-radius:20px; color:var(--text); padding:10px 16px; font-size:14px;
    resize:none; outline:none; max-height:150px; line-height:1.5;
    transition:border-color .2s;
}
#chat-input:focus { border-color:var(--blue); }
#chat-input::placeholder { color:var(--text3); }
#chat-send {
    width:44px; height:44px; border-radius:50%; background:var(--blue);
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    transition:background .2s, transform .1s;
}
#chat-send:hover:not(:disabled) { background:#0353ba; transform:scale(1.05); }
#chat-send:disabled { opacity:.5; cursor:not-allowed; }
#chat-send svg path { fill:#fff; }

/* ── DOCUMENT TOOLS ──────────────────────────────────────── */
/* ── DOCUMENT TOOLS (ACTIVATED) ──────────────────────────── */
.tool-wrap { max-width: 720px; margin: 0 auto; padding: 48px 24px; }
.tool-hdr { text-align: center; margin-bottom: 40px; }
.tool-hdr-icon { font-size: 64px; margin-bottom: 16px; filter: drop-shadow(0 0 15px rgba(255,0,0,0.2)); }
.tool-hdr h1 { font-size: 32px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.tool-hdr p { font-size: 16px; color: var(--text2); }

/* The New Upload Container */
.upload-container {
    background: var(--bg2);
    border: 2px dashed var(--border2);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.upload-container:hover {
    border-color: var(--accent);
    background: rgba(255, 0, 0, 0.03);
    transform: translateY(-2px);
}

.drop-zone {
    cursor: pointer;
    width: 100%;
}

.upload-icon {
    font-size: 52px;
    margin-bottom: 15px;
    display: block;
}

.upload-container p {
    font-size: 18px;
    font-weight: 500;
    color: var(--text);
}

.upload-container small {
    display: block;
    margin-top: 10px;
    color: var(--text3);
    font-family: var(--mono);
    background: var(--bg3);
    padding: 6px 12px;
    border-radius: 6px;
    word-break: break-all;
}

/* The Start Processing Button */
.process-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(255, 0, 0, 0.2);
    transition: all 0.2s ease;
    animation: fadeIn 0.3s ease;
}

.process-btn:hover {
    background: var(--accent2);
    transform: scale(1.05);
    box-shadow: 0 12px 28px rgba(255, 0, 0, 0.3);
}

.process-btn:active {
    transform: scale(0.98);
}

/* ── DOCUMENT TOOL EXTRAS ────────────────────────────────── */
/* Keep these for your result screens */
.output-file {
    display:flex; align-items:center; gap:14px;
    background:var(--bg3); border-radius:var(--radius); padding:16px 20px; margin-bottom:20px;
}
.out-ico { font-size:32px; }
.out-name { font-size:15px; font-weight:600; color:var(--text); margin-bottom:3px; word-break:break-all; }
.dl-btn {
    display:inline-flex; align-items:center; gap:8px;
    background:var(--green); color:#fff;
    padding:12px 32px; border-radius:26px; font-size:15px; font-weight:600;
    transition:opacity .2s; margin-bottom:12px;
}

/* ── CHEAT SHEETS ────────────────────────────────────────── */
.cheat-wrap { padding:32px 24px 60px; max-width:1200px; margin:0 auto; }
.cheat-header {
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:28px; flex-wrap:wrap; gap:12px;
}
.cheat-header h1 { font-size:26px; font-weight:700; color:var(--text); }
.print-btn {
    background:var(--bg3); color:var(--text2); border:1px solid var(--border2);
    border-radius:20px; padding:7px 16px; font-size:13px; font-weight:500;
    transition:background .2s;
}
.print-btn:hover { background:var(--bg4); color:var(--text); }

.cheat-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(340px, 1fr));
    gap:16px;
}
.cheat-card {
    background:var(--bg2); border:1px solid var(--border);
    border-radius:var(--radius-lg); overflow:hidden;
    transition:border-color .2s;
}
.cheat-card:hover { border-color:var(--border2); }
.cheat-card h3 {
    font-size:13px; font-weight:600; text-transform:uppercase;
    letter-spacing:.5px; color:var(--text2);
    padding:12px 16px 10px; border-bottom:1px solid var(--border);
    background:rgba(255,255,255,.02);
}
.cheat-card pre {
    overflow-x:auto; padding:14px 16px;
    background:none;
}
.cheat-card code {
    font-size:12.5px; color:#cdd6f4; line-height:1.65;
    white-space:pre; font-family:var(--mono);
}

/* ── AI/ML RESOURCES ─────────────────────────────────────── */
.res-wrap { padding:32px 24px 60px; max-width:1100px; margin:0 auto; }
.res-header { margin-bottom:28px; }
.res-header h1 { font-size:26px; font-weight:700; color:var(--text); }

.res-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:16px; }
.res-card {
    background:var(--bg2); border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:24px;
    transition:border-color .2s, transform .2s;
}
.res-card:hover { border-color:var(--acc,#fff); transform:translateY(-3px); }
.res-card-icon { font-size:28px; margin-bottom:12px; }
.res-card h3 { font-size:16px; font-weight:600; color:var(--text); margin-bottom:8px; }
.res-card p { font-size:13px; color:var(--text2); line-height:1.6; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width:1100px) {
    .yt-layout { flex-direction:column; }
    .yt-sidebar { width:100%; }
    .sugg-card { padding:8px; }
    .sugg-card img { width:140px; height:79px; }
}

@media (max-width:900px) {
    :root { --sidebar-w:220px; }
    .sidebar { position:fixed; left:0; top:var(--header-h); z-index:100;
               height:calc(100vh - var(--header-h)); box-shadow:var(--shadow); }
    .sidebar.hidden { transform:translateX(-100%); width:var(--sidebar-w); min-width:var(--sidebar-w); overflow-y:auto; }
    .yt-grid { grid-template-columns:repeat(auto-fill, minmax(240px,1fr)); }
}

@media (max-width:640px) {
    .header-search { display:none; }
    .user-pill span { display:none; }
    .brand-name { display:none; }
    .yt-grid { grid-template-columns:1fr 1fr; gap:10px; }
    .ai-cards { grid-template-columns:1fr; }
    .chat-msgs { padding:14px; }
    .bubble-inner { max-width:85%; }
    .cheat-grid { grid-template-columns:1fr; }
    .res-grid { grid-template-columns:1fr; }
    .login-card { padding:36px 24px; }
    .compress-stats { flex-direction:column; gap:10px; }
}

@media (max-width:420px) {
    .yt-grid { grid-template-columns:1fr; }
    .header-right .logout-btn span { display:none; }
}

/* ── PRINT STYLES ────────────────────────────────────────── */
@media print {
    .header, .sidebar, .nav-link, .print-btn { display:none !important; }
    .main-content { overflow:visible; }
    .section { display:block !important; }
    .cheat-card { break-inside:avoid; }
}

/* ── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,.75);
    display:flex; align-items:center; justify-content:center;
    z-index:999; padding:20px; animation:fadeIn .2s ease;
}
.modal-box {
    background:var(--bg2); border:1px solid var(--border2);
    border-radius:20px; padding:0; max-width:480px; width:100%;
    overflow:hidden; box-shadow:0 24px 80px rgba(0,0,0,.5);
}
.modal-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:20px 24px; border-bottom:1px solid var(--border);
}
.modal-header h3 { font-size:18px; font-weight:600; color:var(--text); }
.modal-x {
    width:32px; height:32px; border-radius:50%; background:var(--bg3);
    font-size:16px; color:var(--text2); transition:background .2s;
    display:flex; align-items:center; justify-content:center;
}
.modal-x:hover { background:var(--bg4); color:var(--text); }
.modal-body { padding:20px 24px; }
.modal-body>p { font-size:14px; color:var(--text2); margin-bottom:16px; }
.modal-options { display:flex; flex-direction:column; gap:12px; }
.modal-option {
    background:var(--bg3); border-radius:var(--radius); padding:14px 16px;
    border:1px solid var(--border);
}
.modal-option strong { font-size:14px; color:var(--text); display:block; margin-bottom:4px; }
.modal-option p { font-size:13px; color:var(--text2); margin:0; }
.modal-close-btn {
    display:block; width:calc(100% - 48px); margin:0 24px 24px;
    background:var(--blue); color:#fff; padding:12px;
    border-radius:24px; font-size:15px; font-weight:600; transition:opacity .2s;
}
.modal-close-btn:hover { opacity:.9; }

/* ── LOCK BOX (document tools) ───────────────────────────── */
.lock-box {
    background:var(--bg3); border:1px solid var(--border2);
    border-radius:var(--radius-lg); padding:24px; margin-top:20px;
}
.lock-top {
    display:flex; align-items:flex-start; gap:14px; margin-bottom:16px;
}
.lock-emoji { font-size:32px; flex-shrink:0; }
.lock-top h4 { font-size:16px; font-weight:600; color:var(--text); margin-bottom:4px; }
.lock-top p  { font-size:13px; color:var(--text2); }
.lock-features {
    display:flex; flex-wrap:wrap; gap:8px; margin-bottom:18px;
}
.lock-features span {
    background:rgba(255,255,255,.05); border:1px solid var(--border);
    border-radius:20px; padding:5px 12px; font-size:12px; color:var(--text2);
}
.lock-info-btn {
    width:100%; background:var(--bg4); color:var(--text2);
    border:1px solid var(--border2); border-radius:20px;
    padding:10px 20px; font-size:14px; transition:all .2s;
}
.lock-info-btn:hover { background:var(--blue); color:#fff; border-color:var(--blue); }

/* ── TOOL SUCCESS EXTRAS ─────────────────────────────────── */
.tool-ready-msg { font-size:14px; color:var(--text2); margin-bottom:16px; }
.file-size-row {
    display:flex; align-items:center; gap:10px;
    background:var(--bg3); border-radius:var(--radius);
    padding:12px 16px; margin-bottom:16px;
    font-size:14px; color:var(--text2);
}
.file-size-row strong { color:var(--text); font-size:16px; }
.processing-name { font-size:13px; color:var(--text3); margin-top:6px; word-break:break-all; }