:root {
  --primary: #00f0ff;
  --primary-hover: #00c3d0;
  --secondary: #b026ff;
  --background: #090910;
  --surface: rgba(20, 20, 35, 0.6);
  --surface-hover: rgba(30, 30, 50, 0.8);
  --border: rgba(255, 255, 255, 0.1);
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.7);
  --error: #ff3b3b;
  --success: #00e676;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--background);
  background-image: url('https://offertabs.s3.amazonaws.com/offer/5b4ri3/site/media/6ab6a2b6145971.45714809.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Utilities */
.hidden { display: none !important; }
.w-100 { width: 100%; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

/* Layout */
.app-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 3rem 1.5rem;
  background: radial-gradient(circle at 50% 0%, rgba(176, 38, 255, 0.15) 0%, transparent 60%);
}

.container {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* Typography & Header */
.header {
  text-align: center;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #a5a5b5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Glass Cards (General) */
.glass-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Poll Grid */
.choices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.choice-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.choice-card:hover {
  transform: translateY(-5px);
  background: var(--surface-hover);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.choice-card.selected {
  border-color: var(--primary);
  background: rgba(0, 240, 255, 0.05);
  box-shadow: 0 0 0 1px var(--primary), 0 10px 30px rgba(0, 240, 255, 0.2);
  transform: translateY(-5px);
}

.choice-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: rgba(0,0,0,0.3);
  background-size: cover;
  background-position: center;
  position: relative;
}

.choice-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(9,9,16,0.9) 0%, transparent 60%);
}

.choice-content {
  padding: 1.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
}

.choice-content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  text-align: center;
}

.selected-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0, 240, 255, 0.4);
  z-index: 3;
}

/* Actions */
.action-container {
  margin-top: 3rem;
  text-align: center;
  animation: fadeIn 0.4s ease forwards;
}

.selection-feedback {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.selection-feedback strong {
  color: var(--primary);
  font-family: var(--font-heading);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-large {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--primary);
  color: #090910;
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:disabled {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.5);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Forms */
.form-card {
  max-width: 500px;
  margin: 0 auto;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-muted);
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.input-group input {
  width: 100%;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

/* Results */
.results-card {
  max-width: 700px;
  margin: 0 auto;
}

.results-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(0, 230, 118, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  margin: 0 auto 1.5rem;
  box-shadow: 0 0 30px rgba(0, 230, 118, 0.2);
}

.results-header h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.results-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.result-item {
  margin-bottom: 1.5rem;
}

.result-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 600;
}

.result-title {
  font-size: 1.1rem;
}

.result-stats {
  color: var(--primary);
}

.progress-track {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: 999px;
  width: 0%;
  transition: width 1s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shine 2s infinite;
}

/* Share Panel */
.share-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
}

.share-box h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.share-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.share-input-group input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text-muted);
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 12px;
  margin-top: 1.5rem;
  text-align: center;
  font-weight: 500;
}

.alert-error {
  background: rgba(255, 59, 59, 0.1);
  color: var(--error);
  border: 1px solid rgba(255, 59, 59, 0.2);
}

.status-card {
  text-align: center;
  padding: 3rem;
}

/* Powered By */
#wbx-powered-by-slot {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@media (max-width: 768px) {
  .app-wrapper {
    padding: 2rem 1rem;
  }
  .glass-card {
    padding: 1.5rem;
  }
  .main-title {
    font-size: 2.25rem;
  }
}
