/* assets/css/app.css - Geedi Agence */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #0f4c81;
  --primary-dark: #0a3560;
  --primary-light: #1a6db5;
  --accent: #00c896;
  --accent-dark: #00a67a;
  --danger: #ff4757;
  --danger-light: #ff6b7a;
  --warning: #ffa502;
  --gold: #f1c40f;
  --bg: #f0f4f8;
  --bg-card: #ffffff;
  --text-primary: #0d1b2a;
  --text-secondary: #5a6a7e;
  --text-muted: #8fa0b4;
  --border: #e2eaf3;
  --shadow-sm: 0 2px 8px rgba(15,76,129,0.08);
  --shadow-md: 0 4px 20px rgba(15,76,129,0.12);
  --shadow-lg: 0 8px 40px rgba(15,76,129,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --header-h: 64px;
  --footer-h: 52px;
  --nav-h: 60px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Sora', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
}

/* ── HEADER ─────────────────────────────────── */
.app-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 20px rgba(10,53,96,0.35);
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}
.header-logo .logo-icon i { color: #fff; font-size: 18px; }
.header-logo .logo-text { color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.header-menu-btn {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; font-size: 16px;
  transition: background 0.2s;
}
.header-menu-btn:hover { background: rgba(255,255,255,0.22); }

/* ── SIDEBAR NAV ────────────────────────────── */
.sidebar-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.sidebar-overlay.active { opacity: 1; pointer-events: all; }

.sidebar {
  position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
  background: #fff; z-index: 201; padding: 0;
  transition: right 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
  display: flex; flex-direction: column;
}
.sidebar.open { right: 0; }

.sidebar-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  padding: 24px 20px 20px;
  color: #fff;
}
.sidebar-header .user-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 10px;
  border: 2px solid rgba(255,255,255,0.3);
}
.sidebar-header .user-avatar i { font-size: 22px; color: #fff; }
.sidebar-header .user-name { font-weight: 700; font-size: 15px; }
.sidebar-header .user-role { font-size: 12px; opacity: 0.75; margin-top: 2px; }

.sidebar-nav { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; color: var(--text-secondary);
  text-decoration: none; font-size: 14px; font-weight: 500;
  transition: all 0.15s; border-left: 3px solid transparent;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(15,76,129,0.07); color: var(--primary);
  border-left-color: var(--primary);
}
.sidebar-nav a i { width: 20px; text-align: center; font-size: 15px; }
.sidebar-nav .divider { height: 1px; background: var(--border); margin: 8px 0; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.sidebar-footer a {
  display: flex; align-items: center; gap: 12px;
  color: var(--danger); font-size: 14px; font-weight: 500; text-decoration: none;
}

/* ── PAGE CONTENT ───────────────────────────── */
.page-content {
  padding: 14px 12px calc(var(--footer-h) + var(--nav-h) + 24px);
  min-height: calc(100vh - var(--header-h) - var(--footer-h) - var(--nav-h));
}
@media (max-width: 360px) {
  .page-content { padding: 10px 10px calc(var(--footer-h) + var(--nav-h) + 20px); }
  .balance-amount { font-size: 26px; }
  .page-header h1 { font-size: 17px; }
}

/* ── CARDS ──────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ── BALANCE CARD ───────────────────────────── */
.balance-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, var(--primary-light) 100%);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 6px 28px rgba(15,76,129,0.3);
}
.balance-card::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.balance-card::after {
  content: '';
  position: absolute; bottom: -60px; left: -20px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}
.balance-label { font-size: 12px; opacity: 0.8; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 4px; }
.balance-amount {
  font-size: clamp(28px, 9vw, 38px); font-weight: 800; letter-spacing: -1px;
  font-family: 'JetBrains Mono', monospace;
  line-height: 1;
  margin-bottom: 6px;
}
.balance-block { font-size: 13px; opacity: 0.7; }
.balance-actions {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; margin-top: 18px; position: relative; z-index: 1;
}
.balance-action-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center; cursor: pointer; text-decoration: none;
  transition: all 0.2s; backdrop-filter: blur(4px);
}
.balance-action-btn:hover { background: rgba(255,255,255,0.22); }
.balance-action-btn i {
  display: block; font-size: 18px; color: #fff; margin-bottom: 4px;
}
.balance-action-btn span { font-size: 11px; color: rgba(255,255,255,0.9); font-weight: 500; }

/* ── SECTION TITLE ──────────────────────────── */
.section-title {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 12px; margin-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.section-title a { font-size: 12px; color: var(--primary); font-weight: 500; text-decoration: none; }

/* ── WALLET CARDS ───────────────────────────── */
.wallet-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.wallet-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.wallet-badge {
  display: flex; align-items: center; gap: 8px;
}
.wallet-badge .badge-icon {
  width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: #fff;
  letter-spacing: -0.5px; text-transform: uppercase;
  flex-shrink: 0;
}
.wallet-badge .badge-name { font-weight: 800; font-size: 15px; color: var(--text-primary); letter-spacing: -0.2px; }
.wallet-badge .badge-epos { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.online-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block; margin-right: 5px;
}
.online-dot.yes { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.online-dot.no { background: var(--text-muted); }

.wallet-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.wallet-row:last-child { border-bottom: none; }
.wallet-row .label { color: var(--text-secondary); }
.wallet-row .value { font-weight: 600; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 13px; }
.wallet-row .value.profit { color: var(--accent); }
.wallet-row .value.commission { color: var(--primary); }

.date-range-badge {
  background: var(--bg); border-radius: 6px; padding: 4px 8px;
  font-size: 11px; color: var(--text-secondary); font-family: 'JetBrains Mono', monospace;
}

/* ── TRANSACTIONS ───────────────────────────── */
.tx-card {
  background: #fff;
  border-radius: var(--radius);
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.tx-card:active { transform: scale(0.98); box-shadow: var(--shadow-sm); }

.tx-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.tx-icon.profit { background: rgba(0,200,150,0.12); color: var(--accent); }
.tx-icon.deposit { background: rgba(0,200,150,0.12); color: var(--accent); }
.tx-icon.withdrawal { background: rgba(255,71,87,0.1); color: var(--danger); }
.tx-icon.top_up { background: rgba(15,76,129,0.1); color: var(--primary); }
.tx-icon.payout { background: rgba(255,165,2,0.12); color: var(--warning); }

.tx-icon.tx-logo {
  width: auto; min-width: 84px; height: 40px; padding: 0 2px;
  border-radius: 10px; background: transparent; overflow: hidden;
}
.tx-icon.tx-logo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 10px; }

.tx-body { flex: 1; min-width: 0; }
.tx-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.tx-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; white-space: normal; word-break: break-word; line-height: 1.4; }

.tx-amount { text-align: right; flex-shrink: 0; }
.tx-amount .amt { font-size: 17px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.tx-amount .amt.green { color: var(--accent); }
.tx-amount .amt.red { color: var(--danger); }
.tx-amount .tx-date { font-size: 10px; color: var(--text-muted); margin-top: 2px; }

/* ── BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px;
  border: none; cursor: pointer; font-family: 'Sora', sans-serif;
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: all 0.2s; line-height: 1;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 14px; font-size: 12px; border-radius: 8px; }

/* ── FORMS ──────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; letter-spacing: 0.3px; text-transform: uppercase; }
.form-input {
  width: 100%; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--border); font-family: 'Sora', sans-serif;
  font-size: 14px; color: var(--text-primary); background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s; outline: none;
}
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,76,129,0.1); }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235a6a7e' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* ── STATS ROW ──────────────────────────────── */
.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.stat-card {
  background: #fff; border-radius: var(--radius-sm);
  padding: 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.stat-card .stat-value { font-size: 22px; font-weight: 700; font-family: 'JetBrains Mono', monospace; }
.stat-card .stat-value.green { color: var(--accent); }
.stat-card .stat-value.blue { color: var(--primary); }
.stat-card .stat-value.red { color: var(--danger); }
.stat-card .stat-sub { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ── FOOTER ─────────────────────────────────── */
.app-footer {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: #0d1b2a;
  height: var(--footer-h);
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
}
.footer-text { color: rgba(255,255,255,0.5); font-size: 12px; letter-spacing: 0.5px; }

/* ── BOTTOM NAV ─────────────────────────────── */
.bottom-nav {
  position: fixed; bottom: var(--footer-h); left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: var(--nav-h);
  background: #fff; border-top: 1px solid var(--border);
  display: flex; z-index: 91;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 8px 4px 10px;
  text-decoration: none; color: var(--text-muted);
  font-size: 10px; font-weight: 600;
  transition: color 0.15s;
}
.bottom-nav a i { font-size: 20px; margin-bottom: 4px; }
.bottom-nav a.active { color: var(--primary); }
.bottom-nav a.active i { color: var(--primary); }

/* ── WHATSAPP FLOAT ─────────────────────────── */
.wa-float {
  position: fixed; bottom: calc(var(--footer-h) + var(--nav-h) + 14px); right: 16px;
  width: 50px; height: 50px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 95; text-decoration: none;
  animation: pulse-wa 2s infinite;
}
.wa-float i { color: #fff; font-size: 22px; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ── ALERTS ─────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: 10px; font-size: 13px;
  margin-bottom: 14px; display: flex; align-items: center; gap: 10px;
}
.alert-success { background: rgba(0,200,150,0.1); color: #00a67a; border: 1px solid rgba(0,200,150,0.2); }
.alert-error { background: rgba(255,71,87,0.1); color: #e0002e; border: 1px solid rgba(255,71,87,0.2); }
.alert-info { background: rgba(15,76,129,0.08); color: var(--primary); border: 1px solid rgba(15,76,129,0.15); }

/* ── LOGIN PAGE ─────────────────────────────── */
.login-page {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 30px 20px;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 40%, #1a6db5 100%);
}
.login-logo { text-align: center; margin-bottom: 40px; }
.login-logo .logo-circle {
  width: 80px; height: 80px; border-radius: 22px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; backdrop-filter: blur(10px);
}
.login-logo .logo-circle i { font-size: 36px; color: #fff; }
.login-logo h1 { color: #fff; font-size: 26px; font-weight: 800; }
.login-logo p { color: rgba(255,255,255,0.7); font-size: 14px; margin-top: 4px; }

.login-box {
  background: #fff; border-radius: 24px; padding: 28px 24px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-box h2 { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }

/* ── BADGES ─────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.badge-success { background: rgba(0,200,150,0.12); color: #00a67a; }
.badge-danger { background: rgba(255,71,87,0.1); color: var(--danger); }
.badge-info { background: rgba(15,76,129,0.1); color: var(--primary); }
.badge-warning { background: rgba(255,165,2,0.12); color: var(--warning); }

/* ── PAGE HEADER ────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.page-header h1 { font-size: 20px; font-weight: 700; }
.page-header .refresh-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary); font-size: 14px;
  transition: all 0.2s;
}
.page-header .refresh-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.spinning { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FILTER BAR ─────────────────────────────── */
.filter-bar {
  display: flex; gap: 8px; margin-bottom: 14px; overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-chip {
  white-space: nowrap; padding: 7px 14px; border-radius: 20px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff;
  color: var(--text-secondary); transition: all 0.15s;
  flex-shrink: 0;
}
.filter-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── DATE INPUTS ────────────────────────────── */
.date-filter {
  display: flex; gap: 8px; margin-bottom: 14px;
}
.date-filter input {
  flex: 1; padding: 9px 12px; border-radius: 10px;
  border: 1.5px solid var(--border); font-family: 'Sora',sans-serif;
  font-size: 12px; outline: none; background: #fff;
}
.date-filter input:focus { border-color: var(--primary); }
.date-filter button {
  padding: 9px 14px; border-radius: 10px; background: var(--primary);
  border: none; color: #fff; font-size: 13px; cursor: pointer;
}

/* ── EMPTY STATE ────────────────────────────── */
.empty-state {
  text-align: center; padding: 40px 20px;
}
.empty-state i { font-size: 48px; color: var(--text-muted); margin-bottom: 12px; display: block; }
.empty-state p { color: var(--text-muted); font-size: 14px; }

/* ── ADMIN SPECIFIC ─────────────────────────── */
.admin-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.admin-stat {
  background: #fff; border-radius: var(--radius-sm); padding: 16px;
  border: 1px solid var(--border); text-align: center;
}
.admin-stat .a-val { font-size: 24px; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.admin-stat .a-lbl { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.table-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 14px; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-card th { background: var(--bg); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.table-card td { padding: 12px 14px; border-top: 1px solid var(--border); vertical-align: middle; }
.table-card tr:hover td { background: rgba(15,76,129,0.02); }

.action-btns { display: flex; gap: 6px; }

/* ── MODAL ──────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 300; display: flex; align-items: flex-end;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: #fff; border-radius: 24px 24px 0 0;
  width: 100%; max-width: 480px; margin: 0 auto;
  padding: 20px; max-height: 85vh; overflow-y: auto;
  transform: translateY(100%); transition: transform 0.3s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 20px; }
.modal-close {
  float: right; background: var(--bg); border: none; width: 32px; height: 32px;
  border-radius: 8px; cursor: pointer; font-size: 14px; color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
}

/* ── LOADER ─────────────────────────────────── */
.loader {
  display: flex; align-items: center; justify-content: center;
  padding: 30px; color: var(--text-muted); font-size: 13px; gap: 10px;
}
.loader i { font-size: 20px; }

/* ── SYNC INDICATOR ─────────────────────────── */
.sync-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px; color: var(--text-muted);
  background: var(--bg); border-radius: 6px; padding: 3px 8px;
}
.sync-badge i { font-size: 10px; }

/* ── SYNC STATUS PILL (used on admin EPOS Manager + user My Wallets) ── */
.sync-status-pill{display:inline-flex;align-items:center;gap:6px;background:var(--bg);border:1px solid var(--border);border-radius:20px;padding:5px 12px;font-size:12px;font-weight:600;color:var(--text-secondary);transition:all .3s}
.sync-status-pill.syncing{border-color:var(--primary);color:var(--primary)}
.sync-status-pill.ok{border-color:var(--accent);color:var(--accent)}
.sync-status-pill.error{border-color:#dc2626;color:#dc2626}
.sync-dot{width:8px;height:8px;border-radius:50%;background:currentColor;flex-shrink:0}
.sync-dot.pulse{animation:pulse 1s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.3}}
.refresh-btn.spinning i{animation:spin 1s linear infinite}
@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
