/* Root Variables */
:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-dark: #f1f5f9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --background: #0f172a;
  --surface: #1e293b;
  --surface-dark: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #334155;
}

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

/* Base Styles */
body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--background);
  transition: var(--transition);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navigation */
.navbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(59, 130, 246, 0.1);
}

.theme-toggle {
  background: var(--surface-dark);
  border: 1px solid var(--border);
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
}

/* Sections */
.section {
  display: none;
  padding: 2rem 0;
  min-height: calc(100vh - 80px);
}

.section.active {
  display: block;
}

/* Hero */
/* Ultra Compact Hero Section */
.hero-enhanced {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 0.75rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: white;
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}

.hero-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
  backdrop-filter: blur(10px);
}

.hero-enhanced h1 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.highlight {
  color: #ffd700;
}

.gradient-text {
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 0.75rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.reward-amounts {
  color: #ffd700;
  font-weight: 700;
}

.hero-features {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
}

.feature-item i {
  color: #ffd700;
}

.hero-stats {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1rem;
  font-weight: 700;
  color: #ffd700;
}

.stat-label {
  font-size: 0.65rem;
  opacity: 0.8;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 0.75rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
  transform: rotate(-5deg);
  animation: float 3s ease-in-out infinite;
  max-width: 140px;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.card-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.25rem;
}

.card-status.success {
  color: #10b981;
  font-weight: 600;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.floating-icon {
  position: absolute;
  font-size: 1rem;
  animation: floatRandom 4s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-icon:nth-child(1) { top: 20%; left: 10%; }
.floating-icon:nth-child(2) { top: 60%; right: 20%; }
.floating-icon:nth-child(3) { bottom: 30%; left: 30%; }

@keyframes float {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-10px); }
}

@keyframes floatRandom {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.7; }
  50% { transform: translateY(-20px) scale(1.1); opacity: 1; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-enhanced {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 0.75rem;
  }
  
  .hero-enhanced h1 {
    font-size: 1.25rem;
  }
  
  .hero-features {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .hero-stats {
    justify-content: center;
    gap: 0.75rem;
  }
  
  .floating-card {
    max-width: 120px;
    padding: 0.5rem;
  }
  
  .card-amount {
    font-size: 1rem;
  }
}

/* Dashboard */
.dashboard {
  display: grid;
  gap: 2rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--surface);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
}

.stat-card:nth-child(1) .stat-icon { background: #3b82f6; }
.stat-card:nth-child(2) .stat-icon { background: #10b981; }
.stat-card:nth-child(3) .stat-icon { background: #f59e0b; }
.stat-card:nth-child(4) .stat-icon { background: #ef4444; }

.stat-content h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.stat-content p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Reward Card */
.reward-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.reward-header {
  padding: 1.5rem;
  background: var(--gradient);
  color: white;
  text-align: center;
}

.reward-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.steps-container {
  padding: 1rem;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.step-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.step-card.active {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.step-number {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 1rem;
}

.step-content p {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Channels Grid */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.channel-item {
  background: var(--surface-dark);
  padding: 0.75rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.channel-info {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.channel-name {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.125rem;
  font-size: 0.9rem;
}

/* Channel name centered and bold */
.channel-name-center {
  font-weight: 700;
  color: var(--text);
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 0;
  padding: 0.5rem 0;
}

/* Channel name centered and bold - removed members */
.channel-name-center {
  font-weight: 700;
  color: var(--text);
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 0;
  padding: 0.5rem 0;
}

.channel-members {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.channel-btn {
  background: #0088cc;
  color: white;
  padding: 0.375rem 0.75rem;
  border: none;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: var(--transition);
}

.channel-btn:hover {
  background: #0077b3;
  transform: translateY(-1px);
}

/* Channel Actions */
.channel-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Professional Checkbox */
.channel-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-muted);
  user-select: none;
  transition: var(--transition);
}

.channel-checkbox:hover {
  color: var(--text);
}

.channel-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  background: var(--background);
}

.channel-checkbox:hover .checkmark {
  border-color: var(--primary);
}

.channel-checkbox input[type="checkbox"]:checked + .checkmark {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.channel-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  color: white;
  font-weight: bold;
  font-size: 14px;
  position: absolute;
  animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
  0% {
    transform: scale(0);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.checkbox-label {
  font-weight: 500;
  transition: var(--transition);
}

.channel-checkbox input[type="checkbox"]:checked ~ .checkbox-label {
  color: #10b981;
  font-weight: 600;
}

/* Disabled verify button */
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.3);
}

/* Form Elements */
.form-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.form-input,
.form-select {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  background: var(--background);
  color: var(--text);
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--secondary);
  color: white;
}

.btn-secondary:hover {
  background: #475569;
  transform: translateY(-1px);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
  transform: translateY(-1px);
}

/* Activity Card */
.activity-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.activity-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 300px;
  overflow: hidden;
  position: relative;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-size: 0.875rem;
  min-height: 50px;
  animation: slideInFromBottom 0.5s ease-out;
}

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

.activity-feed.scrolling .activity-item {
  animation: scrollUp 0.3s ease-in-out;
}

@keyframes scrollUp {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-60px);
  }
}

.activity-item:hover {
  box-shadow: var(--shadow);
}

.activity-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.activity-content {
  flex: 1;
}

.activity-content p {
  margin-bottom: 0.2rem;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.3;
}

.activity-time {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.activity-status {
  padding: 0.2rem 0.4rem;
  border-radius: 0.2rem;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

.activity-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.activity-status.completed {
  background: #d1fae5;
  color: #065f46;
}

.activity-status.successful {
  background: #d1fae5;
  color: #065f46;
  position: relative;
  padding-left: 1.5rem;
}

.activity-status.successful::before {
  content: "✓";
  position: absolute;
  left: 0.375rem;
  top: 50%;
  transform: translateY(-50%);
  color: #059669;
  font-weight: bold;
  font-size: 0.875rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  backdrop-filter: blur(4px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-animation {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: 1rem;
  animation: successBounce 0.6s ease;
}

@keyframes successBounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.modal-content h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.transaction-details {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1rem;
  margin: 1rem 0;
  text-align: left;
}

.transaction-details p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.transaction-details strong {
  color: var(--text);
}

/* Loading Spinner */
.loading-spinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(4px);
}

.loading-spinner.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.spinner {
  width: 3rem;
  height: 3rem;
  border: 3px solid rgba(59, 130, 246, 0.3);
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-spinner p {
  color: white;
  font-weight: 500;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1rem 1.5rem;
  min-width: 300px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: toastSlideIn 0.3s ease;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--error);
}

.toast.warning {
  border-left: 4px solid var(--warning);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Analytics Section */
.analytics-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.chart-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.chart-container h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.metrics-grid {
  display: grid;
  gap: 1rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.metric-card h4 {
  margin-bottom: 1rem;
  color: var(--text);
}

.funnel-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.funnel-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
}

.funnel-step span:first-child {
  color: var(--text-muted);
}

.funnel-step span:last-child {
  font-weight: 600;
  color: var(--text);
}

/* Admin Section */
.admin-content {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 1.5rem;
}

.admin-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
}

.channel-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.channels-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-channel-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
}

.admin-channel-info h4 {
  color: var(--text);
  margin-bottom: 0.25rem;
}

.admin-channel-info p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.admin-channel-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setting-item label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.875rem;
}

/* Input Container and Hints */
.input-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.input-hint {
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-style: italic;
  margin-top: -0.25rem;
  margin-left: 0.25rem;
}

/* Captcha Styles */
.captcha-section {
  margin: 1.5rem 0;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
}

.captcha-label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
}

.captcha-container {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 0.375rem;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1.125rem;
  letter-spacing: 2px;
  min-width: 120px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.captcha-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  animation: captchaShine 3s infinite;
}

@keyframes captchaShine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.captcha-refresh {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 0.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.captcha-refresh:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(180deg);
}

.captcha-input {
  max-width: 100px;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
  border: 2px solid var(--primary);
}

.captcha-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Captcha validation states */
.captcha-input.valid {
  border-color: #10b981;
  background-color: rgba(16, 185, 129, 0.1);
}

.captcha-input.invalid {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.75rem;
  }
  
  .nav-menu {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
  }
  
  .hero h1 {
    font-size: 1.875rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  
  .step-card {
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }
  
  .form-group {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .channels-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .steps-container {
    padding: 0.75rem;
  }
  
  .analytics-content {
    grid-template-columns: 1fr;
  }
  
  .channel-form {
    grid-template-columns: 1fr;
  }
  
  .toast {
    min-width: auto;
    width: calc(100% - 2rem);
  }
}

@media (max-width: 480px) {
  .navbar .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 1.5rem;
  }
}

/* Enhanced Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  z-index: 1001;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
}

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

.success-modal {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  max-width: 600px;
  width: 95%;
  max-height: 85vh;
  color: white;
  position: relative;
  overflow: hidden;
  animation: modalBounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalBounceIn {
  0% {
    transform: scale(0.3) translateY(-100px);
    opacity: 0;
  }
  50% {
    transform: scale(1.05) translateY(0);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.confetti-animation {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffd700;
  border-radius: 50%;
  animation: confetti-fall 3s infinite;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; background: #ff6b6b; }
.confetti:nth-child(2) { left: 30%; animation-delay: 0.5s; background: #4ecdc4; }
.confetti:nth-child(3) { left: 50%; animation-delay: 1s; background: #45b7d1; }
.confetti:nth-child(4) { left: 70%; animation-delay: 1.5s; background: #96ceb4; }
.confetti:nth-child(5) { left: 90%; animation-delay: 2s; background: #ffeaa7; }

@keyframes confetti-fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(400px) rotate(720deg);
    opacity: 0;
  }
}

.modal-header {
  text-align: center;
  padding: 1.5rem 2rem 1rem;
  position: relative;
  z-index: 10;
}

.success-icon {
  font-size: 3rem;
  color: #4ade80;
  margin-bottom: 0.75rem;
  animation: iconPulse 2s infinite;
}

@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.modal-header h2 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.success-subtitle {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0;
}

.modal-body {
  padding: 0.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.reward-amount-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 15px;
  padding: 1.25rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  grid-column: 1 / -1;
}

.amount-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.currency {
  font-size: 2rem;
  font-weight: 600;
}

.amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #4ade80;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.amount-text {
  font-size: 1.1rem;
  opacity: 0.9;
  margin: 0;
}

.delivery-info-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.delivery-time {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.delivery-time i {
  font-size: 1.5rem;
  color: #fbbf24;
}

.time-details h4 {
  margin: 0 0 0.25rem 0;
  font-size: 1.1rem;
}

.time-details p {
  margin: 0;
  opacity: 0.9;
}

.transaction-details-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.detail-row:last-child {
  margin-bottom: 0;
}

.detail-row i {
  font-size: 1.25rem;
  color: #60a5fa;
  width: 20px;
}

.detail-row div {
  flex: 1;
}

.detail-row label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 0.25rem;
}

.detail-row span {
  font-weight: 600;
  word-break: break-all;
}

.success-features {
  display: flex;
  justify-content: space-around;
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.feature i {
  font-size: 1.25rem;
  color: #4ade80;
}

.modal-footer {
  padding: 0.75rem 2rem 1.5rem;
  text-align: center;
}

.modal-footer .btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.modal-footer .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}