*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --heading: #1b145d;
  --body: rgba(71,67,104,0.8);
  --body-light: #6c697f;
  --blue: #3B82F6;
  --blue-dark: #2563EB;
  --blue-light: #dbeafe;
  --blue-bg: #eff6ff;
  --gray-700: #374151;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #e5e7eb;
  --gray-200: #f3f4f6;
  --gray-100: #f9fafb;
  --white: #fff;
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
}
body {
  font-family: 'Plus Jakarta Sans', -apple-system, system-ui, sans-serif;
  color: var(--body); font-size: 14px; line-height: 20px;
  background: var(--gray-100); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* Layout */
.app-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px; background: var(--heading); padding: 24px 16px;
  display: flex; flex-direction: column; gap: 4px; position: fixed;
  top: 0; left: 0; bottom: 0; z-index: 50;
}
.sidebar .logo { color: #fff; font-size: 20px; font-weight: 700; margin-bottom: 24px; letter-spacing: -0.5px; }
.sidebar .logo span { color: var(--blue); }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; color: rgba(255,255,255,0.6); font-size: 14px;
  font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.nav-item:hover { color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.06); }
.nav-item.active { background: rgba(255,255,255,0.12); color: #fff; }
.nav-item .icon { width: 20px; text-align: center; }
.sidebar-bottom { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); }
.usage-bar { margin-bottom: 12px; }
.usage-label { font-size: 11px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.usage-track { height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; }
.usage-fill { height: 100%; background: var(--blue); border-radius: 2px; width: 65%; }
.btn-upgrade {
  display: block; width: 100%; padding: 8px; text-align: center;
  background: var(--blue); color: #fff; border: none; border-radius: 6px;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.main-content { flex: 1; margin-left: 220px; padding: 24px 32px; }
.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.topbar h1 { font-size: 22px; font-weight: 700; color: var(--heading); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.user-pill { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--heading); font-weight: 500; }
.avatar-sm { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }

/* Cards & Buttons */
.btn { padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; border: none; transition: all 0.15s; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: var(--white); color: var(--gray-700); border: 1px solid var(--gray-300); }
.btn-secondary:hover { border-color: var(--gray-400); }
.card { background: var(--white); border: 1px solid var(--gray-300); border-radius: 12px; padding: 20px; }

/* Filters */
.filter-bar { display: flex; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.filter { padding: 8px 16px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 13px; font-weight: 500; background: #fff; color: var(--gray-700); cursor: pointer; font-family: inherit; }
.filter.active { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }

/* Status badges */
.status { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; display: inline-block; }
.status-progress { background: var(--blue-light); color: #1d4ed8; }
.status-review { background: #fef3c7; color: #92400e; }
.status-complete { background: #d1fae5; color: #065f46; }
.status-draft { background: var(--gray-200); color: #6b7280; }

/* Stars */
.stars { color: var(--amber); font-size: 13px; }

/* Tags */
.tag { padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 500; display: inline-block; }
.tag-premiere { background: #e0e7ff; color: #3730a3; }
.tag-ae { background: #fce7f3; color: #9d174d; }
.tag-davinci { background: #d1fae5; color: #065f46; }
.tag-capcut { background: #fef3c7; color: #92400e; }
.tag-figma { background: #ede9fe; color: #5b21b6; }
.tag-fcp { background: #f3f4f6; color: #374151; }

/* Editor cards grid */
.editors-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.editor-card { background: #fff; border: 1px solid var(--gray-300); border-radius: 12px; padding: 16px; transition: border-color 0.15s; }
.editor-card:hover { border-color: var(--blue); }
.editor-card .thumb { width: 100%; height: 120px; background: linear-gradient(135deg,#1a1a2e,#16213e); border-radius: 8px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
.play-icon { width: 32px; height: 32px; background: rgba(255,255,255,0.9); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.play-icon::after { content: ''; width: 0; height: 0; border-left: 12px solid var(--heading); border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.card-header { display: flex; gap: 10px; margin-bottom: 8px; }
.card-avatar { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.card-name { font-size: 15px; font-weight: 600; color: var(--heading); }
.card-loc { font-size: 12px; color: var(--body-light); }
.card-rate { font-size: 18px; font-weight: 700; color: var(--heading); margin-left: auto; }
.card-rate small { font-size: 12px; font-weight: 400; color: var(--body-light); }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 12px; }
.card-actions { display: flex; gap: 8px; }
.card-actions .btn { flex: 1; padding: 8px; font-size: 13px; text-align: center; }

/* Onboarding */
.onboarding { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: var(--gray-100); }
.ob-card { background: #fff; border-radius: 16px; padding: 48px; max-width: 600px; width: 100%; box-shadow: 0 4px 24px rgba(27,20,93,0.06); }
.ob-card .logo { text-align: center; margin-bottom: 32px; font-size: 24px; font-weight: 700; color: var(--heading); }
.ob-card .logo span { color: var(--blue); }
.ob-progress { display: flex; gap: 8px; margin-bottom: 32px; }
.ob-progress .step { flex: 1; height: 4px; background: var(--gray-200); border-radius: 2px; }
.ob-progress .step.active { background: var(--blue); }
.ob-progress .step.done { background: var(--green); }
.ob-card h2 { font-size: 24px; font-weight: 700; color: var(--heading); margin-bottom: 8px; text-align: center; }
.ob-card p.sub { font-size: 14px; color: var(--body-light); text-align: center; margin-bottom: 24px; }
.ob-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.ob-option {
  padding: 16px; border: 2px solid var(--gray-300); border-radius: 10px;
  cursor: pointer; text-align: center; font-size: 14px; font-weight: 500;
  color: var(--gray-700); transition: all 0.15s;
}
.ob-option:hover { border-color: var(--blue); color: var(--blue); }
.ob-option.selected { border-color: var(--blue); background: var(--blue-bg); color: var(--blue); }
.ob-option .ob-icon { font-size: 24px; margin-bottom: 6px; display: block; }
.ob-actions { display: flex; gap: 12px; justify-content: center; }
.ob-actions .btn { min-width: 140px; }

/* Celebration */
.celebration { text-align: center; padding: 40px 0; }
.celebration .confetti { font-size: 48px; margin-bottom: 16px; }
.celebration h2 { font-size: 28px; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.celebration p { font-size: 14px; color: var(--body); margin-bottom: 24px; }

/* Chat */
.chat-layout { display: flex; height: calc(100vh - 72px); }
.chat-sidebar { width: 280px; background: #fff; border-right: 1px solid var(--gray-300); overflow-y: auto; }
.chat-item { display: flex; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--gray-200); cursor: pointer; }
.chat-item:hover { background: var(--gray-100); }
.chat-item.active { background: var(--blue-bg); }
.chat-avatar { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 12px; flex-shrink: 0; }
.chat-preview h4 { font-size: 14px; font-weight: 600; color: var(--heading); margin-bottom: 2px; }
.chat-preview p { font-size: 12px; color: var(--body-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.chat-main { flex: 1; display: flex; flex-direction: column; }
.chat-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-300); background: #fff; display: flex; align-items: center; gap: 12px; }
.chat-header h3 { font-size: 16px; font-weight: 600; color: var(--heading); }
.chat-header .online { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chat-messages { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 70%; padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 20px; }
.msg.sent { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.received { background: #fff; border: 1px solid var(--gray-300); align-self: flex-start; border-bottom-left-radius: 4px; color: var(--gray-700); }
.msg-time { font-size: 11px; color: var(--body-light); margin-top: 4px; }
.chat-input { padding: 16px 20px; border-top: 1px solid var(--gray-300); background: #fff; display: flex; gap: 10px; }
.chat-input input { flex: 1; padding: 10px 16px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14px; font-family: inherit; outline: none; }
.chat-input input:focus { border-color: var(--blue); }
.chat-input button { padding: 10px 20px; }

/* Settings tabs */
.settings-tabs { display: flex; gap: 0; margin-bottom: 24px; border-bottom: 1px solid var(--gray-300); }
.settings-tab { padding: 12px 20px; font-size: 14px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; color: var(--body-light); background: none; border-top: none; border-left: none; border-right: none; font-family: inherit; }
.settings-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.settings-content { max-width: 600px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.form-group input, .form-group select { width: 100%; padding: 10px 14px; border: 1px solid var(--gray-300); border-radius: 8px; font-size: 14px; font-family: inherit; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--blue); }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 16px; }
  .editors-grid { grid-template-columns: 1fr; }
  .ob-options { grid-template-columns: 1fr; }
  .chat-sidebar { width: 100%; }
  .chat-main { display: none; }
}
