/* ═══════════════════════════════════════════════
   OnlyCRM — Manual Section Styles
   ═══════════════════════════════════════════════ */

.manual-tabs {
  padding: 6px;
  margin-bottom: 24px;
}

.manual-tab-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (min-width: 640px) {
  .manual-tab-list { flex-direction: row; }
}

.manual-tab-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
  text-align: left;
  position: relative;
  font-family: inherit;
}

.manual-tab-btn:hover {
  color: var(--text-secondary);
  background: rgba(255,255,255,0.02);
}

.manual-tab-btn.active {
  background: var(--accent-subtle);
  color: var(--text);
}

.manual-tab-btn.active .manual-tab-icon {
  color: var(--accent-light);
}

.manual-tab-btn.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--accent);
  border-radius: 2px;
}

@media (min-width: 640px) {
  .manual-tab-btn.active::before {
    left: 50%;
    top: auto;
    bottom: 0;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
  }
}

.manual-tab-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.manual-tab-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.manual-tab-label {
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.manual-tab-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Manual Content ─── */
.manual-content {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .manual-content { padding: 40px; }
}

.manual-content-wrapper {
  transition: max-height 0.5s ease-out;
}

.manual-content-wrapper.collapsed {
  max-height: 70vh;
  overflow: hidden;
}

.manual-content-wrapper.expanded {
  max-height: none;
  overflow: visible;
}

/* ─── Expand Overlay ─── */
.manual-expand-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 0 0 20px 20px;
  z-index: 10;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.manual-expand-overlay.hidden-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.manual-expand-gradient {
  height: 192px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-system) 100%);
}

.manual-expand-btn-container {
  background: var(--bg-system);
  padding: 0 24px 24px;
  display: flex;
  justify-content: center;
  border-radius: 0 0 20px 20px;
  margin-top: -1px;
}

/* ─── Manual Sections ─── */
.manual-sec {
  animation: manualFadeIn 0.4s ease-out;
}

.manual-sec.hidden {
  display: none;
}

@keyframes manualFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.manual-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.manual-subheading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.manual-accent-bar {
  display: inline-block;
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.manual-body {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ─── Lists ─── */
.manual-bullet-list {
  list-style: none;
  margin: 12px 0;
  padding-left: 4px;
}

.manual-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.manual-bullet {
  color: var(--accent-light);
  margin-top: 2px;
  flex-shrink: 0;
}

.manual-num-list {
  list-style: none;
  margin: 12px 0;
  padding-left: 4px;
}

.manual-num-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.6;
}

.manual-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent-light);
  font-size: 0.75rem;
  font-family: monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

/* ─── Tip & Warning ─── */
.manual-tip {
  background: var(--accent-subtle);
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  font-size: 0.875rem;
  color: var(--accent-light);
  line-height: 1.6;
}

.manual-tip-label {
  font-weight: 600;
}

.manual-warning {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 12px;
  padding: 16px;
  margin: 16px 0;
  font-size: 0.875rem;
  color: rgba(253,230,138,0.9);
  line-height: 1.6;
}

.manual-warning-label {
  font-weight: 600;
  color: #fcd34d;
}

/* ─── Plus List ─── */
.manual-plus-list {
  margin: 16px 0;
}

.manual-plus-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.manual-plus-badge {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34,197,94,0.2);
  color: #4ade80;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.manual-plus-title {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

.manual-plus-desc {
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 2px;
  line-height: 1.5;
}

/* ─── Screenshots ─── */
.manual-shot {
  margin: 24px 0;
}

.manual-shot-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.manual-shot-frame:hover {
  transform: scale(1.005);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.manual-shot-frame img {
  width: 100%;
  display: block;
}

.manual-shot figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* ─── Next Button ─── */
.manual-next-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
}

.manual-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px var(--accent-glow);
  font-family: inherit;
}

.manual-next-btn:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateX(4px);
}

.manual-next-btn:active {
  transform: translateX(2px) scale(0.98);
}

/* Light theme overrides for manual */
[data-theme="light"] .manual-warning {
  background: rgba(245,158,11,0.08);
  color: #92400e;
}

[data-theme="light"] .manual-warning-label {
  color: #b45309;
}

[data-theme="light"] .manual-tip {
  color: var(--accent);
}