/* ── VARIABLES ── */
:root {
    --bg: #0d0f14;
    --bg2: #13161e;
    --bg3: #1a1e29;
    --border: #252a38;
    --border2: #2e3448;
    --accent: #3b82f6;
    --accent2: #6366f1;
    --accent-glow: rgba(59,130,246,0.15);
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #f59e0b;
    --text: #e2e8f0;
    --text2: #94a3b8;
    --text3: #64748b;
    --sidebar-w: 240px;
    --radius: 12px;
    --radius-sm: 8px;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
}

a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* ── SIDEBAR ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg2);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    padding: 0 0 16px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border);
}

.logo-icon {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 800; font-size: 18px; color: #fff;
    flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-brand { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.logo-sub { font-size: 11px; color: var(--text3); letter-spacing: 0.05em; text-transform: uppercase; }

.sidebar-user {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.user-avatar {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700; font-size: 14px; color: #fff;
    flex-shrink: 0;
}

.user-info { display: flex; flex-direction: column; line-height: 1.2; }
.user-name { font-weight: 600; font-size: 13px; }
.user-role { font-size: 11px; color: var(--text3); }

.sidebar-nav { padding: 12px 12px 0; flex: 1; }
.nav-section-label {
    font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text3);
    padding: 8px 8px 4px;
}

.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--text2); font-size: 13px; font-weight: 500;
    transition: all 0.15s; cursor: pointer; position: relative;
    margin-bottom: 2px;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg3); color: var(--text); }
.nav-item.active { background: var(--accent-glow); color: var(--accent); }
.nav-item.active::before {
    content: ''; position: absolute; left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 20px;
    background: var(--accent); border-radius: 0 3px 3px 0;
}
.nav-item.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.nav-item.logout { color: var(--text3); }
.nav-item.logout:hover { background: rgba(239,68,68,0.1); color: var(--red); }

.badge-soon {
    margin-left: auto;
    font-size: 9px; font-weight: 700; letter-spacing: 0.05em;
    background: rgba(245,158,11,0.15); color: var(--yellow);
    border: 1px solid rgba(245,158,11,0.3);
    padding: 2px 6px; border-radius: 20px; text-transform: uppercase;
}

.sidebar-footer { padding: 0 12px; border-top: 1px solid var(--border); padding-top: 12px; }

/* ── MAIN ── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1; padding: 32px;
    max-width: 1100px;
}

/* ── PAGE HEADER ── */
.page-header { margin-bottom: 28px; }
.page-header h2 {
    font-family: var(--font-display);
    font-size: 24px; font-weight: 700;
    margin-bottom: 4px;
}
.page-subtitle { color: var(--text2); font-size: 14px; }

/* ── ALERTS ── */
.alert {
    padding: 12px 16px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-size: 13px;
}
.alert-error { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #86efac; }

/* ── BUTTONS ── */
.btn-primary {
    background: var(--accent); color: #fff;
    border: none; padding: 9px 18px; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59,130,246,0.4); }

.btn-secondary {
    background: var(--bg3); color: var(--text2);
    border: 1px solid var(--border2); padding: 9px 18px; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary:hover { background: var(--border); color: var(--text); }

/* ── LOGIN PAGE ── */
.login-page {
    min-height: 100vh; width: 100%;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}

.login-bg { position: fixed; inset: 0; z-index: 0; }
.bg-orb {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.12;
}
.orb1 {
    width: 500px; height: 500px;
    background: var(--accent);
    top: -100px; left: -100px;
}
.orb2 {
    width: 400px; height: 400px;
    background: var(--accent2);
    bottom: -100px; right: -50px;
}
.bg-grid {
    position: absolute; inset: 0;
    background-image: linear-gradient(var(--border) 1px, transparent 1px),
                      linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.login-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    width: 100%; max-width: 420px;
    position: relative; z-index: 1;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.login-header { text-align: center; margin-bottom: 32px; }
.login-logo { margin-bottom: 16px; }
.logo-icon-lg {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 28px; color: #fff;
}
.login-header h1 {
    font-family: var(--font-display); font-size: 26px; font-weight: 800;
    margin-bottom: 6px;
}
.login-header h1 span { color: var(--accent); }
.login-header p { color: var(--text2); font-size: 13px; }

.login-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text2); letter-spacing: 0.05em; text-transform: uppercase; }

.input-wrap {
    position: relative; display: flex; align-items: center;
    background: var(--bg3); border: 1px solid var(--border2);
    border-radius: var(--radius-sm); transition: border-color 0.15s, box-shadow 0.15s;
}
.input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input-wrap .field-icon {
    flex-shrink: 0; width: 16px; height: 16px;
    color: var(--text3); margin-left: 12px; pointer-events: none;
}
.input-wrap input {
    flex: 1; padding: 11px 12px;
    background: transparent; border: none;
    color: var(--text); font-family: var(--font-body); font-size: 14px;
    outline: none; min-width: 0;
}
.input-wrap input::placeholder { color: var(--text3); }

.toggle-pass {
    flex-shrink: 0; margin-right: 8px;
    background: none; border: none; cursor: pointer;
    color: var(--text3); padding: 4px; border-radius: 4px;
    display: flex; align-items: center; transition: color 0.15s;
}
.toggle-pass:hover { color: var(--text); }
.toggle-pass svg { width: 16px; height: 16px; }

.btn-login {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; border: none;
    padding: 13px 20px; border-radius: var(--radius-sm);
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px;
    transition: all 0.2s; margin-top: 6px;
}
.btn-login svg { width: 18px; height: 18px; }
.btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.4); }

.login-footer { text-align: center; margin-top: 24px; color: var(--text3); }

/* ── DASHBOARD TOOLS GRID ── */
.tools-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px; margin-bottom: 28px;
}

.tool-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    display: flex; align-items: center; gap: 16px;
    transition: all 0.2s; cursor: pointer; position: relative;
}
.tool-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.tool-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-icon.yt { background: rgba(255,0,0,0.1); color: #ff4444; }
.tool-icon.soon { background: var(--bg3); color: var(--text3); }

.tool-info h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.tool-info p { font-size: 12px; color: var(--text2); line-height: 1.4; }

.tool-arrow { margin-left: auto; color: var(--text3); font-size: 18px; transition: transform 0.15s; }
.tool-card:hover .tool-arrow { transform: translateX(4px); color: var(--accent); }

.quick-stats { margin-top: 8px; }
.stat-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.stat-card .stat-label { color: var(--text2); font-size: 13px; }

/* ── YOUTUBE TOOL ── */
.yt-container { display: flex; flex-direction: column; gap: 20px; max-width: 800px; }

.url-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px;
}

.url-input-wrap { display: flex; gap: 10px; align-items: center; }

.yt-icon-wrap {
    width: 40px; height: 40px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.yt-icon-wrap svg { width: 32px; height: 32px; }

.url-input {
    flex: 1; padding: 11px 14px;
    background: var(--bg3); border: 1px solid var(--border2);
    border-radius: var(--radius-sm); color: var(--text);
    font-family: var(--font-body); font-size: 13px; outline: none;
    transition: border-color 0.15s;
}
.url-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.url-input::placeholder { color: var(--text3); }

.btn-fetch {
    background: var(--accent); color: #fff;
    border: none; padding: 11px 20px; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 13px; font-weight: 600;
    cursor: pointer; display: flex; align-items: center; gap: 8px;
    transition: all 0.15s; white-space: nowrap; flex-shrink: 0;
}
.btn-fetch svg { width: 15px; height: 15px; }
.btn-fetch:hover { background: #2563eb; }

/* Loading */
.loading-state {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    color: var(--text2);
}
.spinner {
    width: 32px; height: 32px;
    border: 3px solid var(--border2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Video Info */
.video-info-card {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}

.video-preview {
    display: flex; gap: 16px; padding: 20px;
    border-bottom: 1px solid var(--border);
}

.video-preview img {
    width: 160px; height: 90px; object-fit: cover;
    border-radius: var(--radius-sm); flex-shrink: 0;
    background: var(--bg3);
}

.video-meta { flex: 1; }
.video-meta h3 {
    font-family: var(--font-display); font-size: 15px; font-weight: 700;
    margin-bottom: 6px; line-height: 1.3;
}
.video-channel, .video-duration { font-size: 12px; color: var(--text2); margin-bottom: 3px; }

.download-options {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.option-card {
    padding: 20px; border-right: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 14px;
}
.option-card:last-child { border-right: none; }
.option-card.locked { opacity: 0.4; pointer-events: none; }

.option-header { display: flex; align-items: flex-start; gap: 12px; }
.option-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.option-icon svg { width: 18px; height: 18px; }
.video-icon { background: rgba(59,130,246,0.1); color: var(--accent); }
.audio-icon { background: rgba(34,197,94,0.1); color: var(--green); }
.transcript-icon { background: rgba(245,158,11,0.1); color: var(--yellow); }

.option-header h4 { font-family: var(--font-display); font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.option-header p { font-size: 11px; color: var(--text2); }

/* Resolution buttons */
.resolution-select { display: flex; flex-direction: column; gap: 6px; }
.resolution-select label { font-size: 11px; color: var(--text3); font-weight: 600; text-transform: uppercase; }
.res-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.res-btn {
    padding: 4px 10px; border-radius: 6px;
    border: 1px solid var(--border2); background: var(--bg3);
    color: var(--text2); font-size: 11px; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
}
.res-btn.active { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }
.res-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Download buttons */
.btn-download {
    border: none; border-radius: var(--radius-sm);
    padding: 9px 14px; font-family: var(--font-body);
    font-size: 12px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: all 0.15s; margin-top: auto;
}
.btn-download svg { width: 14px; height: 14px; }
.btn-video { background: rgba(59,130,246,0.15); color: var(--accent); border: 1px solid rgba(59,130,246,0.3); }
.btn-video:hover { background: var(--accent); color: #fff; }
.btn-audio { background: rgba(34,197,94,0.15); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.btn-audio:hover { background: var(--green); color: #fff; }
.btn-transcript { background: rgba(245,158,11,0.15); color: var(--yellow); border: 1px solid rgba(245,158,11,0.3); }
.btn-transcript:hover { background: var(--yellow); color: #000; }

.no-transcript {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text3); padding: 8px;
    background: var(--bg3); border-radius: var(--radius-sm);
}
.no-transcript svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Processing */
.processing-state {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 48px;
    display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}

.process-animation { position: relative; width: 64px; height: 64px; margin-bottom: 8px; }
.process-ring {
    position: absolute; inset: 0;
    border: 3px solid var(--border2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.process-icon {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.process-icon svg { width: 24px; height: 24px; }

.processing-state h3 { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.processing-state p { color: var(--text2); font-size: 13px; }

.process-bar {
    width: 240px; height: 4px;
    background: var(--border2); border-radius: 2px; overflow: hidden;
}
.process-fill {
    height: 100%; width: 30%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite alternate;
}
@keyframes progress { to { width: 80%; } }

/* Error */
.error-state {
    background: var(--bg2); border: 1px solid rgba(239,68,68,0.3);
    border-radius: var(--radius); padding: 40px;
    display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.error-state svg { width: 32px; height: 32px; color: var(--red); }
.error-state p { color: var(--text2); }

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

.stat-box {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px 20px;
    text-align: center; min-height: 100px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.stat-num {
    font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1;
    color: var(--accent);
}
.stat-label { font-size: 13px; color: var(--text2); font-weight: 500; }

.admin-section {
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); margin-bottom: 24px; overflow: hidden;
}

.section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px; border-bottom: 1px solid var(--border);
}
.section-header h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; }

.table-wrap { overflow-x: auto; }

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
    text-align: left; padding: 10px 16px;
    font-size: 11px; font-weight: 600; color: var(--text3);
    text-transform: uppercase; letter-spacing: 0.05em;
    background: var(--bg3); border-bottom: 1px solid var(--border);
}
.admin-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    font-size: 13px; vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg3); }

.badge {
    display: inline-block; padding: 3px 8px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
}
.badge-admin { background: rgba(139,92,246,0.15); color: #a78bfa; border: 1px solid rgba(139,92,246,0.3); }
.badge-user { background: rgba(59,130,246,0.1); color: var(--accent); border: 1px solid rgba(59,130,246,0.2); }
.badge-active { background: rgba(34,197,94,0.1); color: var(--green); border: 1px solid rgba(34,197,94,0.2); }
.badge-inactive { background: rgba(239,68,68,0.1); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }

.perm-tag {
    display: inline-block; padding: 2px 7px; border-radius: 4px;
    font-size: 10px; font-weight: 600; margin-right: 3px;
    background: rgba(34,197,94,0.1); color: var(--green);
    border: 1px solid rgba(34,197,94,0.2);
}
.perm-tag.perm-off { background: rgba(100,116,139,0.1); color: var(--text3); border-color: var(--border); }

.action-tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 11px; font-weight: 500;
    background: var(--bg3); color: var(--text2);
}
.action-login { background: rgba(34,197,94,0.1); color: var(--green); }
.action-download { background: rgba(59,130,246,0.1); color: var(--accent); }

.detail-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text2); }

.btn-icon {
    background: none; border: none; cursor: pointer;
    padding: 4px; border-radius: 6px; transition: background 0.15s;
    font-size: 14px;
}
.btn-icon:hover { background: var(--bg3); }

/* ── MODAL ── */
.modal {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}

.modal-box {
    background: var(--bg2); border: 1px solid var(--border2);
    border-radius: var(--radius); width: 100%; max-width: 520px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.modal-close {
    background: none; border: none; cursor: pointer;
    color: var(--text3); font-size: 16px; padding: 4px 8px;
    border-radius: 6px; transition: all 0.15s;
}
.modal-close:hover { background: var(--bg3); color: var(--text); }

.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal-footer {
    padding: 16px 24px; border-top: 1px solid var(--border);
    display: flex; gap: 10px; justify-content: flex-end;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text2); }
.form-group small { font-weight: 400; color: var(--text3); }
.form-group input, .form-group select {
    padding: 9px 12px;
    background: var(--bg3); border: 1px solid var(--border2);
    border-radius: var(--radius-sm); color: var(--text);
    font-family: var(--font-body); font-size: 13px; outline: none;
    transition: border-color 0.15s;
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent); }
.form-group select { cursor: pointer; }

.perm-group { display: flex; flex-direction: column; gap: 8px; }
.perm-group label { font-size: 12px; font-weight: 600; color: var(--text2); }
.perm-checks { display: flex; gap: 16px; }
.check-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; cursor: pointer;
}
.check-label input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .main-content { margin-left: 0; padding: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .download-options { grid-template-columns: 1fr; }
    .option-card { border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── FILA DE ÁUDIO ── */
.queue-list {
    display: flex; flex-direction: column; gap: 6px;
    margin: 4px 0;
}

.queue-item {
    display: flex; align-items: center; gap: 8px;
}

.queue-num {
    width: 20px; height: 20px; flex-shrink: 0;
    background: var(--bg3); border: 1px solid var(--border2);
    border-radius: 50%; font-size: 11px; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    color: var(--text3);
}

.queue-url {
    flex: 1; padding: 7px 10px; min-width: 0;
    background: var(--bg3); border: 1px solid var(--border2);
    border-radius: 6px; color: var(--text);
    font-family: var(--font-body); font-size: 11px; outline: none;
    transition: border-color 0.15s;
}
.queue-url:focus { border-color: var(--accent); }
.queue-url::placeholder { color: var(--text3); font-size: 10px; }
.queue-url[readonly] { color: var(--text2); cursor: default; }

.queue-status {
    font-size: 14px; width: 20px; text-align: center; flex-shrink: 0;
}
