/* FO4 patch - teams section */
.fo4-teams { position: relative; padding: 4vw 0 5vw; background: linear-gradient(160deg, #0a1a6b 0%, #1230a8 55%, #0a1a6b 100%); overflow: hidden; }
.fo4-teams::before { content: "CHAMPIONS"; position: absolute; top: 0.5vw; left: 50%; transform: translateX(-50%); font-family: "CruyffSansVNCondensed-Bold", "CruyffSansVN-Bold", sans-serif; font-size: 9vw; letter-spacing: 0.5vw; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); white-space: nowrap; pointer-events: none; }
.fo4-teams__inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.fo4-teams h2 { font-family: "CruyffSansVNCondensed-Bold", sans-serif; color: #7bff9e; font-size: clamp(28px, 4.5vw, 56px); text-align: center; margin: 0 0 18px; letter-spacing: 2px; }
.fo4-teams__tabs { display: flex; justify-content: center; gap: 24px; margin-bottom: 28px; }
.fo4-teams__tab { font-family: "CruyffSansVNCondensed-Bold", sans-serif; font-size: clamp(14px, 1.4vw, 20px); color: #fff; background: #19c37d; border: none; padding: 10px 34px; cursor: pointer; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); transition: filter .2s, transform .15s; }
.fo4-teams__tab:hover { filter: brightness(1.1); transform: translateY(-1px); }
.fo4-teams__tab--danger { background: #e0244b; }
.fo4-teams__tab--ghost { background: rgba(255,255,255,.15); }
.fo4-teams__tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.fo4-teams table { width: 100%; border-collapse: collapse; min-width: 760px; }
.fo4-teams thead th { font-family: "CruyffSansVNCondensed-Bold", sans-serif; background: linear-gradient(180deg, #9dffbe, #4be389); color: #06235e; font-size: clamp(13px, 1.2vw, 17px); text-align: left; padding: 12px 14px; letter-spacing: 1px; }
.fo4-teams thead th:first-child { border-radius: 4px 0 0 0; }
.fo4-teams thead th:last-child { border-radius: 0 4px 0 0; }
.fo4-teams tbody td { color: #fff; font-size: clamp(13px, 1.15vw, 16px); padding: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.fo4-teams tbody tr:nth-child(odd) { background: rgba(4, 17, 71, .55); }
.fo4-teams tbody tr:nth-child(even) { background: rgba(13, 40, 140, .4); }
.fo4-teams tbody td:first-child { color: #9dffbe; font-weight: 700; }
.fo4-teams__name { font-weight: 700; letter-spacing: .5px; }
.fo4-btn { display: inline-block; font-family: "CruyffSansVNCondensed-Bold", sans-serif; font-size: 14px; color: #06235e; background: #4be389; border: none; padding: 7px 18px; margin-right: 8px; cursor: pointer; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); text-decoration: none; transition: filter .15s; }
.fo4-btn:hover { filter: brightness(1.15); }
.fo4-btn--pink { background: #ff7ad9; color: #4a0033; }
.fo4-btn:disabled { opacity: .5; cursor: not-allowed; }
.fo4-teams__empty { color: #9dffbe; text-align: center; padding: 30px 0; font-size: 16px; }
.fo4-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0,0,20,.7); backdrop-filter: blur(3px); padding: 16px; }
.fo4-modal__box { background: #0a1a6b; border: 1px solid rgba(123,255,158,.35); border-radius: 12px; max-width: 480px; width: 100%; padding: 28px; color: #fff; position: relative; }
.fo4-modal__box h3 { font-family: "CruyffSansVNCondensed-Bold", sans-serif; color: #7bff9e; margin: 0 0 14px; font-size: 24px; }
.fo4-modal__box p { margin: 8px 0; font-size: 15px; color: #cfe0ff; }
.fo4-modal__box p b { color: #fff; }
.fo4-modal__close { position: absolute; top: 10px; right: 14px; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; }
.fo4-modal__actions { margin-top: 20px; text-align: right; }
@media (max-width: 768px) {
  .fo4-teams thead { display: none; }
  .fo4-teams table, .fo4-teams tbody, .fo4-teams tr, .fo4-teams td { display: block; width: 100%; min-width: 0; }
  .fo4-teams tbody tr { margin-bottom: 14px; border-radius: 8px; overflow: hidden; }
  .fo4-teams tbody td { border: none; padding: 8px 14px; }
  .fo4-teams tbody td::before { content: attr(data-th); display: block; font-size: 11px; color: #8fb3ff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 2px; }
  .fo4-teams tbody td:first-child { display: none; }
}

/* ===== Modals dùng khung gốc của site (.ReactModal__Overlay / .ReactModal__Content / .btn / .form__line / .table-history) ===== */
body.fo4-lock { overflow: hidden !important; }
#fo4-reg.ReactModal__Overlay { overflow-y: auto; }
#fo4-reg .close {
  position: absolute; top: .8vw; right: 1vw; color: #fff; font-size: 2vw; line-height: 1;
  cursor: pointer; font-weight: 300; z-index: 2; transition: color .15s;
}
#fo4-reg .close:hover { color: #4aff96; }
/* form dùng layout .form__line của site; bổ sung style input giống input gốc */
#fo4-reg .fo4-form { margin-top: .5vw; }
#fo4-reg .form__label { width: 8.5vw; }
#fo4-reg .form__action { width: calc(100% - 9.2vw); }
#fo4-reg .form__action input {
  width: 100%; height: 2.0833333333vw; line-height: 2.0833333333vw;
  border: 1px solid #07dd5f; background-color: #010f08; color: #fff;
  font-size: 1.25vw; font-family: CruyffSansVNCondensed, sans-serif;
  padding: 0 .5208333333vw; outline: none;
}
#fo4-reg .form__action input::placeholder { color: rgba(255,255,255,.45); }
.fo4-actions { display: flex; justify-content: center; gap: 1.5vw; margin-top: 2vw; }
.fo4-msg { text-align: center; font-size: 1.3vw; line-height: 1.8; color: #dff5e6; }
.fo4-note { margin-top: 1.5vw; font-size: .95vw; color: #9fe8bb; text-align: center; }
.fo4-note::before { content: "*"; color: #ff7ad9; margin-right: 4px; }
.fo4-spin { display: flex; flex-direction: column; align-items: center; gap: 1.5vw; padding: 2vw 0; color: #dff5e6; font-size: 1.2vw; }
.fo4-spin .loader { width: 46px; height: 46px; border: 4px solid rgba(74,255,150,.2); border-top-color: #4aff96; border-radius: 50%; animation: fo4spin .9s linear infinite; }
@keyframes fo4spin { to { transform: rotate(360deg); } }
.fo4-detail p { margin: .6vw 0; font-size: 1.25vw; color: #dff5e6; }
.fo4-detail b { color: #4aff96; }
.fo4-empty { text-align: center; color: #fff; font-size: 1.2vw; padding: 1.5vw 0 .5vw; }
.fo4-histwrap { max-height: 55vh; overflow: auto; }
.fo4-shop__pill {
  position: absolute; top: 1vw; right: 3.6vw; padding: .3vw 1vw;
  border: 1px solid #4aff96; border-radius: 20px; color: #4aff96;
  font-size: 1vw; letter-spacing: 1px; font-family: "CruyffSansVNCondensed", sans-serif;
}
@media (max-width: 900px) {
  #fo4-reg .ReactModal__Content { width: 92vw !important; }
  #fo4-reg h2 { font-size: 6vw !important; }
  #fo4-reg .form__line { flex-direction: column; align-items: stretch; gap: .8vw; }
  #fo4-reg .form__label { width: 100%; text-align: left; justify-content: flex-start; font-size: 3.4vw; height: auto; }
  #fo4-reg .form__action { width: 100%; }
  #fo4-reg .form__action input { height: 10vw; line-height: 10vw; font-size: 4vw; }
  #fo4-reg .btn { min-width: 34vw !important; height: 9vw !important; line-height: 9.5vw !important; font-size: 4vw !important; }
  .fo4-msg, .fo4-detail p { font-size: 3.8vw; }
  .fo4-note { font-size: 3.2vw; }
  .fo4-empty { font-size: 3.6vw; }
  #fo4-reg .close { font-size: 6vw; top: 2vw; right: 3vw; }
  .table-history th { font-size: 3vw !important; }
  .table-history td { font-size: 3.4vw !important; }
}

/* ẩn menu 4 nút trong section hero */
.section--1 > .menu { display: none !important; }

/* ===== dropdown tài khoản ===== */
.fo4-user { position: relative; }
.fo4-user__name { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.fo4-user__car { display: inline-flex; }
.fo4-user__car svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fo4-user__drop {
  display: none; position: absolute; top: 100%; right: 0; min-width: 160px; margin-top: 8px;
  background: linear-gradient(160deg, #06182a, #04101f);
  border: 1px solid #4aff96;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
  padding: 6px 0; z-index: 10001;
}
.fo4-user.open .fo4-user__drop { display: block; }
.fo4-user__drop a {
  display: block; padding: 10px 18px; color: #dff5e6; font-size: 13px; letter-spacing: 1px;
  text-decoration: none; font-family: "CruyffSansVNCondensed-Bold", sans-serif;
}
.fo4-user__drop a:hover { background: rgba(74,255,150,.12); color: #4aff96; }

/* ===== bảng lịch sử trong modal: dùng .table-history có sẵn của site ===== */
