/* ============================================================
   صندوق العائلة — Global Stylesheet (style.css)
   Modern Financial Dashboard — Arabic RTL
   ============================================================ */

/* ── Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Kufi+Arabic:wght@300;400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

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

html {
  direction: rtl;
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'IBM Plex Sans Arabic', 'Noto Kufi Arabic', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

::selection {
  background: var(--accent);
  color: white;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-tertiary); }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-weight: 700;
  line-height: 1.3;
}

.ff-display   { font-size: 2.5rem; font-weight: 900; letter-spacing: -0.02em; }
.ff-title     { font-size: 1.5rem; font-weight: 700; }
.ff-subtitle  { font-size: 1.125rem; font-weight: 600; }
.ff-body      { font-size: 0.9375rem; }
.ff-caption   { font-size: 0.8125rem; color: var(--text-secondary); }
.ff-micro     { font-size: 0.6875rem; color: var(--text-tertiary); font-weight: 600; letter-spacing: 0.04em; }

/* ── Layout Shell ───────────────────────────────────────── */
.ff-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

@media (max-width: 1024px) {
  .ff-app { grid-template-columns: 1fr; }
}

/* ── Sidebar ────────────────────────────────────────────── */
.ff-sidebar {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ff-sidebar__brand {
  padding: 0 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.ff-sidebar__logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  border: 3px solid var(--accent-light);
}

.ff-sidebar__logo--placeholder {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.ff-sidebar__fund-name {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  text-align: center;
}

.ff-sidebar__nav {
  flex: 1;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ff-nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: right;
  transition: all 0.15s;
}

.ff-nav-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.ff-nav-item--active {
  background: var(--accent);
  color: white !important;
  box-shadow: var(--shadow-accent);
}

.ff-nav-item--active .material-symbols-rounded {
  color: white;
}

.ff-nav-item .material-symbols-rounded {
  font-size: 20px;
  color: var(--text-tertiary);
  transition: color 0.15s;
}

.ff-sidebar__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ff-sidebar__theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
}

/* Mobile sidebar */
.ff-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 39;
}

@media (max-width: 1024px) {
  .ff-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    transform: translateX(100%);
    box-shadow: var(--shadow-lg);
  }
  .ff-sidebar--open { transform: translateX(0); }
  .ff-sidebar-backdrop--visible { display: block; }
}

/* ── Main Content ───────────────────────────────────────── */
.ff-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

.ff-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ff-header__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ff-header__left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ff-header__user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.ff-header__avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.ff-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 1024px) {
  .ff-menu-btn { display: flex; }
  .ff-header { padding: 0.75rem 1rem; }
}

.ff-content {
  flex: 1;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .ff-content { padding: 1rem; }
}

/* ── Cards ──────────────────────────────────────────────── */
.ff-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.ff-card--clickable:hover {
  transform: translateY(-2px);
  cursor: pointer;
}

.ff-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.ff-card__title {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ff-card__title .material-symbols-rounded {
  color: var(--accent);
  font-size: 20px;
}

/* ── Stat Cards ─────────────────────────────────────────── */
.ff-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ff-stat {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.ff-stat__info { flex: 1; }

.ff-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}

.ff-stat__value {
  font-family: 'Noto Kufi Arabic', sans-serif;
  font-size: 1.625rem;
  font-weight: 800;
}

.ff-stat__value small {
  font-size: 0.75rem;
  font-weight: 500;
}

.ff-stat__badge {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  margin-top: 0.5rem;
  display: inline-block;
}

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

.ff-stat__icon .material-symbols-rounded { font-size: 24px; }

/* Color variants for stat icons */
.ff-stat--blue .ff-stat__icon    { background: var(--info-light);    color: var(--info); }
.ff-stat--green .ff-stat__icon   { background: var(--success-light); color: var(--success); }
.ff-stat--red .ff-stat__icon     { background: var(--danger-light);  color: var(--danger); }
.ff-stat--amber .ff-stat__icon   { background: var(--warning-light); color: var(--warning); }
.ff-stat--purple .ff-stat__icon  { background: var(--accent-light);  color: var(--accent); }

/* ── Buttons ────────────────────────────────────────────── */
.ff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.ff-btn:active { transform: scale(0.97); }

.ff-btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: var(--shadow-accent);
}
.ff-btn--primary:hover { background: var(--accent-hover); }

.ff-btn--success {
  background: var(--success);
  color: white;
}
.ff-btn--success:hover { opacity: 0.9; }

.ff-btn--danger {
  background: var(--danger);
  color: white;
}
.ff-btn--danger:hover { opacity: 0.9; }

.ff-btn--ghost {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}
.ff-btn--ghost:hover { background: var(--bg-hover); color: var(--text-primary); }

.ff-btn--outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
}
.ff-btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.ff-btn--sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.ff-btn--lg { padding: 0.875rem 2rem; font-size: 1rem; }
.ff-btn--icon { padding: 0.5rem; border-radius: var(--radius-sm); }
.ff-btn--block { width: 100%; }

.ff-btn .material-symbols-rounded { font-size: 18px; }

/* ── Inputs ─────────────────────────────────────────────── */
.ff-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ff-field__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

.ff-input,
.ff-select,
.ff-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ff-input:focus,
.ff-select:focus,
.ff-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

.ff-textarea { resize: vertical; min-height: 80px; }
.ff-select { cursor: pointer; }

.ff-input--lg {
  padding: 1rem 1.25rem;
  font-size: 1.5rem;
  font-weight: 800;
  text-align: center;
}

/* ── Tables ─────────────────────────────────────────────── */
.ff-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.ff-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.875rem;
}

.ff-table th {
  background: var(--bg-tertiary);
  padding: 0.875rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.ff-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.ff-table tbody tr {
  transition: background 0.1s;
}

.ff-table tbody tr:hover {
  background: var(--bg-hover);
}

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

/* ── Tags / Badges ──────────────────────────────────────── */
.ff-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}

.ff-tag--success { background: var(--success-light); color: var(--success-text); }
.ff-tag--danger  { background: var(--danger-light);  color: var(--danger-text); }
.ff-tag--warning { background: var(--warning-light); color: var(--warning-text); }
.ff-tag--info    { background: var(--info-light);    color: var(--info-text); }
.ff-tag--accent  { background: var(--accent-light);  color: var(--accent-text); }

/* ── Modals ─────────────────────────────────────────────── */
.ff-modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.ff-modal-overlay--visible {
  opacity: 1;
  pointer-events: all;
}

.ff-modal {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2rem;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.ff-modal-overlay--visible .ff-modal {
  transform: scale(1) translateY(0);
}

.ff-modal--wide { max-width: 720px; }

.ff-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.ff-modal__title {
  font-size: 1.25rem;
  font-weight: 800;
}

.ff-modal__close {
  background: var(--bg-tertiary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.375rem;
  cursor: pointer;
  color: var(--text-tertiary);
  transition: all 0.15s;
}
.ff-modal__close:hover { background: var(--danger-light); color: var(--danger); }

/* ── Dialog (Confirm/Alert) ─────────────────────────────── */
.ff-dialog-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
  opacity: 0;
  animation: fadeIn 0.2s forwards;
}

.ff-dialog-overlay--visible { opacity: 1; }

.ff-dialog {
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem 2rem 2rem;
  max-width: 380px;
  width: 100%;
  text-align: center;
  animation: scaleIn 0.25s forwards;
}

.ff-dialog__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.ff-dialog__icon--warning { background: var(--warning-light); color: var(--warning); }
.ff-dialog__icon--success { background: var(--success-light); color: var(--success); }
.ff-dialog__icon--error   { background: var(--danger-light); color: var(--danger); }

.ff-dialog__icon .material-symbols-rounded { font-size: 28px; }

.ff-dialog__title {
  font-size: 1.125rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.ff-dialog__message {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.ff-dialog__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ff-dialog__actions .ff-btn { width: 100%; }

/* ── Toast ──────────────────────────────────────────────── */
.ff-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.875rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 300;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.ff-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ff-toast--success .material-symbols-rounded { color: var(--success); }
.ff-toast--error   .material-symbols-rounded { color: var(--danger); }
.ff-toast--info    .material-symbols-rounded { color: var(--info); }

/* ── Loading ────────────────────────────────────────────── */
.ff-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  gap: 1rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.ff-loading__spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ── Empty State ────────────────────────────────────────── */
.ff-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  color: var(--text-tertiary);
  text-align: center;
  gap: 0.5rem;
}

.ff-empty .material-symbols-rounded {
  font-size: 48px;
  opacity: 0.2;
}

/* ── Progress Bar ───────────────────────────────────────── */
.ff-progress {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 99px;
  overflow: hidden;
}

.ff-progress__bar {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ff-progress__bar--success { background: var(--success); }
.ff-progress__bar--danger  { background: var(--danger); }

/* ── Grid Helpers ───────────────────────────────────────── */
.ff-grid   { display: grid; gap: 1rem; }
.ff-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ff-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ff-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ff-flex    { display: flex; }
.ff-gap-sm  { gap: 0.5rem; }
.ff-gap-md  { gap: 1rem; }
.ff-gap-lg  { gap: 1.5rem; }
.ff-wrap    { flex-wrap: wrap; }
.ff-center  { align-items: center; }
.ff-between { justify-content: space-between; }

@media (max-width: 768px) {
  .ff-grid-2, .ff-grid-3, .ff-grid-4 { grid-template-columns: 1fr; }
}

/* ── Utility ────────────────────────────────────────────── */
.ff-text-success { color: var(--success) !important; }
.ff-text-danger  { color: var(--danger) !important; }
.ff-text-warning { color: var(--warning) !important; }
.ff-text-accent  { color: var(--accent) !important; }
.ff-text-muted   { color: var(--text-tertiary) !important; }

.ff-mb-0 { margin-bottom: 0 !important; }
.ff-mb-1 { margin-bottom: 0.5rem; }
.ff-mb-2 { margin-bottom: 1rem; }
.ff-mb-3 { margin-bottom: 1.5rem; }
.ff-mt-2 { margin-top: 1rem; }

.ff-font-mono { font-family: 'IBM Plex Mono', monospace; }
.ff-font-bold { font-weight: 700; }
.ff-font-black { font-weight: 900; }
.ff-text-center { text-align: center; }
.ff-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Separator ──────────────────────────────────────────── */
.ff-divider {
  height: 1px;
  background: var(--border-color);
  margin: 1.5rem 0;
  border: none;
}

/* ── Login Page ─────────────────────────────────────────── */
.ff-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.ff-login-page::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-light) 0%, transparent 70%);
  pointer-events: none;
}

.ff-login-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--success-light) 0%, transparent 70%);
  pointer-events: none;
}

.ff-login-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  z-index: 1;
}

.ff-login-box__brand {
  text-align: center;
  margin-bottom: 2.5rem;
}

.ff-login-box__logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  margin: 0 auto 1rem;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ff-login-box__logo .material-symbols-rounded { font-size: 36px; }

.ff-login-box__title {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 0.25rem;
}

.ff-login-box__subtitle {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.ff-login-box form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ff-login-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.ff-login-role {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.ff-login-role:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.ff-login-role--active {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--accent-text);
}

.ff-login-role .material-symbols-rounded {
  font-size: 28px;
}

/* ── Member Card (grid) ─────────────────────────────────── */
.ff-member-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

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

.ff-member-card__avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--accent-light);
}

.ff-member-card__name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.125rem;
}

.ff-member-card__badge {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-light);
  padding: 0.125rem 0.5rem;
  border-radius: 99px;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.ff-member-card__actions {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.15s;
}

.ff-member-card:hover .ff-member-card__actions { opacity: 1; }

/* ── Transaction Row ────────────────────────────────────── */
.ff-tx-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  transition: background 0.1s;
}

.ff-tx-row:hover { background: var(--bg-hover); }

.ff-tx-row__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ff-tx-row__icon--in  { background: var(--success-light); color: var(--success); }
.ff-tx-row__icon--out { background: var(--danger-light); color: var(--danger); }

/* ── Animations ─────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

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

.ff-animate-in {
  animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Print ──────────────────────────────────────────────── */
@media print {
  .no-print,
  .ff-sidebar,
  .ff-header,
  .ff-sidebar-backdrop { display: none !important; }

  .ff-app { grid-template-columns: 1fr; }
  .ff-content { padding: 0; max-width: none; }
  
  body {
    background: white !important;
    color: black !important;
  }
}
