@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;500&display=swap');

:root {
  --bg-main: #f5a623;
  --bg-header: #e67e22;
  --bg-card: #fdd9a0;
  --bg-card2: #fce4b8;
  --bg-body: #ff9933;
  --text-dark: #3a2a0a;
  --text-muted: #7a5c2e;
  --accent-pink: #e74c6f;
  --accent-green: #27ae60;
  --accent-blue: #2980b9;
  --accent-purple: #8e44ad;
  --border-color: #e0b870;
  --white: #fff;
  --shadow: 0 2px 12px rgba(0, 0, 0, .12);
  --radius: 4px;
}

.nro-navbar-inner {
  width: 100%;
  max-width: 1080px;
  height: 100%;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  align-items: center;
}

.nro-navbar .nro-navbar-inner .nav-logo {
  margin: 0 32px 0 0;
  flex-shrink: 0;
}

.nro-nav-account {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  flex-shrink: 0;
}

.nro-nav-account > a,
.nro-nav-balance {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 211, 153, .28);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform .18s, background .18s, border-color .18s;
}

.nro-nav-balance {
  border-color: transparent;
  background: rgba(46, 19, 0, .28);
  color: #ffd49b;
}

.nro-nav-user {
  background: #ffd18d;
  color: #5b2b07 !important;
}

.nro-nav-register,
.nro-nav-logout {
  background: #ef5b4f;
  color: #fff !important;
}

.nro-nav-account > a:hover {
  border-color: #ffd39a;
  color: inherit;
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.nro-inner-body,
.nro-inner-app {
  min-height: 100vh;
  background: var(--bg-body);
}

.nro-inner-body .site-main {
  padding-top: 22px;
}

.nro-inner-body .site-shell {
  max-width: 1180px;
}

.nro-post-author-row {
  margin-bottom: 11px;
  align-items: flex-start;
}

.nro-author-meta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 2px;
}

.nro-post-item {
  display: block;
  padding: 14px;
}

.nro-post-item .nro-post-title {
  margin: 6px 0;
}

.nro-post-actions {
  padding-top: 9px;
  border-top: 1px solid #fed7aa;
  color: #663300;
}

.nro-post-actions a {
  color: #663300;
  font-weight: 600;
  text-decoration: none;
}

.nro-empty-state {
  padding: 42px 24px;
  background: #ffcc99;
  border: 1px solid #fed7aa;
  border-radius: 4px;
  color: #78350f;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nro-empty-state i { font-size: 30px; color: #ea580c; }
.nro-download-three { grid-template-columns: repeat(3, 1fr); margin-top: 6px; }
.nro-rank-power { background: #5a320c; }
.nro-rank-quest { background: #ea580c; }
.nro-rank-donate { background: #00a859; }
.nro-rank-boss { background: #dc2626; }

.nro-user-summary {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
  color: #78350f;
  font-size: 11px;
}

.nro-footer {
  background: linear-gradient(135deg, #2d1200, #5a2d00);
  padding: 24px;
  text-align: center;
  color: #ffc68e;
}

.nro-age-note { margin-top: 8px; color: #d97706; font-size: 10px; }
.nro-age-note img { height: 14px; margin-right: 4px; }

@media (max-width: 600px) {
  .nro-navbar-inner { padding: 0 8px; }
  .nro-navbar .nro-navbar-inner .nav-logo { margin-right: 8px; }
  .nro-navbar .nav-links a {
    padding: 11px 14px;
    font-size: 14px;
    min-height: 44px;
    border-radius: 12px;
  }
  .nro-download-three { grid-template-columns: 1fr; }
  .nro-nav-account { gap: 6px; }
  .nro-nav-account > a, .nro-nav-balance { min-height: 44px; padding: 10px 14px; }
  .nro-nav-balance { display: none; }
  .nro-nav-logout span { display: none; }
}

@media (max-width: 780px) {
  .nro-navbar {
    height: auto;
    min-height: 0;
    padding-top: 8px;
    padding-bottom: 10px;
  }
  .nro-navbar-inner {
    flex-direction: column;
    align-items: center;
    flex-wrap: nowrap;
    padding-top: 0;
    padding-bottom: 0;
    row-gap: 8px;
  }
  .nro-navbar .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .nro-navbar .nav-links a {
    font-size: 12px;
    padding: 7px 12px;
    min-height: 34px;
    border-radius: 8px;
  }
  .nro-nav-account { margin-left: auto; }
}

@media (max-width: 430px) {
  .nro-navbar .nav-logo img { height: 29px !important; }
  .nro-nav-account > a span { display: none; }
  .nro-nav-account > a { width: 32px; padding: 6px; }
}

/* Power ranking page */
.power-ranking-card {
  padding: 20px;
  border: 1px solid #fed7aa;
  border-radius: 7px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 166, 61, .18), transparent 30%),
    #fff1df;
  box-shadow: 0 9px 24px rgba(94, 47, 8, .1);
}

.power-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 17px;
  color: #7a5c2e;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.power-back-link:hover {
  color: #ea580c;
  text-decoration: none;
}

.power-ranking-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 2px solid #fed7aa;
}

.power-ranking-kicker {
  display: block;
  margin-bottom: 3px;
  color: #d85c0a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.power-ranking-heading h1 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #5a320c;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
  text-transform: uppercase;
}

.power-ranking-heading h1 i {
  color: #ea580c;
}

.power-ranking-count {
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid #edb86f;
  border-radius: 999px;
  background: #fff8eb;
  color: #7a4b20;
  font-size: 10px;
  font-weight: 800;
}

.power-table-wrap {
  overflow-x: auto;
  border: 1px solid #efc180;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(91, 45, 8, .08);
}

.power-ranking-table {
  width: 100%;
  min-width: 690px;
  border-collapse: collapse;
}

.power-ranking-table th {
  padding: 12px 9px;
  border-bottom: 2px solid #e9a957;
  background: linear-gradient(180deg, #67370f, #4f2707);
  color: #fff7e8;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  white-space: nowrap;
}

.power-ranking-table td {
  padding: 11px 9px;
  border-bottom: 1px solid #f6d6aa;
  color: #7a5c2e;
  font-size: 11.5px;
  text-align: center;
  white-space: nowrap;
}

.power-ranking-table tbody tr:last-child td {
  border-bottom: 0;
}

.power-ranking-table tbody tr {
  background: #fff;
  transition: background .18s, transform .18s;
}

.power-ranking-table tbody tr:nth-child(even) {
  background: #fffaf2;
}

.power-ranking-table tbody tr:hover {
  background: #fff0d8;
}

.power-ranking-table tr.rank-1 { background: linear-gradient(90deg, #fff7d4, #fffdf6); }
.power-ranking-table tr.rank-2 { background: linear-gradient(90deg, #f3f5f7, #fff); }
.power-ranking-table tr.rank-3 { background: linear-gradient(90deg, #fff0e0, #fff); }

.power-rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 33px;
  color: #7a5c2e;
  font-weight: 900;
}

.power-rank-number.rank-1 { color: #d97706; }
.power-rank-number.rank-1 i { color: #eab308; filter: drop-shadow(0 2px 2px rgba(180, 83, 9, .2)); }
.power-rank-number.rank-2 { color: #64748b; }
.power-rank-number.rank-2 i { color: #94a3b8; }
.power-rank-number.rank-3 { color: #b45309; }
.power-rank-number.rank-3 i { color: #d97706; }

.power-player-name {
  color: #78350f;
  font-size: 12px;
}

.power-planet {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.power-planet.earth { background: #e9f2ff; color: #2563eb; }
.power-planet.namek { background: #e9f9ec; color: #16843e; }
.power-planet.saiyan { background: #fff0ed; color: #dc2626; }
.power-planet.unknown { background: #f1f1f1; color: #6b7280; }
.power-value { color: #7a5c2e; font-weight: 700; }
.power-total { color: #dc2626; font-size: 12px; font-weight: 900; }

.power-ranking-updated {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: #7a5c2e;
  font-size: 11px;
  font-weight: 700;
}

.power-ranking-empty {
  padding: 36px 16px;
  border: 1px dashed #e9ad61;
  border-radius: 8px;
  background: #fff9ef;
  color: #8a5a2d;
  font-weight: 700;
  text-align: center;
}

.nro-rank-power.active {
  outline: 2px solid #f6bf72;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(90, 50, 12, .12);
}

.nro-rank-quest.active {
  outline: 2px solid #ffd28a;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(234, 88, 12, .14);
}

.nro-rank-donate.active {
  outline: 2px solid #7ee2a8;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 168, 89, .14);
}

@media (max-width: 600px) {
  .power-ranking-card { padding: 14px 10px; }
  .power-ranking-heading { align-items: flex-start; }
  .power-ranking-heading h1 { font-size: 15px; }
  .power-ranking-count { display: none; }
  .power-table-wrap { border-radius: 6px; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #663300;
  /* Ngăn màu cam lộ khi overscroll mobile */
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: normal;
  background: var(--bg-body);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Orange content strip centered on brown body */
.nro-page-wrap {
  background: var(--bg-body);
  max-width: 1116px;
  margin: 0 auto;
  min-height: calc(100vh - 58px);
}

/* ===== NAVBAR ===== */
.nro-navbar {
  background: #663300;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 3px 15px rgba(0, 0, 0, .4);
  height: 58px;
}

.nro-navbar .nav-logo {
  margin-left: 40px;
  transition: margin-left .3s;
}

.nro-navbar .nav-logo img {
  height: 38px;
  filter: drop-shadow(0 0 6px rgba(255, 165, 0, .5));
  transition: transform .3s;
}

.nro-navbar .nav-logo img:hover {
  transform: scale(1.08);
}

.nro-navbar .nav-links {
  display: flex;
  gap: 5.5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nro-navbar .nav-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  transition: all .25s;
}

.nro-navbar .nav-links a:hover,
.nro-navbar .nav-links a.active {
  background: #ff9933;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 153, 51, .4);
}



/* ===== BANNER ===== */
.nro-banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.nro-banner img {
  width: 100%;
  height: auto;
  display: block;
}

/* Chỉ áp dụng trên PC */
@media (min-width: 768px) {
  .nro-banner {
    max-width: 1080px;
    padding: 0 18px;
  }

  .nro-banner img {
    border-radius: var(--radius);
  }
}

/* Forum editor and post detail */
.nro-post-actions .nro-post-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #663300;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nro-post-actions .nro-post-like.liked,
.forum-like-button.liked {
  color: #e84f3d;
}

.nro-post-actions .nro-post-like:disabled {
  cursor: default;
  opacity: .65;
}

.nro-post-actions strong {
  font-size: 11px;
}

.forum-editor-card,
.forum-detail-card,
.forum-comments-card {
  max-width: 860px;
  margin: 0 auto 18px;
  padding: 22px;
  border: 1px solid #efbd7b;
  border-radius: 12px;
  background: #fff3df;
  box-shadow: 0 12px 30px rgba(82, 37, 4, .14);
}

.forum-editor-head,
.forum-detail-toolbar,
.forum-detail-head,
.forum-detail-actions,
.forum-editor-actions,
.forum-comment-meta {
  display: flex;
  align-items: center;
}

.forum-editor-head,
.forum-detail-toolbar {
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 17px;
  border-bottom: 1px solid #efc58e;
}

.forum-editor-head h1,
.forum-comments-card h2 {
  margin: 0;
  color: #5a2d0c;
  font-size: 20px;
  font-weight: 900;
}

.forum-editor-kicker {
  display: block;
  margin-bottom: 3px;
  color: #df640f;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.forum-admin-chip {
  padding: 7px 10px;
  border-radius: 999px;
  background: #5a2d0c;
  color: #ffd49b;
  font-size: 11px;
  font-weight: 800;
}

.forum-author-line {
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: #ffe2b9;
  color: #754014;
  font-size: 12px;
}

.forum-admin-options {
  padding: 15px;
  margin-bottom: 16px;
  border: 1px dashed #df741f;
  border-radius: 10px;
  background: #fff8ec;
  color: #714016;
}

.forum-pin-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.forum-pin-check input {
  width: 17px;
  height: 17px;
  accent-color: #e85b14;
}

.forum-editor-actions {
  justify-content: flex-end;
  gap: 8px;
}

.forum-back-link {
  color: #79522e;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.forum-pin-button {
  padding: 7px 11px;
  border: 1px solid #d99954;
  border-radius: 8px;
  background: #fff9ef;
  color: #78471c;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.forum-pin-button.active {
  border-color: #e95d16;
  background: #e95d16;
  color: #fff;
}

.forum-detail-head {
  position: relative;
  gap: 11px;
  padding-right: 95px;
}

.forum-author-name {
  color: #71380d;
  font-size: 13px;
  font-weight: 900;
}

.forum-author-name span {
  padding: 2px 6px;
  margin-left: 4px;
  border-radius: 5px;
  background: #e95d16;
  color: #fff;
  font-size: 8px;
  text-transform: uppercase;
}

.forum-post-time {
  margin-top: 3px;
  color: #9a7652;
  font-size: 10px;
}

.forum-detail-pinned {
  top: 3px;
  right: 0;
}

.forum-detail-title {
  margin: 18px 0 10px;
  color: #532702;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.35;
}

.forum-detail-content {
  color: #55361d;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.forum-detail-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 680px;
  margin-top: 16px;
  border-radius: 10px;
  object-fit: contain;
  background: #2d1a0d;
}

.forum-detail-actions {
  gap: 18px;
  padding-top: 14px;
  margin-top: 17px;
  border-top: 1px solid #efc58e;
}

.forum-detail-actions button,
.forum-detail-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #72431b;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.forum-comments-card h2 {
  padding-bottom: 13px;
  margin-bottom: 10px;
  border-bottom: 1px solid #efc58e;
  font-size: 17px;
}

.forum-comment-item {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #f2d5ad;
}

.forum-comment-item > img {
  width: 38px;
  height: 38px;
  border: 2px solid #e6ac66;
  border-radius: 8px;
  object-fit: cover;
}

.forum-comment-meta {
  gap: 8px;
  margin-bottom: 4px;
}

.forum-comment-meta strong { color: #71380d; font-size: 12px; }
.forum-comment-meta span { color: #a18061; font-size: 9px; }
.forum-comment-item p { margin: 0; color: #5b402a; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.forum-empty-comments { padding: 24px; color: #977454; text-align: center; }
.forum-comment-form { padding-top: 17px; }
.forum-comment-form label { color: #65330e; font-size: 12px; font-weight: 800; }
.forum-login-to-comment { padding: 15px; margin-top: 12px; border-radius: 8px; background: #ffe4bd; color: #75451d; text-align: center; }

@media (max-width: 600px) {
  .forum-editor-card, .forum-detail-card, .forum-comments-card { padding: 15px; border-radius: 9px; }
  .forum-editor-head h1 { font-size: 17px; }
  .forum-detail-title { font-size: 19px; }
  .forum-detail-head { padding-right: 0; }
  .forum-detail-pinned { position: static; margin-left: auto; }
}

/* Final post-card layout: header, title, image, then actions. */
.nro-post-list .nro-post-item {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 100%;
  padding: 14px;
}

.nro-post-list .nro-post-author-row {
  order: 1;
  display: flex;
  width: 100%;
  margin-bottom: 8px;
}

.nro-post-list .nro-post-title {
  order: 2;
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding-right: 105px;
  font-size: 15px;
  line-height: 1.45;
}

.nro-post-list .nro-post-image {
  order: 3;
  display: block;
  width: 100%;
  margin: 0 0 10px;
}

.nro-post-list .nro-post-image img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
  background: #2f1a0d;
}

.nro-post-list .nro-post-actions {
  order: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: 100%;
  padding-top: 10px;
  margin-top: 0;
  border-top: 1px solid #efb977;
}

.nro-post-list .nro-badge-admin {
  z-index: 2;
}

@media (max-width: 600px) {
  .nro-post-list .nro-post-title {
    padding-right: 0;
    font-size: 14px;
  }

  .nro-post-list .nro-badge-admin {
    position: static;
    order: 0;
    align-self: flex-end;
    margin-bottom: 7px;
  }

  .nro-post-list .nro-post-image img {
    max-height: none;
  }
}

.nro-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 50%, rgba(229, 142, 38, .8));
}

/* ===== BANNER CENTER OVERLAY ===== */
.banner-center-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 60px;
  z-index: 10;
}

.banner-avatar-relative {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-pulse-ring {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border: 4px solid rgba(234, 88, 12, 0.4);
  border-radius: 50%;
  animation: pulse-animation 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

.banner-avatar-circle-new {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3.5px solid #fbd38d;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  z-index: 10;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  cursor: pointer;
  text-decoration: none;
}

.banner-avatar-circle-new:hover {
  transform: scale(1.06);
}

.banner-avatar-circle-new img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}

.banner-login-btn-new img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-username-new {
  margin-top: 8px;
  text-align: center;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 8px rgba(0, 0, 0, 0.7);
  font-family: 'Be Vietnam Pro', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

@media (min-width: 768px) {
  .banner-avatar-circle-new {
    width: 96px;
    height: 96px;
    border-width: 4px;
  }

  .banner-pulse-ring {
    top: -16px;
    left: -16px;
    right: -16px;
    bottom: -16px;
  }

  .banner-username-new {
    font-size: 18px;
  }
}

@keyframes pulse-animation {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .35;
    transform: scale(1.08);
  }
}

/* ===== LAYOUT ===== */
.nro-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr 288px;
  gap: 18px;
}

.nro-container>main {
  min-width: 0;
}

/* ===== TABS ===== */
.nro-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  border-bottom: 2px solid var(--border-color);
}

.nro-tabs a {
  padding: 12px 21px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  color: var(--text-muted);
  transition: all .2s;
  border-bottom: 3px solid transparent;
  position: relative;
  letter-spacing: -0.2px;
}

.nro-tabs a:hover {
  color: var(--text-dark);
  background: rgba(255, 255, 255, .3);
}

.nro-tabs a.active {
  color: var(--text-dark);
  border-bottom-color: var(--accent-pink);
  background: rgba(255, 255, 255, .2);
}

/* ===== POST COMPOSER ===== */
.nro-composer {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 11px;
  overflow: hidden;
  transition: box-shadow .2s;
}

.nro-composer:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
}

.nro-composer-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
}

.nro-composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
}

.nro-composer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nro-composer-input {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, .45);
  border: 1.5px solid var(--border-color);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}

.nro-composer-input:hover {
  background: rgba(255, 255, 255, .7);
  border-color: #d97706;
}

.nro-composer-placeholder {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  user-select: none;
}

.nro-composer-edit {
  color: var(--text-muted);
  font-size: 13px;
  flex-shrink: 0;
}

.nro-composer-actions {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--border-color);
  padding: 4px 10px;
  background: rgba(255, 255, 255, .15);
}

.nro-composer-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: background .2s, color .2s;
}

.nro-composer-action:hover {
  background: rgba(255, 255, 255, .5);
  color: var(--text-dark);
  text-decoration: none;
}

.nro-composer-action i {
  font-size: 15px;
}

/* ===== FILTER BAR ===== */

.nro-filter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 18px;
  background: var(--bg-card2);
  border-bottom: 1px solid var(--border-color);
  font-size: 12px;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 11px;
}

.nro-filter a {
  color: var(--accent-pink);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}

.nro-filter a:hover {
  text-decoration: underline;
}

.nro-filter a.active-filter {
  color: var(--accent-pink);
  font-weight: 700;
}

.nro-filter .filter-sort {
  margin-left: auto;
  color: var(--accent-pink);
  cursor: pointer;
}

/* ===== POST LIST ===== */
.nro-post-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding-bottom: 22px;
}

/* ===== POST ITEM ===== */
.nro-post-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 18px;
  border: 1px solid #fed7aa;
  border-radius: 4px;
  transition: box-shadow .2s;
  position: relative;
  background: #ffcc99;
}

.nro-post-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

/* Bài Admin - nền nhẹ hơn */
.nro-post-pinned {
  background: #ffcc99;
}

.nro-post-pinned:hover {
  background: #ffbb77;
}

.nro-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

.nro-post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nro-post-content {
  flex: 1;
  min-width: 0;
}

/* Author line */
.nro-post-author {
  display: flex;
  align-items: center;
  gap: 5.5px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 4px;
}

.nro-author-name {
  font-weight: 700;
  font-size: 13px;
  line-height: 18px;
  color: #78350f;
}

.nro-author-name.admin {
  color: #ea580c;
}

.nro-rank-badge {
  background: rgba(234, 88, 12, 0.1);
  color: #78350f;
  font-size: 8.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .3px;
  text-transform: uppercase;
}

.nro-post-author .time {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 15px;
}

/* Title */
.nro-post-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: #663300;
  margin-top: 2px;
  text-decoration: none;
  display: block;
  letter-spacing: normal;
}

.nro-post-title:hover {
  color: #ea580c;
}

.nro-title-admin {
  color: #663300 !important;
}

.nro-title-admin:hover {
  color: #ea580c !important;
}

/* ===== POST IMAGE PREVIEW ===== */
.nro-post-image {
  margin-top: 9px;
  display: block;
}

.nro-post-image a {
  display: block;
}

.nro-post-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  display: block;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .15);
}

.nro-post-image img:hover {
  opacity: .92;
}

/* ===== POST ACTIONS ===== */
.nro-post-actions {
  display: flex;
  gap: 18px;
  margin-top: 9px;
  font-size: 12px;
  color: #9ca3af;
}

.nro-post-actions span {
  cursor: pointer;
  transition: color .2s;
  display: flex;
  align-items: center;
  gap: 4.5px;
}

.nro-post-actions span:hover {
  color: #2563eb;
}

/* ===== ADMIN BADGE ===== */
.nro-badge-admin {
  position: absolute;
  top: 9px;
  right: 13px;
  background: #ea580c;
  color: #fff;
  font-size: 9px;
  padding: 3px 9px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}

/* ===== SIDEBAR ===== */
.nro-sidebar {
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

.nro-sidebar,
.nro-sidebar-top,
.nro-sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nro-sidebar-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: none;
  border: 1px solid var(--border-color);
}

.nro-sidebar-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #78350f;
  margin-bottom: 10px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 16px;
}

.nro-sidebar-title i {
  color: #ea580c;
}

/* Login section */
.nro-btn-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  text-decoration: none;
}

.nro-btn-login.primary {
  background: #f25252;
  color: #fff;
  box-shadow: none;
  margin-bottom: 8px;
}

.nro-btn-login.primary:hover {
  background: #e63939;
  color: #fff;
}

.nro-login-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.nro-login-secondary a {
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #78350f;
  text-decoration: none;
  background: #ffe3c6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all .2s;
}

.nro-login-secondary a:hover {
  background: #ffd8b3;
  border-color: #d4a373;
  color: #5c2e0b;
}

/* Download section */
.nro-dl-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.nro-dl-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 11.5px;
  line-height: 16px;
  color: #fff;
  transition: all .2s;
  width: 100%;
  text-align: center;
}

.nro-dl-btn:hover {
  filter: brightness(1.1);
  color: #fff;
  text-decoration: none;
}

.nro-dl-btn.windows {
  background: #5a3511;
  grid-column: span 2;
}

.nro-dl-btn.android {
  background: #00a859;
}

.nro-dl-btn.iphone {
  background: #3c4e5e;
}

.nro-dl-btn.java {
  background: #ff6f00;
}

.nro-dl-btn.playstore {
  background: #436ff6;
}

.nro-dl-btn.zalo {
  background: #0068ff;
}

.nro-dl-btn.fanpage {
  background: #1877f2;
}

.nro-dl-btn.groupfb {
  background: #242526;
}

.nro-dl-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.nro-dl-row .nro-dl-btn {
  min-height: 40px;
}

.nro-dl-btn i {
  font-size: 14px;
  width: 16px;
  text-align: center;
}

/* Admin Action Buttons */
.nro-admin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 12.5px;
  color: #fff !important;
  transition: all 0.2s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
}

.nro-admin-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.nro-admin-btn.server {
  background: linear-gradient(135deg, #854d0e, #a16207);
  border-color: #ca8a04;
}

.nro-admin-btn.check {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  border-color: #14b8a6;
}

.nro-admin-btn.ban {
  background: linear-gradient(135deg, #e11d48, #be123c);
  border-color: #fb7185;
}

.nro-admin-btn.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #60a5fa;
}

.nro-admin-btn.promo {
  background: linear-gradient(135deg, #ea580c, #c2410c);
  border-color: #f97316;
}

.nro-admin-btn.event {
  background: linear-gradient(135deg, #4b5563, #374151);
  border-color: #9ca3af;
}

.nro-admin-btn.vnd {
  background: linear-gradient(135deg, #059669, #047857);
  border-color: #34d399;
}

.nro-admin-btn.bank {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
  border-color: #a78bfa;
}

.nro-admin-btn i {
  font-size: 14px;
  width: 16px;
  text-align: center;
}


/* Support */
.nro-btn-support {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 4px;
  background: #f25252;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}

.nro-btn-support:hover {
  background: #e63939;
  color: #fff;
}

.nro-support-text {
  font-size: 11.5px;
  color: #78350f;
  margin-bottom: 8px;
  line-height: 1.4;
}

/* ===== RANKING TABLE ===== */
.nro-rank-table {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
}

.nro-rank-table th {
  text-align: center;
  padding: 8px 6px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 700;
  color: var(--text-dark);
}

.nro-rank-table td {
  text-align: center;
  padding: 7px 6px;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
  font-size: 12px;
}

.nro-rank-table .rank-num {
  color: var(--accent-pink);
  font-weight: 700;
}

/* ===== PAGINATION ===== */
.nro-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 16px;
  flex-wrap: wrap;
}

.nro-pagination a {
  padding: 8px 14px;
  border-radius: 4px;
  background: var(--bg-card);
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: all .2s;
}

.nro-pagination a:hover,
.nro-pagination a.active {
  background: var(--accent-pink);
  color: #fff;
}

.nro-new-post-btn {
  margin-right: auto;
  background: linear-gradient(135deg, #27ae60, #2ecc71) !important;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 3px 10px rgba(39, 174, 96, .3);
}

.nro-new-post-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(39, 174, 96, .45) !important;
  color: #fff !important;
}

/* ===== LOGIN PAGE ===== */
.nro-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-body);
  padding: 20px;
}

.nro-login-card {
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
}

.nro-login-header {
  background: linear-gradient(135deg, #e67e22, #d35400);
  padding: 28px 20px;
  text-align: center;
  position: relative;
}

.nro-login-header .back-btn {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 20px;
  text-decoration: none;
  transition: transform .2s;
}

.nro-login-header .back-btn:hover {
  transform: translateY(-50%) scale(1.15);
}

.nro-login-header img {
  height: 48px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .3));
}

.nro-login-body {
  background: var(--bg-card);
  padding: 32px 28px;
}

.nro-login-body h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.nro-login-body .subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 28px;
}

.nro-input-group {
  position: relative;
  margin-bottom: 16px;
}

.nro-input-group i.icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 16px;
}

.nro-input-group input,
.nro-input-group select {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Be Vietnam Pro', 'Inter', ui-sans-serif, system-ui, sans-serif;
  background: rgba(255, 255, 255, .6);
  color: var(--text-dark);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}

.nro-input-group input:focus,
.nro-input-group select:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 0 3px rgba(231, 76, 111, .1);
}

.nro-input-group .toggle-pw {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 16px;
}

.nro-login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.nro-login-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 500;
}

.nro-login-options a {
  color: var(--accent-pink);
  text-decoration: none;
  font-weight: 500;
}

.nro-login-options a:hover {
  text-decoration: underline;
}

.nro-btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #e74c6f, #c0392b);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(231, 76, 111, .35);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.nro-btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(231, 76, 111, .45);
}

.nro-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.nro-divider::before,
.nro-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--border-color);
}

.nro-divider::before {
  left: 0;
}

.nro-divider::after {
  right: 0;
}

.nro-btn-alt {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--border-color);
  border-radius: 4px;
  background: rgba(255, 255, 255, .3);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
}

.nro-btn-alt:hover {
  border-color: var(--accent-green);
  color: var(--accent-green);
}

.nro-login-footer {
  text-align: center;
  padding: 16px;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== REGISTER PAGE ===== */
.nro-register-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.nro-register-form {
  padding: 40px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nro-register-form h1 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 4px;
}

.nro-register-form .reg-subtitle {
  font-size: 14px;
  margin-bottom: 28px;
}

.nro-register-form .reg-subtitle .badge {
  background: var(--accent-green);
  color: #fff;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-right: 6px;
}

.nro-register-form .reg-subtitle .highlight {
  color: var(--accent-green);
  font-weight: 700;
}

.nro-reg-method {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.nro-reg-method button {
  flex: 1;
  padding: 12px;
  border-radius: 4px;
  border: 2px solid #e0e0e0;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  font-family: 'Be Vietnam Pro', 'Inter', ui-sans-serif, system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nro-reg-method button.active {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: rgba(39, 174, 96, .05);
}

.nro-reg-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.nro-reg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.nro-reg-input {
  position: relative;
  margin-bottom: 16px;
}

.nro-reg-input i.icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #aaa;
}

.nro-reg-input input {
  width: 100%;
  padding: 14px 14px 14px 42px;
  border: 1.5px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Be Vietnam Pro', 'Inter', ui-sans-serif, system-ui, sans-serif;
  outline: none;
  transition: border-color .2s;
}

.nro-reg-input input:focus {
  border-color: var(--accent-green);
}

.nro-btn-register {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 4px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 4px 15px rgba(39, 174, 96, .35);
  margin-top: 8px;
}

.nro-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(39, 174, 96, .45);
}

.nro-register-banner {
  background: linear-gradient(135deg, #1a1040, #2d1b69);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.nro-register-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== USER PANEL (logged in) ===== */
.nro-user-panel {
  text-align: center;
}

.nro-user-avatar {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  border: 3px solid var(--accent-pink);
  margin: 0 auto 8px;
}

.nro-user-name {
  font-weight: 700;
  font-size: 15px;
}

.nro-user-name.admin {
  color: #e74c3c;
}

.nro-user-balance {
  font-size: 12px;
  color: var(--text-muted);
  margin: 6px 0 12px;
  font-weight: 700;
}

.nro-user-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  justify-content: center;
}

.nro-user-actions a {
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(231, 76, 111, .12);
  color: var(--accent-pink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nro-user-actions a:hover {
  background: var(--accent-pink);
  color: #fff;
}

/* ===== ALERT ===== */
.nro-alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}

.nro-alert.error {
  background: rgba(231, 76, 111, .12);
  color: #c0392b;
  border: 1px solid rgba(231, 76, 111, .3);
}

.nro-alert.success {
  background: rgba(39, 174, 96, .12);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, .3);
}

/* ===== CAPTCHA ===== */
.nro-captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

.nro-captcha-row input {
  flex: 1;
}

.nro-captcha-display {
  padding: 12px 20px;
  background: #ddd;
  border-radius: 4px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 4px;
  color: #555;
  user-select: none;
  font-family: monospace;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .nro-container {
    grid-template-columns: 1fr;
  }

  .nro-sidebar {
    display: contents;
  }

  .nro-sidebar-top {
    order: 1;
  }

  .nro-container>main {
    order: 2;
  }

  .nro-sidebar-bottom {
    order: 3;
  }

  .nro-register-page {
    grid-template-columns: 1fr;
  }

  .nro-register-banner {
    display: none;
  }

  .nro-register-form {
    padding: 24px;
  }

  .nro-navbar {
    padding: 0 10px;
  }

  .nro-navbar .nav-logo {
    margin-left: 0;
  }

  .nro-navbar .nav-links a {
    font-size: 16px;
    padding: 15px 18px;
    letter-spacing: 0;
    min-height: 52px;
    border-radius: 14px;
  }

  .nro-navbar .nav-links a.active {
    font-size: 12px;
    padding: 7px 12px;
    min-height: 34px;
    border-radius: 8px;
  }
}

@media (max-width: 600px) {
  .nro-login-body {
    padding: 24px 18px;
  }

  .nro-reg-row {
    grid-template-columns: 1fr;
  }

  .nro-navbar>div {
    padding: 0 8px 8px !important;
    justify-content: center !important;
  }

  .nro-navbar .nav-logo {
    margin: 0 !important;
  }

  .nro-navbar .nav-logo img {
    height: 34px !important;
  }

  .nro-navbar .nav-links {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nro-navbar .nav-links a {
    font-size: 12px;
    padding: 7px 12px;
    letter-spacing: 0;
    min-height: 34px;
    border-radius: 8px;
  }

  .nro-banner {
    margin-top: 0;
  }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: #7a7a7a;
  border-radius: 10px;
  border: 3px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

::-webkit-scrollbar-button:single-button {
  display: block;
  background-color: #1e1e1e;
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
  height: 14px;
  width: 14px;
}

/* Up Arrow */
::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a7a7a'><path d='M7 14l5-5 5 5z'/></svg>");
}

::-webkit-scrollbar-button:single-button:vertical:decrement:hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0a0a0'><path d='M7 14l5-5 5 5z'/></svg>");
}

/* Down Arrow */
::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237a7a7a'><path d='M7 10l5 5 5-5z'/></svg>");
}

::-webkit-scrollbar-button:single-button:vertical:increment:hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0a0a0'><path d='M7 10l5 5 5-5z'/></svg>");
}

/* Legacy overrides */
.btn-header {
  background: linear-gradient(135deg, #e74c6f, #c0392b) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
  transition: all .3s !important;
}

.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(231, 76, 111, .4) !important;
}

.btn-main {
  background: linear-gradient(135deg, #e74c6f, #c0392b) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 700 !important;
}

/* Unified Form Controls Style */
.form-control {
  border-radius: 6px !important;
  border: 1px solid #fed7aa !important;
  background-color: #fff9f2 !important;
  color: #78350f !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  transition: all 0.2s ease-in-out !important;
  box-shadow: none !important;
}

.form-control:focus {
  background-color: #ffffff !important;
  border-color: #ea580c !important;
  box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2) !important;
  outline: none !important;
}

select.form-control {
  height: auto !important;
}



/* Emoji picker styling for comments */
.emoji-picker {
  display: none;
  position: absolute;
  bottom: 50px;
  left: 5px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px;
  max-width: 300px;
  max-height: 200px;
  overflow: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.emoji-picker span {
  font-size: 20px;
  cursor: pointer;
  margin: 5px;
  display: inline-block;
}

/* CSS MODAL & SCROLL PARCHMENT SYSTEM */
#alpha-test-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  animation: modalFadeIn 0.25s ease-out forwards;
}

#alpha-test-scroll {
  --announcement-fit-scale: 1;
  background: #fff9f2;
  border: 4px solid #ea580c;
  outline: 2.5px dashed #ffc68e;
  outline-offset: -10px;
  border-radius: 16px;
  width: 100%;
  max-width: 470px;
  padding: 28px 24px 24px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 1000px rgba(0, 0, 0, 0.1);
  position: relative;
  box-sizing: border-box;
  overflow: visible;
  transform: scale(var(--announcement-fit-scale));
  transform-origin: center center;
  animation: modalScaleUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

body.announcement-open {
  overflow: hidden;
}

.announcement-scroll-bar {
  height: 16px;
  margin: -28px -24px 20px;
  border-bottom: 2px solid #5a3511;
  border-radius: 8px;
  background: linear-gradient(to right, #3a2a0a, #ea580c, #3a2a0a);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.announcement-logo {
  display: block;
  height: 62px;
  max-width: 80%;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.announcement-countdown-card {
  padding: 16px 10px;
  margin-bottom: 18px;
  border: 2px dashed #ea580c;
  border-radius: 15px;
  background: #fff9f2;
  color: #663300;
  text-align: center;
  box-shadow: inset 0 2px 6px rgba(234, 88, 12, 0.07);
}

.announcement-countdown-card h2 {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.announcement-open-time {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 800;
}

.announcement-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  max-width: 390px;
  margin: 0 auto;
}

.announcement-time-box {
  padding: 12px 3px 9px;
  border: 1.5px solid #ea580c;
  border-radius: 11px;
  background: #3a2a0a;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4), 0 3px 5px rgba(0, 0, 0, 0.15);
}

.announcement-time-box strong {
  display: block;
  color: #fed7aa;
  font-family: monospace;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.announcement-time-box span {
  display: block;
  margin-top: 7px;
  color: #ffc68e;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.announcement-main-link { margin-bottom: 12px; }
.announcement-social-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.announcement-preference {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding-top: 15px;
  margin-top: 17px;
  border-top: 1px dashed rgba(234, 88, 12, 0.3);
}

.announcement-preference input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #ea580c;
}

.announcement-preference label {
  margin: 0;
  color: #3a2a0a;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

#close-modal-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  background: #ea2e2e;
  border: 3px solid #fff;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-family: 'Arial', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: all 0.2s;
}

#close-modal-btn:hover {
  transform: scale(1.15) rotate(90deg);
  background: #c0292b;
}

/* BUTTONS CSS */
.modal-btn-primary {
  background: linear-gradient(135deg, #ea580c, #663300);
  color: white !important;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
  transition: all 0.2s;
  text-decoration: none !important;
  box-sizing: border-box;
}

.modal-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 14px rgba(234, 88, 12, 0.5);
}

.modal-btn-fb {
  background: linear-gradient(135deg, #3b5998, #2d4373);
  color: white !important;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 11.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(59, 89, 152, 0.25);
  transition: all 0.2s;
  box-sizing: border-box;
}

.modal-btn-fb:hover {
  filter: brightness(1.08);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 12px rgba(59, 89, 152, 0.4);
}

.modal-btn-zalo2 {
  background: linear-gradient(135deg, #0084ff, #0066cc);
  color: white !important;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 11.5px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none !important;
  box-shadow: 0 4px 8px rgba(0, 132, 255, 0.25);
  transition: all 0.2s;
  box-sizing: border-box;
}

.modal-btn-zalo2:hover {
  filter: brightness(1.08);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 12px rgba(0, 132, 255, 0.4);
}

@media (max-width: 520px) {
  #alpha-test-modal { padding: 12px; }
  #alpha-test-scroll {
    padding: 24px 16px 18px;
    overflow: visible;
  }
  .announcement-scroll-bar { margin: -24px -16px 16px; }
  .announcement-logo { height: 48px; margin-bottom: 13px; }
  .announcement-countdown-card { padding: 12px 7px; margin-bottom: 12px; }
  .announcement-countdown-card h2, .announcement-open-time { font-size: 13px; }
  .announcement-countdown { gap: 5px; }
  .announcement-time-box { padding: 9px 2px 7px; }
  .announcement-time-box strong { font-size: 20px; }
  .announcement-social-grid { gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  #alpha-test-modal, #alpha-test-scroll { animation: none; }
}

/* Forgot password modal */
.forgot-modal .modal-dialog {
  width: calc(100% - 24px);
  max-width: 560px;
  margin: 12px auto;
}

.forgot-modal .modal-content {
  position: relative;
  overflow: visible;
  border: 4px solid #ff7a1a;
  border-radius: 18px;
  background: #fffaf4;
  box-shadow: 0 28px 80px rgba(47, 19, 0, .52);
}

.forgot-modal-body {
  padding: 34px 30px 28px;
  text-align: center;
}

.forgot-modal-logo {
  display: block;
  width: 140px;
  max-width: 74%;
  margin: 0 auto 18px;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .24));
}

.forgot-modal-body h3 {
  margin: 0 0 10px;
  color: #5a320c;
  font-size: 22px;
  font-weight: 900;
}

.forgot-modal-body p {
  margin: 0 0 22px;
  color: #7a5c2e;
  font-size: 15px;
  font-weight: 700;
}

.forgot-modal-action {
  min-width: 140px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #f97316, #ea580c);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(234, 88, 12, .28);
}

.forgot-modal-action:hover,
.forgot-modal-close:hover {
  filter: brightness(1.05);
}

.forgot-modal-close {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 38px;
  height: 38px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  line-height: 28px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
  z-index: 2;
}

/* Account modal */
.auth-modal .modal-dialog {
  width: calc(100% - 24px);
  max-width: 570px;
  margin: 12px auto;
}

.auth-modal .modal-content {
  overflow: hidden;
  border: 2px solid #e86a16;
  border-radius: 18px;
  background: #fff2dc;
  box-shadow: 0 28px 80px rgba(47, 19, 0, .52);
}

.auth-modal .modal-header {
  min-height: 72px;
  padding: 10px 18px;
  border: 0;
  background: linear-gradient(110deg, #4b2107, #8d3d08 62%, #e56513);
}

.auth-modal-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.auth-modal-heading img {
  width: 96px;
  height: 48px;
  object-fit: contain;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .35));
}

.auth-modal-heading div {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.auth-modal-heading small {
  margin-bottom: 3px;
  color: #ffc98d;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.auth-modal-heading strong {
  color: #fff;
  font-size: 15px;
}

.auth-modal .modal-header .close {
  width: 38px;
  height: 38px;
  margin: 0 0 0 auto;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  font-size: 29px;
  opacity: 1;
  text-shadow: none;
}

.auth-modal .modal-header .close:hover {
  background: #ef513c;
}

.auth-modal .modal-body {
  padding: 14px;
  background:
    radial-gradient(circle at 95% 0, rgba(255, 167, 57, .22), transparent 34%),
    #ffe7c6;
}

.auth-modal .auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  margin: 0 0 12px;
  border: 1px solid #edbf82;
  border-radius: 12px;
  background: rgba(255, 255, 255, .56);
}

.auth-modal .auth-switch button {
  min-height: 43px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6d3a14;
  font-size: 13px;
  font-weight: 900;
  transition: background .2s, color .2s, box-shadow .2s;
}

.auth-modal .auth-switch button.active {
  background: linear-gradient(110deg, #f36b16, #d64c08);
  color: #fff;
  box-shadow: 0 6px 14px rgba(202, 70, 8, .25);
}

.auth-modal .auth-frame {
  display: block;
  width: 100%;
  height: 520px;
  border: 0;
  border-radius: 14px;
  background: #fff7e9;
  transition: height .22s ease;
}

@media (max-width: 600px) {
  .auth-modal .modal-dialog { width: calc(100% - 12px); margin: 6px auto; }
  .auth-modal .modal-header { min-height: 60px; padding: 7px 12px; }
  .auth-modal-heading img { width: 76px; height: 40px; }
  .auth-modal-heading strong { font-size: 13px; }
  .auth-modal .modal-body { padding: 8px; }
  .auth-modal .auth-switch { margin-bottom: 8px; }
  .auth-modal .auth-frame { max-height: calc(100vh - 150px); }
}

/* Keep the shared navbar usable on account and recharge pages. */
@media (max-width: 780px) {
  .nro-navbar {
    height: auto;
    min-height: 58px;
  }

  .nro-navbar-inner {
    flex-wrap: wrap;
    padding-top: 7px !important;
    padding-bottom: 7px !important;
    row-gap: 7px;
  }

  .nro-navbar .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .nro-nav-account {
    display: none;
  }
}

@media (max-width: 430px) {
  .nro-navbar .nav-logo img {
    height: 31px !important;
  }
}

/* ANIMATIONS */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalScaleUp {
  from {
    transform: translateY(24px) scale(var(--announcement-fit-scale));
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(var(--announcement-fit-scale));
    opacity: 1;
  }
}

@keyframes pulse {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.15);
  }
}
