:root {
  --line: rgba(63,183,232,.32);
  --cyan: #27d8f4;
  --gold: #ffc94a;
  --text: #f4f9ff;
  --muted: #b2cde5;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(ellipse at 50% 0%, #104a78 0%, transparent 48%),
    linear-gradient(180deg, #062746, #041c34 52%, #031428);
  overflow-x: hidden;
}

/* ===============================
   BACKGROUND
================================ */

.ocean {
  position: fixed;
  inset: 76px 0 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,25,46,.05), rgba(3,17,35,.8)),
    radial-gradient(ellipse at 85% 23%, rgba(255,185,99,.2), transparent 18%),
    linear-gradient(180deg, #0b3b62, #0a3456 30%, #062847 55%, #041a31);
}

.ocean::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: 31%;
  height: 33%;
  opacity: .5;
  background: repeating-linear-gradient(
    176deg,
    transparent 0 15px,
    rgba(39,161,215,.16) 16px 18px,
    transparent 19px 32px
  );
  transform: skewY(-2deg);
}

/* ===============================
   HEADER
================================ */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(3,31,57,.94);
  border-bottom: 1px solid rgba(70,183,229,.24);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(1200px, calc(100% - 36px));
  min-height: 76px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 850;
  white-space: nowrap;
}

.logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  font-size: 29px;
  background: linear-gradient(145deg, #65e7ff, #087bc0 65%, #044779);
  box-shadow: 0 0 22px #20d0ff3d;
}

nav {
  display: flex;
  align-items: stretch;
  min-height: 76px;
  gap: 8px;
}

nav a {
  min-width: 100px;
  padding: 12px 17px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #b8d4e9;
  text-decoration: none;
  font-size: 13px;
  border-radius: 12px 12px 0 0;
  position: relative;
}

nav .ico {
  font-size: 23px;
  line-height: 1;
}

nav a.active {
  color: white;
  background: #17669740;
}

nav a.active::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: var(--cyan);
  box-shadow: 0 0 12px #27d8f499;
}

/* ===============================
   MAIN CONTAINER
================================ */

.container {
  width: min(1200px, calc(100% - 36px));
  margin: auto;
}

.hero {
  padding: 26px 0 14px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.15;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.55;
}

/* ===============================
   PANELS AND ACCOUNT
================================ */

.panel {
  background: linear-gradient(135deg, rgba(5,40,70,.96), rgba(4,31,56,.94));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 42px #0003, inset 0 1px #ffffff06;
}

.account {
  padding: 22px 26px 24px;
  margin: 20px 0 28px;
  position: relative;
  overflow: hidden;
}

.account::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 180px;
  right: -100px;
  top: -110px;
  background: #1bbbec1f;
  filter: blur(45px);
  pointer-events: none;
}

.account-top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #52a5d333;
  position: relative;
}

.identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.avatar {
  width: 70px;
  height: 70px;
  flex: 0 0 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  color: white;
  font-size: 30px;
  font-weight: 700;
  background: linear-gradient(145deg, #8b72ff, #6357db);
  box-shadow: 0 8px 24px #5d4ee03f;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar img[hidden],
.avatar span[hidden] {
  display: none !important;
}

.username {
  font-size: 20px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.email {
  margin-top: 7px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.account-bottom {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: center;
  gap: 26px;
  padding-top: 20px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.metric-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, #ffc94a33, #ffc94a08 72%);
  font-size: 42px;
}

.label {
  color: var(--muted);
  margin-bottom: 6px;
}

.value {
  color: var(--gold);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 850;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.status-value {
  font-size: 25px;
  font-weight: 850;
  color: var(--gold);
  overflow-wrap: anywhere;
}

.expiry {
  color: var(--muted);
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
}

/* ===============================
   BUTTONS
================================ */

button {
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  cursor: pointer;
  transition: filter .18s, transform .18s;
}

button:hover {
  filter: brightness(1.08);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.primary {
  position: relative;
  z-index: 2;
  margin-top: auto;
  width: 100%;
  color: #03223a;
  background: linear-gradient(100deg, #25c6f1, #36e3ed);
  box-shadow: 0 6px 16px #15c2e61f;
}

.secondary {
  color: white;
  background: #204a6d;
  border: 1px solid #6bbede2e;
}

.logout {
  white-space: nowrap;
  min-width: 150px;
}

.login-row {
  margin-top: 16px;
}

[hidden] {
  display: none !important;
}

.info {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 15px 0 0;
  overflow-wrap: anywhere;
}

.message {
  color: #8deaff;
  margin: 8px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

/* ===============================
   SHOP SECTIONS
================================ */

.section {
  margin: 30px 0 36px;
}

.section h2 {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 29px;
  font-weight: 850;
  margin: 0 0 5px;
}

.section-icon {
  font-size: 31px;
}

.desc {
  color: #8deaff;
  font-size: 17px;
  margin: 0 0 16px;
  line-height: 1.5;
}

/* ===============================
   PACKAGE GRID
================================ */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.package {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 20px;
  min-height: 250px;
  background: linear-gradient(150deg, #06436ff7, #042a4bfa 70%, #074a6ffa);
  border: 1px solid #0879aa;
  border-radius: 20px;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}

.package::after {
  content: "";
  position: absolute;
  pointer-events: none;
  left: -10%;
  right: -10%;
  bottom: -54px;
  height: 105px;
  background: #1cbae026;
  border-radius: 50% 50% 0 0;
  transform: rotate(-3deg);
}

.package:hover {
  transform: translateY(-3px);
  border-color: var(--cyan);
  box-shadow: 0 12px 28px #0003, 0 0 18px #27d8f414;
}

.package h3 {
  margin: 0 0 7px;
  font-size: 21px;
  line-height: 1.3;
}

.package-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  min-height: 24px;
}

.package-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 18px;
  position: relative;
  z-index: 1;
}

.package-icon {
  font-size: 46px;
  filter: drop-shadow(0 6px 12px #ffb72b29);
}

.price {
  color: var(--gold);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 850;
  line-height: 1.2;
}

.popular {
  border: 2px solid #16d7fa;
  box-shadow: 0 0 22px #16d7fa26;
}

.popular-label {
  position: absolute;
  top: 0;
  right: 12px;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(100deg, #ffd65a, #ffb92f);
  color: #2b260b;
  font-size: 13px;
  font-weight: 850;
}

.premium-grid .package {
  min-height: 215px;
}

.premium-grid .package-row {
  margin-top: 18px;
}

/* ===============================
   BANK PAYMENT MARQUEE
================================ */

.footer-partners {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 12px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  justify-items: end;
  gap: 40px;
}

.footer-partners img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: 280px;
  object-fit: contain;
}

.footer-partner {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  align-items: center;
}

.footer-partner-copy {
  display: none;
}

.footer-partner-coinclash {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  align-items: start;
  gap: 16px;
}

.footer-partner-coinclash img {
  width: 240px;
  max-width: 240px;
  height: 240px;
  justify-self: end;
}

.footer-partner-coinclash .footer-partner-copy {
  display: block;
  width: 100%;
  color: #eef8ff;
  text-align: left;
}

.footer-partner-thuytrieu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 16px;
}

.footer-partner-thuytrieu img {
  width: 300px;
  max-width: 300px;
  height: 240px;
  justify-self: end;
}

.footer-partner-thuytrieu .footer-partner-copy {
  display: block;
  width: 100%;
  color: #eef8ff;
  text-align: left;
}

.footer-partner-copy h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
}

.footer-partner-copy p {
  margin: 0;
  color: #b8d6e9;
  font-size: 14px;
  line-height: 1.5;
}

.footer-app-qr {
  display: flex;
  width: 128px;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 12px;
  padding: 8px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #eefaff;
  background: rgba(4, 28, 52, 0.72);
  border: 1px solid #50e4ff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.8), 0 0 24px rgba(0, 189, 232, 0.45);
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}

.footer-partner-coinclash .footer-app-qr img,
.footer-partner-thuytrieu .footer-app-qr img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  justify-self: auto;
}

.bank-payment {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 12px;
  padding: 16px 20px;
  overflow: hidden;
  color: #eef8ff;
  background: linear-gradient(135deg, #06213b, #073b59);
  border: 1px solid #00bde8;
  border-radius: 16px;
}

.bank-payment h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 18px;
}

.bank-payment > p {
  margin: 0 0 14px;
  color: #b8d6e9;
  font-size: 14px;
}

.bank-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 8px 0;
  border-top: 1px solid #12658a;
  border-bottom: 1px solid #12658a;
}

.bank-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  gap: 18px;
  animation: bank-scroll 38s linear infinite;
  will-change: transform;
}

.bank-marquee:hover .bank-track {
  animation-play-state: paused;
}

.bank-item {
  box-sizing: border-box;
  flex: 0 0 82px;
  min-width: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.bank-logo {
  box-sizing: border-box;
  width: 76px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #28c9ee;
  border-radius: 9px;
  box-shadow: 0 0 10px #12c9f044;
  font-size: 20px;
  font-weight: 900;
}

.vcb { color: #16834b; }
.ocb { color: #e87516; }
.tcb { color: #e21e2b; }
.vtb { color: #175a9d; }
.bidv { color: #08765d; }
.agr { color: #b22222; }
.mb { color: #173eaa; }
.vpb { color: #16834b; }
.acb { color: #1450a0; }
.stb { color: #174d9a; }
.tpb { color: #7045a5; }
.vib { color: #15549b; }
.shb { color: #c52b2b; }

.bank-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #12658a;
  border-radius: 9px;
  background: #073453;
  color: #c3deef;
  font-size: 12px;
  line-height: 1.6;
}

@keyframes bank-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .bank-track {
    animation: none;
  }
}

/* ===============================
   SHOP WARNING MODAL
================================ */

.shop-notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 10, 24, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.shop-notice-box {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 470px;
  padding: 32px 26px 26px;
  text-align: center;
  color: #f4f9ff;
  background: linear-gradient(145deg, #07385c, #041b34 80%);
  border: 1px solid #27d8f4;
  border-radius: 20px;
  box-shadow:
    0 0 12px rgba(39, 216, 244, 0.65),
    0 0 35px rgba(39, 216, 244, 0.25),
    inset 0 0 22px rgba(39, 216, 244, 0.07);
  animation: shopNoticeAppear 0.3s ease-out;
}

.shop-notice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #ffffff12;
  border: 1px solid #6fdff4;
  border-radius: 50%;
  font-size: 17px;
  cursor: pointer;
}

.shop-notice-close:hover {
  background: #e9435a;
  border-color: #ff8294;
}

.shop-notice-icon {
  font-size: 42px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 12px #27d8f4);
}

.shop-notice-box h2 {
  margin: 0 0 18px;
  color: #ffc94a;
  font-size: 22px;
  font-weight: 850;
}

.shop-notice-box p {
  color: #d5e9f8;
  font-size: 15px;
  line-height: 1.8;
}

.shop-notice-box strong {
  color: #35e2f4;
}

.shop-notice-warning {
  padding: 12px;
  background: #ffb52b12;
  border: 1px solid #ffc94a55;
  border-radius: 10px;
  font-size: 13px !important;
}

.shop-notice-confirm {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  color: #03223a;
  background: linear-gradient(100deg, #25c6f1, #36e3ed);
  border: 1px solid #6ff3ff;
  border-radius: 11px;
  font-weight: 850;
  box-shadow: 0 0 18px #27d8f444;
}

.shop-notice-confirm:hover {
  box-shadow: 0 0 26px #27d8f488;
}

@keyframes shopNoticeAppear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ===============================
   FOOTER
================================ */

footer {
  text-align: center;
  padding: 28px 12px 36px;
  color: #86a8c4;
  font-size: 13px;
  border-top: 1px solid #429bcc24;
  margin-top: 42px;
}

/* ===============================
   TABLET
================================ */

@media (max-width: 820px) {
  .header-inner {
    width: calc(100% - 28px);
    gap: 12px;
  }

  .brand {
    font-size: 19px;
  }

  nav {
    gap: 4px;
  }

  nav a {
    min-width: 70px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .container {
    width: calc(100% - 28px);
  }

  .account {
    padding: 20px;
  }

  .account-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .logout {
    grid-column: 1 / -1;
    width: 100%;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bank-payment {
    width: calc(100% - 28px);
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 560px) {
  .header-inner {
    width: calc(100% - 20px);
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 0 0;
  }

  .brand {
    justify-content: center;
    font-size: 20px;
    white-space: normal;
  }

  .logo {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }

  nav {
    width: 100%;
    min-height: 58px;
    justify-content: space-around;
    gap: 3px;
  }

  nav a {
    min-width: 0;
    flex: 1;
    padding: 9px 3px;
    font-size: 11px;
    text-align: center;
  }

  nav .ico {
    font-size: 21px;
  }

  .ocean {
    top: 118px;
  }

  .container {
    width: calc(100% - 24px);
  }

  .hero {
    padding: 22px 0 12px;
  }

  .hero h1 {
    font-size: 28px;
    line-height: 1.25;
  }

  .hero p {
    font-size: 14px;
  }

  .account {
    padding: 16px;
    margin: 16px 0 24px;
    border-radius: 16px;
  }

  .account-top {
    gap: 12px;
    padding-bottom: 16px;
  }

  .identity {
    align-items: center;
    gap: 12px;
  }

  .avatar {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
    font-size: 22px;
  }

  .username {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .email {
    font-size: 12px;
    overflow-wrap: anywhere;
  }

  .account-bottom {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-top: 16px;
  }

  .metric {
    gap: 12px;
  }

  .metric-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    font-size: 29px;
  }

  .label {
    font-size: 13px;
  }

  .value {
    font-size: 27px;
  }

  .status-value {
    font-size: 21px;
  }

  .expiry {
    font-size: 12px;
  }

  .logout {
    grid-column: auto;
    width: 100%;
    min-width: 0;
  }

  .login-row button {
    width: 100%;
  }

  .info,
  .message {
    font-size: 12px;
    line-height: 1.6;
  }

  .section {
    margin: 26px 0 30px;
  }

  .section h2 {
    font-size: 23px;
    gap: 9px;
  }

  .section-icon {
    font-size: 26px;
  }

  .desc {
    font-size: 14px;
    line-height: 1.6;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .package {
    min-height: 0;
    padding: 18px;
    border-radius: 16px;
  }

  .package h3 {
    font-size: 19px;
  }

  .package-desc {
    font-size: 13px;
  }

  .package-row {
    gap: 12px;
    margin: 12px 0 16px;
  }

  .package-icon {
    font-size: 38px;
  }

  .price {
    font-size: clamp(24px, 7vw, 30px);
    overflow-wrap: anywhere;
  }

  .package p {
    line-height: 1.6;
  }

  .package button {
    min-height: 46px;
    font-size: 14px;
  }

  .popular-label {
    right: 10px;
    font-size: 11px;
    padding: 7px 10px;
  }

  /* Ngân hàng */
  .footer-partners {
    width: calc(100% - 24px);
    margin: 16px auto 8px;
    padding: 0;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-partners img {
    max-width: 280px;
    height: 120px;
  }

  .footer-partner-coinclash,
  .footer-partner-thuytrieu {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 200px;
    align-items: start;
    gap: 8px;
  }

  .footer-partner-copy {
    display: block;
    min-width: 0;
    color: #eef8ff;
    text-align: left;
  }

  .footer-partner-copy h3 {
    margin: 0 0 3px;
    color: #fff;
    font-size: 13px;
    line-height: 1.3;
  }

  .footer-partner-copy p {
    margin: 0;
    color: #b8d6e9;
    font-size: 11px;
    line-height: 1.35;
  }

  .footer-partner-coinclash img {
    width: 200px;
    max-width: 200px;
    height: 190px;
    margin: 0;
    object-fit: cover;
  }

  .footer-partner-thuytrieu img {
    width: 200px;
    max-width: 200px;
    height: 190px;
    margin: 0;
    object-fit: cover;
  }

  .bank-payment {
    width: calc(100% - 24px);
    max-width: 1200px;
    margin: 22px auto 12px;
    padding: 14px 12px;
    border-radius: 14px;
  }

  .bank-payment h3 {
    font-size: 17px;
    line-height: 1.5;
  }

  .bank-payment > p {
    font-size: 13px;
    line-height: 1.6;
  }

  .bank-marquee {
    width: 100%;
    overflow: hidden;
  }

  .bank-track {
    gap: 14px;
  }

  .bank-item {
    flex: 0 0 78px;
    min-width: 78px;
    font-size: 11px;
  }

  .bank-logo {
    width: 72px;
    height: 44px;
    font-size: 18px;
  }

  .bank-note {
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  footer {
    margin-top: 28px;
    padding: 24px 14px 30px;
    font-size: 11px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  /* Thông báo Shop trên điện thoại */
  .shop-notice-overlay {
    padding: 16px;
    overflow-y: auto;
  }

  .shop-notice-box {
    width: 100%;
    max-width: 400px;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 28px 18px 20px;
    border-radius: 18px;
  }

  .shop-notice-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .shop-notice-icon {
    font-size: 36px;
    margin-bottom: 8px;
  }

  .shop-notice-box h2 {
    font-size: 19px;
    line-height: 1.4;
    margin: 0 24px 14px;
  }

  .shop-notice-box p {
    font-size: 14px;
    line-height: 1.7;
    margin: 10px 0;
  }

  .shop-notice-warning {
    padding: 10px;
    font-size: 12px !important;
  }

  .shop-notice-confirm {
    min-height: 46px;
    margin-top: 10px;
    padding: 12px;
    font-size: 14px;
  }
}

/* ===============================
   MOBILE MÀN HÌNH THẤP
================================ */

@media (max-width: 560px) and (max-height: 600px) {
  .shop-notice-overlay {
    align-items: flex-start;
  }

  .shop-notice-box {
    margin: auto 0;
    padding-top: 22px;
    padding-bottom: 16px;
  }

  .shop-notice-icon {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .shop-notice-box h2 {
    font-size: 17px;
    margin-bottom: 8px;
  }

  .shop-notice-box p {
    line-height: 1.5;
  }
}

/* Hộp thoại xác nhận và thông báo Premium */
.premium-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 10, 24, 0.82);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.premium-modal-overlay[hidden] {
  display: none !important;
}

.premium-modal {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 30px 24px 24px;
  text-align: center;
  color: #eaf8ff;
  background: linear-gradient(145deg, #0b3555, #061b32);
  border: 1px solid #27d8f4;
  border-radius: 22px;
  box-shadow:
    0 0 18px rgba(39, 216, 244, 0.42),
    0 0 45px rgba(39, 216, 244, 0.16),
    inset 0 0 25px rgba(39, 216, 244, 0.05);
  animation: premiumModalIn 0.22s ease-out;
}

.premium-modal-icon {
  margin-bottom: 12px;
  font-size: 42px;
  line-height: 1.2;
}

.premium-modal-title {
  margin: 0 0 14px;
  color: #ffc94a;
  font-size: 23px;
  font-weight: 900;
}

.premium-modal-message {
  margin: 0 0 22px;
  color: #d5eaf8;
  font-size: 15px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.premium-modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.premium-modal-btn {
  min-height: 46px;
  flex: 1;
  padding: 11px 16px;
  border: 1px solid #27d8f4;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.premium-modal-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.premium-modal-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.premium-modal-btn-primary {
  color: #032438;
  background: linear-gradient(100deg, #27c4ed, #35e0e5);
}

.premium-modal-btn-secondary {
  color: #dff8ff;
  background: rgba(10, 45, 70, 0.9);
}

@keyframes premiumModalIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .premium-modal {
    padding: 26px 18px 20px;
    border-radius: 18px;
  }

  .premium-modal-title {
    font-size: 20px;
  }

  .premium-modal-message {
    font-size: 14px;
  }

  .premium-modal-actions {
    gap: 9px;
  }

  .premium-modal-btn {
    padding: 11px 9px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .premium-modal {
    animation: none;
  }
}

/* ADMIN PREMIUM */
#adminPremiumPanel[hidden] {
  display: none !important;
}

.admin-premium-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0;
  padding: 14px;
  background: rgba(6, 45, 72, 0.8);
  border: 1px solid #168db5;
  border-radius: 14px;
}

#adminPendingCount {
  color: #ffd166;
  font-weight: 800;
}

.admin-sound-status {
  color: #aeeeff;
  font-size: 13px;
}

.admin-premium-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-request-card {
  min-width: 0;
  padding: 18px;
  color: #eaf8ff;
  background: linear-gradient(145deg, #0b3555, #061b32);
  border: 1px solid #168db5;
  border-radius: 16px;
  overflow-wrap: anywhere;
}

.admin-request-card h3 {
  margin: 0 0 12px;
  color: #ffd166;
  font-size: 17px;
}

.admin-request-card p {
  margin: 7px 0;
  font-size: 14px;
  line-height: 1.6;
}

.admin-request-status {
  display: inline-block;
  margin-top: 8px;
  padding: 5px 10px;
  color: #ffdf85;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.5);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 650px) {
  .admin-premium-list {
    grid-template-columns: 1fr;
  }

  .admin-premium-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}
/* SHOP NAVIGATION TABS */
.shop-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 30px;
}

.shop-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 14px 10px;
  color: #c6e7f7;
  text-decoration: none;
  text-align: center;
  font-weight: 800;
  background: linear-gradient(145deg, #0b3556, #062440);
  border: 1px solid #12658a;
  border-radius: 14px;
  transition: .2s ease;
}

.shop-tab:hover,
.shop-tab.active {
  color: #04243a;
  background: linear-gradient(100deg, #22c9e8, #35e0df);
  border-color: #35e0df;
  box-shadow: 0 5px 18px #16d7fa20;
}

@media (max-width: 650px) {
  .shop-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 18px 0 24px;
  }

  .shop-tab {
    min-height: 50px;
    padding: 12px 6px;
    font-size: 13px;
  }
}
#coin-shop[hidden],
#withdraw-coin[hidden],
#premium-shop[hidden],
#transaction-history[hidden] {
  display: none !important;
}


/* PHÂN TRANG LỊCH SỬ GIAO DỊCH */
.transaction-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 12px 4px;
  margin-top: 8px;
  border-top: 1px solid rgba(63, 183, 232, 0.22);
}

.transaction-page-info {
  color: #aeeaff;
  font-size: 13px;
  line-height: 1.6;
}

.transaction-page-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

.transaction-page-btn {
  min-height: 38px;
  padding: 8px 13px;
  color: #eafaff;
  background: #0b3555;
  border: 1px solid #168db5;
  border-radius: 9px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.transaction-page-btn:hover:not(:disabled) {
  background: #105273;
}

.transaction-page-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.transaction-page-label,
.transaction-page-total {
  color: #aeeaff;
  font-size: 13px;
}

#transactionPageSelect {
  min-width: 62px;
  min-height: 38px;
  padding: 6px 10px;
  color: #eafaff;
  background: #082b46;
  border: 1px solid #168db5;
  border-radius: 9px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

#transactionPageSelect option {
  color: #ffffff;
  background: #082b46;
}

@media (max-width: 600px) {
  .transaction-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .transaction-page-controls {
    justify-content: space-between;
    gap: 7px;
  }

  .transaction-page-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
}

.login-session-overlay[hidden] {
  display: none !important;
}

.login-session-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 8, 20, 0.78);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.login-session-box {
  position: relative;
  width: 100%;
  max-width: 470px;
  box-sizing: border-box;
  padding: 30px 26px;
  text-align: center;
  color: #d8eaff;
  background: linear-gradient(145deg, #0a3453, #041a30);
  border: 1px solid #25e5ff;
  border-radius: 22px;
  box-shadow:
    0 0 12px rgba(37, 229, 255, 0.55),
    0 0 35px rgba(0, 213, 255, 0.22);
  animation: loginSessionAppear 0.25s ease-out;
}

.login-session-bell {
  font-size: 38px;
  margin-bottom: 14px;
}

.login-session-box h2 {
  margin: 0 0 20px;
  color: #ffc247;
  font-size: 22px;
  font-weight: 900;
}

.login-session-box p {
  font-size: 15px;
  line-height: 1.8;
  margin: 12px 0;
}

.login-session-highlight {
  color: #39e8ff;
  font-weight: 700;
}

#loginSessionConfirm {
  width: 100%;
  margin-top: 18px;
  padding: 15px;
  border: 0;
  border-radius: 12px;
  color: #001522;
  background: linear-gradient(90deg, #20c5ed, #32e2df);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

#loginSessionConfirm:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 18px rgba(37, 229, 255, 0.4);
}

@keyframes loginSessionAppear {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* FORM RÚT COIN */
#withdraw-coin .history-card {
  padding: 22px;
  margin-bottom: 16px;
}

#withdraw-coin label {
  display: block;
  margin: 16px 0 8px;
  color: #c5e4f5;
  font-size: 14px;
  font-weight: 600;
}

#withdraw-coin input,
#withdraw-coin select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #17658a;
  border-radius: 10px;
  background: #082740;
  color: #ffffff;
  font: inherit;
  outline: none;
}

#withdraw-coin input:focus,
#withdraw-coin select:focus {
  border-color: #29d5e7;
  box-shadow: 0 0 0 3px rgba(41, 213, 231, 0.15);
}

#withdraw-coin input::placeholder {
  color: #8faec1;
}

#withdraw-coin button {
  margin-top: 8px;
}

#withdraw-coin .history-card h3 {
  margin-top: 0;
}

#withdraw-coin .package-desc {
  line-height: 1.6;
}

#withdraw-coin #withdrawSavedBanks {
  margin-bottom: 16px;
}

#withdraw-coin #withdrawHistoryList {
  overflow-x: auto;
}

/* Phân trang lịch sử rút Coin */
#withdrawPagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  padding: 20px 0 8px;
  border-top: 1px solid rgba(0, 190, 230, 0.2);
  margin-top: 16px;
}

#withdrawPageInfo {
  color: #d8eaf7;
  font-size: 14px;
  text-align: center;
}

#withdrawPageSelect {
  display: none !important;
}

#withdrawPrevPage,
#withdrawNextPage {
  min-width: 90px;
}


/* Desktop shop sidebar and mobile slide-out navigation */
.shop-navigation { position: relative; }
.shop-mobile-toggle { display: none; }
.shop-sidebar-backdrop { display: none; }

@media (min-width: 901px) {
  main.container#top {
    width: min(1200px, calc(100vw - 320px));
    margin: 24px 28px 0 288px;
  }

  .bank-payment {
    width: min(1200px, calc(100vw - 320px));
    max-width: none;
    margin: 24px 28px 12px 288px;
  }

  nav.shop-tabs.shop-sidebar {
    position: fixed;
    top: 96px;
    left: 20px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 252px;
    max-height: calc(100vh - 116px);
    overflow-y: auto;
    gap: 9px;
    margin: 0;
    padding: 12px;
    background: rgba(5, 35, 59, .97);
    border: 1px solid rgba(63, 183, 232, .32);
    border-radius: 16px;
    box-shadow: 0 16px 44px #00101f80;
    backdrop-filter: blur(16px);
  }

  nav.shop-tabs.shop-sidebar .shop-tab {
    flex: 0 0 auto;
    flex-grow: 0;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: clamp(65px, 8vh, 80px);
    min-width: 0;
    min-height: 65px;
    max-height: 80px;
    padding: 10px 14px;
    gap: 10px;
    text-align: center;
    border-radius: 11px;
  }

  .shop-tab-icon { width: 28px; flex: 0 0 28px; font-size: 21px; text-align: center; }
}

@media (max-width: 900px) {
  main.container#top { width: calc(100% - 28px); margin: 0 auto; }
  .shop-mobile-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    margin: 0 0 14px;
    padding: 10px 14px;
    color: #f4f9ff;
    font: inherit;
    font-weight: 800;
    text-align: left;
    background: linear-gradient(145deg, #0b3556, #062440);
    border: 1px solid #12658a;
    border-radius: 12px;
    cursor: pointer;
  }

  .shop-mobile-toggle > span:first-child { color: var(--cyan); font-size: 20px; }
  .shop-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
    background: #010c18b8;
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s ease, visibility .22s ease;
  }

  nav.shop-tabs.shop-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 41;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: min(300px, 84vw);
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    gap: 9px;
    margin: 0;
    padding: 22px 16px;
    padding-top: max(22px, env(safe-area-inset-top));
    background: #062746;
    border: 1px solid rgba(63, 183, 232, .32);
    border-left: 0;
    border-radius: 0 18px 18px 0;
    box-shadow: 16px 0 44px #00101f80;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
  }

  nav.shop-tabs.shop-sidebar .shop-tab {
    flex: 0 0 auto;
    flex-grow: 0;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    width: 100%;
    height: clamp(65px, 8vh, 80px);
    min-width: 0;
    min-height: 65px;
    max-height: 80px;
    padding: 10px;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
    text-align: center;
    border-radius: 9px;
  }

  .shop-tab-icon { width: 20px; flex: 0 0 20px; font-size: 18px; line-height: 1; text-align: center; }
  .shop-navigation.open .shop-sidebar-backdrop { opacity: 1; visibility: visible; }
  .shop-navigation.open nav.shop-tabs.shop-sidebar { transform: translateX(0); visibility: visible; }
}
