:root {
  --bg: #050816;
  --bg-elevated: #0b1020;
  --bg-elevated-soft: #101629;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --accent: #4f46e5;
  --accent-soft: rgba(79, 70, 229, 0.16);
  --accent-strong: #818cf8;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --danger: #ef4444;
  --success: #22c55e;
  --warning: #f59e0b;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: radial-gradient(circle at top, #1d1b4e 0, #020617 40%, #000 100%); color: var(--text); }
body { min-height: 100vh; }
.app-shell { max-width: 1200px; margin: 0 auto; padding: 20px 16px 32px; }

/* TOP BAR */
.top-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: var(--radius-lg); background: linear-gradient(120deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96)); border: 1px solid rgba(148, 163, 184, 0.25); box-shadow: var(--shadow-soft); position: sticky; top: 10px; z-index: 20; backdrop-filter: blur(18px); }
.logo-area { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 34px; height: 34px; border-radius: 12px; background: conic-gradient(from 140deg, #4f46e5, #22c55e, #ec4899, #4f46e5); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white; box-shadow: 0 10px 25px rgba(59, 130, 246, 0.7); }
.logo-text { display: flex; flex-direction: column; }
.logo-title { font-weight: 600; font-size: 15px; }
.logo-subtitle { font-size: 11px; color: var(--text-muted); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.role-select { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.role-select select, .filter-row select, .exam-controls select { background: rgba(15, 23, 42, 0.9); border-radius: var(--radius-pill); border: 1px solid rgba(148, 163, 184, 0.4); padding: 6px 12px; color: var(--text); font-size: 12px; }
.credit-pill { background: linear-gradient(135deg, rgba(79, 70, 229, 0.3), rgba(34, 197, 94, 0.2)); border: 1px solid rgba(129, 140, 248, 0.5); border-radius: var(--radius-pill); padding: 5px 14px; font-size: 12px; font-weight: 600; color: var(--accent-strong); }

/* HERO */
main { margin-top: 18px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr); gap: 18px; margin-bottom: 18px; }
.hero-text { padding: 20px 20px 18px; border-radius: var(--radius-lg); background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.35), transparent 55%), radial-gradient(circle at bottom right, rgba(236, 72, 153, 0.2), transparent 55%), linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96)); border: 1px solid rgba(129, 140, 248, 0.45); box-shadow: var(--shadow-soft); }
.hero-text h1 { font-size: 26px; margin: 0 0 10px; }
.hero-text p { margin: 0; color: var(--text-muted); font-size: 14px; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero-summary-card { padding: 18px 16px; border-radius: var(--radius-lg); background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.96)); border: 1px solid rgba(75, 85, 99, 0.9); box-shadow: 0 14px 36px rgba(15, 23, 42, 0.85); }
.hero-summary-card h2 { margin: 0 0 10px; font-size: 17px; }
.hero-kpi { font-size: 13px; margin: 4px 0; color: var(--text-muted); }
.hero-kpi strong { color: var(--accent-strong); }
.progress-ring { width: 100px; height: 100px; border-radius: 50%; border: 8px solid rgba(55, 65, 81, 0.9); display: flex; align-items: center; justify-content: center; margin: 8px auto 12px; position: relative; }
.progress-ring::before { content: ''; position: absolute; inset: -3px; border-radius: inherit; border: 3px solid rgba(129, 140, 248, 0.4); border-top-color: rgba(52, 211, 153, 0.9); border-right-color: rgba(96, 165, 250, 0.9); }
.progress-ring-inner { width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at top, #1f2937, #020617); display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; }
.roi-mini { margin-top: 8px; font-size: 12px; padding: 6px 10px; border-radius: 8px; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); }

/* BUTTONS */
.primary-button { border-radius: var(--radius-pill); border: none; padding: 8px 18px; font-size: 13px; font-weight: 600; color: white; background: linear-gradient(135deg, #4f46e5, #6366f1); cursor: pointer; box-shadow: 0 10px 30px rgba(79, 70, 229, 0.5); }
.primary-button.small { padding: 6px 14px; font-size: 12px; }
.primary-button:hover { box-shadow: 0 10px 30px rgba(79, 70, 229, 0.8); }
.primary-button:disabled { opacity: 0.5; cursor: not-allowed; }
.primary-button.full-width { width: 100%; padding: 10px; }
.secondary-link { font-size: 13px; color: var(--accent-strong); text-decoration: none; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(129, 140, 248, 0.4); cursor: pointer; }
.ghost-button { border-radius: var(--radius-pill); border: 1px solid rgba(148, 163, 184, 0.6); background: rgba(15, 23, 42, 0.8); color: var(--text-muted); padding: 6px 12px; font-size: 12px; cursor: pointer; }
.ghost-button.small { padding: 4px 10px; font-size: 11px; }
.icon-button { background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(55, 65, 81, 0.8); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 16px; color: var(--text-muted); }
.icon-button:hover { border-color: var(--accent-strong); color: var(--accent-strong); }

/* TABS */
.tab-nav { display: flex; gap: 4px; margin-bottom: 16px; border-radius: var(--radius-pill); padding: 4px; background: rgba(15, 23, 42, 0.9); border: 1px solid var(--border-subtle); overflow-x: auto; }
.tab-button { flex-shrink: 0; border-radius: var(--radius-pill); border: none; background: transparent; color: var(--text-muted); padding: 7px 12px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.tab-button.active { background: radial-gradient(circle at top, rgba(79, 70, 229, 0.7), rgba(37, 99, 235, 0.9)); color: white; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.6); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* CARDS */
.grid.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card { border-radius: var(--radius-md); padding: 14px; background: linear-gradient(140deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96)); border: 1px solid rgba(31, 41, 55, 0.9); box-shadow: 0 14px 34px rgba(15, 23, 42, 0.85); margin-bottom: 16px; }
.card h2 { font-size: 16px; margin: 0 0 6px; }
.card p { font-size: 13px; margin: 0 0 8px; color: var(--text-muted); }
.card-header-row { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.card-list { display: flex; flex-direction: column; gap: 10px; }

/* COURSE CARDS */
.course-card, .challenge-card { border-radius: 14px; padding: 10px 11px; background: radial-gradient(circle at top left, rgba(17, 24, 39, 0.9), rgba(2, 6, 23, 0.98)); border: 1px solid rgba(31, 41, 55, 0.95); display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.course-main, .challenge-main { flex: 1; }
.course-title-row { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.course-title-row h3 { margin: 0; font-size: 14px; }
.course-chip { font-size: 11px; padding: 3px 8px; border-radius: var(--radius-pill); background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(55, 65, 81, 0.9); color: var(--text-muted); }
.course-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: 11px; color: var(--text-muted); }
.points-pill { color: var(--accent-strong); }
.mandatory-tag { color: #f97316; }
.optional-tag { color: var(--text-muted); }
.course-actions, .challenge-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 140px; }
.small-link { font-size: 11px; color: var(--accent-strong); text-decoration: none; }
.small-button { border-radius: var(--radius-pill); border: 1px solid rgba(55, 65, 81, 0.9); font-size: 11px; padding: 5px 10px; cursor: pointer; background: rgba(15, 23, 42, 0.9); color: var(--text); }
.small-button.primary { background: linear-gradient(135deg, #4f46e5, #6366f1); color: white; border-color: transparent; }
.small-button.completed { background: rgba(34, 197, 94, 0.16); color: var(--success); border-color: rgba(34, 197, 94, 0.55); }
.small-badge { font-size: 11px; border-radius: var(--radius-pill); padding: 3px 8px; background: rgba(15, 23, 42, 0.95); border: 1px solid rgba(55, 65, 81, 0.9); }

/* PILLS, LISTS */
.pill-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { font-size: 12px; padding: 6px 10px; border-radius: var(--radius-pill); background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(55, 65, 81, 0.8); }
.pill-badge { display: inline-flex; align-items: center; gap: 6px; }
.pill-badge span { font-size: 11px; }
.pill-badge .pill-label { color: var(--text); }
.pill-badge .pill-meta { color: var(--text-muted); }
.activity-list, .status-list { list-style: none; padding: 0; margin: 4px 0 0; }
.activity-list li { font-size: 12px; margin-bottom: 4px; color: var(--text-muted); }
.status-list li { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 4px; }
.status-ok { color: var(--success); }
.status-pending { color: var(--warning); }

/* PROFILE */
.profile-stats { list-style: none; padding: 0; margin: 6px 0 0; }
.profile-stats li { display: flex; justify-content: space-between; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed rgba(55, 65, 81, 0.8); }
.profile-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.badge-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.badge-item { padding: 6px 10px; border-radius: var(--radius-pill); font-size: 11px; background: var(--bg-elevated-soft); border: 1px solid rgba(55, 65, 81, 0.9); }
.badge-item.active { border-color: rgba(129, 140, 248, 0.9); background: linear-gradient(135deg, rgba(79, 70, 229, 0.25), rgba(17, 24, 39, 0.98)); }
.badge-item span { display: block; }
.badge-name { color: var(--accent-strong); }
.badge-desc { color: var(--text-muted); }

/* EXAM */
.exam-controls { display: flex; gap: 8px; align-items: center; }
.exam-summary { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed rgba(55, 65, 81, 0.9); font-size: 12px; color: var(--text-muted); }
.exam-summary strong { color: var(--accent-strong); }
.exam-hint { font-size: 13px; margin-top: 10px; color: var(--text-muted); }
.quiz-question { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(31, 41, 55, 0.8); }
.quiz-question-title { font-size: 13px; margin-bottom: 4px; }
.quiz-options { list-style: none; padding: 0; margin: 0; }
.quiz-options li { font-size: 12px; margin-bottom: 4px; }
.quiz-options label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.quiz-options input[type='radio'] { accent-color: #4f46e5; }
.exam-actions { margin-top: 10px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.exam-result-message { font-size: 12px; }
.exam-result-pass { color: var(--success); }
.exam-result-fail { color: var(--danger); }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

/* CHAT */
.chat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 16px; min-height: 500px; }
.chat-sidebar { background: linear-gradient(140deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96)); border: 1px solid rgba(31, 41, 55, 0.9); border-radius: var(--radius-md); padding: 12px; display: flex; flex-direction: column; }
.chat-sidebar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.chat-sidebar-header h3 { margin: 0; font-size: 14px; }
.chat-sidebar-options { margin-bottom: 10px; }
.chat-sidebar-options label { font-size: 11px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.chat-sidebar-options select { width: 100%; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(55, 65, 81, 0.8); border-radius: 8px; padding: 6px 8px; color: var(--text); font-size: 12px; }
.conversation-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.conv-item { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 12px; color: var(--text-muted); border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; justify-content: space-between; align-items: center; }
.conv-item:hover { background: rgba(79, 70, 229, 0.1); border-color: rgba(79, 70, 229, 0.3); }
.conv-item.active { background: rgba(79, 70, 229, 0.2); border-color: rgba(79, 70, 229, 0.5); color: var(--text); }
.conv-item .conv-delete { opacity: 0; font-size: 14px; cursor: pointer; color: var(--danger); background: none; border: none; padding: 0 4px; }
.conv-item:hover .conv-delete { opacity: 1; }

.chat-main { background: linear-gradient(140deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96)); border: 1px solid rgba(31, 41, 55, 0.9); border-radius: var(--radius-md); display: flex; flex-direction: column; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; max-height: 450px; }
.chat-welcome { text-align: center; margin: auto; color: var(--text-muted); }
.chat-welcome h2 { font-size: 20px; color: var(--text); }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.suggestion-chip { border-radius: var(--radius-pill); border: 1px solid rgba(79, 70, 229, 0.4); background: rgba(79, 70, 229, 0.1); color: var(--accent-strong); padding: 6px 14px; font-size: 12px; cursor: pointer; }
.suggestion-chip:hover { background: rgba(79, 70, 229, 0.2); }

.chat-bubble { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; word-wrap: break-word; }
.chat-bubble.user { align-self: flex-end; background: linear-gradient(135deg, #4f46e5, #6366f1); color: white; border-bottom-right-radius: 4px; }
.chat-bubble.assistant { align-self: flex-start; background: rgba(31, 41, 55, 0.9); border: 1px solid rgba(55, 65, 81, 0.8); border-bottom-left-radius: 4px; }
.chat-bubble pre { background: rgba(0,0,0,0.3); padding: 8px; border-radius: 6px; overflow-x: auto; font-size: 12px; }
.chat-bubble code { font-size: 12px; }
.chat-typing { align-self: flex-start; padding: 10px 14px; font-size: 13px; color: var(--text-muted); }
.chat-typing::after { content: '...'; animation: dots 1s steps(3, end) infinite; }
@keyframes dots { 0% { content: '.'; } 33% { content: '..'; } 66% { content: '...'; } }

.chat-input-area { padding: 12px; border-top: 1px solid rgba(31, 41, 55, 0.8); }
.chat-input-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-input-row textarea { flex: 1; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(55, 65, 81, 0.8); border-radius: 12px; padding: 8px 12px; color: var(--text); font-size: 13px; resize: none; font-family: inherit; max-height: 120px; }
.chat-input-hint { font-size: 11px; color: var(--text-muted); margin-top: 4px; display: flex; justify-content: space-between; }

/* TOOLS */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.tool-card { border-radius: var(--radius-md); padding: 16px; background: linear-gradient(140deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96)); border: 1px solid rgba(31, 41, 55, 0.9); cursor: pointer; text-align: center; transition: border-color 0.2s, transform 0.2s; position: relative; }
.tool-card:hover { border-color: rgba(79, 70, 229, 0.6); transform: translateY(-2px); }
.tool-icon { font-size: 32px; margin-bottom: 8px; }
.tool-card h3 { font-size: 14px; margin: 0 0 4px; }
.tool-card p { font-size: 11px; color: var(--text-muted); margin: 0; }
.tool-cost { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--accent-strong); padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(79, 70, 229, 0.1); border: 1px solid rgba(79, 70, 229, 0.3); }
.tool-badge { position: absolute; top: 8px; right: 8px; font-size: 10px; padding: 2px 6px; border-radius: var(--radius-pill); }
.tool-badge.pro { background: linear-gradient(135deg, #f59e0b, #f97316); color: white; }

/* TOOL MODAL */
.tool-modal-content { max-width: 700px; }
.tool-actions { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.tool-cost-label { font-size: 12px; color: var(--text-muted); }
.tool-output { margin-top: 16px; padding: 14px; background: rgba(0, 0, 0, 0.2); border-radius: 10px; border: 1px solid rgba(55, 65, 81, 0.5); }
.tool-output-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tool-output-header h3 { margin: 0; font-size: 14px; }
#toolOutputContent { font-size: 13px; line-height: 1.6; white-space: pre-wrap; word-wrap: break-word; }
#toolFormArea label { display: block; font-size: 12px; color: var(--text-muted); margin-top: 10px; margin-bottom: 4px; }
#toolFormArea input, #toolFormArea textarea, #toolFormArea select { width: 100%; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(55, 65, 81, 0.8); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 13px; font-family: inherit; }
#toolFormArea textarea { min-height: 100px; resize: vertical; }

/* MARKETPLACE */
.prompt-card { border-radius: 14px; padding: 12px; background: radial-gradient(circle at top left, rgba(17, 24, 39, 0.9), rgba(2, 6, 23, 0.98)); border: 1px solid rgba(31, 41, 55, 0.95); }
.prompt-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.prompt-card h3 { margin: 0 0 4px; font-size: 14px; }
.prompt-card-meta { display: flex; gap: 6px; font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.prompt-card-desc { font-size: 12px; color: var(--text-muted); margin: 0 0 8px; }
.prompt-card-actions { display: flex; gap: 8px; align-items: center; }
.prompt-price { font-size: 12px; font-weight: 600; color: var(--success); }
.prompt-price.free { color: var(--accent-strong); }
.prompt-rating { font-size: 11px; color: var(--warning); }

/* LEADERBOARD */
.leaderboard-list { margin-top: 8px; }
.lb-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 12px; margin-bottom: 4px; }
.lb-item:nth-child(1) { background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), transparent); border: 1px solid rgba(245, 158, 11, 0.3); }
.lb-item:nth-child(2) { background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), transparent); border: 1px solid rgba(148, 163, 184, 0.2); }
.lb-item:nth-child(3) { background: linear-gradient(135deg, rgba(180, 83, 9, 0.1), transparent); border: 1px solid rgba(180, 83, 9, 0.2); }
.lb-rank { width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 11px; background: rgba(55, 65, 81, 0.8); flex-shrink: 0; }
.lb-item:nth-child(1) .lb-rank { background: linear-gradient(135deg, #f59e0b, #f97316); color: #000; }
.lb-item:nth-child(2) .lb-rank { background: linear-gradient(135deg, #94a3b8, #64748b); color: #000; }
.lb-item:nth-child(3) .lb-rank { background: linear-gradient(135deg, #b45309, #92400e); color: white; }
.lb-name { flex: 1; }
.lb-score { color: var(--accent-strong); font-weight: 600; }
.lb-dept-bar { height: 6px; border-radius: 3px; background: rgba(55, 65, 81, 0.5); margin-top: 4px; }
.lb-dept-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #4f46e5, #22c55e); }

/* PRICING */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 10px; }
.pricing-item { border-radius: var(--radius-md); padding: 20px 16px; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(55, 65, 81, 0.6); text-align: center; position: relative; transition: transform 0.2s, border-color 0.2s; }
.pricing-item:hover { transform: translateY(-2px); }
.pricing-item.featured { border-color: rgba(79, 70, 229, 0.8); background: linear-gradient(135deg, rgba(79, 70, 229, 0.15), rgba(15, 23, 42, 0.9)); }
.pricing-item.enterprise-item { border-color: rgba(34, 197, 94, 0.4); }
.pricing-badge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; padding: 3px 10px; border-radius: 12px; display: inline-block; margin-bottom: 8px; }
.free-badge { background: rgba(100, 116, 139, 0.3); color: #94a3b8; }
.pro-badge { background: rgba(79, 70, 229, 0.3); color: #a5b4fc; }
.enterprise-badge { background: rgba(34, 197, 94, 0.2); color: #86efac; }
.pricing-item h3 { font-size: 18px; margin: 0 0 8px; }
.pricing-price { font-size: 28px; font-weight: 700; color: var(--accent-strong); margin-bottom: 12px; }
.pricing-price span { font-size: 14px; font-weight: 400; color: var(--text-muted); }
.pricing-item ul { list-style: none; padding: 0; margin: 0 0 14px; text-align: left; }
.pricing-item li { font-size: 12px; padding: 4px 0; color: var(--text-muted); }
.pricing-item li::before { content: none; }
.pricing-item li.included { color: var(--text); }
.pricing-item li.included.highlight { color: var(--accent-strong); font-weight: 500; }
.pricing-item li.excluded { color: rgba(100, 116, 139, 0.5); text-decoration: line-through; }
.pricing-item li.muted { font-size: 11px; color: var(--text-muted); font-style: italic; margin-top: 4px; border-top: 1px solid rgba(55, 65, 81, 0.3); padding-top: 8px; }

/* UPGRADE BANNER */
.upgrade-banner { background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(139, 92, 246, 0.1)); border: 1px solid rgba(79, 70, 229, 0.4); border-radius: var(--radius-md); padding: 12px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.upgrade-banner-text { flex: 1; font-size: 13px; color: var(--text); }
.upgrade-banner-text small { display: block; color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.upgrade-banner-btn { background: var(--accent); color: white; border: none; padding: 6px 14px; border-radius: 6px; font-size: 12px; cursor: pointer; white-space: nowrap; font-weight: 500; }
.upgrade-banner-btn:hover { background: var(--accent-strong); }

/* USAGE INDICATOR */
.usage-indicator { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); padding: 6px 0; }
.usage-bar { flex: 1; height: 4px; background: rgba(55, 65, 81, 0.5); border-radius: 2px; overflow: hidden; max-width: 120px; }
.usage-bar-fill { height: 100%; border-radius: 2px; transition: width 0.3s; background: var(--accent); }
.usage-bar-fill.warning { background: #f59e0b; }
.usage-bar-fill.danger { background: #ef4444; }

/* TOOL LOCK OVERLAY */
.tool-locked { position: relative; opacity: 0.6; }
.tool-locked::after { content: 'Pro'; position: absolute; top: 8px; right: 8px; background: rgba(79, 70, 229, 0.8); color: white; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }

/* MODALS */
.modal { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(4px); }
.modal-content { background: linear-gradient(135deg, #0f172a, #111827); border: 1px solid rgba(55, 65, 81, 0.8); border-radius: var(--radius-lg); padding: 24px; max-width: 550px; width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.modal-header h2 { margin: 0; font-size: 18px; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; padding: 0; }

/* AUTH MODAL */
.auth-modal { max-width: 400px; }
.auth-modal form { display: flex; flex-direction: column; gap: 14px; }
.auth-modal label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.auth-modal input { width: 100%; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(55, 65, 81, 0.8); border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 14px; }
.auth-error { font-size: 12px; color: var(--danger); min-height: 18px; }
.auth-switch { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.auth-switch a { color: var(--accent-strong); }

/* ADMIN */
.admin-modal { max-width: 900px; width: 95%; }
.admin-tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.admin-tab { border-radius: var(--radius-pill); border: 1px solid rgba(55, 65, 81, 0.6); background: transparent; color: var(--text-muted); padding: 6px 14px; font-size: 12px; cursor: pointer; }
.admin-tab.active { background: var(--accent); color: white; border-color: var(--accent); }
.admin-content { min-height: 300px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.admin-stat { padding: 14px; border-radius: 10px; background: rgba(15, 23, 42, 0.8); border: 1px solid rgba(55, 65, 81, 0.5); text-align: center; }
.admin-stat .stat-value { font-size: 28px; font-weight: 700; color: var(--accent-strong); }
.admin-stat .stat-label { font-size: 11px; color: var(--text-muted); }
.admin-user-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.admin-user-table th, .admin-user-table td { padding: 6px 8px; text-align: left; border-bottom: 1px solid rgba(55, 65, 81, 0.4); }
.admin-user-table th { color: var(--text-muted); font-weight: 500; }

/* ROI */
.roi-dashboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.roi-stat { padding: 14px; border-radius: 10px; background: rgba(34, 197, 94, 0.05); border: 1px solid rgba(34, 197, 94, 0.2); text-align: center; }
.roi-stat .roi-value { font-size: 24px; font-weight: 700; color: var(--success); }
.roi-stat .roi-label { font-size: 11px; color: var(--text-muted); }

/* NEWSLETTER */
.newsletter-row { display: flex; gap: 10px; align-items: center; }

/* GOOGLE BUTTON */
.google-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #3c4043; border: 1px solid #dadce0; border-radius: 999px; padding: 10px 20px; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s, box-shadow .15s; }
.google-btn:hover { background: #f7f8f8; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.google-btn svg { flex-shrink: 0; }
.google-btn.full-width { width: 100%; }

/* AUTH DIVIDER */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--text-muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(55,65,81,0.5); }

/* GOOGLE SUB TABS */
.google-sub-tabs { display: flex; gap: 4px; margin-bottom: 12px; background: rgba(15,23,42,0.6); border-radius: 999px; padding: 3px; }
.google-sub-tab { background: transparent; border: none; color: var(--text-muted); padding: 8px 16px; border-radius: 999px; font-size: 13px; cursor: pointer; transition: all .15s; }
.google-sub-tab.active { background: var(--accent); color: #fff; font-weight: 600; }
.google-sub-tab:hover:not(.active) { color: var(--text); background: rgba(255,255,255,.06); }
.google-sub-panel { display: none; }
.google-sub-panel.active { display: block; }

/* GMAIL LIST */
.gmail-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(55,65,81,0.3); cursor: pointer; transition: background .1s; }
.gmail-item:hover { background: rgba(255,255,255,.04); }
.gmail-item.unread { font-weight: 600; }
.gmail-item .gmail-from { width: 180px; flex-shrink: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmail-item .gmail-subject { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmail-item .gmail-snippet { flex: 2; font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gmail-item .gmail-date { width: 90px; text-align: right; flex-shrink: 0; font-size: 11px; color: var(--text-muted); }

/* CALENDAR LIST */
.cal-item { display: flex; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(55,65,81,0.3); }
.cal-time { width: 100px; flex-shrink: 0; font-size: 12px; font-weight: 600; color: var(--accent-strong); }
.cal-info { flex: 1; }
.cal-info .cal-title { font-size: 14px; font-weight: 500; }
.cal-info .cal-desc { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* DRIVE LIST */
.drive-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(55,65,81,0.3); cursor: pointer; transition: background .1s; }
.drive-item:hover { background: rgba(255,255,255,.04); }
.drive-icon { width: 24px; height: 24px; flex-shrink: 0; }
.drive-icon img { width: 24px; height: 24px; }
.drive-name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-meta { font-size: 11px; color: var(--text-muted); }

/* CONTACTS */
.contact-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid rgba(55,65,81,0.3); }
.contact-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.contact-avatar img { width: 100%; height: 100%; object-fit: cover; }
.contact-info { flex: 1; }
.contact-name { font-size: 14px; font-weight: 500; }
.contact-detail { font-size: 12px; color: var(--text-muted); }
.contact-actions { flex-shrink: 0; }

/* TASKS */
.task-list-item { display: inline-block; background: rgba(15,23,42,0.6); border: 1px solid rgba(55,65,81,0.5); border-radius: 999px; padding: 6px 14px; margin: 4px; cursor: pointer; font-size: 13px; transition: all .15s; }
.task-list-item.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.task-list-item:hover:not(.active) { background: rgba(255,255,255,.06); }
.task-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 12px; border-bottom: 1px solid rgba(55,65,81,0.3); }
.task-item .task-check { font-size: 16px; flex-shrink: 0; }
.task-item .task-title { font-size: 13px; flex: 1; }
.task-item .task-due { font-size: 11px; color: var(--text-muted); flex-shrink: 0; }
.task-item.completed .task-title { text-decoration: line-through; color: var(--text-muted); }

/* GOOGLE CONNECT CARD */
#googleConnectCard .card-header-row { align-items: flex-start; }

/* FOOTER */
.app-footer { margin-top: 20px; font-size: 11px; color: var(--text-muted); display: flex; justify-content: space-between; gap: 8px; padding: 8px 4px 0; border-top: 1px solid rgba(15, 23, 42, 0.9); }
.app-footer a { color: var(--accent-strong); text-decoration: none; cursor: pointer; }

/* NEWS CARD */
.news-card { position: relative; overflow: hidden; }
.news-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #4f46e5, #22c55e, #f59e0b, #ec4899); }
.news-header-actions { display: flex; align-items: center; gap: 10px; }
.news-timestamp { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.news-list { display: flex; flex-direction: column; gap: 0; }

.news-item { display: flex; gap: 12px; padding: 12px 10px; border-bottom: 1px solid rgba(55, 65, 81, 0.3); transition: background 0.15s; cursor: pointer; text-decoration: none; color: inherit; border-radius: 8px; }
.news-item:hover { background: rgba(79, 70, 229, 0.08); }
.news-item:last-child { border-bottom: none; }

.news-source-icon { font-size: 20px; flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.news-content { flex: 1; min-width: 0; }
.news-title { font-size: 13px; font-weight: 600; color: var(--text); line-height: 1.4; margin-bottom: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-item:hover .news-title { color: var(--accent-strong); }
.news-summary { font-size: 12px; color: var(--text-muted); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.news-category { font-size: 10px; padding: 2px 7px; border-radius: var(--radius-pill); font-weight: 600; }
.news-cat-yapay-zeka { background: rgba(79, 70, 229, 0.15); color: #a5b4fc; border: 1px solid rgba(79, 70, 229, 0.3); }
.news-cat-llm { background: rgba(236, 72, 153, 0.15); color: #f9a8d4; border: 1px solid rgba(236, 72, 153, 0.3); }
.news-cat-arastirma { background: rgba(34, 197, 94, 0.12); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }
.news-cat-urun { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.news-cat-sirket { background: rgba(96, 165, 250, 0.15); color: #93c5fd; border: 1px solid rgba(96, 165, 250, 0.3); }
.news-cat-etik { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }
.news-cat-robotik { background: rgba(168, 85, 247, 0.15); color: #c4b5fd; border: 1px solid rgba(168, 85, 247, 0.3); }
.news-cat-teknoloji { background: rgba(148, 163, 184, 0.12); color: #cbd5e1; border: 1px solid rgba(148, 163, 184, 0.3); }
.news-source-name { font-size: 10px; color: var(--text-muted); }
.news-time { font-size: 10px; color: var(--text-muted); }
.news-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.news-lang-badge { font-size: 9px; padding: 1px 5px; border-radius: 4px; background: rgba(148, 163, 184, 0.15); color: #94a3b8; border: 1px solid rgba(148, 163, 184, 0.3); vertical-align: middle; margin-left: 4px; font-weight: 700; letter-spacing: 0.5px; }
.news-external { font-size: 10px; color: var(--text-muted); opacity: 0; transition: opacity 0.15s; margin-left: auto; }
.news-item:hover .news-external { opacity: 1; }

/* News skeleton loading */
.news-skeleton { display: flex; flex-direction: column; gap: 12px; padding: 8px 0; }
.skeleton-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(55,65,81,0.3), rgba(55,65,81,0.5), rgba(55,65,81,0.3)); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.skeleton-line.wide { width: 90%; }
.skeleton-line.medium { width: 60%; height: 11px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.news-empty { text-align: center; padding: 24px 16px; color: var(--text-muted); }
.news-empty-icon { font-size: 32px; margin-bottom: 8px; }
.news-empty p { font-size: 13px; margin: 0; }

/* SKIP LINK */
.skip-link { position: absolute; top: -100%; left: 50%; transform: translateX(-50%); background: var(--accent); color: white; padding: 8px 16px; border-radius: 0 0 8px 8px; z-index: 1000; font-size: 13px; text-decoration: none; transition: top 0.2s; }
.skip-link:focus { top: 0; }

/* USER DROPDOWN */
.user-dropdown-wrapper { position: relative; }
.user-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: linear-gradient(135deg, #0f172a, #111827); border: 1px solid rgba(55, 65, 81, 0.8); border-radius: var(--radius-md); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); z-index: 50; padding: 8px 0; animation: dropdownFadeIn 0.15s ease-out; }
.user-dropdown.open { display: block; }
@keyframes dropdownFadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.user-dropdown-info { padding: 10px 14px; font-size: 12px; }
.user-dropdown-info .dropdown-name { font-weight: 600; font-size: 13px; color: var(--text); }
.user-dropdown-info .dropdown-email { color: var(--text-muted); margin-top: 2px; }
.user-dropdown-info .dropdown-plan-badge { display: inline-block; margin-top: 4px; font-size: 10px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-strong); border: 1px solid rgba(129, 140, 248, 0.3); }
.dropdown-divider { border: none; border-top: 1px solid rgba(55, 65, 81, 0.5); margin: 4px 0; }
.dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 14px; background: none; border: none; color: var(--text); font-size: 13px; cursor: pointer; text-align: left; transition: background 0.1s; }
.dropdown-item:hover { background: rgba(79, 70, 229, 0.12); }
.dropdown-item-danger { color: #f87171; }
.dropdown-item-danger:hover { background: rgba(239, 68, 68, 0.1); }

/* TOAST NOTIFICATIONS */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px; font-size: 13px; min-width: 280px; max-width: 420px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); animation: toastIn 0.3s ease-out; backdrop-filter: blur(12px); }
.toast.toast-exit { animation: toastOut 0.3s ease-in forwards; }
.toast-success { background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(15, 23, 42, 0.95)); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; }
.toast-error { background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(15, 23, 42, 0.95)); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }
.toast-info { background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(15, 23, 42, 0.95)); border: 1px solid rgba(129, 140, 248, 0.4); color: #c7d2fe; }
.toast-warning { background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.95)); border: 1px solid rgba(245, 158, 11, 0.4); color: #fde68a; }
.toast-icon { font-size: 18px; flex-shrink: 0; }
.toast-message { flex: 1; }
.toast-close { background: none; border: none; color: inherit; opacity: 0.6; cursor: pointer; font-size: 16px; padding: 0 2px; flex-shrink: 0; }
.toast-close:hover { opacity: 1; }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* PASSWORD FIELD */
.password-input-row { display: flex; gap: 0; position: relative; }
.password-input-row input { flex: 1; border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
.password-toggle { background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(55, 65, 81, 0.8); border-left: none; border-radius: 0 8px 8px 0; padding: 0 12px; cursor: pointer; color: var(--text-muted); font-size: 16px; display: flex; align-items: center; }
.password-toggle:hover { color: var(--accent-strong); }
.password-strength { margin-top: 6px; }
.password-strength-bar { height: 4px; border-radius: 2px; background: rgba(55, 65, 81, 0.5); overflow: hidden; }
.password-strength-fill { height: 100%; border-radius: 2px; transition: width 0.3s, background 0.3s; }
.password-strength-text { font-size: 11px; margin-top: 2px; display: block; }

/* TAB PANEL TRANSITIONS */
.tab-panel { display: none; animation: tabFadeIn 0.2s ease-out; }
.tab-panel.active { display: block; }
@keyframes tabFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* MOBILE CHAT SIDEBAR TOGGLE */
.mobile-sidebar-toggle { display: none; width: 100%; padding: 10px 14px; background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(17, 24, 39, 0.96)); border: 1px solid rgba(31, 41, 55, 0.9); border-radius: var(--radius-md); color: var(--text-muted); font-size: 13px; cursor: pointer; margin-bottom: 8px; text-align: left; }
.mobile-sidebar-toggle:hover { border-color: var(--accent); color: var(--text); }

/* LOADING SPINNER */
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after { content: ''; position: absolute; width: 16px; height: 16px; top: 50%; left: 50%; margin-top: -8px; margin-left: -8px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* INPUT VALIDATION */
.auth-modal input:user-invalid { border-color: rgba(239, 68, 68, 0.6); }
.auth-modal input:user-valid { border-color: rgba(34, 197, 94, 0.4); }

/* PLAN CONTACT MODAL */
.plan-contact-modal { max-width: 460px; }
.plan-contact-modal form { display: flex; flex-direction: column; gap: 14px; }
.plan-contact-modal label { font-size: 12px; color: var(--text-muted); display: block; margin-bottom: 4px; }
.plan-contact-modal input,
.plan-contact-modal textarea { width: 100%; background: rgba(15, 23, 42, 0.9); border: 1px solid rgba(55, 65, 81, 0.8); border-radius: 8px; padding: 10px 12px; color: var(--text); font-size: 14px; font-family: inherit; resize: vertical; }
.plan-contact-modal input:focus,
.plan-contact-modal textarea:focus { border-color: var(--accent); outline: none; }
.plan-contact-info { background: rgba(99, 102, 241, 0.08); border: 1px solid rgba(99, 102, 241, 0.25); border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.plan-contact-info .plan-contact-plan-name { font-size: 16px; font-weight: 700; color: var(--accent-strong); margin: 0 0 4px; }
.plan-contact-info .plan-contact-plan-price { font-size: 13px; color: var(--text-muted); margin: 0; }
.plan-contact-alt { text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.plan-contact-email-link { color: var(--accent-strong); text-decoration: none; }
.plan-contact-email-link:hover { text-decoration: underline; }
.plan-contact-success { text-align: center; padding: 24px 0; }
.plan-contact-success .success-icon { font-size: 48px; margin-bottom: 12px; }
.plan-contact-success h3 { color: var(--accent-strong); margin: 0 0 8px; }
.plan-contact-success p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .top-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero { grid-template-columns: 1fr; }
  .grid.two-columns { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); padding: 16px; }
  .chat-sidebar.mobile-open { display: flex; flex-direction: column; animation: sidebarSlideIn 0.2s ease-out; }
  @keyframes sidebarSlideIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
  .chat-sidebar.mobile-open .chat-sidebar-header::after { content: 'Kapat'; position: absolute; right: 16px; top: 16px; font-size: 12px; color: var(--text-muted); cursor: pointer; }
  .mobile-sidebar-toggle { display: block; }
  .card-header-row { flex-direction: column; align-items: flex-start; }
  .course-card, .challenge-card { flex-direction: column; align-items: flex-start; }
  .course-actions, .challenge-actions { align-items: flex-start; min-width: auto; }
  .admin-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .roi-dashboard { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tools-grid { grid-template-columns: 1fr; }
  .tab-nav { padding: 3px; gap: 2px; }
  .tab-button { padding: 6px 8px; font-size: 11px; }
}
