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

body { font-family: 'Segoe UI', system-ui, sans-serif; background: #f5f5f7; color: #1a1a1a; }

.hidden { display: none !important; }

/* Auth overlay */
.auth-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(30, 27, 58, 0.55);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-card {
  background: white; border-radius: 20px; padding: 36px 40px; max-width: 420px; width: 100%;
  box-shadow: 0 24px 80px rgba(30, 27, 58, 0.2);
}
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.auth-logo .logo-icon { width: 36px; height: 36px; border-radius: 10px; background: #6c63ff; }
.auth-logo .logo-text { font-size: 20px; font-weight: 600; color: #1e1b3a; }
.auth-title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.auth-desc { font-size: 14px; color: #555; line-height: 1.5; margin-bottom: 24px; }
.auth-label { display: block; font-size: 12px; font-weight: 600; color: #666; margin-bottom: 6px; }
.auth-input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid #ddd;
  font-size: 15px; margin-bottom: 16px;
}
.auth-input:focus { outline: none; border-color: #6c63ff; box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15); }
.auth-submit { width: 100%; justify-content: center; padding: 12px; font-size: 15px; }

.app { display: flex; width: 100%; height: 100vh; }

.sidebar { width: 220px; background: #1e1b3a; color: white; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }

.logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 24px; }
.logo-icon { width: 32px; height: 32px; border-radius: 10px; background: #6c63ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-text { font-size: 18px; font-weight: 600; color: white; letter-spacing: -0.5px; }
.logo-it { color: #a89fff; }

.nav-section { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.3); letter-spacing: 0.08em; padding: 12px 10px 6px; text-transform: uppercase; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13px; color: rgba(255,255,255,0.55); text-decoration: none; transition: background 0.15s; border: none; background: none; width: 100%; text-align: left; font-family: inherit; }
.nav-item.active { background: rgba(108,99,255,0.25); color: #a89fff; }
.nav-item:hover:not(.active) { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.8); }
.nav-item-btn { margin-top: 4px; }

.sidebar-bottom { margin-top: auto; border-top: 0.5px solid rgba(255,255,255,0.1); padding-top: 12px; }

.quota-pill {
  font-size: 11px; padding: 8px 10px; border-radius: 10px;
  background: rgba(108, 99, 255, 0.2); color: #d4ceff; margin-bottom: 10px;
  border: 1px solid rgba(168, 159, 255, 0.35);
}
.quota-label { display: block; font-weight: 600; color: #a89fff; margin-bottom: 2px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }
.quota-value { font-weight: 600; }

.user-email { font-size: 11px; color: rgba(255,255,255,0.45); padding: 0 10px 8px; word-break: break-all; }

/* ── Sidebar team section ── */
#sidebar-team { margin-bottom: 8px; }

.st-locked {
  padding: 10px; border-radius: 10px;
  border: 1px dashed rgba(255,255,255,0.12);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.st-locked:hover { border-color: rgba(108,99,255,0.5); background: rgba(108,99,255,0.06); }
.st-locked-row { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.st-locked-label { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.35); }
.st-locked-desc { font-size: 10px; color: rgba(255,255,255,0.22); line-height: 1.4; }

.st-owner {
  padding: 10px; border-radius: 10px;
  background: rgba(108,99,255,0.18); border: 1px solid rgba(108,99,255,0.35);
  cursor: pointer; transition: background 0.15s;
}
.st-owner:hover { background: rgba(108,99,255,0.26); }
.st-owner-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
.st-owner-label { font-size: 11px; font-weight: 700; color: #c5beff; display: flex; align-items: center; gap: 6px; }
.st-owner-badge { font-size: 10px; font-weight: 600; background: rgba(108,99,255,0.4); color: #d4ceff; padding: 1px 6px; border-radius: 20px; }
.st-owner-hint { font-size: 10px; color: rgba(197,190,255,0.6); }

.st-member {
  padding: 10px; border-radius: 10px;
  background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.28);
}
.st-member-label { font-size: 11px; font-weight: 600; color: rgba(130,220,160,0.9); display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.st-member-owner { font-size: 10px; color: rgba(130,220,160,0.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.st-invite {
  padding: 10px; border-radius: 10px;
  background: rgba(230,126,34,0.14); border: 1px solid rgba(230,126,34,0.35);
}
.st-invite-from { font-size: 10px; color: rgba(255,180,100,0.7); margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-invite-msg { font-size: 11px; font-weight: 600; color: rgba(255,200,140,0.95); margin-bottom: 8px; line-height: 1.35; }
.st-invite-actions { display: flex; gap: 6px; }
.st-btn-accept { flex: 1; padding: 5px 8px; border: none; border-radius: 7px; font-size: 11px; font-weight: 600; background: #27ae60; color: #fff; cursor: pointer; transition: background 0.15s; }
.st-btn-accept:hover { background: #219a52; }
.st-btn-decline { flex: 1; padding: 5px 8px; border: 1px solid rgba(255,255,255,0.15); border-radius: 7px; font-size: 11px; font-weight: 600; background: transparent; color: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.15s; }
.st-btn-decline:hover { background: rgba(255,255,255,0.07); }

.main { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

.view { display: none; flex: 1; flex-direction: column; overflow: hidden; }
#view-settings { overflow-y: auto; }
.view.active { display: flex; }

.content { flex: 1; overflow-y: auto; padding: 32px; display: flex; flex-direction: column; gap: 24px; }

.top-bar { display: flex; align-items: center; justify-content: space-between; }
.page-title { font-size: 16px; font-weight: 600; color: #1a1a1a; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 8px; border: 0.5px solid #ddd; font-size: 13px; cursor: pointer; background: white; color: #1a1a1a; transition: background 0.15s; }
.btn:hover { background: #f5f5f7; }
.btn-primary { background: #6c63ff; color: white; border-color: #6c63ff; font-weight: 500; }
.btn-primary:hover { background: #5a52e0; }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-outline { background: white; border: 1px solid #6c63ff; color: #6c63ff; }
.btn-outline:hover { background: #f5f4ff; }
.btn-outline:disabled { opacity: 0.55; cursor: not-allowed; }

.upload-card { background: white; border: 2px dashed #d8d8e0; border-radius: 16px; padding: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s; }
.upload-card:hover { border-color: #6c63ff; background: #fafaff; box-shadow: 0 8px 32px rgba(108, 99, 255, 0.08); }
.upload-card.drag-over { border-color: #6c63ff; background: #f0eeff; border-style: solid; }
.upload-icon { width: 56px; height: 56px; border-radius: 50%; background: #f0eeff; display: flex; align-items: center; justify-content: center; }
.upload-card h2 { font-size: 15px; font-weight: 600; }
.upload-hint { font-size: 13px; color: #767676; }
.formats { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.badge { font-size: 11px; padding: 3px 9px; border-radius: 20px; background: #f0eeff; color: #534AB7; font-weight: 500; }
.upload-limit { font-size: 12px; color: #6c63ff; margin-top: 8px; font-weight: 500; background: #f0eeff; padding: 3px 10px; border-radius: 20px; }

/* ── URL transcription ── */
.url-transcribe-section { margin: 16px 0 4px; }
.url-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #bbb; font-size: 12px; }
.url-divider::before, .url-divider::after { content: ''; flex: 1; height: 1px; background: #ebebeb; }
.url-input-row { display: flex; align-items: center; gap: 8px; background: white; border: 1.5px solid #e5e5e5; border-radius: 12px; padding: 8px 8px 8px 14px; transition: border-color 0.15s, box-shadow 0.15s; }
.url-input-row:focus-within { border-color: #6c63ff; box-shadow: 0 0 0 3px rgba(108,99,255,0.1); }
.url-input { flex: 1; border: none; outline: none; font-size: 13px; color: #1a1a1a; background: transparent; min-width: 0; }
.url-input::placeholder { color: #bbb; }
.url-btn { white-space: nowrap; flex-shrink: 0; font-size: 13px; padding: 7px 16px; border-radius: 8px; }
.url-hint { font-size: 11px; color: #767676; margin-top: 7px; text-align: center; }

.progress-area { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px; }
.spinner { width: 40px; height: 40px; border: 3px solid #eee; border-top-color: #6c63ff; border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.section-title { font-size: 13px; font-weight: 500; color: #888; margin-bottom: 8px; }

.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-item { background: white; border: 0.5px solid #eee; border-radius: 12px; padding: 14px 18px; display: flex; align-items: center; gap: 14px; cursor: pointer; transition: border-color 0.15s; }
.file-item:hover { border-color: #6c63ff; }
.file-thumb { width: 38px; height: 38px; border-radius: 10px; background: #f0eeff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12px; color: #888; margin-top: 2px; }
.status-done { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #0F6E56; background: #E1F5EE; padding: 3px 10px; border-radius: 20px; flex-shrink: 0; }

/* Pricing */
.pricing { margin-top: 16px; padding-top: 32px; border-top: 1px solid #e8e8ed; }
.pricing-heading { font-size: 18px; font-weight: 700; color: #1e1b3a; margin-bottom: 6px; }
.pricing-lead { margin-bottom: 16px; font-size: 13px; color: #888; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
  align-items: stretch;
}
.price-card {
  background: white; border: 1px solid #e8e8ed; border-radius: 16px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.price-card-featured {
  border-color: #6c63ff; box-shadow: 0 12px 40px rgba(108, 99, 255, 0.12);
}
.price-badge {
  position: absolute; top: -10px; right: 16px;
  background: linear-gradient(135deg, #6c63ff, #534ab7); color: white;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 10px; border-radius: 20px;
}
.price-name { font-size: 14px; font-weight: 700; color: #1e1b3a; }
.price-tag { font-size: 26px; font-weight: 800; color: #1a1a1a; letter-spacing: -0.5px; }
.price-period { font-size: 14px; font-weight: 600; color: #666; }
.price-alt { font-size: 13px; color: #555; }
.price-saving { color: #0F6E56; font-weight: 600; }
.save-pill {
  display: inline-block; font-size: 10px; font-weight: 700; color: #0F6E56;
  background: #E1F5EE; padding: 2px 8px; border-radius: 20px; margin-left: 4px; vertical-align: middle;
}
.price-note { font-size: 12px; color: #666; line-height: 1.45; }
.price-features { list-style: none; font-size: 12px; color: #444; line-height: 1.6; margin: 4px 0 12px; flex: 1; }
.price-features li { padding-left: 16px; position: relative; }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: #6c63ff; font-weight: 700; font-size: 11px; }

/* Transcript view */
#view-transcript { background: #eef0f4; }

.transcript-brand-strip {
  flex-shrink: 0;
  background: linear-gradient(135deg, #1e1b3a 0%, #2d2852 50%, #3d3470 100%);
  border-bottom: 4px solid #6c63ff;
  padding: 0 24px;
  min-height: 56px;
  display: flex; align-items: center;
}
.transcript-brand-inner {
  display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%;
}
.transcript-strip-icon {
  color: #a89fff; flex-shrink: 0; display: flex; align-items: center;
}
.transcript-strip-title {
  font-size: 15px; font-weight: 600; color: white;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.02em;
}

.transcript-toolbar-card {
  flex-shrink: 0;
  margin: 16px 24px 0;
  padding: 12px 16px;
  background: white;
  border-radius: 14px;
  border: 1px solid #e4e6eb;
  box-shadow: 0 4px 24px rgba(30, 27, 58, 0.06);
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
}

.back-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 10px;
  border: 1px solid #e0e2e8;
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  background: #f8f9fb;
  color: #1e1b3a;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.back-btn:hover {
  background: white;
  border-color: #6c63ff;
  box-shadow: 0 2px 12px rgba(108, 99, 255, 0.12);
}
.back-btn-icon { display: flex; align-items: center; color: #6c63ff; }
.back-btn-text { color: #333; }

.transcript-toolbar-divider { width: 1px; height: 28px; background: #e8e8ed; }

.ts-section {
  display: flex; flex-direction: column; gap: 4px;
}
.ts-section-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: #888;
}

.ts-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  border: 1px solid #e0e2e8;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  background: #f8f9fb;
  color: #333;
  transition: background 0.15s, border-color 0.15s;
}
.ts-btn:hover { background: #f0eeff; border-color: #c4b8ff; }
.ts-btn.active { background: #fff8f0; border-color: #e8a045; color: #8a5a00; }

.transcript-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.btn-transcript { border-color: #e0e2e8; background: white; }
.btn-transcript:hover { background: #fafaff; border-color: #6c63ff; }
.btn-transcript-primary { background: #6c63ff; color: white; border-color: #6c63ff; }
.btn-transcript-primary:hover { background: #5a52e0; }

.transcript-view {
  flex: 1; overflow-y: auto;
  margin: 16px 24px 24px;
  padding: 28px 32px 40px;
  background: white;
  border-radius: 14px;
  border: 1px solid #e8e8ed;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  display: flex; flex-direction: column;
}

.speaker-block { display: flex; gap: 14px; padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.speaker-block:last-child { border-bottom: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; flex-shrink: 0; margin-top: 2px; }
.av-0 { background: #EEEDFE; color: #3C3489; }
.av-1 { background: #E1F5EE; color: #085041; }
.av-2 { background: #FAECE7; color: #712B13; }
.av-3 { background: #E6F1FB; color: #0C447C; }
.av-4 { background: #FBEAF0; color: #72243E; }
.speaker-name { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.speaker-time { font-size: 11px; color: #6c63ff; background: #f0eeff; padding: 2px 8px; border-radius: 20px; margin-left: 8px; font-weight: 500; }
.speaker-text { font-size: 14px; line-height: 1.8; color: #444; margin-top: 6px; }

.seg-block { padding: 20px 0; border-bottom: 1px solid #f0f0f0; }
.seg-block:last-child { border-bottom: none; }
.seg-time { display: inline-block; font-size: 11px; color: #6c63ff; background: #f0eeff; padding: 2px 8px; border-radius: 20px; margin-bottom: 8px; font-weight: 500; }
.seg-text { font-size: 14px; line-height: 1.8; color: #444; }

/* ─── AI TOOLS PANEL ────────────────────────────────────────────────────────── */
.ai-panel {
  flex-shrink: 0;
  margin: 0 24px 16px;
  border-radius: 14px;
  border: 1px solid #e4e6eb;
  background: white;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  overflow: hidden;
}
.ai-panel-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
}
.ai-panel-label {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #6c63ff; flex-shrink: 0;
}
.ai-panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-lang-picker {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding: 8px 16px 12px;
  border-top: 1px solid #f0f0f4;
}
.ai-lang-picker select {
  padding: 6px 10px; border-radius: 8px; border: 1px solid #e0e2e8;
  font-size: 13px; background: #f8f9fb; color: #1e1b3a; cursor: pointer;
}
.ai-result {
  padding: 16px 20px; border-top: 1px solid #f0f0f4;
  font-size: 14px; line-height: 1.75; color: #333;
  max-height: 280px; overflow-y: auto;
}
.ai-panel.ai-panel-expanded {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
}
.ai-panel.ai-panel-expanded .ai-result {
  flex: 1; max-height: none; padding: 0;
  display: flex; flex-direction: column; overflow: hidden;
}
.ai-panel.ai-panel-expanded .ai-tab-bar {
  flex-shrink: 0; padding: 0 20px; margin-bottom: 0;
}
.ai-panel.ai-panel-expanded .ai-tab-pane {
  flex: 1; overflow-y: auto; padding: 0 20px 20px;
}
.ai-pinned-result {
  position: relative; flex-shrink: 0;
  padding: 14px 40px 14px 20px;
  border-bottom: 2px solid #ebebf4;
  background: #f8f8fc;
  font-size: 14px; line-height: 1.75; color: #333;
  max-height: 200px; overflow-y: auto;
}
.ai-pinned-close {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; border: none; background: none;
  cursor: pointer; font-size: 18px; color: #bbb; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; transition: background 0.12s, color 0.12s;
}
.ai-pinned-close:hover { background: #ededf5; color: #555; }
.ai-summary-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.ai-summary-list li {
  display: flex; gap: 10px; align-items: flex-start;
  line-height: 1.55;
}
.ai-summary-list li::before {
  content: ''; flex-shrink: 0; width: 6px; height: 6px;
  border-radius: 50%; background: #6c63ff; margin-top: 7px;
}
.ai-result-label {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.07em; color: #aaa; margin-bottom: 10px;
}
.ai-tab-bar { display: flex; border-bottom: 1px solid #e8e8f0; margin-bottom: 12px; }
.ai-tab { padding: 6px 16px 8px; font-size: 13px; font-weight: 500; border: none; background: none; cursor: pointer; color: #999; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; }
.ai-tab.active { color: #6c63ff; border-bottom-color: #6c63ff; }
.ai-tab:hover:not(.active) { color: #555; }
.ai-chapters-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ai-chapter-item {
  display: flex; gap: 10px; align-items: baseline;
  cursor: pointer; padding: 5px 8px; border-radius: 8px;
  transition: background 0.12s;
}
.ai-chapter-item:hover { background: #f5f4ff; }
.ai-chapter-time { font-size: 11px; font-weight: 600; color: #6c63ff; min-width: 44px; font-variant-numeric: tabular-nums; }
.ai-chapter-title { font-size: 14px; color: #333; }

@media (max-width: 720px) {
  .transcript-toolbar-card { margin: 12px 16px 0; }
  .transcript-view { margin: 12px 16px 16px; padding: 20px; }
  .transcript-actions { margin-left: 0; width: 100%; }
  .transcript-toolbar-divider { display: none; }
  .ai-panel { margin: 0 16px 12px; }
}

.file-item-loading { opacity: 0.7; cursor: not-allowed; pointer-events: none; }
.spinner-small { width: 20px; height: 20px; border: 2px solid #eee; border-top-color: #6c63ff; border-radius: 50%; animation: spin 0.8s linear infinite; flex-shrink: 0; }
.billing-toggle { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.billing-btn { padding: 8px 20px; border-radius: 8px; border: 0.5px solid #ddd; font-size: 13px; cursor: pointer; background: white; color: #888; transition: all 0.15s; display: flex; align-items: center; gap: 6px; }
.billing-btn.active { background: #1e1b3a; color: white; border-color: #1e1b3a; }
.settings-wrap { max-width: 680px; margin: 0 auto; padding: 32px 32px 48px; }
.settings-title { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 20px; }
.settings-tabs { display: flex; gap: 0; border-bottom: 1.5px solid #e5e5e5; margin-bottom: 28px; }
.stab { padding: 10px 18px; font-size: 13px; font-weight: 500; color: #888; cursor: pointer; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1.5px; transition: all 0.15s; }
.stab.active { color: #6c63ff; border-bottom-color: #6c63ff; }
.stab:hover:not(.active) { color: #444; }
.stab-content { display: none; flex-direction: column; gap: 20px; }
.stab-content.active { display: flex; }
.settings-card { background: white; border: 0.5px solid #eee; border-radius: 12px; overflow: hidden; }
.scard-header { padding: 16px 20px; border-bottom: 0.5px solid #f0f0f0; display: flex; align-items: center; justify-content: space-between; }
.scard-title { font-size: 13px; font-weight: 600; color: #1a1a1a; }
.scard-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.avatar-row { display: flex; align-items: center; gap: 16px; }
.avatar-circle { width: 52px; height: 52px; border-radius: 50%; background: #EEEDFE; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600; color: #3C3489; flex-shrink: 0; }
.avatar-info { flex: 1; }
.avatar-name { font-size: 14px; font-weight: 500; color: #1a1a1a; }
.avatar-sub { font-size: 12px; color: #767676; margin-top: 2px; }
.field-row { display: flex; flex-direction: column; gap: 5px; }
.field-label { font-size: 12px; font-weight: 500; color: #888; }
.field-input { height: 36px; border: 0.5px solid #ddd; border-radius: 8px; padding: 0 12px; font-size: 13px; color: #1a1a1a; background: #fafafa; width: 100%; }
.field-input:focus { outline: none; border-color: #6c63ff; background: white; }
.field-hint { font-size: 11px; color: #767676; }
.btn-save { background: #6c63ff; color: white; border: none; padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-save:hover { background: #5a52e0; }
.plan-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 0.5px solid #f5f5f5; }
.plan-row:last-child { border-bottom: none; padding-bottom: 0; }
.plan-label { font-size: 13px; color: #888; }
.plan-value { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.plan-badge { font-size: 11px; background: #EEEDFE; color: #534AB7; padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.danger-zone { border: 0.5px solid #fde8e8; border-radius: 12px; padding: 18px 20px; background: #fffafa; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ── Contact page ── */
#view-contact { flex-direction: row !important; overflow: hidden; }

.contact-page { display: contents; }

.contact-panel-left {
  width: 300px; flex-shrink: 0;
  background: linear-gradient(160deg, #1e1b3a 0%, #2e266a 55%, #3d1f8a 100%);
  display: flex; align-items: center; padding: 44px 32px;
  position: relative; overflow: hidden;
}
.contact-panel-left::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 80% 15%, rgba(108,99,255,0.4) 0%, transparent 55%),
              radial-gradient(circle at 15% 85%, rgba(168,159,255,0.18) 0%, transparent 45%);
}
.contact-panel-inner { position: relative; z-index: 1; width: 100%; }
.contact-logo-mark {
  width: 40px; height: 40px; background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 11px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.contact-hero-title { font-size: 20px; font-weight: 800; color: #fff; line-height: 1.3; margin-bottom: 10px; }
.contact-hero-sub { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 32px; }

.contact-info-list { display: flex; flex-direction: column; gap: 18px; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-info-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; margin-top: 1px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.65);
}
.contact-info-label { font-size: 10px; color: rgba(255,255,255,0.4); font-weight: 600; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-info-value { font-size: 12px; color: rgba(255,255,255,0.88); font-weight: 600; }

.contact-panel-right {
  flex: 1; overflow-y: auto; background: #f5f5f7;
  display: flex; align-items: center; justify-content: center; padding: 32px 40px;
}
.contact-form-card {
  width: 100%; max-width: 640px; background: #fff;
  border-radius: 18px; border: 1px solid #e8e8ed;
  padding: 32px 32px 28px; box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.contact-form-title { font-size: 16px; font-weight: 700; color: #1a1a1a; margin-bottom: 18px; }

.contact-topic-label { font-size: 10px; font-weight: 700; color: #bbb; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 8px; }
.contact-topic-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px; }
.contact-topic-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px;
  border-radius: 7px; border: 1.5px solid #e5e5e5; background: #fff;
  font-size: 12px; font-weight: 500; color: #666; cursor: pointer; transition: all 0.13s;
}
.contact-topic-btn:hover { border-color: #6c63ff; color: #6c63ff; background: #f5f4ff; }
.contact-topic-btn.active { border-color: #6c63ff; background: #ede9ff; color: #5046c8; font-weight: 600; }

.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.contact-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.contact-label { font-size: 11px; font-weight: 600; color: #555; }
.contact-input {
  border: 1.5px solid #e5e5e5; border-radius: 9px; padding: 9px 12px;
  font-size: 13px; color: #1a1a1a; background: #fff; outline: none;
  font-family: inherit; width: 100%; box-sizing: border-box;
  transition: border-color 0.13s, box-shadow 0.13s;
}
.contact-input:focus { border-color: #6c63ff; box-shadow: 0 0 0 3px rgba(108,99,255,0.09); }
.contact-input::placeholder { color: #ccc; }
.contact-textarea { min-height: 110px; resize: vertical; }
.contact-submit {
  margin-top: 18px; width: 100%; padding: 11px;
  display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px;
}

/* ── Team management ── */
.team-pool-track { height: 8px; background: #f0f0f0; border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.team-pool-fill { height: 100%; background: linear-gradient(90deg, #6c63ff, #8b83ff); border-radius: 99px; transition: width 0.4s; }
.team-pool-labels { display: flex; justify-content: space-between; font-size: 11px; color: #888; }
.team-members-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.team-member-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 0.5px solid #f5f5f5; }
.team-member-row:last-child { border-bottom: none; }
.team-member-avatar { width: 32px; height: 32px; border-radius: 50%; background: #ede9ff; color: #6c63ff; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.team-member-info { flex: 1; min-width: 0; }
.team-member-email { font-size: 13px; font-weight: 500; color: #1a1a1a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-member-meta { font-size: 11px; color: #aaa; margin-top: 1px; }
.team-member-usage { font-size: 12px; color: #555; font-weight: 500; white-space: nowrap; margin-right: 4px; }
.team-btn-remove { width: 32px; height: 32px; border: none; background: none; color: #bbb; cursor: pointer; border-radius: 6px; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; flex-shrink: 0; }
.team-btn-remove:hover { background: #fde8e8; color: #e74c3c; }
.team-invite-wrap { margin-top: 4px; }
.team-invite-form { display: flex; gap: 8px; align-items: center; }
.team-invite-form .field-input { margin-bottom: 0; }
.team-slots-badge { font-size: 11px; font-weight: 600; color: #6c63ff; background: #ede9ff; padding: 2px 8px; border-radius: 20px; }
.team-slots-full { font-size: 12px; color: #888; }
.danger-text { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.danger-sub { font-size: 12px; color: #aaa; margin-top: 3px; }
.btn-danger { background: white; color: #E24B4A; border: 0.5px solid #E24B4A; padding: 8px 18px; border-radius: 8px; font-size: 13px; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.btn-danger:hover { background: #fff5f5; }
.progress-bar-wrap { height: 3px; background: #eee; border-radius: 2px; margin-top: 6px; }
.progress-bar { height: 100%; border-radius: 2px; background: #6c63ff; transition: width 0.3s; }

/* Extra minutes packs */
.extra-pack-card { background: white; border: 1.5px solid #e8e8ed; border-radius: 14px; padding: 20px 16px; text-align: center; position: relative; transition: border-color 0.15s, box-shadow 0.15s; }
.extra-pack-card:hover { border-color: #6c63ff; box-shadow: 0 4px 20px rgba(108,99,255,0.1); }
.extra-pack-card.extra-pack-featured { border-color: #6c63ff; box-shadow: 0 4px 20px rgba(108,99,255,0.12); }
.extra-pack-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg,#6c63ff,#534ab7); color: #fff; font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.extra-pack-minutes { font-size: 24px; font-weight: 800; color: #1e1b3a; margin-bottom: 4px; letter-spacing: -0.5px; }
.extra-pack-price { font-size: 18px; font-weight: 700; color: #6c63ff; }
.extra-pack-unit { font-size: 11px; color: #767676; margin-top: 2px; }

/* ─── MODAL ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(30, 27, 58, 0.6);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-card {
  background: white; border-radius: 20px; padding: 32px 36px;
  max-width: 400px; width: 100%;
  box-shadow: 0 24px 80px rgba(30, 27, 58, 0.25);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
}
.modal-icon { font-size: 36px; line-height: 1; }
.modal-title { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.modal-message { font-size: 14px; color: #555; line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; justify-content: center; }
.modal-actions .btn { min-width: 100px; justify-content: center; }
.btn-danger-modal { background: white; color: #E24B4A; border: 1px solid #E24B4A; }
.btn-danger-modal:hover { background: #fff5f5; }

/* ─── MISC ───────────────────────────────────────────────────────────────── */
.btn-delete-file { background: none; border: none; cursor: pointer; color: #bbb; padding: 4px; border-radius: 6px; display: flex; align-items: center; }
.btn-delete-file:hover { color: #E24B4A; background: #fff0f0; }
.btn-restore { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #6c63ff; background: #f0eeff; border: none; padding: 5px 10px; border-radius: 20px; cursor: pointer; white-space: nowrap; }
.btn-restore:hover { background: #e4dcff; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #aaa; font-size: 13px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: #eee; }
.auth-switch { font-size: 13px; color: #888; text-align: center; margin-top: 16px; }
.auth-switch a { color: #6c63ff; text-decoration: none; font-weight: 500; }
.auth-input-code { text-align: center; letter-spacing: 8px; font-size: 20px; font-weight: 700; }
.google-btn-wrap { display: flex; justify-content: center; margin-bottom: 4px; }
.pro-multiplier { font-size: 12px; color: #6c63ff; background: #f0eeff; padding: 4px 10px; border-radius: 20px; text-align: center; font-weight: 600; }
.price-card-business { border-style: dashed; }
.price-badge-business { position: absolute; top: -10px; right: 16px; background: #1e1b3a; color: white; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 20px; }
.business-tagline { font-size: 16px; font-weight: 700; color: #1e1b3a; }
.password-wrap { position: relative; }
.password-wrap .auth-input { padding-right: 40px; }
.btn-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: #aaa; padding: 8px; display: flex; align-items: center; font-size: 16px; }
.btn-eye:hover { color: #6c63ff; }

/* Piano attuale button */
.btn-current-plan { background: #f0eeff; color: #6c63ff; border-color: #6c63ff; font-weight: 600; cursor: default; }
.btn-current-plan:hover { background: #f0eeff; }

/* Downgrade schedulato */
.btn-downgrade-pending { background: #fff8e6; color: #8a6000; border-color: #f0c040; font-size: 12px; cursor: default; }
.btn-downgrade-pending:hover { background: #fff8e6; }

/* ─── CAROUSEL ────────────────────────────────────────────────────────────── */
.carousel-quota-badge { font-size: 12px; color: #888; background: #f4f4f8; border-radius: 20px; padding: 4px 12px; font-weight: 500; }
.carousel-layout { display: flex; gap: 24px; align-items: flex-start; }
.carousel-sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 14px; }
.carousel-section-card { background: #fff; border: 1px solid #ececf1; border-radius: 12px; padding: 16px; }
.carousel-section-title { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #1e1b3a; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.carousel-upload-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed #d0ceea; border-radius: 10px; padding: 20px 12px; cursor: pointer; transition: border-color 0.15s, background 0.15s; text-align: center; }
.carousel-upload-zone:hover { border-color: #6c63ff; background: #f7f5ff; }
.carousel-upload-text { font-size: 13px; font-weight: 600; color: #1e1b3a; }
.carousel-upload-hint { font-size: 11px; color: #aaa; }
.carousel-thumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.carousel-thumbs.hidden { display: none; }
.carousel-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; border: 2px solid #ececf1; }
.carousel-field-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 8px; }
.carousel-field-row:last-child { margin-bottom: 0; }
.carousel-field-label { font-size: 12px; color: #666; flex-shrink: 0; }
.carousel-color-input { width: 44px; height: 28px; border: 1px solid #ddd; border-radius: 6px; cursor: pointer; padding: 1px 2px; background: none; }
.carousel-select { font-size: 12px; color: #1e1b3a; border: 1px solid #ddd; border-radius: 6px; padding: 4px 8px; flex: 1; min-width: 0; background: #fff; }
.carousel-logo-btn { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #6c63ff; background: #f0eeff; border: none; border-radius: 6px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.carousel-logo-btn:hover { background: #e4dcff; }
.carousel-logo-remove { background: none; border: none; color: #aaa; cursor: pointer; font-size: 14px; padding: 0 4px; }
.carousel-logo-remove:hover { color: #e74c3c; }
.carousel-progress { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #888; padding: 8px 0; }
.carousel-progress.hidden { display: none; }
.carousel-preview-area { flex: 1; min-width: 0; }
.carousel-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 60px 20px; text-align: center; color: #888; font-size: 14px; background: #fafafa; border: 1px solid #ececf1; border-radius: 12px; }
.carousel-slides-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.carousel-slides-preview.hidden { display: none; }
.carousel-slide-wrap { position: relative; }
.carousel-slide-canvas { width: 100%; aspect-ratio: 1/1; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; padding: 14px 14px 32px 18px; box-sizing: border-box; position: relative; gap: 6px; }
.carousel-slide-num { position: absolute; top: 10px; right: 12px; font-size: 10px; opacity: .45; font-weight: 700; letter-spacing: 0.03em; }
.carousel-slide-logo { position: absolute; bottom: 10px; right: 12px; max-height: 22px; max-width: 64px; object-fit: contain; }
.carousel-slide-title { font-size: 13px; font-weight: 800; line-height: 1.25; margin-top: 14px; }
.carousel-slide-body { font-size: 10.5px; line-height: 1.6; white-space: pre-wrap; }
.carousel-slide-caption { position: absolute; bottom: 10px; left: 18px; font-size: 9px; opacity: .7; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.carousel-actions { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.carousel-actions.hidden { display: none; }
@media (max-width: 768px) {
  .carousel-layout { flex-direction: column; }
  .carousel-sidebar { width: 100%; }
}

/* ─── LANDING PAGE ──────────────────────────────────────────────────────────── */
.lp-container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

/* Nav */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.lp-nav-inner { display: flex; align-items: center; height: 64px; gap: 16px; }
.lp-nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #1e1b3a; font-size: 19px; font-weight: 700; flex-shrink: 0;
}
.lp-logo-mark {
  width: 32px; height: 32px; border-radius: 9px; background: #6c63ff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lp-nav-logo em { color: #6c63ff; font-style: normal; }
.lp-nav-links { display: flex; gap: 28px; margin-left: auto; }
.lp-nav-links a { text-decoration: none; color: #555; font-size: 14px; font-weight: 500; transition: color 0.15s; }
.lp-nav-links a:hover { color: #6c63ff; }
.lp-nav-auth { display: flex; align-items: center; gap: 10px; }
.lp-btn-signin {
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: #555; font-weight: 500; padding: 7px 12px; border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}
.lp-btn-signin:hover { color: #6c63ff; background: #f5f4ff; }

/* Hero */
.lp-hero {
  background: linear-gradient(140deg, #1e1b3a 0%, #2c2757 45%, #1b2044 100%);
  color: white; text-align: center; padding: 96px 0 88px;
}
.lp-hero-badge {
  display: inline-block;
  background: rgba(168,159,255,0.18); border: 1px solid rgba(168,159,255,0.3);
  border-radius: 20px; padding: 5px 16px; font-size: 12px; color: #c4beff;
  letter-spacing: 0.4px; margin-bottom: 28px;
}
.lp-hero h1 {
  font-size: 54px; font-weight: 800; line-height: 1.13;
  letter-spacing: -0.5px; margin-bottom: 22px;
}
.lp-hero-sub {
  font-size: 18px; color: rgba(255,255,255,0.75); line-height: 1.65;
  max-width: 580px; margin: 0 auto 40px;
}
.lp-hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 36px; }
.lp-cta-main {
  padding: 15px 36px !important; font-size: 16px !important; font-weight: 700 !important;
  border-radius: 12px !important; box-shadow: 0 4px 20px rgba(108,99,255,0.4);
}
.lp-link-signin {
  background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.65);
  font-size: 14px; text-decoration: underline; transition: color 0.15s;
}
.lp-link-signin:hover { color: white; }
.lp-hero-trust { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; font-size: 13px; color: rgba(255,255,255,0.55); }

/* Platforms */
.lp-platforms { background: white; padding: 44px 0; border-bottom: 1px solid #f0f0f6; }
.lp-platforms-label { text-align: center; font-size: 12px; font-weight: 600; color: #aaa; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 22px; }
.lp-plat-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lp-plat { padding: 6px 16px; border: 1.5px solid #e4e4ee; border-radius: 20px; font-size: 13px; font-weight: 500; color: #666; background: white; }

/* Sections */
.lp-section { padding: 88px 0; }
.lp-bg-gray { background: #f8f9fc; }
.lp-bg-white { background: white; }
.lp-section h2 { font-size: 38px; font-weight: 800; color: #1e1b3a; text-align: center; letter-spacing: -0.3px; margin-bottom: 12px; }
.lp-section-sub { text-align: center; font-size: 17px; color: #888; max-width: 520px; margin: 0 auto 56px; line-height: 1.6; }

/* Features */
.lp-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-feat {
  background: white; border: 1px solid #eaeaf4; border-radius: 16px;
  padding: 28px 24px; transition: box-shadow 0.2s, transform 0.2s;
}
.lp-feat:hover { box-shadow: 0 8px 32px rgba(108,99,255,0.08); transform: translateY(-2px); }
.lp-feat-icon { width: 48px; height: 48px; margin-bottom: 16px; flex-shrink: 0; }
.lp-feat-icon svg { display: block; }
.lp-feat h3 { font-size: 15px; font-weight: 700; color: #1e1b3a; margin-bottom: 8px; }
.lp-feat p { font-size: 14px; color: #888; line-height: 1.65; }

/* How it works */
.lp-steps { display: flex; align-items: flex-start; gap: 12px; margin-top: 56px; }
.lp-step { flex: 1; text-align: center; padding: 0 8px; }
.lp-step-num {
  width: 52px; height: 52px; border-radius: 50%; background: #6c63ff;
  color: white; font-size: 22px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.lp-step h3 { font-size: 16px; font-weight: 700; color: #1e1b3a; margin-bottom: 10px; }
.lp-step p { font-size: 14px; color: #888; line-height: 1.65; }
.lp-step-arrow { font-size: 24px; color: #ccc; padding-top: 14px; flex-shrink: 0; }

/* Pricing */
.lp-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.lp-plan {
  background: white; border: 1.5px solid #eaeaf4; border-radius: 18px;
  padding: 30px 22px; position: relative; transition: box-shadow 0.2s;
}
.lp-plan:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.lp-plan-popular { border-color: #6c63ff; box-shadow: 0 0 0 1px #6c63ff; }
.lp-plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #6c63ff; color: white; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 10px; white-space: nowrap; letter-spacing: 0.3px;
}
.lp-plan-name { font-size: 18px; font-weight: 700; color: #1e1b3a; margin-bottom: 10px; }
.lp-plan-price { font-size: 32px; font-weight: 800; color: #1e1b3a; }
.lp-plan-period { font-size: 14px; font-weight: 400; color: #aaa; }
.lp-plan-mins { font-size: 13px; color: #6c63ff; font-weight: 600; margin: 6px 0 22px; }
.lp-plan-list { list-style: none; margin-bottom: 26px; display: flex; flex-direction: column; gap: 10px; }
.lp-plan-list li { font-size: 13px; color: #666; padding-left: 20px; position: relative; }
.lp-plan-list li::before { content: '✓'; position: absolute; left: 0; color: #6c63ff; font-weight: 700; }
.lp-plan-btn {
  width: 100%; justify-content: center; padding: 11px;
  font-size: 14px; font-weight: 600; border-radius: 10px;
  border: 1.5px solid #e4e4ee; background: white; color: #555;
  cursor: pointer; transition: all 0.15s;
}
.lp-plan-btn:hover { border-color: #6c63ff; color: #6c63ff; background: #f5f4ff; }
.lp-plan-popular .lp-plan-btn { background: #6c63ff; color: white; border-color: #6c63ff; }
.lp-plan-popular .lp-plan-btn:hover { background: #5a52e0; border-color: #5a52e0; }

/* FAQ */
.lp-faq { max-width: 740px; margin: 56px auto 0; display: flex; flex-direction: column; gap: 8px; }
.lp-faq-item { background: white; border: 1px solid #eaeaf4; border-radius: 12px; overflow: hidden; }
.lp-faq-item[open] { box-shadow: 0 4px 16px rgba(0,0,0,0.05); }
.lp-faq-item summary {
  padding: 17px 20px; font-size: 15px; font-weight: 600; color: #1e1b3a;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.lp-faq-item summary::-webkit-details-marker { display: none; }
.lp-faq-item summary::after { content: '+'; font-size: 22px; color: #6c63ff; font-weight: 300; flex-shrink: 0; }
.lp-faq-item[open] summary::after { content: '−'; }
.lp-faq-item > div { padding: 0 20px 18px; font-size: 14px; color: #777; line-height: 1.75; }

/* Final CTA section */
.lp-cta-section {
  background: linear-gradient(140deg, #1e1b3a 0%, #2c2757 50%, #1b2044 100%);
  padding: 88px 0; text-align: center; color: white;
}
.lp-cta-section h2 { color: white; font-size: 40px; font-weight: 800; margin-bottom: 14px; letter-spacing: -0.3px; }
.lp-cta-section p { color: rgba(255,255,255,0.65); font-size: 16px; margin-bottom: 36px; }
.lp-cta-big {
  background: white; color: #6c63ff; border: none; border-radius: 12px;
  padding: 16px 40px; font-size: 16px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25); transition: all 0.2s; display: inline-block;
}
.lp-cta-big:hover { background: #f0eeff; transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,0,0,0.3); }

/* Footer */
.lp-footer { background: #1e1b3a; padding: 36px 0; }
.lp-footer-inner { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.lp-footer-brand { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: white; margin-right: auto; }
.lp-footer-logo-icon { width: 26px; height: 26px; border-radius: 7px; background: #6c63ff; display: flex; align-items: center; justify-content: center; }
.lp-footer-brand em { color: #a89fff; font-style: normal; }
.lp-footer-links { display: flex; gap: 20px; }
.lp-footer-links a { color: rgba(255,255,255,0.45); text-decoration: none; font-size: 13px; transition: color 0.15s; }
.lp-footer-links a:hover { color: white; }
.lp-footer-copy { font-size: 12px; color: rgba(255,255,255,0.3); }

/* Landing responsive */
@media (max-width: 1024px) { .lp-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .lp-feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .lp-nav-links { display: none; }
  .lp-hero { padding: 68px 0 60px; }
  .lp-hero h1 { font-size: 36px; }
  .lp-hero-sub { font-size: 16px; }
  .lp-section h2 { font-size: 30px; }
  .lp-section { padding: 64px 0; }
  .lp-steps { flex-direction: column; align-items: center; gap: 0; }
  .lp-step { max-width: 320px; padding: 0 0 32px; }
  .lp-step-arrow { display: none; }
  .lp-plans { grid-template-columns: repeat(2, 1fr); }
  .lp-footer-brand { margin-right: 0; }
  .lp-footer-inner { flex-direction: column; text-align: center; }
  .lp-footer-links { flex-wrap: wrap; justify-content: center; }
  .lp-cta-section h2 { font-size: 30px; }
}
@media (max-width: 540px) {
  .lp-hero { padding: 56px 0 48px; }
  .lp-hero h1 { font-size: 28px; }
  .lp-hero-trust { gap: 14px; font-size: 12px; }
  .lp-feat-grid { grid-template-columns: 1fr; }
  .lp-plans { grid-template-columns: 1fr; }
  .lp-container { padding: 0 18px; }
  .lp-free-grid { grid-template-columns: 1fr; }
}

/* ── Free section ─────────────────────────────────────────────────────────── */
.lp-free-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 32px;
}
.lp-free-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 24px;
  border: 1px solid #e8e4ff;
}
.lp-free-card strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #1e1b3a;
  margin-bottom: 10px;
}
.lp-free-card p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}
.lp-free-note {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin: 0;
}
@media (max-width: 768px) {
  .lp-free-grid { grid-template-columns: 1fr; }
}

/* ── Competitor analysis ──────────────────────────────────────────────────── */
.competitor-quota-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 7px 12px; border-radius: 10px; background: rgba(108,99,255,0.08); border: 1px solid rgba(108,99,255,0.2); color: #1e1b3a; font-weight: 600; margin-bottom: 20px; }
.competitor-quota-label { color: #888; font-weight: 500; }
.competitor-form { margin: 16px 0 20px; }
.competitor-form.hidden { display: none; }
.competitor-section-heading { font-size: 18px; font-weight: 700; color: #1e1b3a; margin: 0; }

.competitor-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.competitor-detail-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: #f0f0f5; flex-shrink: 0; }
.competitor-detail-name { font-size: 20px; font-weight: 700; color: #1e1b3a; line-height: 1.3; }
.competitor-detail-platform { font-size: 12px; color: #888; font-weight: 600; margin-top: 2px; }

.competitor-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 20px; }
.competitor-stat-card { background: white; border: 1.5px solid #e8e8ed; border-radius: 12px; padding: 16px; text-align: center; }
.competitor-stat-value { font-size: 20px; font-weight: 700; color: #1e1b3a; }
.competitor-stat-label { font-size: 12px; color: #888; margin-top: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.03em; }
.competitor-stats-grid .competitor-stat-card:first-child { background: linear-gradient(135deg, #6c63ff, #8b7ff5); border-color: transparent; }
.competitor-stats-grid .competitor-stat-card:first-child .competitor-stat-value { color: white; font-size: 26px; }
.competitor-stats-grid .competitor-stat-card:first-child .competitor-stat-label { color: rgba(255,255,255,0.85); }

.competitor-panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.competitor-history-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.competitor-history-card { background: white; border: 1.5px solid #e8e8ed; border-radius: 12px; padding: 14px; cursor: pointer; text-align: center; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.competitor-history-card:hover { border-color: #6c63ff; box-shadow: 0 4px 16px rgba(108,99,255,0.16); transform: translateY(-2px); }
.competitor-history-avatar { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; background: #f0f0f5; display: block; }
.competitor-history-name { font-size: 14px; font-weight: 700; color: #1e1b3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.competitor-history-meta { font-size: 11px; color: #999; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; }

.competitor-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; background: #f8f9fb; border: 1px solid #eee; border-radius: 12px; padding: 10px 14px; }
.competitor-sort-select { font-size: 13px; padding: 7px 10px; border-radius: 10px; border: 1.5px solid #e5e5e5; background: white; color: #333; cursor: pointer; }
.competitor-type-filters { display: flex; gap: 6px; }
.competitor-filter-pill { font-size: 12px; font-weight: 500; padding: 6px 12px; border-radius: 20px; border: 1.5px solid #e5e5e5; background: white; color: #666; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.competitor-filter-pill:hover { border-color: #6c63ff; color: #6c63ff; }
.competitor-filter-pill.active { background: #6c63ff; border-color: #6c63ff; color: white; }
.competitor-content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 20px; }
.competitor-content-card { background: white; border: 1.5px solid #e8e8ed; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow 0.15s, transform 0.15s; }
.competitor-content-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); transform: translateY(-2px); }
.competitor-content-thumb { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center; background-color: #f0f0f5; display: block; }
.competitor-content-body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.competitor-content-stats { font-size: 13px; font-weight: 700; color: #1e1b3a; display: flex; gap: 10px; flex-wrap: wrap; }
.competitor-content-caption { font-size: 12px; color: #888; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.competitor-content-actions { display: flex; gap: 8px; margin-top: auto; }
.competitor-content-actions .btn { flex: 1; padding: 7px 10px; font-size: 12px; }
@media (max-width: 768px) {
  .competitor-stats-grid { grid-template-columns: repeat(2, 1fr); }
}