/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand Colors - Emerald Green (fintech trust) */
  --color-brand: #059669;
  --color-brand-dark: #047857;
  --color-brand-light: #10b981;
  --color-brand-bg: rgba(5, 150, 105, 0.06);

  /* Neutrals */
  --color-bg: #f8f9fb;
  --color-surface: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #5a5a72;
  --color-muted: #8c8ca1;
  --color-border: #e2e4ea;
  --color-border-light: #f0f1f5;

  /* Status */
  --color-success: #059669;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-info: #2563eb;

  /* Accent palette (stat cards) */
  --color-accent-blue: #3b82f6;
  --color-accent-amber: #f59e0b;
  --color-accent-purple: #8b5cf6;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #059669, #10b981);
  --gradient-hero: linear-gradient(160deg, #0a0f0d 0%, #0f1f1b 40%, #0a3224 100%);

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 0.75rem;
  --space-lg: 1rem;
  --space-xl: 1.5rem;
  --space-2xl: 2rem;
  --space-3xl: 3rem;
  --space-4xl: 4rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Shadows (Stripe-inspired layered) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 10px 24px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 8px 16px -2px rgba(0, 0, 0, 0.08), 0 20px 40px rgba(0, 0, 0, 0.1);
  --shadow-glow-brand: 0 0 0 3px rgba(5, 150, 105, 0.2);

  /* Transitions */
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== APP SHELL ===== */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--color-surface);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
  padding: var(--space-md) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-text);
  text-decoration: none;
}

.top-bar__brand:hover {
  text-decoration: none;
}

.top-bar__brand-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-brand);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.top-bar__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.top-bar__link {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
  transition: color 0.2s var(--ease-out);
}

.top-bar__link:hover {
  color: var(--color-brand);
  text-decoration: none;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.btn:hover {
  text-decoration: none;
}

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

.btn--primary {
  background: var(--color-brand);
  color: white;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}

.btn--primary:hover:not(:disabled) {
  background: var(--color-brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.3);
}

.btn--secondary {
  background: var(--color-border-light);
  color: var(--color-text);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--color-border);
  transform: translateY(-1px);
}

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

.btn--outline {
  background: transparent;
  color: var(--color-brand);
  border: 2px solid var(--color-brand);
}

.btn--outline:hover:not(:disabled) {
  background: var(--color-brand-bg);
  transform: translateY(-1px);
}

.btn--outline-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn--outline-white:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

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

.btn--danger:hover:not(:disabled) {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn--sm {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
}

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--text-base);
  min-height: 48px;
}

.btn--full {
  width: 100%;
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  min-height: 44px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: var(--shadow-glow-brand);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-muted);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== CARDS ===== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.card--elevated {
  box-shadow: var(--shadow-xl);
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  background: var(--color-border-light);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.trust-strip__item svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
}

@media (max-width: 600px) {
  .trust-strip {
    gap: var(--space-lg);
    flex-wrap: wrap;
  }
}

/* ===== PROGRESS STEPPER ===== */
.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: var(--space-2xl);
  padding: 0 var(--space-lg);
}

.stepper__step {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  white-space: nowrap;
}

.stepper__circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
  background: var(--color-border-light);
  color: var(--color-muted);
  border: 2px solid var(--color-border);
  transition: all 0.3s var(--ease-out);
  flex-shrink: 0;
}

.stepper__step.active .stepper__circle {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: white;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.stepper__step.active {
  color: var(--color-brand);
}

.stepper__step.completed .stepper__circle {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: white;
}

.stepper__step.completed {
  color: var(--color-brand);
}

.stepper__line {
  width: 40px;
  height: 2px;
  background: var(--color-border);
  margin: 0 var(--space-sm);
  flex-shrink: 0;
  transition: background 0.3s var(--ease-out);
}

.stepper__step.completed + .stepper__line,
.stepper__line.completed {
  background: var(--color-brand);
}

@media (max-width: 480px) {
  .stepper__label {
    display: none;
  }
  .stepper__line {
    width: 28px;
  }
}

/* ===== PAYMENT PAGE ===== */
.pay-container {
  max-width: 480px;
  margin: 0 auto;
  padding: var(--space-xl);
  flex: 1;
}

.pay-header {
  text-align: center;
  padding: var(--space-xl) 0;
}

.pay-header__logo {
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-2xl);
  margin: 0 auto var(--space-md);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.payment-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--color-border-light);
}

.payment-amount {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--color-text);
  text-align: center;
  margin-bottom: var(--space-xl);
  letter-spacing: -1px;
}

.payment-amount__currency {
  font-size: var(--text-lg);
  color: var(--color-muted);
  font-weight: 500;
  letter-spacing: 0;
}

.payment-details {
  margin-bottom: var(--space-xl);
}

.payment-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border-light);
}

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

.payment-detail__label {
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.payment-detail__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

/* Method selection */
.method-section-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.method-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.method-option {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  background: var(--color-surface);
}

.method-option:hover {
  border-color: var(--color-brand-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.method-option.selected {
  border-color: var(--color-brand);
  background: var(--color-brand-bg);
  box-shadow: 0 0 0 1px var(--color-brand), var(--shadow-sm);
}

.method-option__radio {
  width: 20px;
  height: 20px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s var(--ease-out);
}

.method-option.selected .method-option__radio {
  border-color: var(--color-brand);
}

.method-option.selected .method-option__radio::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--color-brand);
  border-radius: 50%;
}

.method-option__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
  flex-shrink: 0;
}

.method-option__icon--ecocash {
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-brand);
}

.method-option__icon--onemoney {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent-blue);
}

.method-option__icon--card {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-accent-purple);
}

.method-option__info {
  flex: 1;
}

.method-option__name {
  font-weight: 600;
  font-size: var(--text-base);
}

.method-option__desc {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: 2px;
}

/* Phone input */
.phone-input-group {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.phone-input-group__prefix {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-border-light);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  white-space: nowrap;
}

.phone-input-group input {
  flex: 1;
}

/* Processing / Status screens */
.status-screen {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
}

.status-screen__icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  font-size: var(--text-3xl);
}

.status-screen__icon--success {
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
}

.status-screen__icon--failed {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-danger);
}

.status-screen__icon--pending {
  background: rgba(217, 119, 6, 0.1);
  color: var(--color-warning);
}

.status-screen__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.status-screen__message {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

/* Animated checkmark */
.checkmark-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
}

.checkmark-circle svg {
  width: 80px;
  height: 80px;
}

.checkmark-circle .circle {
  fill: none;
  stroke: var(--color-success);
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  animation: checkCircle 0.6s var(--ease-out) forwards;
}

.checkmark-circle .check {
  fill: none;
  stroke: var(--color-success);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkStroke 0.3s 0.4s var(--ease-out) forwards;
}

@keyframes checkCircle {
  to { stroke-dashoffset: 0; }
}

@keyframes checkStroke {
  to { stroke-dashoffset: 0; }
}

/* Animated error X */
.error-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-xl);
}

.error-circle svg {
  width: 80px;
  height: 80px;
}

.error-circle .circle {
  fill: none;
  stroke: var(--color-danger);
  stroke-width: 3;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-linecap: round;
  animation: checkCircle 0.6s var(--ease-out) forwards;
}

.error-circle .x-line {
  fill: none;
  stroke: var(--color-danger);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
  animation: checkStroke 0.2s 0.5s var(--ease-out) forwards;
}

/* Pulse spinner */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto var(--space-xl);
}

.spinner--branded {
  border-color: rgba(5, 150, 105, 0.15);
  border-top-color: var(--color-brand);
  border-right-color: var(--color-brand-light);
}

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

/* Pulse animation for pending icons */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
}

.pulse {
  animation: pulse 2s var(--ease-out) infinite;
}

/* Shake animation */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Fade transition for state changes */
.fade-enter {
  opacity: 0;
  transform: translateY(8px);
}

.fade-enter-active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}

/* ===== ADMIN - LOGIN ===== */
.login-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 60px);
  padding: var(--space-xl);
  background: var(--color-bg);
}

.login-card {
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}

.login-card__accent {
  height: 4px;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: calc(var(--space-xl) * -1) calc(var(--space-xl) * -1) var(--space-xl);
}

.login-card__icon {
  width: 56px;
  height: 56px;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

.login-card__icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.login-card__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.login-card__subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

/* ===== ADMIN - DASHBOARD ===== */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-2xl);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.admin-header__title {
  font-size: var(--text-2xl);
  font-weight: 700;
}

.admin-header__actions {
  display: flex;
  gap: var(--space-md);
}

/* Stats grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-border);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

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

.stat-card--green {
  border-left-color: var(--color-brand);
}

.stat-card--blue {
  border-left-color: var(--color-accent-blue);
}

.stat-card--amber {
  border-left-color: var(--color-accent-amber);
}

.stat-card--purple {
  border-left-color: var(--color-accent-purple);
}

.stat-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-card__icon svg {
  width: 20px;
  height: 20px;
}

.stat-card__icon--green {
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-brand);
}

.stat-card__icon--blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent-blue);
}

.stat-card__icon--amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--color-accent-amber);
}

.stat-card__icon--purple {
  background: rgba(139, 92, 246, 0.1);
  color: var(--color-accent-purple);
}

.stat-card__content {
  flex: 1;
  min-width: 0;
}

.stat-card__label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.stat-card__value {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.2;
}

.stat-card__value--brand {
  color: var(--color-brand);
}

.stat-card__sub {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin-top: var(--space-xs);
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-xl);
  gap: var(--space-2xl);
}

.tab {
  padding: var(--space-md) 0;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s var(--ease-out);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--font-family);
}

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

.tab.active {
  color: var(--color-brand);
  border-bottom-color: var(--color-brand);
}

.tab-content {
  display: none;
}

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

/* Toolbar / Filters */
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

.toolbar__search {
  flex: 1;
  min-width: 200px;
  padding: var(--space-md) var(--space-lg);
  min-height: 42px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.toolbar__search:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: var(--shadow-glow-brand);
}

.toolbar__select {
  padding: var(--space-md) var(--space-lg);
  min-height: 42px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: var(--text-sm);
  background: var(--color-surface);
  transition: border-color 0.2s var(--ease-out);
}

.toolbar__select:focus {
  outline: none;
  border-color: var(--color-brand);
}

/* Table */
.table-wrapper {
  overflow-x: auto;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.payments-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.payments-table th {
  text-align: left;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  background: var(--color-border-light);
}

.payments-table th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.payments-table th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.payments-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border-light);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.payments-table tr:last-child td {
  border-bottom: none;
}

.payments-table tbody tr {
  transition: background 0.15s var(--ease-out);
}

.payments-table tbody tr:hover td {
  background: rgba(5, 150, 105, 0.03);
}

.payments-table tbody tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.01);
}

.payments-table tbody tr:nth-child(even):hover td {
  background: rgba(5, 150, 105, 0.03);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px var(--space-md);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge--paid {
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
}

.badge--paid::before {
  background: var(--color-success);
}

.badge--pending {
  background: rgba(217, 119, 6, 0.1);
  color: var(--color-warning);
}

.badge--pending::before {
  background: var(--color-warning);
}

.badge--failed {
  background: rgba(220, 38, 38, 0.1);
  color: var(--color-danger);
}

.badge--failed::before {
  background: var(--color-danger);
}

.badge--active {
  background: rgba(37, 99, 235, 0.1);
  color: var(--color-info);
}

.badge--active::before {
  background: var(--color-info);
}

.badge--used {
  background: rgba(5, 150, 105, 0.1);
  color: var(--color-success);
}

.badge--used::before {
  background: var(--color-success);
}

.badge--cancelled,
.badge--expired {
  background: rgba(142, 142, 147, 0.1);
  color: var(--color-muted);
}

.badge--cancelled::before,
.badge--expired::before {
  background: var(--color-muted);
}

/* Payment Links list */
.links-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.link-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
  transition: box-shadow 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}

.link-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.link-item__info {
  flex: 1;
  min-width: 200px;
}

.link-item__reference {
  font-weight: 700;
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.link-item__meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.link-item__actions {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.link-item__url {
  font-size: var(--text-xs);
  color: var(--color-brand);
  background: var(--color-brand-bg);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

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

.modal {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.3s var(--ease-spring);
  overflow: hidden;
}

.modal__accent {
  height: 4px;
  background: var(--gradient-brand);
  flex-shrink: 0;
}

.modal__body {
  padding: var(--space-2xl);
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Generated link display */
.generated-link {
  background: var(--color-brand-bg);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.generated-link__label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.generated-link__url {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.generated-link__url input {
  flex: 1;
  font-size: var(--text-sm);
  font-family: monospace;
  padding: var(--space-sm) var(--space-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

/* ===== NOTIFICATIONS ===== */
.notifications {
  position: fixed;
  top: 70px;
  right: var(--space-xl);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.notification {
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  animation: notifSlideIn 0.3s var(--ease-spring);
  max-width: 400px;
  position: relative;
  overflow: hidden;
}

.notification::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.4);
  animation: notifProgress 3s linear forwards;
}

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

.notification--error {
  background: var(--color-danger);
  color: white;
}

.notification--info {
  background: var(--color-info);
  color: white;
}

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

@keyframes notifProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ===== LANDING PAGE ===== */
.hero {
  background: var(--gradient-hero);
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind heading */
.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(5, 150, 105, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-lg);
  background: rgba(5, 150, 105, 0.15);
  color: var(--color-brand-light);
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  color: #ffffff;
  letter-spacing: -1px;
}

.hero__title span {
  color: var(--color-brand-light);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.65);
  max-width: 500px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* Trust bar (below hero) */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding: var(--space-xl) var(--space-xl);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  font-weight: 500;
}

.trust-bar__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-bar__icon svg {
  width: 18px;
  height: 18px;
}

.trust-bar__icon--green {
  background: rgba(5, 150, 105, 0.08);
  color: var(--color-brand);
}

.trust-bar__icon--blue {
  background: rgba(59, 130, 246, 0.08);
  color: var(--color-accent-blue);
}

.trust-bar__icon--amber {
  background: rgba(245, 158, 11, 0.08);
  color: var(--color-accent-amber);
}

/* How it works section */
.how-it-works {
  padding: var(--space-4xl) var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3xl);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  position: relative;
}

/* Connecting line behind steps */
.steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: calc(16.67% + 20px);
  right: calc(16.67% + 20px);
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}

.step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 2px solid var(--color-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--color-brand);
  box-shadow: var(--shadow-sm);
}

.step__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  font-size: var(--text-xl);
}

.step__icon--green { background: rgba(5, 150, 105, 0.08); }
.step__icon--blue { background: rgba(59, 130, 246, 0.08); }
.step__icon--amber { background: rgba(245, 158, 11, 0.08); }

.step__title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.step__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Features section */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-xl) var(--space-4xl);
}

.feature-card {
  text-align: center;
  padding: var(--space-2xl);
  border: 1px solid transparent;
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

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

.feature-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-2xl);
  margin: 0 auto var(--space-lg);
}

.feature-card__icon--green {
  background: rgba(5, 150, 105, 0.08);
}

.feature-card__icon--blue {
  background: rgba(59, 130, 246, 0.08);
}

.feature-card__icon--amber {
  background: rgba(245, 158, 11, 0.08);
}

.feature-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: #0f1f1b;
  color: rgba(255, 255, 255, 0.5);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
  margin-top: auto;
}

.site-footer__brand {
  font-size: var(--text-lg);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-sm);
}

.site-footer__tagline {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: var(--space-xl);
}

.site-footer__badges {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

.site-footer__badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.4);
}

.site-footer__badge svg {
  width: 14px;
  height: 14px;
  opacity: 0.5;
}

.site-footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Simple light footer (for pay/admin pages) */
.site-footer--light {
  background: var(--color-surface);
  color: var(--color-muted);
  padding: var(--space-xl);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
}

/* ===== UTILITIES ===== */
.hidden {
  display: none !important;
}

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

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

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.empty-state {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--color-muted);
}

.empty-state__icon {
  font-size: var(--text-4xl);
  margin-bottom: var(--space-lg);
}

.empty-state__text {
  font-size: var(--text-base);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.btn:focus-visible {
  box-shadow: var(--shadow-glow-brand);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .admin-container {
    padding: var(--space-lg);
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar__search {
    min-width: unset;
    width: 100%;
  }

  .hero__title {
    font-size: var(--text-3xl);
  }

  .link-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-bar {
    gap: var(--space-xl);
    flex-wrap: wrap;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .steps::before {
    display: none;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .pay-container {
    padding: var(--space-lg);
  }

  .payment-card {
    padding: var(--space-xl);
  }

  .payment-amount {
    font-size: var(--text-3xl);
  }

  .hero {
    padding: var(--space-3xl) var(--space-lg);
  }

  .hero__title {
    font-size: var(--text-2xl);
    letter-spacing: -0.5px;
  }

  .trust-bar {
    flex-direction: column;
    gap: var(--space-md);
    align-items: center;
  }
}
