/* FRICOPAY Global Styles - Multi-country fintech */

:root {
  /* Primary teal (fintech trust + modern) */
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #99f6e4;
  --gradient: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);

  /* Surfaces (light mode default) */
  --bg: #fafbfc;
  --surface: #ffffff;
  --surface-2: #f7f7f9;
  --border: #e5e7eb;

  /* Text */
  --text: #111827;
  --text-dim: #6b7280;
  --text-muted: #9ca3af;

  /* Status */
  --success: #0d9488;
  --warning: #f59e0b;
  --error: #dc2626;
  --info: #3b82f6;

  /* Country accents */
  --gh-color: #ce1126;     /* Ghana red */
  --ng-color: #008751;     /* Nigeria green */
}

[data-mode="dark"] {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #334155;
  --border: #334155;
  --text: #f1f5f9;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}
body { max-width: 100vw; overflow-x: hidden; }

/* Buttons */
button { font-family: inherit; cursor: pointer; }
button:disabled { opacity: 0.5; cursor: not-allowed; }

/* Inputs */
input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 16px 20px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
input::placeholder { color: var(--text-muted); }

/* Toast */
.toast-host { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-left: 4px solid var(--primary);
  padding: 11px 14px; border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  font-size: 13px; font-weight: 500;
  min-width: 280px; max-width: 90vw;
  animation: toastIn .3s ease;
  pointer-events: auto;
}
.toast.success { border-left-color: var(--success); }
.toast.warn { border-left-color: var(--warning); }
.toast.error { border-left-color: var(--error); }
.toast.info { border-left-color: var(--info); }
.toast .t-title { font-weight: 700; margin-bottom: 2px; }
@keyframes toastIn { from { opacity:0; transform: translateY(-10px); } to { opacity:1; transform: translateY(0); } }

/* Loading skeleton */
.skel {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--border) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
  height: 18px;
  margin: 6px 0;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Pulse */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }

/* Country pill */
.country-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--text);
  font-size: 11px; font-weight: 600;
}

/* Common card */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}
