@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;
}

* { 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 {
    max-height: 460px;
    object-fit: cover;
    object-position: center 35%;
    border-radius: var(--radius);
  }
}
.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: flex; flex-direction: column; gap: 6px; }
.nro-dl-row .nro-dl-btn { flex: 1; }
.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: 11px; padding: 6px 10px; letter-spacing: -0.3px; }
}
@media (max-width: 600px) {
  .nro-login-body { padding: 24px 18px; }
  .nro-reg-row { grid-template-columns: 1fr; }
  .nro-navbar > div { padding: 0 5px !important; justify-content: center !important; }
  .nro-navbar .nav-logo { margin-right: 5px !important; margin-left: 0 !important; }
  .nro-navbar .nav-logo img { height: 32px !important; }
  .nro-navbar .nav-links { gap: 4px; }
  .nro-navbar .nav-links a { font-size: 10px; padding: 6px 6px; letter-spacing: -0.2px; }
}

/* ===== 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;
    animation: modalFadeIn 0.25s ease-out forwards;
}

#alpha-test-scroll {
    background: #fff9f2;
    border: 4px solid #ea580c;
    outline: 2.5px dashed #ffc68e;
    outline-offset: -10px;
    border-radius: 16px;
    width: 100%;
    max-width: 375px;
    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;
    animation: modalScaleUp 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

#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;
}

/* GIFTCODE BADGES CSS */
.giftcode-badge {
    background: #ffffff;
    color: #ea580c;
    border: 1.5px solid #ea580c;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(234,88,12,0.1);
}
.giftcode-badge:hover {
    background: #ea580c;
    color: #ffffff;
    border-color: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(234,88,12,0.3);
}

/* 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);
}

/* CUSTOM DYNAMIC TOAST IN MODAL */
.md-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: #3a2a0a;
    color: #fff9f2;
    border: 2.5px solid #ea580c;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 12.5px;
    font-weight: bold;
    z-index: 1000000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.md-toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* ANIMATIONS */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalScaleUp {
    from { transform: translateY(30px) scale(0.92); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.15); }
}