@font-face {
  font-family: "YekanBakh";
  src: url(../../static/slick/fonts/YekanBakhFaNum-Regular.woff);
  font-weight: "Regular";
}

/***** Reset & base *****/
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family: YekanBakh, Vazirmatn, IRANSans, Segoe UI, Tahoma, sans-serif;
  color: #111;
  background: #f6f8fb;
  line-height: 1.6;
}
:root {
  --kfx-primary: #10b981;
  --kfx-muted: #6b7280;
}

/***** Page + sticky footer *****/
.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.site-header {
  flex-shrink: 0;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  background: linear-gradient(90deg, #fff, #f0fff8);
  border-bottom: 1px solid #e7efe9;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}
.site-main {
  flex: 1 0 auto;
  padding: 1rem 0;
}
.site-footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #eaeef3;
  padding: 0.75rem 0;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/***** Header: brand + user area *****/
.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.brand-area .brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0b5;
  text-decoration: none;
}
.brand-text strong {
  color: #059669;
}
.user-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.welcome {
  color: #374151;
  font-size: 0.95rem;
  font-weight: 500;
}

/***** Buttons *****/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: YekanBakh;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.875rem;
}
.btn-ghost {
  background: #fff;
  border-color: #d1d5db;
  color: #111;
  transition: all 0.2s;
}
.btn-ghost:hover {
  background: var(--kfx-primary);
  color: #fff;
  border-color: var(--kfx-primary);
  box-shadow: 0 6px 14px rgba(16, 185, 129, 0.25);
}

.logOut {
  margin-block-end: 0;
}

.btn-login {
  font-family: YekanBakh;
}

/***** Cards & tables *****/
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(10, 20, 30, 0.05);
  padding: 1rem;
  margin-bottom: 1rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
th,
td {
  padding: 10px;
  border-bottom: 1px solid #edf1f6;
  text-align: center;
}
th {
  background: #f1f5f9;
}
.muted {
  color: var(--kfx-muted);
}

/***** RTL layout: right sidebar *****/
.kfx .layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 900px) {
  .kfx .layout {
    grid-template-columns: 1fr;
  }
}
.kfx .sidebar {
  position: sticky;
  top: 18px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(10, 20, 30, 0.05);
  padding: 1rem;
}
.kfx .sidebar-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.kfx .nav-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  color: #111;
  text-decoration: none;
  margin: 0.3rem 0;
  text-align: right;
}
.kfx .nav-link:hover {
  background: #eef5ff;
}
.kfx .nav-link.active {
  background: #e9f7ef;
  border: 1px solid #c7f0da;
}

/***** Filters *****/
.filters {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0.5rem 0 1rem;
}
.filters label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

/***** Icons *****/
.kfx-ico {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 8px;
}

/***** Transfer cards (vertical list per origin) *****/
.kfx .transfer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(340px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .kfx .transfer-grid {
    grid-template-columns: 1fr;
  }
}
.kfx .transfer-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8edf3;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  max-width: 100%;
}
.kfx .transfer-card__header {
  background: #f7fafc;
  border-bottom: 1px solid #e6eef5;
  padding: 0.75rem 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
}
.kfx .transfer-card__columns {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.5fr;
  align-items: center;
  text-align: right;
  padding: 0.6rem 1rem;
  background: #f9fafb;
  border-bottom: 1px solid #edf1f6;
  font-weight: 700;
}
.kfx .transfer-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kfx .transfer-card__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr 1.5fr;
  align-items: center;
  text-align: right;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #f2f6fb;
}
.kfx .transfer-card__row:last-child {
  border-bottom: none;
}
.kfx .transfer-card__row .col-dest {
  font-weight: 700;
}
.kfx .transfer-card__row .col-cur,
.kfx .transfer-card__row .col-date {
  font-size: 0.86rem;
}

/***** Auth (login) nice styles *****/
.auth-wrap {
  min-height: 60vh;
  display: grid;
  place-items: center;
}
.auth-box {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}
.auth-title {
  margin: 0 0 0.75rem 0;
}
.auth-sub {
  margin: 0 0 1rem 0;
  color: var(--kfx-muted);
  font-size: 0.92rem;
}
.btn-primary {
  background: var(--kfx-primary);
  color: #fff;
  border: 1px solid var(--kfx-primary);
  box-shadow: 0 6px 18px rgba(10, 191, 107, 0.18);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 700;
}
form input[type="text"],
form input[type="password"],
form input[type="email"],
form input[type="number"],
form select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #e4e8ee;
  background: #fff;
  outline: none;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}
form input:focus,
form select:focus {
  border-color: var(--kfx-primary);
  box-shadow: 0 0 0 3px rgba(10, 191, 107, 0.12);
}
.auth-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

/***** Gold pills (change/bubble) *****/
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
  border: 1px solid transparent;
}
.pill-up {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.pill-down {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}
.pill-zero {
  background: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}
.pill-bubble-pos {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
} /* حباب مثبت */
.pill-bubble-neg {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
} /* حباب منفی */

/* === Mini Ticker (نوار خبر) === */
.mini-ticker {
  overflow: hidden;
  border-bottom: 1px solid #eee;
  background: #0b1220;
  color: #e5e7eb;
}
.mini-ticker__track {
  display: inline-flex;
  gap: 32px;
  padding: 6px 12px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.mini-ticker__track span {
  opacity: 0.9;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* === Pulse dot (بازار آنلاین) === */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  vertical-align: middle;
  margin-right: 0.35rem;
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  to {
    box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
  }
}

/* === Flash on change === */
.flash-up {
  background: #ecfdf5 !important;
  transition: background 0.6s;
}
.flash-down {
  background: #fef2f2 !important;
  transition: background 0.6s;
}

/* === Skeleton loader === */
.skeleton-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.skeleton-row {
  height: 18px;
  background: linear-gradient(90deg, #eee, #f5f5f5, #eee);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
  border-radius: 6px;
  margin: 8px 0;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* === Gradient bar on top of card === */
.card {
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #22c55e, #06b6d4, #6366f1);
}
