:root {
  --bg-base: #090c0b;
  --bg-surface: #101513;
  --bg-surface-elevated: #151c19;
  --bg-input: #0b0f0e;
  --border-subtle: #1c2522;
  --border-hover: #283631;
  --border-focus: #2ed58f;
  --text-primary: #f1f5f3;
  --text-secondary: #8c9894;
  --text-muted: #5a6662;
  --accent-primary: #2ed58f;
  --accent-hover: #25bf7e;
  --accent-soft-bg: rgba(46, 213, 143, 0.10);
  --accent-soft-border: rgba(46, 213, 143, 0.32);
  --success: #2ed58f;
  --danger: #ef4444;
  --x-blue: #1d9bf0;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.84em;
  background: var(--accent-soft-bg);
  color: var(--accent-primary);
  border: 1px solid rgba(46, 213, 143, 0.2);
  padding: 2px 6px;
  border-radius: 5px;
}

.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden {
  display: none !important;
}

/* ==================== TOPBAR (ESTILO ÓRBITA) ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #0b0f0e;
  border-bottom: 1px solid var(--border-subtle);
  padding: 12px 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(46, 213, 143, 0.12);
  border: 2px solid var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--accent-primary);
  box-shadow: 0 0 12px rgba(46, 213, 143, 0.22);
}

.brand-title {
  display: block;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.accent-text {
  color: var(--accent-primary);
}

.brand-badge {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Tabs Navigation (Estilo Sidebar/Nav Órbita) */
.main-tabs {
  display: flex;
  gap: 6px;
  background: #0e1311;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.16s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
  background: var(--accent-soft-bg);
  border-color: var(--accent-soft-border);
  color: #ffffff;
  font-weight: 600;
}

.counter-pill {
  background: rgba(46, 213, 143, 0.16);
  color: var(--accent-primary);
  padding: 1px 7px;
  border-radius: 99px;
  font-size: 0.73rem;
  font-weight: 700;
}

/* Topbar Right Actions */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quota-widget {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.79rem;
}

.quota-label {
  color: var(--text-secondary);
}

.quota-divider {
  color: var(--border-subtle);
}

.credits-val {
  color: var(--accent-primary);
}

.btn-icon-tiny {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 0.74rem;
  transition: all 0.18s;
}

.btn-icon-tiny:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-ai-config {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.16s;
}

.btn-ai-config:hover {
  border-color: var(--accent-soft-border);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
}

.status-dot.api-active {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

/* ==================== MAIN LAYOUT ==================== */
.main-content {
  padding-top: 28px;
  padding-bottom: 60px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.18s ease;
}

.tab-panel.active {
  display: block;
}

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

.hero-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.hero-eyebrow {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.hero-banner h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 4px;
}

.hero-banner p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.banner-actions {
  display: flex;
  gap: 10px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 980px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== CARDS & FORMS ==================== */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.card-header.compact {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.card-header h2,
.card-header h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.subtle-tag {
  font-size: 0.74rem;
  color: var(--text-secondary);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 6px;
}

.archetype-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  padding: 4px 10px;
  border-radius: 6px;
}

/* Upload Zone */
.upload-zone {
  border: 1px dashed #2b3934;
  background: var(--bg-input);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent-primary);
  background: rgba(46, 213, 143, 0.04);
}

.upload-icon {
  width: 38px;
  height: 38px;
  margin: 0 auto 8px;
  border-radius: 8px;
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.upload-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.upload-subtitle {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.upload-preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 220px;
}

.upload-preview img {
  max-height: 200px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.upload-preview-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
}

/* Form Fields */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 580px) {
  .form-row-2 {
    grid-template-columns: 1fr;
  }
}

.field-group {
  margin-bottom: 16px;
}

.field-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #d5dedb;
}

.label-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.76rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.88rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: border-color 0.16s, box-shadow 0.16s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 2px rgba(46, 213, 143, 0.15);
}

/* Chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.chip {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.79rem;
  font-weight: 500;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.chip.active {
  background: var(--accent-soft-bg);
  border-color: var(--accent-soft-border);
  color: var(--accent-primary);
  font-weight: 600;
}

/* Slider */
.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.slider-badge {
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 600;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.71rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Checkboxes */
.toggles-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  font-size: 0.79rem;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.checkbox-pill input {
  accent-color: var(--accent-primary);
}

.divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 18px 0;
}

/* Buttons (Estilo Órbita: Verde Esmeralda Sólido com texto escuro) */
.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  color: #051b11;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.12s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-lg {
  flex: 1;
  padding: 12px 20px;
  font-size: 0.92rem;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-family: inherit;
  font-weight: 500;
  font-size: 0.84rem;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-secondary:hover {
  border-color: var(--accent-soft-border);
  background: var(--accent-soft-bg);
  color: #ffffff;
}

.btn-accent-outline {
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-primary);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.btn-accent-outline:hover {
  background: rgba(46, 213, 143, 0.18);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.8rem;
}

.btn-danger-sm {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.32);
  color: #fca5a5;
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger-sm:hover {
  background: rgba(239, 68, 68, 0.22);
}

/* ==================== X (TWITTER) PROFILE CARD PREVIEW ==================== */
.x-profile-card {
  background: #050707;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 16px;
}

.x-banner {
  height: 92px;
  background: linear-gradient(135deg, #0d1714 0%, #132820 60%, #0f1c18 100%);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.x-banner-tag {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(9, 12, 11, 0.75);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 6px;
}

.x-profile-body {
  padding: 0 18px 18px;
}

.x-avatar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: -40px;
  margin-bottom: 12px;
}

.x-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid #050707;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  overflow: hidden;
  position: relative;
}

.x-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.x-follow-btn {
  border: 1px solid #384440;
  color: #eff3f4;
  font-weight: 600;
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 99px;
}

.x-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.x-display-name {
  font-size: 1.12rem;
  font-weight: 700;
  color: #e7e9ea;
}

.x-handle-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.x-handle {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.btn-copy-inline {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.15s;
}

.btn-copy-inline:hover {
  opacity: 1;
}

.x-bio-wrapper {
  margin-bottom: 12px;
}

.x-bio-textarea {
  background: #0a0e0d;
  border: 1px solid var(--border-subtle);
  color: #e7e9ea;
  font-size: 0.92rem;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 8px;
  resize: vertical;
}

.bio-helper-bar {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.x-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.x-stats-line {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.x-stats-line strong {
  color: #e7e9ea;
}

/* Result Details Grid */
.result-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.detail-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.detail-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.detail-box strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.result-actions-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Variations Card */
.variations-card {
  margin-top: 18px;
}

.variations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variation-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.variation-item:hover {
  border-color: var(--accent-soft-border);
  background: var(--accent-soft-bg);
}

.variation-item-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.variation-item-bio {
  font-size: 0.88rem;
  color: #e5e7eb;
  white-space: pre-line;
}

/* ==================== CAPTIONS LIST ==================== */
.captions-output-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.caption-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s;
}

.caption-card:hover {
  border-color: var(--accent-soft-border);
}

.caption-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.caption-text {
  font-size: 0.96rem;
  font-weight: 500;
  color: #ffffff;
  white-space: pre-line;
  padding: 4px 0;
}

.caption-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.caption-card.is-liked {
  border-color: rgba(46, 213, 143, 0.55);
  background: rgba(46, 213, 143, 0.05);
}

.caption-card.is-disliked {
  border-color: rgba(239, 68, 68, 0.4);
  opacity: 0.68;
}

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

.btn-feedback {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.btn-feedback:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.btn-feedback-like.active {
  background: rgba(46, 213, 143, 0.16);
  border-color: rgba(46, 213, 143, 0.5);
  color: var(--accent-primary);
}

.btn-feedback-dislike.active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
  color: #fca5a5;
}

.persona-training-box {
  margin-top: 8px;
  background: rgba(46, 213, 143, 0.05);
  border: 1px solid rgba(46, 213, 143, 0.22);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
}

.persona-training-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.persona-training-hint {
  color: var(--text-secondary);
  font-size: 0.75rem;
  line-height: 1.4;
}

/* ==================== SAVED MODELS GRID ==================== */
.saved-models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.saved-model-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.saved-model-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.saved-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--accent-soft-border);
}

.saved-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-bio-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  white-space: pre-line;
  color: #dce3e0;
}

.saved-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.saved-meta-tags span {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 6px;
}

.saved-actions {
  display: flex;
  gap: 8px;
}

/* ==================== GUIDE TAB ==================== */
.guide-card h1 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.guide-lead {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 22px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.step-card {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.step-card h3 {
  font-size: 0.94rem;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.guide-two-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
}

@media (max-width: 860px) {
  .guide-two-cols {
    grid-template-columns: 1fr;
  }
}

.example-showcase-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-top: 12px;
  font-size: 0.85rem;
}

.example-showcase-box p + p {
  margin-top: 6px;
}

.example-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: var(--accent-soft-bg);
  border: 1px solid var(--accent-soft-border);
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 6px;
}

.info-callout {
  background: var(--accent-soft-bg);
  border-left: 3px solid var(--accent-primary);
  padding: 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 0.88rem;
  color: #dce3e0;
}

.info-callout p + p {
  margin-top: 10px;
}

/* ==================== MODAL & TOAST ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-card);
}

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

.btn-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
}

.modal-body p {
  font-size: 0.86rem;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #121816;
  border: 1px solid var(--accent-soft-border);
  color: #f1f5f3;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  animation: fadeIn 0.18s ease;
}

/* ==================== COMMERCIAL AUTH SCREEN (LOGIN & CADASTRO) ==================== */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 0%, rgba(46, 213, 143, 0.08) 0%, var(--bg-base) 55%);
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.auth-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab-btn:hover {
  color: var(--text-primary);
}

.auth-tab-btn.active {
  background: var(--accent-soft-bg);
  border-color: var(--accent-soft-border);
  color: var(--accent-primary);
}

.auth-alert {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  margin-bottom: 14px;
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.auth-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* ==================== USER PROFILE PILL & ADMIN PANEL ==================== */
.user-profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.user-role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.user-role-badge.is-admin {
  background: var(--accent-soft-bg);
  color: var(--accent-primary);
  border-color: var(--accent-soft-border);
}

.user-name-text {
  font-weight: 600;
  color: var(--text-primary);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-logout-tiny {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #fca5a5;
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-logout-tiny:hover {
  background: rgba(239, 68, 68, 0.22);
}

.admin-modal-card {
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
}

.admin-section-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px 16px;
  margin-bottom: 14px;
}

.admin-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  color: #ffffff;
}

.admin-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (max-width: 560px) {
  .admin-telemetry-grid {
    grid-template-columns: 1fr;
  }
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.admin-kpi-card {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-kpi-val {
  font-size: 1.22rem;
  font-weight: 700;
  color: #ffffff;
}

.admin-kpi-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.admin-engine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.admin-engine-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.admin-users-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-filters-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.admin-search-box {
  flex: 1;
  min-width: 240px;
}

.admin-users-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  flex-wrap: wrap;
  transition: border-color 0.15s ease;
}

.admin-user-row:hover {
  border-color: rgba(46, 213, 143, 0.35);
}

.admin-user-row.is-suspended {
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.05);
}

.admin-user-row.is-banned {
  border-color: rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.05);
}

.admin-user-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 240px;
}

.admin-user-title-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.user-status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.user-status-badge.status-active {
  background: rgba(46, 213, 143, 0.14);
  color: #2ed58f;
  border: 1px solid rgba(46, 213, 143, 0.35);
}

.user-status-badge.status-vip {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.user-status-badge.status-suspended {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.user-status-badge.status-banned {
  background: rgba(239, 68, 68, 0.18);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.admin-user-quotas-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.admin-quota-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  color: #d1d5db;
}

.admin-user-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-warn-sm {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.38);
  color: #fcd34d;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-warn-sm:hover {
  background: rgba(245, 158, 11, 0.25);
}

.btn-vip-sm {
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.4);
  color: #d8b4fe;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-vip-sm:hover {
  background: rgba(168, 85, 247, 0.28);
}

@media (max-width: 960px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-engine-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .admin-kpi-grid {
    grid-template-columns: 1fr;
  }
}

/* ==================== MOBILE & TABLET RESPONSIVENESS ==================== */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 768px) {
  .container {
    padding: 0 12px;
  }

  /* Prevent iOS Safari / Android Chrome auto-zoom on input focus */
  input[type="text"],
  input[type="email"],
  input[type="number"],
  input[type="password"],
  select,
  textarea {
    font-size: 16px;
  }

  /* Topbar: unstick on mobile so it doesn't eat viewport height */
  .topbar {
    position: relative;
    padding: 10px 0 12px;
  }

  .topbar-inner {
    gap: 10px;
  }

  .brand {
    order: 1;
  }

  .brand-title {
    font-size: 1.12rem;
  }

  .brand-badge {
    font-size: 0.64rem;
  }

  .topbar-actions {
    order: 2;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px;
  }

  .quota-widget {
    flex: 1 1 100%;
    justify-content: center;
    flex-wrap: wrap;
    padding: 7px 10px;
    font-size: 0.76rem;
    gap: 8px;
  }

  .btn-ai-config {
    flex: 1 1 auto;
    justify-content: center;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .user-profile-pill {
    flex: 1 1 auto;
    justify-content: space-between;
    padding: 6px 10px;
  }

  .user-name-text {
    max-width: 120px;
  }

  /* 2x2 Grid for Main Navigation Tabs on Mobile */
  .main-tabs {
    order: 3;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 5px;
  }

  .tab-btn {
    justify-content: center;
    padding: 9px 8px;
    font-size: 0.79rem;
    text-align: center;
    white-space: nowrap;
    gap: 5px;
  }

  /* Main Content & Hero Banner */
  .main-content {
    padding-top: 14px;
    padding-bottom: 42px;
  }

  .hero-banner {
    padding: 15px 14px;
    margin-bottom: 14px;
    gap: 12px;
  }

  .hero-banner h1 {
    font-size: 1.24rem;
    line-height: 1.25;
  }

  .hero-banner p {
    font-size: 0.83rem;
    line-height: 1.45;
  }

  .hero-banner > button {
    width: 100%;
    justify-content: center;
  }

  .banner-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .banner-actions button {
    width: 100%;
    justify-content: center;
  }

  /* Cards & Upload Zone */
  .card {
    padding: 15px 13px;
    border-radius: 10px;
  }

  .card-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
    gap: 6px;
  }

  .card-header h2,
  .card-header h3 {
    font-size: 0.96rem;
  }

  .upload-zone {
    padding: 16px 12px;
    margin-bottom: 14px;
  }

  /* Chips & Checkboxes */
  #visualVibeChips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  #visualVibeChips .chip {
    text-align: center;
    justify-content: center;
    padding: 8px 6px;
    font-size: 0.76rem;
  }

  #captionMoodChips,
  #photoElementChips {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  #captionMoodChips .chip,
  #photoElementChips .chip {
    width: 100%;
    text-align: left;
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  .slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .slider-ticks {
    font-size: 0.66rem;
    gap: 4px;
  }

  .toggles-row {
    flex-direction: column;
    gap: 8px;
  }

  .checkbox-pill {
    width: 100%;
    padding: 9px 11px;
    font-size: 0.78rem;
  }

  /* Form Action Buttons */
  .action-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .action-buttons button,
  .btn-lg {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
  }

  /* X Profile Preview Card */
  .x-banner {
    height: 74px;
  }

  .x-profile-body {
    padding: 0 13px 14px;
  }

  .x-avatar-row {
    margin-top: -34px;
    margin-bottom: 10px;
  }

  .x-avatar {
    width: 68px;
    height: 68px;
    font-size: 1.5rem;
  }

  .bio-helper-bar {
    flex-direction: column;
    gap: 3px;
  }

  .x-meta-line {
    gap: 8px 12px;
    font-size: 0.76rem;
  }

  .result-details-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .detail-box {
    padding: 8px 10px;
    overflow-wrap: anywhere;
  }

  .detail-box strong {
    font-size: 0.82rem;
    word-break: break-word;
  }

  .result-actions-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .result-actions-bar #btnCopyAllProfile {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .result-actions-bar button {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.8rem;
    padding: 10px 8px;
  }

  /* Captions, Saved Models & Guide */
  .caption-card {
    padding: 13px;
  }

  .caption-card-header {
    flex-wrap: wrap;
    gap: 4px;
  }

  .caption-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .caption-feedback-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .caption-feedback-row .btn-feedback {
    width: 100%;
    justify-content: center;
    padding: 9px 10px;
    font-size: 0.8rem;
  }

  .caption-actions-row {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .caption-actions-row .btn-copy-cap {
    grid-column: 1 / -1;
  }

  .caption-actions-row button {
    width: 100%;
    justify-content: center;
  }

  .saved-models-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .saved-model-card {
    padding: 14px;
  }

  .saved-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .saved-actions button {
    width: 100%;
    justify-content: center;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .guide-card h1 {
    font-size: 1.25rem;
  }

  .example-showcase-box code {
    word-break: break-word;
    white-space: pre-wrap;
  }

  /* Auth Screen on Mobile */
  .auth-screen {
    padding: 16px 12px;
    align-items: center;
  }

  .auth-card {
    padding: 22px 16px;
    border-radius: 12px;
  }

  .auth-brand {
    margin-bottom: 16px;
  }

  .auth-tab-btn {
    padding: 10px 8px;
    font-size: 0.84rem;
  }

  /* Modals & Toasts on Mobile */
  .modal-backdrop {
    padding: 10px;
  }

  .modal-card,
  .admin-modal-card {
    padding: 16px 14px;
    max-height: 92vh;
    overflow-y: auto;
  }

  .modal-header h3 {
    font-size: 0.95rem;
  }

  .admin-section-box {
    padding: 12px;
  }

  .admin-section-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-user-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-user-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .modal-footer {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .modal-footer button {
    width: 100%;
    justify-content: center;
  }

  .toast-container {
    left: 12px;
    right: 12px;
    bottom: 14px;
  }

  .toast {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 390px) {
  #visualVibeChips {
    grid-template-columns: 1fr;
  }

  .result-details-grid,
  .result-actions-bar {
    grid-template-columns: 1fr;
  }

  .tab-btn {
    font-size: 0.74rem;
    padding: 8px 6px;
  }
}

/* ==================== VITRINE DE PLANOS & CHECKOUT PIX ==================== */
.plans-hero-screen {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 16px 36px;
}

.plans-hero-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.plans-hero-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 32px;
}

.plans-hero-header h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.18;
  margin: 8px 0 12px;
  letter-spacing: -0.02em;
}

.plans-hero-header p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.55;
}

.plans-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(22, 29, 27, 0.96) 0%, rgba(14, 19, 18, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 213, 143, 0.45);
}

.plan-card.is-popular {
  border: 1.5px solid #2ed58f;
  background: linear-gradient(180deg, rgba(20, 42, 34, 0.96) 0%, rgba(13, 21, 18, 0.98) 100%);
  box-shadow: 0 18px 44px rgba(46, 213, 143, 0.16);
}

.plan-card.is-vip {
  border: 1.5px solid rgba(255, 209, 102, 0.55);
  background: linear-gradient(180deg, rgba(35, 28, 17, 0.96) 0%, rgba(16, 15, 13, 0.98) 100%);
  box-shadow: 0 18px 44px rgba(255, 209, 102, 0.12);
}

.plan-popular-ribbon {
  position: absolute;
  top: -12px;
  right: 18px;
  background: linear-gradient(135deg, #2ed58f, #18a96d);
  color: #06140e;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 16px rgba(46, 213, 143, 0.3);
}

.plan-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  margin-bottom: 10px;
}

.plan-card-head h3 {
  font-size: 1.32rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.plan-sub {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  min-height: 38px;
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.plan-currency {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
}

.plan-price {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

.plan-period {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.86rem;
  color: #d6dfdc;
  flex: 1;
}

.plan-btn-vip {
  background: linear-gradient(135deg, #ffd166, #f59e0b) !important;
  color: #161105 !important;
  border: none !important;
  font-weight: 800 !important;
}

.plan-btn-vip:hover {
  filter: brightness(1.06);
}

.btn-upgrade-tiny {
  background: rgba(46, 213, 143, 0.14);
  color: #2ed58f;
  border: 1px solid rgba(46, 213, 143, 0.35);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-upgrade-tiny:hover {
  background: rgba(46, 213, 143, 0.24);
}

.btn-be-vip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ffd166, #f59e0b);
  color: #161105;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-be-vip:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}

.pix-status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(46, 213, 143, 0.1);
  border: 1px solid rgba(46, 213, 143, 0.35);
  color: #b7f5da;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.pix-status-banner.is-paid {
  background: rgba(46, 213, 143, 0.22);
  border-color: #2ed58f;
  color: #ffffff;
}

.pix-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ed58f;
  flex-shrink: 0;
  animation: pixPulse 1.4s infinite ease-in-out;
}

@keyframes pixPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.5; }
}

.pix-qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  padding: 18px;
  border-radius: 14px;
  width: fit-content;
  margin: 0 auto;
}

.pix-qr-box img {
  width: 210px;
  height: 210px;
  display: block;
}

.pix-amount-badge {
  background: #0d1512;
  color: #2ed58f;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 4px 14px;
  border-radius: 999px;
}

.pix-copy-box {
  display: flex;
  gap: 8px;
}

.pix-copy-box input {
  flex: 1;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
}

@media (max-width: 920px) {
  .plans-grid-3 {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
  }

  .plan-sub {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .plans-hero-screen {
    padding: 14px 10px 28px;
  }

  .plans-hero-topbar {
    margin-bottom: 22px;
  }

  .plan-card {
    padding: 22px 18px;
  }
}
