:root {
  --bg-dark: #05080d;
  --bg-card: rgba(14, 20, 31, 0.85);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-glass: rgba(255, 255, 255, 0.12);
  --gold: #f8b42b;
  --gold-glow: rgba(248, 180, 43, 0.3);
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow-x: hidden;
  padding: 1.5rem 1rem;
}

/* Ambient Background Lights */
.bg-ambience {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
}

.orb-1 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, #f8b42b 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #0284c7 0%, transparent 70%);
  bottom: -150px;
  right: -100px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Container & Card */
.main-wrapper {
  width: 100%;
  max-width: 680px;
  margin: auto;
}

.card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Header */
.brand-header {
  text-align: center;
  margin-bottom: 2rem;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(248, 180, 43, 0.12);
  border: 1px solid rgba(248, 180, 43, 0.25);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.brand-badge i {
  font-size: 0.85rem;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}

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

.brand-subtitle {
  font-size: 0.925rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Features Pills Banner */
.features-banner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
}

.feature-pill i {
  color: var(--gold);
}

/* Star Rating Section */
.rating-box {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.rating-prompt {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.stars-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 2.75rem;
  color: #334155;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease, filter 0.2s ease;
  padding: 0.2rem;
  line-height: 1;
  outline: none;
}

.star-btn:hover,
.star-btn.active {
  color: var(--gold);
  transform: scale(1.22);
  filter: drop-shadow(0 0 14px var(--gold-glow));
}

.rating-label {
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 1.5rem;
  color: var(--gold);
}

/* Dynamic Panels */
.panel {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.35s ease;
}

.panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* High Rating (4-5 Star) Flow */
.positive-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(248, 180, 43, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.positive-card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.positive-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.suggestions-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.75rem;
  text-align: left;
}

.draft-chips {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.draft-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.83rem;
  color: #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.draft-chip:hover {
  background: rgba(248, 180, 43, 0.1);
  border-color: rgba(248, 180, 43, 0.35);
  color: #ffffff;
}

.draft-chip i {
  color: var(--gold);
  font-size: 0.85rem;
}

.btn-gmb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: linear-gradient(135deg, #f8b42b 0%, #d97706 100%);
  color: #05080d;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(248, 180, 43, 0.3);
  transition: all 0.25s ease;
}

.btn-gmb:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(248, 180, 43, 0.45);
}

/* Low Rating (1-3 Star) Private Feedback Flow */
.negative-card {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.negative-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fca5a5;
  margin-bottom: 0.4rem;
}

.negative-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  color: #cbd5e1;
  margin-bottom: 0.6rem;
}

.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.chip-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.chip-btn.selected {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

textarea.form-control,
input.form-control {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s ease;
}

textarea.form-control:focus,
input.form-control:focus {
  border-color: var(--gold);
}

.submit-btn {
  width: 100%;
  background: #334155;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.975rem;
  font-weight: 700;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  background: #ef4444;
}

/* Toast Message */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1e293b;
  border: 1px solid var(--gold);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Footer Info */
.footer-text {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-subtle);
  margin-top: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .card {
    padding: 1.5rem 1.25rem;
  }
  .brand-title {
    font-size: 1.6rem;
  }
  .star-btn {
    font-size: 2.25rem;
  }
}
