/* Luxury International Typography & Rhythm */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 0% 50%, rgba(56, 189, 248, 0.05) 0%, transparent 50%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.65rem 1.25rem;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-emblem {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.brand-title span {
  color: var(--accent-gold-bright);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-patronage {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #070a14;
  border: none;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-patronage:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
  color: #000;
}

.badge-free {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  text-transform: uppercase;
}

/* Container */
.main-layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.2rem 1.25rem 2.5rem;
}

.hero-banner {
  text-align: center;
  margin-bottom: 1.4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--accent-gold-bright);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--text-white);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.hero-title span {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

/* Grid Workspace */
.astro-workspace-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 1.25rem;
  align-items: start;
}

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

/* Panel Card */
.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  padding-bottom: 0.65rem;
  margin-bottom: 1rem;
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 0.85rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-input, .form-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition-smooth);
}

.form-input:focus, .form-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.btn-generate {
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #070a14;
  border: none;
  font-weight: 900;
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
}

.btn-generate:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Responsive Layout & Mobile View Adjustments (iOS & Android) */
/* Responsive Layout & Mobile View Adjustments (iOS & Android) */
@media (max-width: 820px) {
  .site-header { padding: 0.5rem 0.75rem; }
  .header-container { flex-wrap: nowrap; justify-content: space-between; }
  .brand-wrapper { gap: 0.5rem; }
  .brand-emblem { width: 34px; height: 34px; }
  .brand-title { font-size: 1.15rem; font-weight: 900; }
  .brand-tagline { display: block; font-size: 0.62rem; font-weight: 700; color: var(--text-muted); }
  .main-layout { padding: 0.65rem 0.5rem 2rem; }
  .hero-banner { margin-bottom: 0.75rem; }
  .hero-badge { font-size: 0.7rem; padding: 0.2rem 0.6rem; margin-bottom: 0.4rem; }
  .hero-title { font-size: 1.25rem; line-height: 1.25; margin-bottom: 0.25rem; }
  .hero-subtitle { font-size: 0.75rem; line-height: 1.4; padding: 0 4px; }
  .astro-workspace-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0.65rem; }
  .glass-panel { padding: 0.75rem; }
  .panel-header { flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 0.5rem; }
  .panel-header span:last-child { align-self: flex-start; font-size: 0.65rem !important; }
  .panel-title { font-size: 0.9rem; }
}
