/* ==========================================================================
   STYLE GIAO DIỆN RISE OF KINGDOMS - BẢN TINH CHỈNH ĐỢT 2 CHUẨN XÁC
   ========================================================================== */

:root {
  --bg-deep: #080b10;
  --bg-card-start: #0d121c;
  --bg-card-end: #151d2a;
  --bg-input: #121722;
  --gold-highlight: #ffdf79;
  --gold-primary: #e5b842;
  --gold-accent: #f59e0b;
  --gold-border: rgba(180, 140, 60, 0.45);
  --gold-border-bright: #d4af37;
  --text-main: #f8fafc;
  --text-gold: #e5a93c;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius-card: 24px;
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 1rem;
  overflow-x: hidden;
  position: relative;
}

/* Canvas hiệu ứng tàn lửa bay phủ toàn màn hình */
#emberCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 10;
}

.rok-app-wrapper {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* ============================================================
   KHUNG CARD CHÍNH - KHÔNG GIAN NỀN LIỀN MẠCH (#0d121c -> #151d2a)
============================================================ */
.rok-card {
  width: 100%;
  background: linear-gradient(135deg, var(--bg-card-start) 0%, #111724 50%, var(--bg-card-end) 100%);
  border-radius: var(--radius-card);
  border: 1px solid rgba(212, 175, 55, 0.28);
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.95), 0 0 50px rgba(229, 184, 66, 0.08);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  overflow: hidden;
  position: relative;
  min-height: 720px;
}

/* CỘT TRÁI */
.col-left {
  padding: 2.25rem 2.6rem 1.8rem 2.6rem;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 5;
  background: transparent;
}

/* ============================================================
   TOP NAVIGATION & TYPOGRAPHY
============================================================ */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-shield-logo {
  display: flex;
  align-items: center;
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: 1px;
  line-height: 1.1;
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, #fef08a 60%, #eab308 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-gold);
  letter-spacing: 1.2px;
  margin-top: 2px;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tab-btn {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.tab-pill {
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 20px;
  color: var(--gold-highlight);
  background: rgba(229, 184, 66, 0.08);
  border: 1px solid var(--gold-border-bright);
  letter-spacing: 0.8px;
  transition: all 0.2s ease;
}

.tab-pill.active {
  box-shadow: 0 0 12px rgba(229, 184, 66, 0.25);
}

.tab-text {
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: color 0.2s ease;
  border: 1px solid transparent;
  padding: 5px 12px;
}

.tab-text:hover {
  color: var(--text-main);
}

.tab-content {
  animation: tabFadeIn 0.28s ease;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Language Selector Dropdown (Hỗ trợ VI, EN, ZH, JA, ES, RU) --- */
.lang-selector-wrapper {
  position: relative;
  z-index: 50;
}

.lang-btn-current {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #131a26;
  border: 1px solid rgba(229, 184, 66, 0.35);
  color: #f8fafc;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.lang-btn-current:hover {
  border-color: #f59e0b;
  background: #182232;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-code {
  color: #e5b842;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.lang-chevron {
  font-size: 0.65rem;
  color: #94a3b8;
  transition: transform 0.2s ease;
}

.lang-selector-wrapper.active .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 175px;
  background: #111723;
  border: 1px solid rgba(229, 184, 66, 0.35);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75), 0 0 15px rgba(229, 184, 66, 0.1);
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 1000;
}

.lang-selector-wrapper.active .lang-dropdown-menu {
  display: flex;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-option:hover {
  background: rgba(245, 158, 11, 0.15);
  color: #fef08a;
}

.lang-option.active {
  background: rgba(245, 158, 11, 0.25);
  color: #f59e0b;
  font-weight: 800;
}

/* Tiêu đề chính */
.hero-header {
  margin-bottom: 1.25rem;
}

.eyebrow {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.main-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.15rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 0.45rem;
  line-height: 1.15;
  background: linear-gradient(180deg, #ffffff 0%, #fff2b2 30%, #f59e0b 70%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 2px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 18px rgba(245, 158, 11, 0.55));
}

.sub-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Form Styles */
.valuation-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.section-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-gold);
  margin-bottom: 0.45rem;
}

/* ============================================================
   3. KHUNG TẢI ẢNH (DROPZONE KHUNG KÉP TÔNG NÂU VÀNG HỔ PHÁCH)
============================================================ */
.dropzone.amber-double-frame {
  position: relative;
  border-radius: 8px;
  border: 1.5px solid #a68236;
  background: radial-gradient(circle at center, rgba(82, 63, 24, 0.45) 0%, rgba(42, 33, 14, 0.65) 100%);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.12);
  padding: 1.3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.dropzone.amber-double-frame::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1.5px dashed rgba(212, 175, 55, 0.45);
  border-radius: 5px;
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.dropzone.amber-double-frame:hover, .dropzone.amber-double-frame.dragover {
  border-color: #d4af37;
  background: radial-gradient(circle at center, rgba(100, 78, 30, 0.55) 0%, rgba(55, 42, 18, 0.75) 100%);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

.dropzone.amber-double-frame:hover::after {
  border-color: rgba(254, 240, 138, 0.75);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.camera-icon-wrapper {
  margin-bottom: 2px;
}

.dropzone-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
}

.dropzone-hint {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Previews */
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.6rem;
  font-size: 0.8rem;
}

.preview-count {
  font-weight: 600;
  color: var(--gold-primary);
}

.btn-clear {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 600;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 8px;
  margin-top: 0.5rem;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--gold-border);
  background: #0f141d;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .btn-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   4. CÁC Ô NHẬP LIỆU: HOA VĂN GÓC ÁP SÁT VIỀN & STAR GLINT 28PX
============================================================ */
.input-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.ornate-input-wrap {
  position: relative;
  background-color: var(--bg-input) !important;
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  overflow: visible; /* Để ánh sáng Star Glint lan tỏa ra ngoài góc */
}

.ornate-input-wrap.full-width {
  grid-column: 1 / -1;
}

.ornate-input-wrap:focus-within {
  border-color: var(--gold-border-bright);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 14px rgba(229, 184, 66, 0.25);
}

/* Hoa văn góc Filigree SVG áp sát viền (-1px) */
.filigree-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  z-index: 5;
}
.c-tl { top: -1px; left: -1px; }
.c-tr { top: -1px; right: -1px; transform: scaleX(-1); }
.c-bl { bottom: -1px; left: -1px; transform: scaleY(-1); }
.c-br { bottom: -1px; right: -1px; transform: scale(-1); }

/* Điểm sáng góc input (Ẩn để giữ đường viền hoa văn kim loại thanh mảnh chuẩn thiết kế) */
.star-glint {
  display: none;
}

/* Ép màu nền đen than và chữ trắng cho input, ngăn autofill của trình duyệt */
.ornate-input-wrap input {
  width: 100%;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  color: var(--text-main) !important;
  padding: 0.78rem 2.6rem 0.78rem 1rem;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  position: relative;
  z-index: 2;
}

.ornate-input-wrap input:-webkit-autofill,
.ornate-input-wrap input:-webkit-autofill:hover, 
.ornate-input-wrap input:-webkit-autofill:focus, 
.ornate-input-wrap input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #121722 inset !important;
  -webkit-text-fill-color: #f8fafc !important;
  caret-color: #f8fafc !important;
  transition: background-color 5000s ease-in-out 0s;
}

.ornate-input-wrap input::placeholder {
  color: #64748b;
  font-size: 0.85rem;
}

.input-icon {
  position: absolute;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

/* ============================================================
   2. NÚT BẤM 3D: KHUNG KIM LOẠI 5PX, MẪU NHÔ TAM GIÁC & LỬA UỐN CONG
============================================================ */
.submit-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.8rem;
}

.rok-btn-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* Vầng hào quang lửa (Fire Aura) lan tỏa mềm mại phía sau thân nút bấm */
.rok-btn-wrapper::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(245, 158, 11, 0.45) 0%, rgba(234, 88, 12, 0.25) 50%, transparent 75%);
  filter: blur(14px);
  z-index: 1;
  pointer-events: none;
  animation: fireAuraBreathing 2.5s ease-in-out infinite alternate;
}

@keyframes fireAuraBreathing {
  0% { transform: scale(0.96); opacity: 0.7; }
  100% { transform: scale(1.05); opacity: 1; }
}

/* ============================================================
   CANVAS 2D REALISTIC FIRE FX (CANVAS 2D PROCEDURAL FLAME)
============================================================ */
.cta-fire-canvas {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .cta-fire-canvas {
    opacity: 0.25;
  }
}

/* Nút bấm chính 3D */
.rok-btn-3d {
  position: relative;
  z-index: 3;
  width: 380px;
  height: 62px;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.rok-btn-3d:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.12);
}

.rok-btn-3d:active {
  transform: translateY(1px) scale(0.99);
}

.rok-btn-3d:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-structure-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.btn-text {
  position: relative;
  z-index: 5;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: #2e0d02;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.65), 0 -1px 0 rgba(0, 0, 0, 0.25);
}

/* Social Bar */
.social-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 1.5rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-icon:hover {
  color: var(--gold-primary);
  border-color: var(--gold-border-bright);
  background: rgba(229, 184, 66, 0.12);
  transform: translateY(-2px);
}

/* ============================================================
   5. CỘT PHẢI: 4 DẢI VOLUMETRIC GOD RAYS NGHIÊNG -35 ĐỘ & ALEXANDER
============================================================ */
.col-right {
  position: relative;
  background: transparent;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

/* ============================================================
   HIỆU ỨNG B: HERO BACKLIGHT (ÁNH SÁNG VÀNG ẤM PHÍA SAU NHÂN VẬT)
============================================================ */
.hero-backlight-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2; /* Nằm hoàn toàn sau .character-wrapper (z-index: 5) */
  overflow: hidden;
  mix-blend-mode: screen;
}

/* 1. Quầng sáng lớn màu vàng hổ phách (Halo) tỏa sau lưng nhân vật */
.hero-backlight-halo {
  position: absolute;
  top: 18%;
  left: 22%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.28) 0%, rgba(217, 119, 6, 0.12) 48%, transparent 72%);
  filter: blur(34px);
  pointer-events: none;
  animation: heroHaloPulse 6.5s ease-in-out infinite alternate;
}

/* 2. Các vệt sáng mềm kéo theo chiều dọc, rộng ở dưới, thon ở trên */
.hero-light-shaft {
  position: absolute;
  bottom: -10%;
  height: 90%;
  transform-origin: bottom center;
  background: linear-gradient(0deg, rgba(255, 205, 85, 0.22) 0%, rgba(245, 158, 11, 0.12) 45%, transparent 88%);
  filter: blur(24px);
  pointer-events: none;
  animation: heroShaftDrift 7.5s ease-in-out infinite alternate;
}

.shaft-1 { left: 16%; width: 44px; --rot: -14deg; transform: rotate(-14deg); animation-delay: 0s; }
.shaft-2 { left: 34%; width: 66px; --rot: -18deg; transform: rotate(-18deg); animation-delay: 1.8s; }
.shaft-3 { left: 52%; width: 48px; --rot: -22deg; transform: rotate(-22deg); animation-delay: 3.6s; }
.shaft-4 { left: 70%; width: 56px; --rot: -16deg; transform: rotate(-16deg); animation-delay: 2.2s; }
.shaft-5 { left: 84%; width: 42px; --rot: -24deg; transform: rotate(-24deg); animation-delay: 4.5s; }

@keyframes heroHaloPulse {
  0% { transform: scale(0.94); opacity: 0.75; }
  100% { transform: scale(1.08); opacity: 1; }
}

@keyframes heroShaftDrift {
  0% { opacity: 0.65; transform: scaleY(0.96) rotate(var(--rot, -18deg)); }
  100% { opacity: 0.95; transform: scaleY(1.04) rotate(var(--rot, -18deg)); }
}

/* ============================================================
/* ============================================================
   NHÂN VẬT ALEXANDER 3D & LUỒNG SÁNG TỰ NHIÊN
============================================================ */
.character-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 5;
  overflow: hidden;
}

.character-img {
  max-width: 96%;
  max-height: 98%;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.9));
  transform: translateY(12px);
  transition: transform 0.3s ease;
}

.character-wrapper:hover .character-img {
  transform: translateY(8px) scale(1.02);
}

/* Màn khói che phần dưới chân nhân vật */
.character-smoke-mask {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(0deg, #111724 30%, rgba(17, 23, 36, 0.75) 70%, transparent 100%);
  pointer-events: none;
  z-index: 6;
}

/* ============================================================
   MODAL POPUP HIỂN THỊ KẾT QUẢ ĐỊNH GIÁ Ở GIỮA TRANG
============================================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(7, 10, 15, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1.5rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 580px;
  background: linear-gradient(150deg, #182232 0%, #0f1520 100%);
  border: 1px solid rgba(229, 184, 66, 0.45);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.85), 0 0 45px rgba(229, 184, 66, 0.15);
  border-radius: 22px;
  padding: 2rem;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(239, 68, 68, 0.8);
  color: #fff;
  border-color: transparent;
}

.modal-header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.modal-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold-primary);
  border: 1px solid rgba(229, 184, 66, 0.4);
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.4rem;
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

/* Hộp hiển thị mức giá */
.modal-price-box {
  background: linear-gradient(135deg, rgba(229, 184, 66, 0.12) 0%, rgba(229, 184, 66, 0.03) 100%);
  border: 1px solid rgba(229, 184, 66, 0.35);
  border-radius: 14px;
  padding: 1.25rem;
  text-align: center;
  margin-bottom: 1.25rem;
}

.price-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.price-usd {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--gold-primary);
  line-height: 1.1;
  margin: 0.3rem 0;
  text-shadow: 0 2px 10px rgba(229, 184, 66, 0.3);
}

.price-vnd {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Lưới chỉ số */
.modal-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1.25rem;
}

.modal-stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--gold-border);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.modal-stat-box .stat-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.modal-stat-box .stat-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-top: 0.2rem;
}

/* Hướng dẫn liên hệ chốt giao dịch */
.trade-guide {
  background: rgba(10, 14, 20, 0.6);
  border-left: 3px solid var(--gold-primary);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.guide-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.step-num {
  width: 20px;
  height: 20px;
  background: var(--gold-primary);
  color: #0b0e14;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-content strong {
  color: var(--text-main);
}

/* Hàng nút tương tác liên hệ */
.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-contact {
  text-decoration: none;
  padding: 0.8rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-zalo {
  background: #0068ff;
  color: white;
}

.btn-zalo:hover {
  background: #0053cc;
  transform: translateY(-1px);
}

.btn-telegram {
  background: #229ed9;
  color: white;
}

.btn-telegram:hover {
  background: #1c88bd;
  transform: translateY(-1px);
}

.btn-secondary {
  grid-column: 1 / -1;
  background: transparent;
  border: 1px solid var(--gold-border);
  color: var(--text-muted);
  padding: 0.65rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  color: var(--text-main);
  border-color: var(--gold-border-bright);
}

/* ============================================================
   RESPONSIVE (ĐIỆN THOẠI & TABLET)
============================================================ */
@media (max-width: 900px) {
  .rok-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .col-right {
    min-height: 380px;
    order: -1;
  }

  .character-wrapper {
    height: 360px;
  }

  .col-left {
    padding: 1.75rem 1.25rem;
  }

  .main-title {
    font-size: 1.65rem;
  }

  .modal-card {
    padding: 1.5rem 1.25rem;
  }

  .price-usd {
    font-size: 2.2rem;
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .input-grid {
    grid-template-columns: 1fr;
  }

  .rok-btn-3d {
    width: 100%;
  }

  .top-nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-controls {
    width: 100%;
    justify-content: space-between;
  }
}

/* ============================================================
   ADMIN MANAGEMENT STYLES (DÀNH CHO HỆ THỐNG QUẢN TRỊ)
============================================================ */
.admin-body {
  background-color: #0b0f17;
  color: #e2e8f0;
  min-height: 100vh;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

/* --- Admin Login --- */
.admin-login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 30%, #172033 0%, #090d14 70%);
}

.admin-login-card {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(160deg, #161e2c 0%, #0f1520 100%);
  border: 1px solid rgba(229, 184, 66, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(229, 184, 66, 0.12);
  border-radius: 18px;
  padding: 2.5rem 2rem;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-brand-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  border: 2px solid #fef08a;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #000;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.login-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 1px;
}

.login-subtitle {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-top: 0.35rem;
}

.login-error-alert {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #fca5a5;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-align: center;
}

.admin-login-form .login-group {
  margin-bottom: 1.25rem;
}

.admin-login-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.4rem;
}

.admin-login-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #0d121c;
  border: 1px solid rgba(229, 184, 66, 0.3);
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.admin-login-form input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.25);
}

.btn-login-submit {
  width: 100%;
  padding: 0.95rem;
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #fef08a;
  border-radius: 8px;
  color: #0b0f17;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.btn-login-submit:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.login-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.login-back-link {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.login-back-link:hover {
  color: #f59e0b;
}

/* --- Admin Layout & Topbar --- */
.admin-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: #111723;
  border-bottom: 1px solid rgba(229, 184, 66, 0.25);
  padding: 0.9rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #000;
  font-weight: 800;
}

.admin-brand-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: 0.5px;
}

.admin-badge-sub {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.admin-topbar-user {
  display: flex;
  align-items: center;
  gap: 14px;
}

.user-info-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #161f30;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.user-role-badge {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.user-role-badge.admin {
  background: #ef4444;
  color: white;
}

.user-role-badge.staff {
  background: #3b82f6;
  color: white;
}

.user-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #e2e8f0;
}

.btn-topbar-link {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s;
}

.btn-topbar-link:hover {
  color: #f8fafc;
  border-color: rgba(229, 184, 66, 0.4);
}

.btn-topbar-logout {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s;
}

.btn-topbar-logout:hover {
  background: #ef4444;
  color: white;
}

/* --- Admin Main & Stats --- */
.admin-main {
  flex: 1;
  max-width: 1500px;
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.admin-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  background: #131a26;
  border: 1px solid rgba(229, 184, 66, 0.18);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 184, 66, 0.35);
}

.stat-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.stat-card-val {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 900;
  margin-top: 0.3rem;
  color: #f8fafc;
}

.text-amber { color: #f59e0b !important; }
.text-blue { color: #38bdf8 !important; }
.text-green { color: #10b981 !important; }
.text-gold { color: #e5b842 !important; }

/* --- Admin Filter Bar --- */
.admin-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  background: #131a26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.filter-status-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-tab {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 6px;
  color: #94a3b8;
  background: #182232;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.filter-tab:hover {
  color: #f8fafc;
  background: #202b3d;
}

.filter-tab.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input {
  background: #0d121c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 7px 12px;
  color: #f8fafc;
  font-size: 0.85rem;
  outline: none;
  width: 240px;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #f59e0b;
}

.btn-search {
  background: #f59e0b;
  color: #0b0f17;
  border: none;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: filter 0.2s;
}

.btn-search:hover {
  filter: brightness(1.1);
}

.btn-reset-filter {
  color: #94a3b8;
  font-size: 0.82rem;
  text-decoration: none;
  padding: 6px 8px;
}

.btn-reset-filter:hover {
  color: #f8fafc;
}

/* --- Admin Data Table --- */
.admin-table-container {
  background: #131a26;
  border: 1px solid rgba(229, 184, 66, 0.2);
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.admin-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.86rem;
  white-space: nowrap;
}

.admin-data-table thead {
  background: #182232;
  border-bottom: 2px solid rgba(229, 184, 66, 0.25);
}

.admin-data-table th {
  padding: 1rem 0.85rem;
  font-weight: 800;
  color: #e5b842;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-data-table td {
  padding: 0.95rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-data-table tbody tr:hover {
  background: rgba(229, 184, 66, 0.03);
}

.table-row-new {
  border-left: 3px solid #f59e0b;
}

.table-row-contacted {
  border-left: 3px solid #38bdf8;
}

.table-row-completed {
  border-left: 3px solid #10b981;
}

.table-row-cancelled {
  border-left: 3px solid #64748b;
  opacity: 0.65;
}

.contact-info-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-text {
  font-weight: 700;
  color: #f8fafc;
}

.btn-quick-chat {
  background: #0068ff;
  color: white;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  transition: background 0.2s;
}

.btn-quick-chat:hover {
  background: #0053cc;
}

.kingdom-pill {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
}

.price-est-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.usd-badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: #e5b842;
  font-size: 0.95rem;
}

.vnd-sub {
  font-size: 0.75rem;
  color: #94a3b8;
}

.btn-view-images {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-view-images:hover {
  background: #f59e0b;
  color: #0b0f17;
}

.status-select {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid transparent;
  outline: none;
  cursor: pointer;
  background-color: #111723;
  transition: all 0.2s ease;
}

.status-select:focus {
  background-color: #111723;
  box-shadow: 0 0 10px rgba(229, 184, 66, 0.3);
}

.status-select.status-new {
  background-color: rgba(245, 158, 11, 0.2);
  border-color: #f59e0b;
  color: #fef08a;
}

.status-select.status-contacted {
  background-color: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #bae6fd;
}

.status-select.status-completed {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: #10b981;
  color: #a7f3d0;
}

.status-select.status-cancelled {
  background-color: rgba(100, 116, 139, 0.2);
  border-color: #64748b;
  color: #cbd5e1;
}

/* Định dạng danh sách xổ xuống (Options Dropdown) */
.status-select option {
  background-color: #111723;
  color: #f1f5f9;
  font-weight: 700;
  padding: 8px 12px;
}

.status-select option[value="new"] {
  background-color: #131a26;
  color: #f59e0b;
}

.status-select option[value="contacted"] {
  background-color: #131a26;
  color: #38bdf8;
}

.status-select option[value="completed"] {
  background-color: #131a26;
  color: #10b981;
}

.status-select option[value="cancelled"] {
  background-color: #131a26;
  color: #94a3b8;
}

.assigned-cell {
  display: flex;
  align-items: center;
}

.assigned-badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  background: #182232;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-assign-self {
  background: transparent;
  border: 1px dashed rgba(245, 158, 11, 0.4);
  color: #f59e0b;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-assign-self:hover {
  background: rgba(245, 158, 11, 0.15);
  border-style: solid;
}

.cell-note {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.empty-state {
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.empty-text {
  color: #94a3b8;
  font-size: 0.95rem;
}

/* --- Admin Photo Modal & Gallery Grid --- */
.admin-photo-modal {
  max-width: 860px;
}

.admin-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.gallery-item {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(229, 184, 66, 0.25);
  background: #090d14;
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-zoom-icon {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  color: #fef08a;
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  padding: 4px 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item:hover .gallery-zoom-icon {
  opacity: 1;
}

/* ============================================================
   PROCESS TAB STYLING (QUY TRÌNH THU MUA & ĐỊNH GIÁ)
============================================================ */
.process-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 6px;
}

.process-card {
  background: rgba(18, 12, 10, 0.72);
  border-radius: 10px;
  padding: 16px 18px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.process-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold-border-bright);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 12px rgba(229, 184, 66, 0.15);
}

.process-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.step-badge {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fde047 0%, #b45309 100%);
  color: #3b1104;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(234, 179, 8, 0.4);
}

.step-icon {
  display: flex;
  align-items: center;
  opacity: 0.9;
}

.step-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fde047;
  margin: 0 0 6px 0;
  letter-spacing: 0.6px;
}

.step-desc {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 0;
}

.process-guarantees {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  border: 1px dashed rgba(229, 184, 66, 0.28);
}

.guarantee-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #fef08a;
  font-weight: 600;
}

.process-action {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.btn-start-valuation {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  border: 1px solid #fef08a;
  border-radius: 8px;
  color: #3b1104;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.btn-start-valuation:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.55);
}

@media (max-width: 580px) {
  .process-grid {
    grid-template-columns: 1fr;
  }
  
  .process-guarantees {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
