/* ===========================================
   WAFFI ADVERTISER PORTAL - Professional UI
   Brand Colors: Blue (#3B82F6), Orange (#F7941D)
   =========================================== */

:root {
  /* Primary Brand Colors */
  --primary-blue: #3B82F6;
  --primary-blue-dark: #2563EB;
  --primary-blue-light: #60A5FA;
  --primary-orange: #F7941D;
  --primary-orange-dark: #EA580C;
  --primary-orange-light: #FB923C;
  
  /* Neutral Colors */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  
  /* Semantic Colors */
  --success: #10B981;
  --success-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --error: #EF4444;
  --error-light: #FEE2E2;
  --info: #3B82F6;
  --info-light: #DBEAFE;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
  --gradient-orange: linear-gradient(135deg, #F7941D 0%, #EA580C 100%);
  --gradient-dark: linear-gradient(135deg, #1F2937 0%, #111827 100%);
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--gray-100);
  color: var(--gray-800);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* View Management */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* ============================================
   LOGIN / SIGNUP VIEWS
   ============================================ */

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--gradient-primary);
  position: relative;
  overflow: hidden;
}

/* Decorative background elements */
.login-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.login-container::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle at center, rgba(247, 148, 29, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.login-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

.login-header {
  text-align: center;
  margin-bottom: 36px;
}

.login-header::before {
  content: '📣';
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
}

.login-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.login-header p {
  color: var(--gray-500);
  font-size: 15px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Form Groups */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select {
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: all var(--transition-fast);
  background: var(--gray-50);
}

.form-group input:hover,
.form-group select:hover {
  border-color: var(--gray-300);
}

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

.form-group input::placeholder {
  color: var(--gray-400);
}

/* Checkbox Styles */
.checkbox-group {
  margin-top: 10px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-700);
}

.checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--primary-blue);
}

.checkbox-label span {
  flex: 1;
}

/* Terms and Privacy Checkbox */
.terms-checkbox {
  margin-top: 16px;
  margin-bottom: 8px;
}

.terms-checkbox .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.5;
  font-weight: normal;
}

.terms-checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--primary-blue);
}

.terms-checkbox a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.terms-checkbox a:hover {
  text-decoration: underline;
}

.divider {
  text-align: center;
  margin: 24px 0;
  color: var(--gray-400);
  font-size: 14px;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--gray-200);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

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

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

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

.btn-success:hover:not(:disabled) {
  background: #059669;
}

.btn-orange {
  background: var(--gradient-orange);
  color: white;
  box-shadow: 0 4px 14px rgba(247, 148, 29, 0.4);
}

.btn-orange:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247, 148, 29, 0.5);
}

.btn-link {
  background: none;
  color: var(--primary-blue);
  padding: 8px 12px;
  font-weight: 500;
}

.btn-link:hover {
  text-decoration: underline;
  background: var(--info-light);
  border-radius: var(--radius-sm);
}

.btn-small {
  padding: 10px 16px;
  font-size: 13px;
}

.full-width {
  width: 100%;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  background: white;
  padding: 0 32px;
  height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-logo {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.navbar-left h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}

.navbar-left p {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.navbar-right span {
  font-size: 14px;
  color: var(--gray-600);
  font-weight: 500;
}

.navbar-right .btn {
  padding: 10px 20px;
}

/* ============================================
   DASHBOARD
   ============================================ */

.dashboard-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  background: white;
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tab-btn {
  padding: 12px 24px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn:hover {
  color: var(--gray-700);
  background: var(--gray-50);
}

.tab-btn.active {
  color: white;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm);
}

.tab-content {
  display: none;
}

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

/* Section Header */
.section-header {
  margin-bottom: 32px;
}

.section-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--gray-500);
  font-size: 15px;
}

/* ============================================
   CAMPAIGNS LIST
   ============================================ */

.campaigns-list {
  display: grid;
  gap: 20px;
}

.campaign-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  gap: 24px;
  transition: all var(--transition-fast);
}

.campaign-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

.campaign-media {
  flex-shrink: 0;
  width: 200px;
  height: 150px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
}

.campaign-media img,
.campaign-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.campaign-details {
  flex: 1;
}

.campaign-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.status-pending {
  background: var(--warning-light);
  color: #B45309;
}

.status-active {
  background: var(--success-light);
  color: #047857;
}

.status-approved {
  background: var(--info-light);
  color: #1D4ED8;
}

.status-rejected {
  background: var(--error-light);
  color: #B91C1C;
}

.status-expired {
  background: var(--gray-200);
  color: var(--gray-600);
}

.campaign-details p {
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--gray-600);
}

.campaign-details p strong {
  color: var(--gray-700);
}

.admin-comments {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--warning-light);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: #92400E;
  border-left: 4px solid var(--warning);
}

/* ============================================
   WIZARD STEPS
   ============================================ */

.steps-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
  background: white;
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.steps-progress::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 60px;
  right: 60px;
  height: 3px;
  background: var(--gray-200);
  z-index: 0;
  transform: translateY(-50%);
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
  background: white;
  padding: 0 16px;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  transition: all var(--transition-base);
  border: 3px solid white;
  box-shadow: var(--shadow-sm);
}

.step.active .step-number {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
}

.step.completed .step-number {
  background: var(--success);
  color: white;
}

.step-label {
  font-size: 13px;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
}

.step.active .step-label {
  color: var(--primary-blue);
  font-weight: 600;
}

.step.completed .step-label {
  color: var(--success);
}

/* Wizard Step Content */
.wizard-step {
  display: none;
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.wizard-step.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

.wizard-step h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wizard-step h2::before {
  content: '';
  width: 4px;
  height: 28px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.wizard-step > p {
  color: var(--gray-500);
  margin-bottom: 28px;
  font-size: 15px;
}

.wizard-actions {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

/* ============================================
   FILE UPLOAD
   ============================================ */

.file-upload-area {
  margin-bottom: 24px;
}

.file-upload-area input[type="file"] {
  display: none;
}

.file-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--gray-50);
}

.file-upload-label:hover {
  border-color: var(--primary-blue);
  background: var(--info-light);
}

.upload-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.8;
}

.upload-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 14px;
  color: var(--gray-400);
}

.media-preview {
  margin-top: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-md);
}

.media-preview img,
.media-preview video {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   STORE SELECTOR
   ============================================ */

.store-selector-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: center;
}

.store-search-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--gray-50);
  transition: all var(--transition-fast);
}

.store-search-input:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.filter-select {
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--gray-50);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: white;
}

.stores-table-container {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.stores-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.stores-table thead {
  position: sticky;
  top: 0;
  background: var(--gray-50);
  z-index: 10;
}

.stores-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-700);
  border-bottom: 2px solid var(--gray-200);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stores-table td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-100);
}

.stores-table tbody tr {
  transition: all var(--transition-fast);
}

.stores-table tbody tr:hover {
  background: var(--gray-50);
}

.stores-table tbody tr.selected {
  background: var(--info-light);
}

.stores-table input[type="checkbox"] {
  cursor: pointer;
  width: 18px;
  height: 18px;
  accent-color: var(--primary-blue);
}

/* Ad Rate Cells */
.rate-cell {
  font-weight: 600;
  color: var(--success);
  white-space: nowrap;
}

.rate-cell .waived {
  color: var(--primary-orange);
  font-style: italic;
}

.selection-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  border: 1px solid var(--gray-200);
}

.selection-summary .badge {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   PAYMENT SECTION
   ============================================ */

.payment-summary {
  background: linear-gradient(135deg, #EFF6FF 0%, #F0FDF4 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 28px;
  border: 1px solid var(--gray-200);
}

.payment-summary h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  font-size: 14px;
  color: var(--gray-600);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row.total {
  border-top: 2px solid var(--gray-200);
  border-bottom: none;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 12px;
  padding-top: 16px;
}

.form-hint {
  font-size: 13px;
  color: var(--gray-400);
  margin-top: 8px;
}

/* Payment Form */
.payment-form {
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 24px;
}

.payment-form h3 {
  margin: 0 0 24px 0;
  color: var(--gray-800);
  font-size: 17px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-form h3::before {
  content: '💳';
  font-size: 20px;
}

.payment-form .form-group {
  margin-bottom: 20px;
}

.payment-form .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.payment-form .form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 15px;
  transition: all var(--transition-fast);
  background: var(--gray-50);
}

.payment-form .form-group input:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Stripe Elements styling */
.payment-form .stripe-element {
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background-color: var(--gray-50);
  transition: all var(--transition-fast);
}

.payment-form .stripe-element.StripeElement--focus {
  border-color: var(--primary-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.payment-form .stripe-element.StripeElement--invalid {
  border-color: var(--error);
}

.payment-form .error-message {
  color: var(--error);
  font-size: 13px;
  margin-top: 8px;
  min-height: 18px;
}

.payment-form .payment-info-text {
  background: var(--warning-light);
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #92400E;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.payment-form .payment-info-text::before {
  content: 'ℹ️';
  font-size: 18px;
  flex-shrink: 0;
}

.payment-form .form-row {
  display: flex;
  gap: 16px;
}

.payment-form .form-group.half {
  flex: 1;
}

/* ============================================
   REVIEW SUMMARY
   ============================================ */

.review-summary {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
}

.review-details {
  flex: 1;
  background: var(--gray-50);
  padding: 24px;
  border-radius: var(--radius-lg);
}

.detail-row {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 15px;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-row strong {
  min-width: 160px;
  color: var(--gray-500);
  font-weight: 500;
}

.detail-row span {
  color: var(--gray-800);
  font-weight: 600;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

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

.loading-spinner {
  width: 56px;
  height: 56px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top: 4px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   TOAST MESSAGES
   ============================================ */

.toast {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  padding: 16px 28px;
  border-radius: var(--radius-lg);
  color: white;
  font-size: 15px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  transition: bottom 0.3s ease;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.toast.show {
  bottom: 32px;
}

.toast.success {
  background: var(--success);
}

.toast.success::before {
  content: '✓';
  font-weight: 700;
}

.toast.error {
  background: var(--error);
}

.toast.error::before {
  content: '✕';
  font-weight: 700;
}

.toast.info {
  background: var(--primary-blue);
}

.toast.info::before {
  content: 'ℹ';
  font-weight: 700;
}

/* ============================================
   MODAL STYLES
   ============================================ */

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 450px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  z-index: 1;
  animation: modalIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: var(--gray-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  font-size: 20px;
  cursor: pointer;
  color: var(--gray-500);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--gray-700);
}

.modal-content h2 {
  margin-bottom: 12px;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 700;
}

.modal-content p {
  color: var(--gray-500);
  margin-bottom: 24px;
  font-size: 15px;
}

/* Forgot Password Link */
.forgot-password-link {
  text-align: center;
  margin-top: 12px;
}

.forgot-password-link .btn-link {
  background: none;
  border: none;
  color: var(--primary-blue);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.forgot-password-link .btn-link:hover {
  text-decoration: underline;
}

/* Reset Message */
.reset-message {
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.reset-message.success {
  background: var(--success-light);
  color: #047857;
  border: 1px solid #6EE7B7;
}

.reset-message.error {
  background: var(--error-light);
  color: #B91C1C;
  border: 1px solid #FCA5A5;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

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

.text-muted {
  color: var(--gray-500);
}

.text-primary {
  color: var(--primary-blue);
}

.text-orange {
  color: var(--primary-orange);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
  .login-card {
    padding: 32px 24px;
  }
  
  .navbar {
    padding: 16px;
    height: auto;
    flex-direction: column;
    gap: 16px;
  }
  
  .dashboard-container {
    padding: 16px;
  }
  
  .tabs {
    flex-direction: column;
    gap: 4px;
  }
  
  .tab-btn {
    text-align: left;
  }
  
  .campaign-card {
    flex-direction: column;
  }

  .campaign-media {
    width: 100%;
    height: 200px;
  }

  .steps-progress {
    padding: 16px;
    overflow-x: auto;
  }
  
  .steps-progress::before {
    display: none;
  }

  .wizard-step {
    padding: 24px;
  }
  
  .wizard-actions {
    flex-direction: column;
  }
  
  .wizard-actions .btn {
    width: 100%;
  }

  .store-selector-controls {
    flex-direction: column;
  }
  
  .store-selector-controls > * {
    width: 100%;
  }
  
  .stores-table-container {
    max-height: 300px;
  }
  
  .stores-table {
    font-size: 13px;
  }
  
  .stores-table th,
  .stores-table td {
    padding: 10px 12px;
  }

  .review-summary {
    flex-direction: column;
  }
  
  .payment-form .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .payment-form .form-group.half {
    width: 100%;
  }
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
  text-align: center;
  padding: 64px 32px;
  color: var(--gray-500);
}

.empty-state-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 20px;
  color: var(--gray-700);
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 15px;
  max-width: 400px;
  margin: 0 auto;
}

/* ============================================
   TAGS
   ============================================ */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--info-light);
  color: var(--primary-blue);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
}

.tag button {
  background: none;
  border: none;
  color: var(--primary-blue);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.tag button:hover {
  background: rgba(59, 130, 246, 0.2);
}

/* ============================================
   CHECKBOX GROUP (Duration, etc.)
   ============================================ */

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  background: var(--gray-50);
}

.checkbox-group label:hover {
  border-color: var(--primary-blue);
  background: var(--info-light);
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary-blue);
}

.checkbox-group input[type="checkbox"]:checked + * {
  font-weight: 600;
  color: var(--primary-blue);
}

/* ============================================
   BRAND ACCENT - Orange highlights
   ============================================ */

.accent-orange {
  color: var(--primary-orange);
}

.bg-accent-orange {
  background: var(--gradient-orange);
}

.border-accent-orange {
  border-color: var(--primary-orange);
}

/* ============================================
   PROFILE BUTTON (Navbar)
   ============================================ */

.btn-icon {
  padding: 8px 12px;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.btn-icon:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

.profile-icon {
  font-size: 18px;
}

/* ============================================
   SEGMENTED CONTROL
   ============================================ */

.segmented-control {
  display: flex;
  background: white;
  border-radius: var(--radius-lg);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  margin-bottom: 24px;
  gap: 4px;
}

.segment-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.segment-btn:hover {
  color: var(--gray-700);
  background: var(--gray-50);
}

.segment-btn.active {
  color: white;
  background: var(--gradient-primary);
  box-shadow: var(--shadow-sm);
}

.segment-btn.active .segment-count {
  background: rgba(255, 255, 255, 0.25);
  color: white;
}

.segment-label {
  font-weight: 600;
}

.segment-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: var(--gray-200);
  color: var(--gray-600);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
}

/* Ads Sections */
.ads-section {
  display: none;
}

.ads-section.active {
  display: block;
}

/* ============================================
   CAMPAIGN ACTIONS
   ============================================ */

.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

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

.btn-warning:hover:not(:disabled) {
  background: #D97706;
}

/* Additional status styles */
.status-paused {
  background: var(--warning-light);
  color: #B45309;
}

.status-archived {
  background: var(--gray-200);
  color: var(--gray-600);
}

.status-ended {
  background: var(--gray-200);
  color: var(--gray-600);
}

/* Empty state styling */
.empty-state {
  padding: 60px 20px;
  color: var(--gray-500);
  font-size: 15px;
}

/* ============================================
   MODAL ENHANCEMENTS
   ============================================ */

.modal-lg {
  max-width: 600px;
}

.modal-xl {
  max-width: 900px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--gray-200);
}

/* Edit Locations Modal - Stores Table */
.modal-stores-table {
  max-height: 400px;
  margin: 16px 0;
}

/* Extend Duration Modal */
.current-dates-info {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.date-info-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
}

.date-info-row:not(:last-child) {
  border-bottom: 1px solid var(--gray-200);
}

.date-info-row .label {
  color: var(--gray-600);
  font-weight: 500;
}

.date-info-row .value {
  color: var(--gray-900);
  font-weight: 600;
}

.extend-cost-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--success-light);
  padding: 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
}

.extend-cost-summary .label {
  color: #047857;
  font-weight: 600;
}

.extend-cost-summary .value {
  color: #047857;
  font-size: 20px;
  font-weight: 700;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .segmented-control {
    flex-direction: column;
  }
  
  .segment-btn {
    width: 100%;
  }
  
  .campaign-actions {
    flex-direction: column;
  }
  
  .campaign-actions .btn {
    width: 100%;
  }
}

/* ============================================
   LOCATION FILTER SECTION
   ============================================ */

.location-filter-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.location-search-row {
  margin-bottom: 20px;
}

.location-input-group {
  max-width: 100%;
}

.location-input-group input {
  font-size: 15px;
}

.radius-slider-section {
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

.radius-slider-section label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 12px;
}

.radius-slider-section label span {
  color: var(--primary-blue);
  font-weight: 700;
}

.radius-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--gray-200);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
  transition: transform var(--transition-fast);
}

.radius-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.radius-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gradient-primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}

.radius-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--gray-500);
}

/* ============================================
   DISTANCE COLUMN & BUSINESS TYPE TAG
   ============================================ */

.distance-cell {
  font-weight: 600;
  color: var(--primary-blue);
}

.business-type-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

/* Exclusion Note */
.exclusion-note {
  font-size: 13px;
  color: var(--warning);
  font-style: italic;
  margin-left: 12px;
}

/* ============================================
   UPDATED STORE SELECTOR CONTROLS
   ============================================ */

.store-selector-controls {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.store-selector-controls .store-search-input {
  flex: 1;
  max-width: 400px;
}

/* ============================================
   SORTABLE TABLE HEADERS
   ============================================ */

.sortable-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: all var(--transition-fast);
  position: relative;
}

.sortable-table th.sortable:hover {
  background: var(--gray-100);
}

.sortable-table th.sortable .sort-icon {
  margin-left: 6px;
  font-size: 12px;
  color: var(--gray-400);
  transition: color var(--transition-fast);
}

.sortable-table th.sortable.sorted .sort-icon,
.sortable-table th.sortable.active .sort-icon {
  color: var(--primary-blue);
  font-weight: bold;
}

.sortable-table th.sortable.sorted,
.sortable-table th.sortable.active {
  background: var(--info-light);
  color: var(--primary-blue);
}

.sortable-table th.sortable.asc .sort-icon,
.sortable-table th.sortable.desc .sort-icon {
  font-weight: bold;
}
