/* ═══════════════════════════════════════════════════════
   FC27 Coin Shop  ·  UI 2025
   Dark · Glass · Inter · Smooth animations
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Design tokens ──────────────────────────────────── */
:root {
  --bg:        #07090f;
  --s1:        #0d1021;   /* surface level 1 */
  --s2:        #131729;   /* surface level 2 */
  --s3:        #191f35;   /* surface level 3  / card hover */

  --b1: rgba(255,255,255,.06);  /* border main */
  --b2: rgba(255,255,255,.03);  /* border soft */

  --blue:      #5b8df6;
  --blue-mid:  #3a6de8;
  --blue-dim:  rgba(91,141,246,.18);
  --blue-glow: rgba(91,141,246,.30);

  --green:     #25dba7;
  --green-dim: rgba(37,219,167,.14);
  --green-glow:rgba(37,219,167,.28);

  --red:       #f7566a;
  --red-dim:   rgba(247,86,106,.12);
  --red-glow:  rgba(247,86,106,.28);

  --amber:     #f7b731;
  --amber-dim: rgba(247,183,49,.12);

  --t1: #edf0f8;   /* text primary */
  --t2: #8892b0;   /* text secondary */
  --t3: #4a5272;   /* text muted */

  --r1: 10px;
  --r2: 16px;
  --r3: 22px;

  --ease: cubic-bezier(.4,0,.2,1);
}

/* ── Base ───────────────────────────────────────────── */
.fc27-shop,
.fc27-balance-page,
.fc27-history {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: var(--t1);
  max-width: 940px;
  margin: 0 auto;
  padding: 28px 18px 48px;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}

/* ── Stats topbar ───────────────────────────────────── */
.fc27-topbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--b1);
  border-radius: var(--r3);
  overflow: hidden;
  margin-bottom: 28px;
  background: var(--s1);
  box-shadow: 0 2px 24px rgba(0,0,0,.35);
}
.fc27-topbar-stats { display: contents; }

.fc27-tstat {
  padding: 20px 22px;
  position: relative;
  transition: background .18s var(--ease);
  border-left: 1px solid var(--b1);
}
.fc27-tstat:last-child { border-left: none; }
.fc27-tstat:hover { background: var(--s2); }

.fc27-tstat::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background .18s;
}
.fc27-tstat:hover::after { background: linear-gradient(90deg, transparent, var(--blue), transparent); }

.fc27-tstat-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 7px;
}
.fc27-tstat-val {
  font-size: 22px;
  font-weight: 800;
  color: var(--t1);
  letter-spacing: -.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fc27-tstat-green .fc27-tstat-val { color: var(--green); }
.fc27-tstat-gold  .fc27-tstat-val { color: var(--amber); }

/* ── Platform tabs ──────────────────────────────────── */
.fc27-platform-row {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  margin-bottom: 10px;
}
.fc27-platform-btn {
  flex: 1;
  padding: 10px 16px;
  background: transparent;
  border: none;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--t3);
  transition: all .18s var(--ease);
}
.fc27-platform-btn:hover { background: var(--s2); color: var(--t2); }
.fc27-platform-btn.active {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff;
  box-shadow: 0 2px 14px var(--blue-glow);
}

.fc27-plat-note {
  font-size: 11.5px;
  color: var(--t3);
  padding: 0 4px;
  margin-bottom: 22px;
  line-height: 1.6;
}
.fc27-plat-note a { color: var(--blue); text-decoration: none; }
.fc27-plat-note a:hover { text-decoration: underline; }

/* ── Toolbar (toggles + refresh) ───────────────────── */
.fc27-controls-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 11px 16px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  margin-bottom: 22px;
}

.fc27-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--t2);
  user-select: none;
  transition: color .15s;
}
.fc27-toggle-wrap:hover { color: var(--t1); }
.fc27-toggle-wrap input { display: none; }

.fc27-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  background: var(--t3);
  border-radius: 11px;
  flex-shrink: 0;
  transition: background .2s var(--ease);
}
.fc27-toggle::after {
  content: '';
  position: absolute;
  top: 3px; right: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .22s var(--ease);
  box-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.fc27-toggle-wrap input:checked + .fc27-toggle { background: var(--blue); }
.fc27-toggle-wrap input:checked + .fc27-toggle::after { transform: translateX(-16px); }

.fc27-refresh-btn {
  margin-right: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: none;
  border: 1px solid var(--b1);
  border-radius: var(--r1);
  cursor: pointer;
  font-size: 14px;
  color: var(--t3);
  transition: all .15s;
}
.fc27-refresh-btn:hover {
  background: var(--s2);
  color: var(--t1);
  border-color: var(--blue);
  transform: rotate(180deg);
}

/* ── Card grid ──────────────────────────────────────── */
.fc27-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.fc27-card {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: transform .22s var(--ease),
              border-color .22s,
              box-shadow .22s;
}
/* subtle shimmer line at top */
.fc27-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.12) 50%, transparent 100%);
}
.fc27-card:hover {
  transform: translateY(-4px);
  border-color: rgba(91,141,246,.4);
  box-shadow: 0 12px 36px rgba(0,0,0,.55),
              0 0 0 1px rgba(91,141,246,.15),
              0 0 24px var(--blue-dim);
}
.fc27-card-mine {
  border-color: rgba(37,219,167,.4) !important;
  box-shadow: 0 0 0 1px rgba(37,219,167,.18),
              0 0 24px var(--green-dim),
              0 4px 20px rgba(0,0,0,.4) !important;
}

.fc27-card-head {
  padding: 13px 14px 11px;
  background: linear-gradient(170deg, #161d36 0%, #0f1424 100%);
  display: flex;
  align-items: center;
  gap: 9px;
  position: relative;
  border-bottom: 1px solid var(--b2);
}
.fc27-rating {
  min-width: 34px;
  text-align: center;
  padding: 4px 8px;
  background: linear-gradient(135deg, #f7b731, #e8920e);
  color: #000;
  border-radius: 7px;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: -.3px;
  box-shadow: 0 2px 10px rgba(247,183,49,.35);
  flex-shrink: 0;
}
.fc27-pname {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--t1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.fc27-mine-badge {
  position: absolute;
  left: 8px; top: 50%;
  transform: translateY(-50%);
  background: var(--green);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .02em;
}

.fc27-card-body { padding: 12px 14px 14px; }
.fc27-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--b2);
}
.fc27-row:last-child { border: none; }
.fc27-row span { color: var(--t3); font-weight: 500; font-size: 11.5px; }
.fc27-row b    { color: var(--t1); font-weight: 600; font-size: 12px; }
.fc27-gold { color: var(--amber) !important; }

/* ── Buttons ────────────────────────────────────────── */
.fc27-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .01em;
  transition: opacity .15s,
              transform .12s var(--ease),
              box-shadow .18s;
  position: relative;
  overflow: hidden;
}
.fc27-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background .15s;
}
.fc27-btn:hover:not(:disabled)::after { background: rgba(255,255,255,.06); }
.fc27-btn:hover:not(:disabled) { transform: translateY(-1px); }
.fc27-btn:active:not(:disabled) { transform: scale(.98); }
.fc27-btn:disabled { opacity: .32; cursor: not-allowed; }

.fc27-btn-pick {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: #fff;
  margin-top: 12px;
  box-shadow: 0 4px 16px var(--blue-glow);
}
.fc27-btn-pick:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(91,141,246,.5); }

.fc27-btn-green {
  background: linear-gradient(135deg, var(--green) 0%, #1ab88f 100%);
  color: #000;
  font-weight: 800;
  box-shadow: 0 4px 16px var(--green-glow);
}
.fc27-btn-green:hover:not(:disabled) { box-shadow: 0 6px 24px rgba(37,219,167,.4); }

.fc27-btn-red {
  background: var(--red-dim);
  color: var(--red);
  border: 1px solid rgba(247,86,106,.2);
}
.fc27-btn-red:hover:not(:disabled) { background: rgba(247,86,106,.2); }

.fc27-btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff;
  box-shadow: 0 4px 16px var(--blue-glow);
}

/* ── Request row ────────────────────────────────────── */
.fc27-request-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  margin-bottom: 10px;
}
.fc27-request-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--t2);
  white-space: nowrap;
}
.fc27-request-controls {
  display: flex;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}
.fc27-request-controls select {
  flex: 1;
  min-width: 200px;
  padding: 9px 13px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r1);
  color: var(--t1);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  appearance: none;
  cursor: pointer;
  transition: border-color .15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a5272' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  padding-left: 32px;
}
.fc27-request-controls select:focus { border-color: var(--blue); }
.fc27-request-controls select option { background: var(--s2); color: var(--t1); }

.fc27-request-controls .fc27-btn {
  width: auto;
  padding: 9px 20px;
  flex-shrink: 0;
  margin-top: 0;
}
.fc27-request-counter {
  font-size: 11px;
  color: var(--t3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fc27-request-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--amber-dim);
  border: 1px solid rgba(247,183,49,.22);
  border-radius: var(--r1);
  padding: 11px 15px;
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 16px;
}

/* ── Reserved active panel ──────────────────────────── */
#fc27-reserved-panel { margin-bottom: 22px; }

.fc27-reserved-box {
  position: relative;
  background: var(--s2);
  border: 1px solid rgba(91,141,246,.3);
  border-radius: var(--r3);
  padding: 26px 28px;
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(91,141,246,.08),
    0 0 60px var(--blue-dim),
    0 8px 40px rgba(0,0,0,.5);
}
/* animated top bar */
.fc27-reserved-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue) 50%, transparent);
  animation: slide-glow 2.5s ease-in-out infinite;
}
@keyframes slide-glow {
  0%,100% { opacity: .4; }
  50%      { opacity: 1; }
}
/* bg glow */
.fc27-reserved-box::after {
  content: '';
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, var(--blue-dim) 0%, transparent 70%);
  pointer-events: none;
}

.fc27-reserved-box h3 {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--t1);
  position: relative;
  z-index: 1;
}
.fc27-ri-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--b2);
  position: relative;
  z-index: 1;
}
.fc27-ri-row:last-child { border: none; }
.fc27-ri-row span { color: var(--t3); font-weight: 500; }
.fc27-ri-row b    { color: var(--t1); font-weight: 700; }

/* timer */
.fc27-timer-wrap {
  text-align: center;
  margin: 22px 0 18px;
  position: relative;
  z-index: 1;
}
.fc27-timer-wrap > span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 8px;
}
.fc27-timer {
  font-size: 56px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -3px;
  display: block;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 32px var(--green-glow);
  transition: color .3s, text-shadow .3s;
}
.fc27-timer-urgent {
  color: var(--red) !important;
  text-shadow: 0 0 32px var(--red-glow) !important;
  animation: urgentPulse .7s ease-in-out infinite alternate;
}
@keyframes urgentPulse {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: .6; transform: scale(.97); }
}

.fc27-reserved-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}
.fc27-msg {
  margin-top: 14px;
  font-size: 12px;
  color: var(--t3);
  min-height: 20px;
  text-align: center;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ── Section toggles ────────────────────────────────── */
.fc27-section-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  margin-top: 10px;
  transition: all .17s var(--ease);
  user-select: none;
}
.fc27-section-toggle:hover {
  background: var(--s2);
  color: var(--t1);
  border-color: rgba(91,141,246,.2);
}
.fc27-section-toggle::before {
  content: '▶';
  font-size: 8px;
  color: var(--t3);
  transition: transform .22s var(--ease), color .17s;
  display: inline-block;
}
.fc27-section-toggle.open {
  border-radius: var(--r2) var(--r2) 0 0;
  border-color: rgba(91,141,246,.2);
  color: var(--t1);
}
.fc27-section-toggle.open::before {
  transform: rotate(90deg);
  color: var(--blue);
}

/* section content panel */
#fc27-my-reserved,
#fc27-confirmed-wrap,
#fc27-history-inline,
#fc27-guide-wrap {
  background: var(--s1);
  border: 1px solid rgba(91,141,246,.15);
  border-top: none;
  border-radius: 0 0 var(--r2) var(--r2);
  padding: 16px;
}

/* ── My reserved mini ───────────────────────────────── */
.fc27-reserved-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  background: var(--green-dim);
  border: 1px solid rgba(37,219,167,.2);
  border-radius: var(--r1);
}
.fc27-reserved-mini-name  { font-weight: 700; font-size: 13px; color: var(--t1); }
.fc27-reserved-mini-coins { color: var(--t3); font-size: 12px; }
.fc27-reserved-mini-toman { color: var(--amber); font-weight: 700; font-size: 12px; }
.fc27-reserved-mini-timer { margin-right: auto; color: var(--green); font-size: 12px; font-weight: 600; }

/* ── Confirmed list ─────────────────────────────────── */
.fc27-confirmed-grid { display: flex; flex-direction: column; gap: 6px; }
.fc27-confirmed-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r1);
  font-size: 12.5px;
  transition: border-color .15s;
}
.fc27-confirmed-item:hover { border-color: rgba(91,141,246,.2); }
.fc27-confirmed-player { font-weight: 700; flex: 1; min-width: 100px; color: var(--t1); }
.fc27-confirmed-coins  { color: var(--t3); font-size: 12px; }
.fc27-confirmed-toman  { color: var(--amber); font-weight: 700; }
.fc27-confirmed-date   { color: var(--t3); font-size: 11px; margin-right: auto; }

/* ── Guide ──────────────────────────────────────────── */
.fc27-guide-box {
  background: var(--blue-dim);
  border: 1px solid rgba(91,141,246,.15);
  border-radius: var(--r1);
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--t2);
}
.fc27-guide-box ol { padding-right: 22px; margin: 0; }
.fc27-guide-box li { margin-bottom: 2px; }
.fc27-guide-box li::marker { color: var(--blue); font-weight: 700; }

/* ── Balance page ───────────────────────────────────── */
.fc27-balance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--b1);
  border-radius: var(--r3);
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--b1);
  gap: 1px;
}
.fc27-bcard {
  background: var(--s2);
  padding: 20px 22px;
  transition: background .18s;
}
.fc27-bcard:hover { background: var(--s3); }
.fc27-bcard-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 8px;
}
.fc27-bcard-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fc27-bcard-gold .fc27-bcard-val { color: var(--amber); }

.fc27-bank-form {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  padding: 20px 22px;
}
.fc27-bank-form h4 {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--t1);
}
.fc27-bank-form input {
  width: 100%;
  padding: 10px 13px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r1);
  color: var(--t1);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.fc27-bank-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
.fc27-bank-form input::placeholder { color: var(--t3); }

/* ── History table ──────────────────────────────────── */
.fc27-history h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--t1);
  margin-bottom: 16px;
}
.fc27-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.fc27-table th {
  padding: 10px 13px;
  background: var(--s2);
  border-bottom: 1px solid var(--b1);
  color: var(--t3);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: right;
}
.fc27-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--b2);
  color: var(--t1);
  text-align: right;
}
.fc27-table tbody tr:last-child td { border: none; }
.fc27-table tbody tr:hover td { background: var(--s2); }

/* ── Utility ────────────────────────────────────────── */
.fc27-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--t3);
  font-size: 13px;
}
.fc27-empty::before {
  content: '📭';
  display: block;
  font-size: 30px;
  margin-bottom: 10px;
  opacity: .45;
  filter: grayscale(1);
}

.fc27-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  color: var(--t3);
  font-size: 13px;
}
.fc27-loading::before {
  content: '';
  flex-shrink: 0;
  width: 16px; height: 16px;
  border: 2px solid var(--b1);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fc27-box {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  padding: 20px;
  color: var(--t2);
}
.fc27-box a { color: var(--blue); }
.fc27-box p { margin: 0; line-height: 1.7; }

.fc27-withdraw-form {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.fc27-withdraw-form h4 { margin: 0 0 14px; font-size: 14px; font-weight: 700; color: var(--t1); }
.fc27-withdraw-form input {
  width: 100%;
  padding: 10px 13px;
  background: var(--s1);
  border: 1px solid var(--b1);
  border-radius: var(--r1);
  color: var(--t1);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.fc27-withdraw-form input:focus { border-color: var(--blue); }
.fc27-withdraw-hint { font-size: 11px; color: var(--t3); margin-bottom: 10px; margin-top: -6px; }
.fc27-withdraw-info { margin-bottom: 12px; }

.fc27-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.fc27-badge-pending  { background: rgba(247,183,49,.12); color: var(--amber); border: 1px solid rgba(247,183,49,.2); }
.fc27-badge-paid     { background: var(--green-dim); color: var(--green); border: 1px solid rgba(37,219,167,.2); }
.fc27-badge-rejected { background: var(--red-dim);   color: var(--red);   border: 1px solid rgba(247,86,106,.2); }

.fc27-withdraw-list { display: flex; flex-direction: column; gap: 8px; }
.fc27-withdraw-item {
  padding: 14px 16px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r1);
  transition: border-color .15s;
}
.fc27-withdraw-item:hover { border-color: rgba(91,141,246,.2); }
.fc27-wi-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.fc27-wi-amount { font-size: 16px; font-weight: 800; color: var(--amber); }
.fc27-wi-meta { display: flex; gap: 16px; font-size: 11.5px; color: var(--t3); }
.fc27-wi-note { margin-top: 6px; font-size: 11.5px; color: var(--t2); padding: 6px 10px; background: var(--blue-dim); border-radius: 6px; }
.fc27-shop ::-webkit-scrollbar       { width: 4px; height: 4px; }
.fc27-shop ::-webkit-scrollbar-track { background: transparent; }
.fc27-shop ::-webkit-scrollbar-thumb { background: var(--b1); border-radius: 4px; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 720px) {
  .fc27-topbar { grid-template-columns: 1fr 1fr; }
  .fc27-tstat { border-left: none; border-top: 1px solid var(--b1); }
  .fc27-tstat:nth-child(-n+2) { border-top: none; }
}
@media (max-width: 540px) {
  .fc27-shop, .fc27-balance-page, .fc27-history { padding: 14px 10px 36px; }
  .fc27-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fc27-timer { font-size: 44px; }
  .fc27-request-row  { flex-direction: column; align-items: stretch; }
  .fc27-request-controls { flex-direction: column; }
  .fc27-request-controls .fc27-btn { width: 100%; }
  .fc27-reserved-box { padding: 20px 18px; }
  .fc27-reserved-actions { grid-template-columns: 1fr; }
  .fc27-balance-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 360px) {
  .fc27-grid { grid-template-columns: 1fr; }
  .fc27-topbar { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════
   FC27 App Dashboard Layout
   ════════════════════════════════════════════════════ */

.fc27-app {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
  font-family: 'Inter', system-ui, sans-serif;
  direction: rtl;
  color: var(--t1);
  -webkit-font-smoothing: antialiased;
}

/* ── Sidebar ─────────────────────────────────────── */
.fc27-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--s1);
  border-left: 1px solid var(--b1);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 100;
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}

.fc27-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px 18px;
  border-bottom: 1px solid var(--b1);
}
.fc27-brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue), #6c5ce7);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 3px 12px var(--blue-glow);
  flex-shrink: 0;
}
.fc27-brand-name { font-size: 15px; font-weight: 800; color: var(--t1); }
.fc27-brand-sub  { font-size: 10px; color: var(--t3); margin-top: 2px; }

.fc27-nav {
  flex: 1;
  padding: 10px 8px;
  overflow-y: auto;
}
.fc27-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--r1);
  color: var(--t2);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
  border: none; background: none; width: 100%;
  text-align: right;
}
.fc27-nav-item:hover { background: var(--s2); color: var(--t1); }
.fc27-nav-item.active {
  background: var(--blue-dim);
  color: var(--blue);
  font-weight: 700;
}
.fc27-nav-icon { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.fc27-nav-logout { color: var(--red) !important; }
.fc27-nav-logout:hover { background: var(--red-dim) !important; }

.fc27-sidebar-footer { padding: 8px; border-top: 1px solid var(--b1); }

/* ── Main area ───────────────────────────────────── */
.fc27-main {
  flex: 1;
  margin-right: 240px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────── */
.fc27-app-topbar {
  position: sticky; top: 0; z-index: 90;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: var(--s1);
  border-bottom: 1px solid var(--b1);
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.fc27-menu-btn {
  display: none;
  background: none; border: none;
  color: var(--t2); font-size: 20px; cursor: pointer;
  padding: 4px 8px;
}
.fc27-topbar-info { display: flex; align-items: center; gap: 14px; }
.fc27-topbar-balance {
  display: flex; align-items: center; gap: 6px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
}
.fc27-topbar-bal-label { color: var(--t3); font-size: 11px; }
.fc27-topbar-bal-val   { color: var(--amber); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.fc27-topbar-bal-unit  { color: var(--t3); font-size: 11px; }
.fc27-topbar-level {
  display: flex; align-items: center; gap: 6px;
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--t2);
}
.fc27-topbar-user {
  margin-right: auto;
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--t2);
}
.fc27-user-avatar {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--blue), #6c5ce7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #fff;
}

/* ── Notice bar ──────────────────────────────────── */
.fc27-notice {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 24px;
  background: rgba(247,183,49,.1);
  border-bottom: 1px solid rgba(247,183,49,.2);
  font-size: 12.5px; color: var(--amber);
}
.fc27-notice-close {
  margin-right: auto;
  background: none; border: 1px solid rgba(247,183,49,.3);
  border-radius: 6px; padding: 3px 10px;
  color: var(--amber); cursor: pointer; font-size: 11px;
}

/* ── Pages ───────────────────────────────────────── */
.fc27-pages { flex: 1; }
.fc27-page  { display: none; padding: 24px; }
.fc27-page.active { display: block; }
.fc27-page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.fc27-page-title { font-size: 20px; font-weight: 800; color: var(--t1); margin: 0; }

/* Period tabs */
.fc27-period-tabs { display: flex; gap: 6px; }
.fc27-period-btn {
  padding: 7px 14px;
  background: var(--s2); border: 1px solid var(--b1);
  border-radius: 8px; color: var(--t2);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.fc27-period-btn:hover { border-color: var(--blue); color: var(--blue); }
.fc27-period-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Stats grid ──────────────────────────────────── */
.fc27-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}
.fc27-stat-card {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color .15s;
}
.fc27-stat-card:hover { border-color: rgba(91,141,246,.2); }
.fc27-stat-icon { font-size: 28px; flex-shrink: 0; }
.fc27-stat-label { font-size: 11px; color: var(--t3); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 6px; }
.fc27-stat-val   { font-size: 24px; font-weight: 900; color: var(--t1); line-height: 1; font-variant-numeric: tabular-nums; }
.fc27-stat-sub   { font-size: 11px; color: var(--t3); margin-top: 4px; }
.fc27-stat-green .fc27-stat-val { color: var(--green); }
.fc27-stat-gold  .fc27-stat-val { color: var(--amber); }

/* ── Dashboard row ───────────────────────────────── */
.fc27-dash-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 14px;
}

/* wallet card */
.fc27-wallet-card {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  overflow: hidden;
}
.fc27-wc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--b1);
}
.fc27-wc-link { color: var(--blue); font-size: 12px; font-weight: 500; text-decoration: none; }
.fc27-wc-rows { padding: 6px 0; }
.fc27-wc-row {
  display: flex; justify-content: space-between;
  padding: 9px 16px; font-size: 12.5px;
  border-bottom: 1px solid var(--b2);
}
.fc27-wc-row:last-child { border: none; }
.fc27-wc-row span { color: var(--t3); }
.fc27-wc-row b    { color: var(--t1); font-weight: 700; }
.fc27-wc-row-highlight b { color: var(--amber); font-size: 15px; }

/* rate card */
.fc27-rate-card {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  overflow: hidden;
}
.fc27-rate-header {
  padding: 14px 16px;
  font-size: 13px; font-weight: 700;
  border-bottom: 1px solid var(--b1);
  display: flex; align-items: center; gap: 8px;
}
.fc27-rate-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fc27-rate-table th {
  padding: 9px 12px; background: var(--s1);
  color: var(--t3); font-size: 10.5px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; text-align: center;
  border-bottom: 1px solid var(--b1);
}
.fc27-rate-table td {
  padding: 9px 12px; text-align: center;
  border-bottom: 1px solid var(--b2); color: var(--t1);
  font-variant-numeric: tabular-nums;
}
.fc27-rate-table tr:last-child td { border: none; }
.fc27-rate-table tr:hover td { background: var(--s1); }
.fc27-loading-inline { text-align: center; color: var(--t3); padding: 14px; }

/* ── History ─────────────────────────────────────── */
.fc27-history-tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--b1); padding-bottom: 10px; }
.fc27-htab {
  padding: 7px 16px; background: none; border: 1px solid var(--b1);
  border-radius: 8px; color: var(--t2); font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.fc27-htab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Transaction list ────────────────────────────── */
.fc27-tx-list { display: flex; flex-direction: column; gap: 8px; }
.fc27-tx-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: var(--s2); border: 1px solid var(--b1); border-radius: 11px;
  transition: border-color .15s;
}
.fc27-tx-item:hover { border-color: rgba(91,141,246,.2); }
.fc27-tx-player { font-size: 13.5px; font-weight: 700; color: var(--t1); margin-bottom: 3px; }
.fc27-tx-date   { font-size: 11px; color: var(--t3); }
.fc27-tx-note   { font-size: 11px; color: var(--t2); margin-top: 4px; }
.fc27-tx-coins  { font-size: 13px; color: var(--t2); text-align: left; margin-bottom: 3px; }
.fc27-tx-toman  { font-size: 15px; font-weight: 800; text-align: left; font-variant-numeric: tabular-nums; }

/* ── Empty state ─────────────────────────────────── */
.fc27-empty-state {
  text-align: center; padding: 48px 24px;
  color: var(--t3);
}
.fc27-es-icon  { font-size: 40px; margin-bottom: 14px; opacity: .4; }
.fc27-es-title { font-size: 15px; font-weight: 700; color: var(--t2); margin-bottom: 8px; }
.fc27-es-desc  { font-size: 12.5px; line-height: 1.8; max-width: 360px; margin: 0 auto; }

/* ── Wallet page ─────────────────────────────────── */
.fc27-wallet-tabs {
  display: flex; gap: 2px;
  background: var(--s1); border: 1px solid var(--b1);
  border-radius: var(--r2); padding: 4px; margin-bottom: 20px;
  width: fit-content;
}
.fc27-wtab {
  padding: 9px 20px; background: none; border: none;
  border-radius: 10px; color: var(--t2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.fc27-wtab.active { background: var(--blue); color: #fff; box-shadow: 0 2px 10px var(--blue-glow); }

.fc27-wallet-panel { display: none; }
.fc27-wallet-panel.active { display: block; }
.fc27-wallet-note { font-size: 12.5px; color: var(--t2); margin-bottom: 18px; line-height: 1.7; }

.fc27-wallet-overview { margin-bottom: 22px; }
.fc27-wo-card {
  background: var(--s2); border: 1px solid var(--b1); border-radius: var(--r2);
  padding: 20px; display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap;
}
.fc27-wo-shield { font-size: 48px; flex-shrink: 0; }
.fc27-wo-details { flex: 1; min-width: 200px; }
.fc27-wo-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0; border-bottom: 1px solid var(--b2); font-size: 12.5px;
}
.fc27-wo-row:last-child { border: none; }
.fc27-wo-row span { color: var(--t3); }
.fc27-wo-row b    { color: var(--t1); font-weight: 700; }
.fc27-wo-highlight b { color: var(--amber); font-size: 16px; }
.fc27-wo-bank { min-width: 160px; }
.fc27-bank-edit-btn {
  background: var(--blue-dim); border: 1px solid rgba(91,141,246,.2);
  color: var(--blue); border-radius: 8px; padding: 8px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  margin-bottom: 10px;
}
.fc27-bank-display { font-size: 12px; color: var(--t3); }
.fc27-bank-num   { display: block; font-family: monospace; letter-spacing: 2px; font-size: 13px; color: var(--t2); margin-bottom: 4px; }
.fc27-bank-owner { color: var(--t3); }

.fc27-withdraw-section { margin-bottom: 24px; }
.fc27-field-label { display: block; font-size: 11px; font-weight: 600; color: var(--t3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.fc27-field {
  width: 100%; padding: 11px 14px;
  background: var(--s2); border: 1px solid var(--b1);
  border-radius: var(--r1); color: var(--t1);
  font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .15s; box-sizing: border-box; margin-bottom: 8px;
}
.fc27-field:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-dim); }
.fc27-field::placeholder { color: var(--t3); }
.fc27-field-sm { width: 90px; }
.fc27-field-hint { font-size: 11px; color: var(--t3); margin-bottom: 12px; }
.fc27-field-group { margin-bottom: 14px; }
.fc27-primary-btn {
  background: linear-gradient(135deg, var(--blue), var(--blue-mid));
  color: #fff; border: none; border-radius: 10px;
  padding: 11px 22px; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 14px var(--blue-glow);
  transition: opacity .15s, transform .1s;
}
.fc27-primary-btn:hover { opacity: .9; transform: translateY(-1px); }
.fc27-full-btn { width: 100%; }

.fc27-alert {
  padding: 12px 16px; border-radius: var(--r1);
  font-size: 12.5px; margin-bottom: 14px;
}
.fc27-alert-warning { background: var(--amber-dim); border: 1px solid rgba(247,183,49,.22); color: var(--amber); }

/* ── Bonus levels ────────────────────────────────── */
.fc27-bonus-section { margin-top: 24px; }
.fc27-bonus-title { font-size: 15px; font-weight: 700; color: var(--t1); margin-bottom: 8px; }
.fc27-bonus-desc  { font-size: 12px; color: var(--t3); margin-bottom: 16px; line-height: 1.7; }
.fc27-levels-grid { display: flex; gap: 10px; flex-wrap: wrap; }
.fc27-level-card {
  flex: 1; min-width: 100px;
  background: var(--s2); border: 1px solid var(--b1);
  border-radius: var(--r2); padding: 16px 12px;
  text-align: center; transition: border-color .15s;
}
.fc27-level-card:hover { border-color: rgba(91,141,246,.2); }
.fc27-level-icon  { font-size: 28px; margin-bottom: 8px; }
.fc27-level-name  { font-size: 12px; font-weight: 700; color: var(--t2); margin-bottom: 4px; }
.fc27-level-bonus { font-size: 18px; font-weight: 900; color: var(--amber); }
.fc27-level-base   .fc27-level-icon { filter: grayscale(.5); }
.fc27-level-elite  .fc27-level-bonus { color: var(--blue); }

/* ── Profile ─────────────────────────────────────── */
.fc27-profile-card {
  background: var(--s2); border: 1px solid var(--b1);
  border-radius: var(--r2); padding: 24px; max-width: 480px;
}
.fc27-card-title { font-size: 14px; font-weight: 700; margin: 0 0 18px; color: var(--t1); }

/* ── Sell page tabs ──────────────────────────────── */
.fc27-sell-tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--b1); padding-bottom: 10px; }
.fc27-stab {
  padding: 8px 18px; background: none; border: 1px solid var(--b1);
  border-radius: 8px; color: var(--t2); font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: all .15s; font-family: inherit;
}
.fc27-stab.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.fc27-stab-panel  { display: none; }
.fc27-stab-panel.active { display: block; }

.fc27-sell-info-row {
  display: flex; flex-wrap: wrap; gap: 10px;
  padding: 14px 16px; background: var(--s2); border: 1px solid var(--b1);
  border-radius: var(--r1); margin-bottom: 16px;
}
.fc27-sell-info-item { font-size: 12px; color: var(--t2); flex: 1; min-width: 180px; }

.fc27-avail-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.fc27-avail-input-wrap { display: flex; align-items: center; gap: 6px; }
.fc27-avail-unit { font-size: 13px; font-weight: 700; color: var(--t3); }
.fc27-avail-hint { font-size: 11px; color: var(--t3); flex-basis: 100%; }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .fc27-dash-row { grid-template-columns: 1fr; }
  .fc27-stats-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .fc27-sidebar { transform: translateX(100%); }
  .fc27-sidebar.open { transform: translateX(0); }
  .fc27-main { margin-right: 0; }
  .fc27-menu-btn { display: block; }
  .fc27-page { padding: 16px 12px; }
  .fc27-stats-grid { grid-template-columns: 1fr; }
  .fc27-levels-grid { grid-template-columns: repeat(3, 1fr); }
  .fc27-wo-card { flex-direction: column; }
}
@media (max-width: 480px) {
  .fc27-topbar-level { display: none; }
  .fc27-levels-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════════
   فاز ۸ — کارت FC27 CSS (مثل وب‌اپ EA)
   ═══════════════════════════════════════════════════ */

/* ── FUT Card ── */
.fc27-fut-card {
  position: relative;
  width: 120px;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  font-family: 'Inter', sans-serif;
}

/* فریم بر اساس ریتینگ و rarity */
.fc27-fut-card.gold         { background: linear-gradient(160deg, #c89b2e 0%, #f5d060 35%, #c89b2e 65%, #a07820 100%); }
.fc27-fut-card.silver       { background: linear-gradient(160deg, #8c8c8c 0%, #c8c8c8 35%, #8c8c8c 65%, #6a6a6a 100%); }
.fc27-fut-card.bronze       { background: linear-gradient(160deg, #8b4513 0%, #cd853f 35%, #8b4513 65%, #6b3410 100%); }
/* TOTW / Inform */
.fc27-fut-card.totw         { background: linear-gradient(160deg, #1a1a2e 0%, #16213e 35%, #0f3460 65%, #533483 100%); }
/* TOTY */
.fc27-fut-card.toty         { background: linear-gradient(160deg, #0d0d0d 0%, #1a1a1a 35%, #2d1b69 65%, #11998e 100%); }
/* Hero */
.fc27-fut-card.hero         { background: linear-gradient(160deg, #1a0533 0%, #3d1066 35%, #6b2fa0 65%, #9b59b6 100%); }
/* Icon */
.fc27-fut-card.icon         { background: linear-gradient(160deg, #1a0a00 0%, #3d1f00 35%, #7a3900 65%, #c8860a 100%); }
/* TOTS */
.fc27-fut-card.tots         { background: linear-gradient(160deg, #003300 0%, #006600 35%, #009900 65%, #00cc00 100%); }
/* Future Stars */
.fc27-fut-card.futurestars  { background: linear-gradient(160deg, #001a33 0%, #003366 35%, #0055aa 65%, #0088ff 100%); }
/* OTW */
.fc27-fut-card.otw          { background: linear-gradient(160deg, #1a0000 0%, #4d0000 35%, #990000 65%, #cc3300 100%); }
/* Special / Promo default */
.fc27-fut-card.special      { background: linear-gradient(160deg, #0d0d2b 0%, #1a1a4d 35%, #2d2d7a 65%, #4040a8 100%); }
/* Holographic */
.fc27-fut-card.holographic  { background: linear-gradient(160deg, #ff0080 0%, #7928ca 25%, #0070f3 50%, #00d2ff 75%, #ff0080 100%); }

/* inner frame */
.fc27-fut-card::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  background: linear-gradient(170deg, rgba(0,0,0,.7) 0%, rgba(20,20,30,.9) 60%, rgba(0,0,0,.85) 100%);
  z-index: 1;
}

/* shine effect */
.fc27-fut-card::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transform: skewX(-20deg);
  pointer-events: none;
  z-index: 10;
}

.fc27-fut-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 6px 4px 5px;
}

/* rating + position */
.fc27-fut-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2px;
  width: 100%;
}
.fc27-fut-rating {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: #f5d060;
  text-shadow: 0 1px 4px rgba(0,0,0,.8);
  font-variant-numeric: tabular-nums;
}
.fc27-fut-card.silver .fc27-fut-rating { color: #e8e8e8; }
.fc27-fut-card.bronze .fc27-fut-rating { color: #d4a86a; }

.fc27-fut-pos {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  margin-top: 1px;
}

/* player image */
.fc27-fut-portrait {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  margin: 2px 0;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  flex-shrink: 0;
}
.fc27-fut-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fc27-fut-portrait-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,.3);
}

/* player name */
.fc27-fut-name {
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
  margin-bottom: 3px;
}

/* stats row */
.fc27-fut-stats {
  display: flex;
  justify-content: center;
  gap: 5px;
  width: 100%;
}
.fc27-fut-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.fc27-fut-stat-val {
  font-size: 8.5px;
  font-weight: 800;
  color: #f5d060;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.fc27-fut-card.silver .fc27-fut-stat-val { color: #e8e8e8; }
.fc27-fut-card.bronze .fc27-fut-stat-val { color: #d4a86a; }
.fc27-fut-stat-lbl {
  font-size: 6px;
  font-weight: 700;
  color: rgba(255,255,255,.55);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── کارت گرید با FUT card ── */
.fc27-card {
  background: var(--s2);
  border: 1px solid var(--b1);
  border-radius: var(--r2);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), border-color .22s, box-shadow .22s;
}
.fc27-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79,142,247,.4);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 1px rgba(79,142,247,.15);
}
.fc27-card-mine {
  border-color: rgba(34,211,165,.4) !important;
  box-shadow: 0 0 0 1px rgba(34,211,165,.2), var(--shadow-card) !important;
}

.fc27-card-head {
  padding: 16px 12px 12px;
  background: linear-gradient(170deg, #161d36 0%, #0f1424 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-bottom: 1px solid var(--b2);
  min-height: 180px;
}
.fc27-mine-badge {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--green);
  color: #000;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 20px;
  letter-spacing: .02em;
  z-index: 20;
}

/* card image placeholder (وقتی asset_id نداره) */
.fc27-card-img-placeholder {
  width: 120px; height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #c89b2e 0%, #f5d060 35%, #c89b2e 65%, #a07820 100%);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  position: relative;
}
.fc27-card-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 6px;
  background: rgba(0,0,0,.8);
}
.fc27-card-img-rating {
  font-size: 28px;
  font-weight: 900;
  color: #f5d060;
  position: relative;
  z-index: 1;
}
/* silver/bronze variations via JS class */
.fc27-card-img-placeholder.silver { background: linear-gradient(160deg, #8c8c8c 0%, #c8c8c8 35%, #8c8c8c 65%, #6a6a6a 100%); }
.fc27-card-img-placeholder.silver .fc27-card-img-rating { color: #e8e8e8; }
.fc27-card-img-placeholder.bronze { background: linear-gradient(160deg, #8b4513 0%, #cd853f 35%, #8b4513 65%, #6b3410 100%); }
.fc27-card-img-placeholder.bronze .fc27-card-img-rating { color: #d4a86a; }

/* ═══════════════════════════════════════════════════
   فاز ۴،۵،۶،۷ — کیف پول، پروفایل، سوابق، سطوح
   ═══════════════════════════════════════════════════ */

/* ── Active reservation banner ── */
.fc27-active-res-banner {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(37,219,167,.08);
  border: 1px solid rgba(37,219,167,.25);
  border-radius: var(--r2);
  margin-bottom: 16px;
}
.fc27-arb-img {
  width: 50px; height: 64px;
  border-radius: 6px; overflow: hidden;
  flex-shrink: 0;
}
.fc27-arb-img .fc27-card-img,
.fc27-arb-img .fc27-card-img-placeholder { width: 100%; height: 100%; }
.fc27-arb-title  { font-size: 13.5px; font-weight: 700; color: var(--t1); margin-bottom: 4px; }
.fc27-arb-coins  { font-size: 12px; color: var(--t2); margin-bottom: 3px; }
.fc27-arb-timer  { font-size: 11px; color: var(--green); font-weight: 600; }

/* ── Transaction image ── */
.fc27-tx-img {
  width: 44px; height: 56px;
  border-radius: 5px; overflow: hidden;
  flex-shrink: 0;
}
.fc27-tx-img .fc27-card-img,
.fc27-tx-img .fc27-card-img-placeholder { width: 100%; height: 100%; }
.fc27-tx-img .fc27-card-img-rating { font-size: 14px; }

.fc27-tx-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Pagination ── */
.fc27-pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}
.fc27-page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--s2); border: 1px solid var(--b1);
  border-radius: var(--r1); color: var(--t2);
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.fc27-page-btn:hover { border-color: var(--blue); color: var(--blue); }
.fc27-page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ── Rate table current level ── */
.fc27-rate-current td { background: rgba(91,141,246,.08) !important; color: var(--t1) !important; }
.fc27-rate-current td:first-child { font-weight: 700; color: var(--blue) !important; }

/* ── Level card active ── */
.fc27-level-card.fc27-level-active {
  border-color: var(--blue);
  background: var(--blue-dim);
  box-shadow: 0 0 0 1px rgba(91,141,246,.2);
}
.fc27-level-card.fc27-level-active .fc27-level-name  { color: var(--t1); }
.fc27-level-card.fc27-level-active .fc27-level-bonus { color: var(--blue); }

/* progress to next level */
#fc27-level-progress-wrap { margin-top: 16px; }
#fc27-level-next-txt {
  font-size: 11.5px; color: var(--t3); text-align: center;
  padding: 8px; background: var(--s1); border-radius: var(--r1);
  border: 1px dashed var(--b1);
}

/* ── Bank card visual ── */
.fc27-bank-card-visual {
  background: linear-gradient(135deg, #1e3a6e, #0f1e3d);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 10px;
  border: 1px solid rgba(91,141,246,.2);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.fc27-bcv-num {
  font-family: 'Courier New', monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 8px;
}
.fc27-bcv-owner {
  font-size: 12px;
  color: rgba(255,255,255,.65);
}
.fc27-bank-empty {
  font-size: 12px; color: var(--t3);
  padding: 10px; text-align: center;
  background: var(--s1); border-radius: var(--r1);
  border: 1px dashed var(--b1);
  margin-top: 8px;
}
.fc27-bank-empty a { color: var(--blue); }

/* ── Profile fields dir ── */
#fc27-prof-sheba,
#fc27-prof-account { text-align: left; font-family: monospace; letter-spacing: 1px; }

/* ── Balance page withdraw hint ── */
#fc27-withdraw-hint { font-size: 11px; color: var(--t3); margin: -4px 0 10px; }

/* level threshold */
.fc27-level-threshold {
  font-size: 9px; color: var(--t3);
  margin-top: 3px; letter-spacing: .03em;
}
