/* start.css — Affiliate link input page styles for /start */

.start-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 48px;
}
.start-container {
  width: 100%;
  max-width: 640px;
}

.start-header {
  text-align: center;
  margin-bottom: 36px;
}
.start-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 8px;
}
.start-sub {
  font-size: 15px;
  color: var(--fg-muted);
}

.link-input-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 24px;
}
.link-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.link-input {
  flex: 1 1 280px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.link-input::placeholder { color: var(--fg-muted); }
.link-input:focus { border-color: rgba(0,212,255,0.4); }

.link-name-input {
  flex: 0 1 180px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.link-name-input::placeholder { color: var(--fg-muted); }
.link-name-input:focus { border-color: rgba(0,212,255,0.4); }

.btn-add-link {
  padding: 14px 24px;
  background: var(--cyan);
  color: #0B1220;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s;
  white-space: nowrap;
}
.btn-add-link:hover { opacity: 0.9; }
.btn-add-link:disabled { opacity: 0.4; cursor: not-allowed; }

.link-input-footer {
  font-size: 12px;
  color: var(--fg-muted);
  margin-top: 12px;
}

.added-links-section {
  margin-bottom: 24px;
}
.added-links-heading {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 12px;
}
.added-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}
.link-card-info {
  flex: 1;
  min-width: 0;
}
.link-card-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.link-card-url {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.link-card-url:hover { color: var(--cyan); }
.link-card-status {
  flex-shrink: 0;
}
.status-generating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
}
.status-ready {
  font-size: 12px;
  color: var(--green);
}
.link-card-remove {
  background: transparent;
  border: none;
  color: var(--fg-muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
  flex-shrink: 0;
  transition: color 0.2s;
}
.link-card-remove:hover { color: var(--fg); }

.start-cta {
  text-align: center;
  margin-top: 16px;
}
.btn-dashboard-goto {
  display: inline-block;
  padding: 14px 32px;
  background: var(--cyan);
  color: #0B1220;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  font-size: 15px;
}
.btn-dashboard-goto:hover { opacity: 0.9; }

.spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0,212,255,0.2);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 8px;
}
