:root {
  --cream: #F9F7F4;
  --navy: #0F1E2D;
  --gold: #F5B841;
  --color-gold: #F5B841;
  --color-gold-soft: #e3c26e;
  --rose: #D4A5A5;
  --rose-light: #F7EDED;
  --white: #FFFFFF;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--navy);
  line-height: 1.6;
}

.app-body {
  background: var(--cream);
  color: var(--navy);
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.2px;
  color: var(--navy, #0F1E2D);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

.sidebar-trigger {
  order: -1;
  margin-right: 12px;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.app-nav a {
  font-weight: 600;
  color: var(--navy, #0F1E2D);
  text-decoration: none;
  transition: color 0.2s;
}

.app-nav a:hover {
  color: var(--gold, #F5B841);
}

@media (max-width: 768px) {
  .app-header {
    padding: 14px 16px;
  }

  .app-nav {
    gap: 12px;
  }
}

.app-nav a {
  font-weight: 600;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.app-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
}

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

.section-heading {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  margin: 0;
}

.section-action {
  font-weight: 700;
  color: var(--rose);
}


.content-box {
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.06);
  margin-bottom: 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.content-box.card-hover:hover {
  box-shadow: 0 6px 18px rgba(15, 30, 45, 0.12);
  transform: translateY(-2px);
}

.content-box.large {
  padding: 32px 34px;
}

.page-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.section-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.card-title,
.card-subtitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover {
  background: var(--gold);
  color: var(--navy);
}

.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-secondary {
  background: var(--rose-light);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-secondary:hover {
  background: var(--rose);
}

.saved-actions {
  margin-top: 16px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--rose);
  border-radius: 8px;
  font-size: 16px;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--rose);
}

.app-table,
table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid #E8DCDC;
}

.app-table thead,
table thead {
  background: var(--rose-light);
  border-bottom: 1px solid var(--rose);
}

.app-table th,
.app-table td,
table th,
table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #E8DCDC;
}

.card-highlight {
  border-left: 4px solid var(--rose);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.metric-card {
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.metric-card:hover {
  box-shadow: 0 6px 18px rgba(15, 30, 45, 0.12);
  transform: translateY(-2px);
}

.metric-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--navy);
}

.metric-card p {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--navy);
}

.metric-card a {
  color: var(--rose);
  font-weight: 700;
  text-decoration: none;
}

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

.action-grid .btn-primary,
.action-grid .btn-secondary {
  width: 100%;
}

.recent-campaigns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.recent-card {
  display: block;
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.recent-card:hover {
  box-shadow: 0 6px 18px rgba(15, 30, 45, 0.12);
  transform: translateY(-2px);
}

.recent-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--navy);
}

.recent-card p {
  margin: 0;
  color: rgba(15, 30, 45, 0.8);
}

.recent-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(15, 30, 45, 0.7);
}

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.pack-card {
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.06);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.pack-card:hover,
.pack-card:focus {
  border-color: var(--rose);
  box-shadow: 0 6px 18px rgba(15, 30, 45, 0.12);
  transform: translateY(-2px);
}

.pack-name {
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 6px;
}

.pack-price {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 2px;
}

.pack-credits {
  color: rgba(15, 30, 45, 0.7);
  font-weight: 600;
}

.welcome-banner,
.dashboard-header,
.low-credit-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wb-title {
  margin: 0 0 6px;
  color: var(--navy);
}

.wb-sub,
.wb-plan,
.dashboard-header p {
  margin: 0;
  color: rgba(15, 30, 45, 0.75);
}

.wb-upgrade {
  color: var(--rose);
  font-weight: 700;
}

.low-credit-banner {
  border-left: 4px solid var(--rose);
}

.low-credit-banner__actions {
  display: flex;
  gap: 10px;
}

.section-subtext {
  color: rgba(15, 30, 45, 0.72);
  margin-bottom: 8px;
}

.recent-empty {
  text-align: center;
  padding: 32px;
  color: rgba(15, 30, 45, 0.55);
}

.recent-empty a {
  color: var(--rose);
  font-weight: 700;
}


/* Admin Dashboard refinements */
.admin-header {
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.06);
}

.admin-header h1 {
  margin: 0 0 6px;
}

.admin-header p {
  margin: 0;
  color: rgba(15, 30, 45, 0.72);
}

.stats-grid,
.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stat-card {
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.06);
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
}

.stat-label {
  color: rgba(15, 30, 45, 0.65);
}

.section,
.section-card {
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.06);
  margin: 20px 0;
}

.section h2,
.section-card h2 {
  margin-top: 0;
  color: var(--navy) !important;
}

.section p,
.section-card p {
  color: rgba(15, 30, 45, 0.75) !important;
}

.data-table th {
  background: var(--rose-light);
  color: var(--navy);
}

.data-table td {
  border-top: 1px solid rgba(15, 30, 45, 0.08);
}

.app-container button,
.section button,
.section-card button {
  background: var(--navy) !important;
  color: var(--white) !important;
  border: 1px solid rgba(15, 30, 45, 0.08) !important;
  border-radius: 10px !important;
  padding: 10px 16px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.08);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.app-container button:hover,
.section button:hover,
.section-card button:hover {
  background: var(--gold) !important;
  color: var(--navy) !important;
  transform: translateY(-1px);
}

.app-container input,
.app-container select,
.section input,
.section select {
  border: 1px solid var(--rose) !important;
  border-radius: 8px !important;
  padding: 10px !important;
  color: var(--navy);
}

.confirm-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
}

.confirm-modal.active {
  display: flex;
}

.confirm-modal-content {
  background: var(--white);
  padding: 28px;
  border-radius: 14px;
  width: min(520px, 94%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.confirm-modal .confirm-word {
  background: var(--cream);
  border: 1px solid rgba(15, 30, 45, 0.1);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  font-weight: 800;
  color: var(--navy);
}

header,
.navbar,
.lp-header {
  background: var(--white);
  border-bottom: 1px solid #E8DCDC;
  padding: 16px 24px;
}

.sidebar {
  background: var(--white);
  border-right: 1px solid #E8DCDC;
}

.section-block {
  margin-bottom: 30px;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button-link {
  border: none;
  background: none;
  padding: 0;
}

/* Move floating sidebar toggle down so it does not block the header logo */

.mobile-menu-toggle {
  top: 24px;
  right: 32px;
  left: auto;
  z-index: 9999;
}

.sidebar-toggle-btn {
  top: 28px;
  left: 28px;
}

.sidebar-floating-toggle {
    top: 28px !important;
    left: 28px !important;
}

/* Jupiter Studio pages */
.jupiter-page .app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
}

.jupiter-page .header {
    background: var(--white);
    border: 1px solid #E8DCDC;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 6px 16px rgba(15, 30, 45, 0.06);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
}

.jupiter-page .header h1 {
    margin: 0 0 10px 0;
    font-size: 30px;
}

.jupiter-page .header p {
    margin: 0;
    color: var(--navy);
    opacity: 0.8;
}

.jupiter-page .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--rose-light);
    color: var(--navy);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid #E8DCDC;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 14px rgba(15, 30, 45, 0.08);
}

.jupiter-page .back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 30, 45, 0.12);
}

.jupiter-page .platform-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 8px;
    border-bottom: 1px solid #E8DCDC;
    margin: 24px 0 8px;
}

.jupiter-page .tab-btn {
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    border-radius: 10px 10px 0 0;
}

.jupiter-page .tab-btn.active {
    border-bottom-color: var(--rose);
    color: var(--navy);
}

.jupiter-page .platform-content {
    display: none;
    padding: 16px 0;
}

.jupiter-page .platform-content.active {
    display: block;
}

.jupiter-page .batch-post-card,
.jupiter-page .organic-post-card {
    background: var(--white);
    border: 1px solid rgba(15, 30, 45, 0.08);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 6px 16px rgba(15, 30, 45, 0.08);
}

.jupiter-page .batch-post-card h3,
.jupiter-page .organic-post-card h4 {
    margin: 0 0 8px 0;
}

.jupiter-page .platform-label {
    display: inline-block;
    background: #FCF6F6;
    border: 1px solid #E8DCDC;
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
    margin-bottom: 10px;
}

.jupiter-page .button-row,
.jupiter-page .post-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.jupiter-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.jupiter-page .stat-card {
    background: var(--white);
    border: 1px solid rgba(15, 30, 45, 0.08);
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(15, 30, 45, 0.06);
}

.jupiter-page .stat-number {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
}

.jupiter-page .stat-label {
    opacity: 0.7;
}

.jupiter-page .empty-state {
    text-align: center;
    padding: 40px 20px;
    border: 1px dashed #E8DCDC;
    border-radius: 14px;
    background: var(--cream);
}

/* Pricing page */
.pricing-page .app-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.pricing-page .upgrade-header {
    text-align: center;
    margin-bottom: 28px;
}

.pricing-page .upgrade-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.pricing-page .upgrade-header p {
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.8;
}

.pricing-page .current-plan-banner,
.pricing-page .promo-banner {
    background: var(--white);
    border: 1px solid #E8DCDC;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(15, 30, 45, 0.08);
    margin-bottom: 24px;
}

.pricing-page .pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 0 auto;
}

.pricing-page .plan-card {
    background: var(--white);
    border: 1px solid #E8DCDC;
    border-radius: 14px;
    padding: 22px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(15, 30, 45, 0.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-page .plan-card.recommended {
    border-color: var(--rose);
    box-shadow: 0 10px 20px rgba(212, 165, 165, 0.2);
}

.pricing-page .plan-title {
    font-weight: 800;
    font-size: 20px;
}

.pricing-page .plan-price {
    font-size: 30px;
    font-weight: 800;
}

.pricing-page .plan-credits {
    font-weight: 700;
    color: var(--navy);
}

.pricing-page .plan-feature {
    margin: 0;
    color: var(--navy);
    opacity: 0.75;
}

/* Success page */
.success-page {
    background: var(--cream);
}

.success-page .success-container {
    background: var(--white);
    border: 1px solid #E8DCDC;
    border-radius: 16px;
    padding: 32px;
    max-width: 760px;
    margin: 40px auto;
    text-align: center;
    box-shadow: 0 12px 30px rgba(15, 30, 45, 0.12);
}

.success-page .success-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 20px;
    background: var(--navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-page h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

.success-page .success-message {
    font-size: 18px;
    opacity: 0.85;
    margin-bottom: 24px;
}

.success-page .plan-details {
    border: 1px solid #E8DCDC;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 24px;
    text-align: left;
    background: #FCF6F6;
}

.success-page .next-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

footer {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
  opacity: 0.65;
}

.synthare-footer {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 30px 0 60px;
  background: transparent;
}

.sf-inner {
  max-width: 900px;
  text-align: center;
  color: rgba(15, 30, 45, 0.75);
}

.sf-copy,
.sf-built {
  margin: 6px 0;
}

/* Library grids */
.brands-grid,
.products-grid,
.campaigns-grid,
.campaign-library-grid,
.landing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.loading {
  text-align: center;
  padding: 16px;
  color: var(--navy);
}

.add-brand-card {
  border: 1px dashed var(--rose);
  border-radius: 14px;
  background: var(--white);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.06);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.add-brand-card:hover {
  box-shadow: 0 6px 18px rgba(15, 30, 45, 0.12);
  transform: translateY(-2px);
}

.add-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--rose-light);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 800;
}

.add-text { font-size: 16px; }
.add-subtext { font-size: 13px; opacity: 0.75; }

.brand-card {
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 14px rgba(15, 30, 45, 0.08);
  display: flex !important;
  flex-direction: column !important;
  gap: 10px;
  height: 100%;
}

.product-card {
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-top: 4px solid #F5B841;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.product-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0A1628;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
}

.product-name {
  font-size: 18px;
  font-weight: 800;
  color: #0A1628;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: rgba(10, 22, 40, 0.8);
}

.product-type { color: rgba(10, 22, 40, 0.7); }

.product-price {
  color: var(--color-gold-soft);
  font-weight: 700;
}

.product-campaigns {
  font-size: 13px;
  color: rgba(10, 22, 40, 0.6);
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-actions .btn-row {
  width: 100%;
}

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

.brand-name,
.brand-type,
.brand-vibe {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-type { color: rgba(15, 30, 45, 0.65); }
.brand-vibe { color: rgba(15, 30, 45, 0.55); font-size: 14px; }

.brand-logo-container {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: #f7f0e6;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.brand-logo-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
}

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

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  border: 1px solid #E8DCDC;
}

.brand-styles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.style-tag {
  padding: 6px 10px;
  border-radius: 10px;
  background: #FBF7F4;
  border: 1px solid #E8DCDC;
  font-weight: 700;
  font-size: 13px;
}

.brand-actions {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between;
  align-items: center;
  gap: 12px !important;
  margin-top: 16px;
  width: 100%;
  flex-wrap: nowrap !important;
  white-space: nowrap !important;
}

.brand-actions .action-btn {
  flex: 1 !important;
  white-space: nowrap !important;
}

/* Campaign cards */
.campaign-card {
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.campaign-title { font-weight: 800; font-size: 18px; }
.campaign-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; opacity: 0.8; }
.campaign-meta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; }
.campaign-preview { background: var(--cream); border-radius: 12px; padding: 12px; }
.campaign-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.winner-badge { background: var(--rose-light); border: 1px solid var(--rose); padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.campaign-actions { display: flex; gap: 8px; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(15,30,45,0.08); display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--rose-light); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; }

.founder-signature {
  text-align: center;
  margin-top: 50px;
  color: rgba(15, 30, 45, 0.8);
  font-weight: 600;
}

.founder-signature .fs-heart {
  color: var(--rose);
}

/* Global modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  z-index: 9999;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  width: min(520px, calc(100% - 32px));
  max-width: 520px;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid #E8DCDC;
  animation: modalFadeIn 0.25s ease-out;
  max-height: 80vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-content::-webkit-scrollbar {
  width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
  background-color: var(--color-gold);
  border-radius: 8px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.modal-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}

.modal-subtitle {
  margin: 4px 0 0;
  color: rgba(15, 30, 45, 0.65);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: rgba(15, 30, 45, 0.7);
}

.modal-close:hover {
  color: var(--gold);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tone-group {
  gap: 12px;
  margin-bottom: 24px;
}

.form-label {
  font-weight: 700;
  color: var(--navy);
}

.form-error {
  color: #e74c3c;
  font-weight: 700;
  font-size: 14px;
}

.color-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #E8DCDC;
  border-radius: 12px;
  background: #FBF7F4;
}

.color-input {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid #E8DCDC;
  background: var(--white);
}

.color-hex-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #E8DCDC;
}

.tone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.tone-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #E8DCDC;
  border-radius: 10px;
  background: #FBF7F4;
  color: var(--navy);
  font-weight: 700;
  text-align: left;
}

.tone-checkbox-label input {
  margin: 0;
}

.tone-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-cost-box {
  margin-top: 12px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(245, 184, 65, 0.15) 0%, rgba(255, 211, 105, 0.1) 100%);
  border: 1.5px solid rgba(245, 184, 65, 0.4);
  border-radius: 12px;
  display: inline-block;
  max-width: 100%;
}

.method-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.method-btn {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #E8DCDC;
  background: #FBF7F4;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.method-btn.active {
  border-color: var(--gold);
  color: var(--navy);
  background: #FFF8EC;
}

.upload-section,
#manualSection,
#commonFields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upload-zone {
  border: 1px dashed var(--rose);
  border-radius: 12px;
  padding: 16px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
}

.upload-text { font-weight: 700; }
.upload-subtext { color: rgba(15, 30, 45, 0.6); font-size: 13px; }

.logo-preview,
.ai-analyzing {
  border: 1px solid #E8DCDC;
  border-radius: 12px;
  padding: 12px;
  background: #FBF7F4;
}

.style-checkboxes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.style-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #E8DCDC;
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.style-checkbox.selected {
  border-color: var(--gold);
  background: #FFF8EC;
}

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

@media (max-width: 768px) {
  .app-container {
    padding: 24px 18px;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .mobile-menu-toggle {
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
  }
}

/* ========================================
   SYNTHARE LUXURY CSS UPGRADE
   Soft Dusty Pink Accent Mode
   ======================================== */

/* Add dusty pink to root variables */
:root {
  --dusty-pink: #e9c7cf;  /* soft feminine accent */
  --shadow-soft: 0 4px 16px rgba(0,0,0,0.08);
  --text-dark: #2d2d2d;
}

/* PART 1 - SOFT DUSTY PINK ACCENTS */

/* Soft Dusty Pink Accent Utilities */
.dp-accent {
  color: var(--dusty-pink) !important;
}

.dp-border {
  border-color: var(--dusty-pink) !important;
}

.dp-bg-soft {
  background: rgba(233, 199, 207, 0.18) !important;
}

.dp-pill {
  background: rgba(233, 199, 207, 0.25);
  border: 1px solid rgba(233,199,207,0.4);
  padding: 4px 10px;
  border-radius: 50px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 500;
}

/* PART 2 - ENHANCE EXISTING UI COMPONENTS */

/* Button Enhancements */
button:hover, .btn:hover {
  border-color: var(--dusty-pink);
  box-shadow: 0 2px 8px rgba(233,199,207,0.4);
}

.btn-outline {
  border: 1px solid var(--dusty-pink);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--dusty-pink);
  color: var(--navy);
}

/* Badges & Labels */
.badge, .tag, .label {
  border-radius: 6px;
  box-shadow: var(--shadow-soft);
}

.badge-pink, .tag-pink {
  background: rgba(233,199,207,0.35);
  color: var(--navy);
  border: 1px solid rgba(233,199,207,0.5);
}

/* Card Hover Effects */
.card:hover {
  border-color: var(--dusty-pink);
  box-shadow: 0 6px 20px rgba(233,199,207,0.35);
}

/* PART 3 - PINK ACCENTS FOR NEW FEATURES */

/* Campaign Library Industry Tags */
.industry-badge {
  border: 1px solid var(--dusty-pink);
  background: rgba(233,199,207,0.25);
  color: var(--navy);
}

/* JM Engine Indicator */
.jm-indicator {
  color: var(--dusty-pink);
  font-weight: 600;
}

/* Admin Unlimited Mode Header */
.admin-unlimited {
  color: var(--dusty-pink) !important;
  font-weight: bold;
}

/* Platform Formatting Buttons */
.platform-btn:hover {
  border-color: var(--dusty-pink);
  background: rgba(233,199,207,0.25);
}

/* PART 4 - SPACING & RESPONSIVE IMPROVEMENTS */

/* Global Spacing Adjustments */
.section {
  margin-bottom: 32px;
}

.card {
  padding: 22px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
  .card, .section {
    padding: 16px;
    margin-bottom: 24px;
  }
}

/* Premium Action Button Improvements */
.premium-action-btn {
  transition: all 0.3s ease;
}

.premium-action-btn:hover {
  border-color: var(--dusty-pink) !important;
  background: rgba(233, 199, 207, 0.15) !important;
}

/* Intelligence Card Accents */
.intelligence-card:hover .card-accent {
  background: linear-gradient(135deg, var(--dusty-pink), var(--gold));
}

/* Luxury Card Polish */
.luxury-card {
  transition: all 0.4s ease;
}

.luxury-card:hover {
  border-color: var(--dusty-pink);
  box-shadow: 0 8px 24px rgba(233, 199, 207, 0.25);
}

/* Enhanced Persona Badge */
.persona-badge {
  border: 1px solid var(--dusty-pink);
}

/* Campaign Card Enhancements */
.campaign-card.enhanced-luxury-card:hover {
  border-color: var(--dusty-pink);
  box-shadow: 0 8px 32px rgba(233, 199, 207, 0.2);
}

/* Quick Insight Items */
.insight-value.gold-text {
  background: linear-gradient(90deg, var(--gold), var(--dusty-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Voice Snapshot Power Words */
.power-word:hover {
  background: var(--dusty-pink);
  color: white;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Projection Widget Values */
.projection-value.gold-text {
  color: var(--dusty-pink) !important;
  font-weight: 700;
}

/* Day Preview Enhancements */
.day-preview:hover {
  background: rgba(233, 199, 207, 0.1);
  padding-left: 12px;
  transition: all 0.3s ease;
}

/* Admin Mode Special Styling */
.admin-indicator {
  background: linear-gradient(135deg, var(--dusty-pink), var(--gold));
}

/* Form Input Focus States */
input:focus, textarea:focus, select:focus {
  border-color: var(--dusty-pink);
  box-shadow: 0 0 0 3px rgba(233, 199, 207, 0.15);
}

/* Link Hover States */
a:hover {
  color: var(--dusty-pink);
}

/* Toast Notification Enhancements */
.toast-success {
  border-left: 4px solid var(--dusty-pink);
}

/* Loading Spinner Color */
.loading-spinner {
  color: var(--dusty-pink);
}

/* Enhanced Shadow Variables */
:root {
  --shadow-pink-soft: 0 4px 16px rgba(233, 199, 207, 0.2);
  --shadow-pink-medium: 0 8px 24px rgba(233, 199, 207, 0.3);
  --shadow-pink-large: 0 12px 36px rgba(233, 199, 207, 0.4);
}

/* Final Polish - Smooth All Transitions */
* {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════ */
/* GLOBAL PAW ICON STYLES - Hidden by Default, Reveal on Hover */
/* ═══════════════════════════════════════════════════════════ */
.paw-icon {
  margin-right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

button:hover .paw-icon,
.btn:hover .paw-icon,
.btn-generate:hover .paw-icon,
.btn-primary:hover .paw-icon {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════════════════════════ */
/* GLOBAL SEARCH INPUT - Single SVG Icon via CSS              */
/* ═══════════════════════════════════════════════════════════ */
.search-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 16px;
  padding-left: 42px !important;
}

/* ═══════════════════════════════════════════════════════════ */
/* CAMPAIGN RESULT / RESULT PAGE STYLES                        */
/* ═══════════════════════════════════════════════════════════ */

/* Credits Badge */
.credits-badge {
  background: var(--cream);
  border: 1px solid rgba(15, 30, 45, 0.12);
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

/* Back Button */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  transition: all 0.2s;
}

.back-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

.back-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Header Section */
.header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(15, 30, 45, 0.1);
}

.header h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px 0;
}

.header p {
  font-size: 14px;
  color: rgba(15, 30, 45, 0.7);
  margin: 0;
  font-weight: 500;
}

/* Platform Tabs */
.platform-tabs {
  display: flex;
  gap: 8px;
  margin: 24px 0;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(15, 30, 45, 0.1);
  padding-bottom: 0;
}

.tab-btn {
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: rgba(15, 30, 45, 0.6);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--navy);
}

.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
  font-weight: 700;
}

.tab-icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.platform-content {
  display: none;
  padding: 24px 0;
}

.platform-content.active {
  display: block;
}

/* Content Section Cards */
.content-section {
  background: var(--white);
  border: 1px solid rgba(15, 30, 45, 0.08);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(15, 30, 45, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.content-section:hover {
  box-shadow: 0 6px 18px rgba(15, 30, 45, 0.10);
  transform: translateY(-2px);
}

.content-section h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 30, 45, 0.08);
}

.section-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* Character Count */
.char-count {
  font-size: 12px;
  color: rgba(15, 30, 45, 0.6);
  margin-top: 8px;
  font-weight: 500;
}

.char-count.warning {
  color: #ef4444;
}

.char-count.success {
  color: #10b981;
}

/* Alerts */
.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  color: #065f46;
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* Landing Page CTA Box */
.landing-cta-box {
  margin-top: 24px;
  padding: 24px;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 30, 45, 0.2);
}

.landing-cta-box h3 {
  margin: 0 0 12px 0;
  color: var(--gold);
  font-size: 20px;
  font-weight: 700;
  border: none;
  padding: 0;
}

.landing-cta-box p {
  margin: 0 0 20px 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  line-height: 1.6;
}

/* Image Container */
.image-container {
  margin-top: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: 12px;
  border: 1px solid rgba(15, 30, 45, 0.08);
}

.generated-image {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-loading {
  text-align: center;
  padding: 40px;
  background: var(--cream);
  border-radius: 12px;
  border: 2px dashed var(--gold);
  color: var(--navy);
  font-weight: 600;
}

/* Button Gold Variant */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-gold:hover {
  background: #E3C26E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245, 184, 65, 0.3);
}

/* Button Danger Variant */
.btn-danger {
  background: #ef4444;
  color: var(--white);
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-danger:hover {
  background: #dc2626;
}

/* Credit Modal */
.credit-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.credit-modal {
  background: var(--white);
  padding: 28px;
  border-radius: 14px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.credit-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 16px 0;
}

.credit-modal-message {
  font-size: 15px;
  color: var(--navy);
  margin: 0 0 24px 0;
  line-height: 1.6;
}

.credit-modal-message span {
  color: var(--gold);
  font-weight: 700;
}

.credit-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.credit-confirm-btn {
  padding: 12px 24px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.credit-confirm-btn:hover {
  background: #E3C26E;
}

.credit-cancel-btn {
  padding: 12px 24px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid rgba(15, 30, 45, 0.2);
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.credit-cancel-btn:hover {
  background: var(--cream);
}
