/* styles/main.css */

/* --- Root layout --- */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", sans-serif;
  background: #0d1117;
  color: #e6edf3;
  overflow: hidden;
  font-size: 14px;
}

hr {
  border: none;
  border-top: 1px solid #30363d;
  margin: 20px 0;
}

#app {
  height: 100%;
  display: flex;
  flex-direction: column;
  /* --- Scene panel --- */
}

/* --- Header / Footer --- */
header {
  flex: 0 0 auto;
  padding: 16px 24px;
  border-bottom: 1px solid #30363d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161b22;
}

.logo-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 32px;
  width: auto;
}

header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

footer {
  flex: 0 0 auto;
  padding: 12px 24px;
  border-top: 1px solid #30363d;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #161b22;
}

/* --- Main layout --- */
main {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 0;
}

.column {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.column.left {
  border-right: 1px solid #30363d;
  background: #0d1117;
}

.column.middle {
  background: #0d1117;
  border-right: 1px solid #30363d;
  overflow-y: auto;
  overflow-x: hidden;
}

.column.right {
  background: #0d1117;
  overflow-y: auto;
}

/* --- Panels scroll internally --- */
aside {
  border-right: 1px solid #30363d;
  padding: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #0d1117;
}

aside .scene-panel-header {
  padding: 16px 20px;
  flex-shrink: 0;
}

.scene-list-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #0d1117;
  border-bottom: 1px solid #30363d;
}

.scene-list-header button {
  flex: 1;
  justify-content: center;
}

  .scene-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
    overflow: hidden;
  }

  .scene-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .scene-panel-header h3 {
    margin: 0;
  }

  .scene-count {
    font-size: 12px;
    color: #8b949e;
    background: #161b22;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #30363d;
  }

  .scene-scroll {
    flex: 1;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .scene-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .scene-card:hover {
    border-color: #58a6ff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  }

  .scene-card.active {
    border-color: #58a6ff;
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
  }

  .scene-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .scene-card-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
  }

  .icon-btn {
    padding: 6px 8px;
    border-radius: 6px;
    min-width: 32px;
    justify-content: center;
  }

  .icon-btn.danger {
    background: #3d1414;
    border: 1px solid #a61e1e;
  }

  .icon-btn.danger:hover:not(:disabled) {
    background: #4a1717;
  }

  .scene-chip {
    font-size: 11px;
    font-weight: 700;
    color: #58a6ff;
    background: rgba(88, 166, 255, 0.15);
    padding: 4px 8px;
    border-radius: 999px;
  }

  .scene-title {
    color: #c9d1d9;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .add-card {
    border: 1px dashed #30363d;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    background: rgba(88, 166, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 180px;
  }

  .add-card:hover {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.12);
  }

  .add-icon {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
  }

  .add-text {
    font-size: 13px;
    color: #c9d1d9;
  }

  .empty-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

section {
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  background: #0d1117;
  max-width: 100%;
}

section.project-panel {
  padding: 20px;
  border-bottom: none;
}

section.project-panel h3 {
  margin: 0 0 20px 0;
  font-size: 14px;
  font-weight: 600;
}

section.project-panel .field {
  margin-bottom: 20px;
  box-sizing: border-box;
}
section.project-panel .field input {
  /* margin-bottom: 20px; */
  box-sizing: border-box;
}

section.project-panel .field:last-child {
  margin-bottom: 0;
}

/* Advanced Settings Section */
.advanced-section {
  margin-top: 24px;
  border-top: 1px solid #30363d;
  padding-top: 16px;
}

.advanced-toggle {
  width: 100%;
  background: transparent;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 10px 12px;
  color: #e6edf3;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.advanced-toggle:hover {
  background: #161b22;
  border-color: #58a6ff;
}

.toggle-icon {
  font-size: 10px;
  color: #8b949e;
}

.advanced-content {
  margin-top: 16px;
  animation: slideDown 0.2s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.checkbox-group label {
  margin: 0;
  flex: 1;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  cursor: pointer;
}

.template-selector {
  display: flex;
  gap: 8px;
}

section.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8b949e;
}

/* --- Scene list --- */
.scene {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 8px;
  padding: 8px;
  margin: 8px 12px;
  cursor: grab;
  transition: all 0.2s ease;
  display: flex;
  gap: 10px;
  align-items: center;
  overflow: hidden;
}

.scene:hover {
  background: #1c2128;
  border-color: #58a6ff;
  transform: translateX(2px);
}

.scene.active {
  background: #1f6feb;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.scene-thumbnail-small {
  width: 40px;
  height: 50px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.scene-thumbnail-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scene-thumbnail-placeholder {
  color: #8b949e;
}

.scene-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scene strong {
  color: #58a6ff;
  font-size: 11px;
  font-weight: 600;
}

.scene-caption {
  font-size: 11px;
  color: #c9d1d9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- Form elements --- */
label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b949e;
}

label:first-child {
  margin-top: 0;
}

input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  background: #161b22;
  border: 1px solid #30363d;
  color: #e6edf3;
  border-radius: 6px;
  font-family: inherit;
  font-size: 13px;
  transition: all 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #58a6ff;
  background: #0d1117;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

/* --- Buttons --- */
button {
  background: #238636;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

button:hover:not(:disabled) {
  background: #2ea043;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

button:active:not(:disabled) {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button.secondary {
  background: #30363d;
}

button.secondary:hover:not(:disabled) {
  background: #3d444d;
}

button.danger {
  background: #a61e1e;
}

button.danger:hover:not(:disabled) {
  background: #b92c2c;
}

/* --- Modals --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: grid;
  place-items: center;
  backdrop-filter: blur(4px);
  z-index: 1000;
}

.modal {
  background: #161b22;
  padding: 24px 28px;
  width: 420px;
  max-width: 90vw;
  border-radius: 12px;
  border: 1px solid #30363d;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.modal h4 {
  margin: 0 0 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #e6edf3;
}

.settings-section {
  padding: 16px 0;
  border-bottom: 1px solid #30363d;
}

.settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.settings-section label {
  display: block;
  margin-bottom: 6px;
}

.settings-section label input[type="checkbox"] {
  margin-right: 8px;
  cursor: pointer;
}

.settings-section input,
.settings-section select {
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Status colors --- */
.status-idle {
  color: #8b949e;
}

.status-generating {
  color: #d29922;
}

.status-done {
  color: #3fb950;
}

.status-error {
  color: #f85149;
}

.connection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #8b949e;
}

.connection-help {
  background: transparent;
  border: 0;
  color: #58a6ff;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
  text-decoration: underline;
}

.connection-help:hover {
  color: #7bb5ff;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.dot.online {
  background: #3fb950;
}

.dot.offline {
  background: #f85149;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.error {
  color: #f85149;
  font-size: 12px;
  background: rgba(248, 81, 73, 0.1);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid #f85149;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.project-settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #30363d;
  background: #0d1117;
  flex-shrink: 0;
}

.project-settings .field {
  display: flex;
  flex-direction: column;
}

.project-settings label {
  margin: 0 0 6px 0;
  font-size: 11px;
}

.project-settings input,
.project-settings select {
  padding: 8px 10px;
  font-size: 12px;
}

.project-settings input[type="text"] {
  width: auto;
  max-width: 280px;
}

.file-row {
  display: flex;
  gap: 6px;
  align-items: center;
}

.file-row input[type="text"] {
  flex: 1;
}

.file-row button {
  flex-shrink: 0;
  padding: 8px 12px;
}

/* --- Modal wide & grid --- */
.modal.wide {
  width: 85vw;
  max-width: 1200px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-header h3 {
  margin: 0;
}

.close-btn {
  background: transparent;
  border: none;
  color: #8b949e;
  font-size: 32px;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #30363d;
  color: #e6edf3;
  transform: none;
  box-shadow: none;
}

.search-box {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #30363d;
}

.search-input {
  flex: 1;
  padding: 10px 12px;
  background: #0d1117;
  border: 1px solid #30363d;
  color: #e6edf3;
  border-radius: 6px;
  font-size: 13px;
}

.search-input:focus {
  outline: none;
  border-color: #58a6ff;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

.search-count {
  font-size: 12px;
  color: #8b949e;
  white-space: nowrap;
}

.grid-container {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  margin: 0 -4px;
  padding: 0 4px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding-bottom: 8px;
}

.asset {
  background: #161b22;
  border: 2px solid #30363d;
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.asset:hover {
  border-color: #58a6ff;
  background: #1c2128;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.asset.selected {
  border-color: #58a6ff;
  background: #1c2128;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.asset img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
  display: block;
}

.thumbnail-placeholder {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: #161b22;
  border-radius: 6px;
  margin-bottom: 8px;
}

.asset-title {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c9d1d9;
  margin-top: 4px;
}

.template-icon {
  font-size: 48px;
  margin: 20px 0;
}

.template-type {
  font-size: 10px;
  color: #8b949e;
  margin-top: 4px;
}

.template-selector {
  display: flex;
  gap: 8px;
  align-items: center;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #8b949e;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.empty-text {
  font-size: 14px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 4px 0 12px 0;
}

.segmented.single {
  grid-template-columns: 1fr;
}

.segmented button {
  width: 100%;
  justify-content: center;
  background: #1a1f27;
  border: 1px solid #30363d;
}

.segmented button.active {
  border-color: #58a6ff;
  background: #111720;
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.12);
}

.helper {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #8b949e;
}

.drop-zone {
  border: 2px dashed #30363d;
  border-radius: 8px;
  padding: 32px 20px;
  background: #0d1117;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.drop-zone.small {
  padding: 20px 16px;
}

.drop-zone:hover {
  border-color: #58a6ff;
  background: #111720;
}

.drop-zone.dragging {
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(88, 166, 255, 0.12);
}

.drop-zone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.drop-zone-icon {
  font-size: 32px;
}

.drop-zone-text {
  font-size: 13px;
  color: #c9d1d9;
  text-align: center;
}

/* --- Add Methods Layout --- */
.add-methods {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  align-items: flex-start;
}

.add-method {
  flex: 1;
  min-width: 0;
}

.method-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.method-icon {
  font-size: 18px;
}

.method-header h5 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #e6edf3;
}

.method-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 60px;
  color: #6e7681;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
  width: 40px;
}

.url-input {
  width: 100%;
  margin-top: 0;
}

/* --- Scene thumbnail preview --- */
.scene-layout {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 40px;
  align-items: start;
}

.scene-content {
  display: flex;
  flex-direction: column;
}

.scene-thumbnail-container {
  display: flex;
  flex-direction: column;
}

.scene-thumbnail {
  margin: 0;
  border: 2px solid #30363d;
  border-radius: 8px;
  overflow: hidden;
  width: 180px;
  aspect-ratio: 9 / 16;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #161b22;
}

.scene-thumbnail:hover {
  border-color: #58a6ff;
  box-shadow: 0 4px 16px rgba(88, 166, 255, 0.1);
}

.scene-thumbnail.placeholder {
  background: #0d1117;
  border-style: dashed;
}

.scene-thumbnail.dragging {
  border-color: #58a6ff;
  background: rgba(88, 166, 255, 0.1);
  box-shadow: 0 4px 16px rgba(88, 166, 255, 0.2);
}

.scene-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8b949e;
  text-align: center;
  padding: 20px;
}

.placeholder-icon {
  font-size: 28px;
}

.placeholder-text {
  font-size: 12px;
  font-weight: 500;
}

.music-thumbnail {
  border: 2px solid #30363d;
  border-radius: 8px;
  padding: 16px;
  background: #161b22;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.music-thumbnail:hover {
  border-color: #58a6ff;
  box-shadow: 0 4px 16px rgba(88, 166, 255, 0.1);
}

.music-thumbnail.placeholder {
  background: #0d1117;
  border-style: dashed;
}

.music-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.music-icon {
  font-size: 28px;
}

.music-title {
  font-size: 12px;
  color: #c9d1d9;
  font-weight: 500;
}

/* --- Header Actions --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: #238636;
  color: white;
  border: none;
  padding: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-btn:hover:not(:disabled) {
  background: #2ea043;
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.icon-btn:active:not(:disabled) {
  transform: scale(1.05);
}

/* --- Disabled State for Thumbnails --- */
.music-thumbnail.disabled,
.scene-thumbnail.disabled {
  cursor: not-allowed !important;
  opacity: 0.5;
  filter: grayscale(0.3);
}

.music-thumbnail.disabled:hover,
.scene-thumbnail.disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* --- Offline Notice --- */
.offline-notice {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid #f85149;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.offline-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.offline-text {
  font-size: 13px;
  color: #f85149;
  line-height: 1.5;
}

/* --- API Key Notice --- */
.api-key-notice {
  background: rgba(187, 128, 9, 0.1);
  border: 1px solid #bb8009;
  border-radius: 6px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.notice-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.notice-text {
  font-size: 13px;
  color: #e3b341;
  line-height: 1.5;
}

.link-btn {
  background: none;
  border: none;
  color: #58a6ff;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  margin-top: 4px;
}

.link-btn:hover {
  color: #79c0ff;
}

.link-btn:active {
  color: #1f6feb;
}

/* --- Help Modal --- */
.help-content {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}

.help-section {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #30363d;
}

.help-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.help-section h4 {
  margin: 0 0 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: #e6edf3;
}

.help-section p {
  margin: 0 0 12px 0;
  line-height: 1.6;
  color: #c9d1d9;
  font-size: 13px;
}

.help-section p:last-child {
  margin-bottom: 0;
}

.help-section ul,
.help-section ol {
  margin: 0 0 12px 0;
  padding-left: 24px;
  line-height: 1.8;
  color: #c9d1d9;
  font-size: 13px;
}

.help-section ul:last-child,
.help-section ol:last-child {
  margin-bottom: 0;
}

.help-section li {
  margin-bottom: 6px;
}

.help-section li:last-child {
  margin-bottom: 0;
}

.help-section strong {
  color: #e6edf3;
  font-weight: 600;
}

.help-section .note {
  background: rgba(187, 128, 9, 0.1);
  border-left: 3px solid #d29922;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
  color: #d29922;
  margin-top: 12px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.close-btn {
  background: transparent;
  color: #8b949e;
  border: none;
  padding: 0;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #30363d;
  color: #e6edf3;
}

/* --- Pro Modal --- */
.pro-content {
  margin-bottom: 20px;
}

.pro-content p {
  margin: 0 0 16px 0;
  line-height: 1.6;
  color: #c9d1d9;
  font-size: 14px;
}

.pro-content p:last-of-type {
  margin-bottom: 24px;
}

.pro-content strong {
  color: #e6edf3;
  font-weight: 600;
}

.interest-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.interest-btn {
  padding: 14px 20px;
  font-size: 14px;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.interest-btn.active {
  border-color: #238636;
  background: rgba(35, 134, 54, 0.15);
}

.interest-btn.secondary.active {
  border-color: #8b949e;
  background: rgba(139, 148, 158, 0.15);
}

.pro-content .field input,
.pro-content .field textarea {
  width: 100%;
  box-sizing: border-box;
}