@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/fonts/be-vietnam-pro-v12-400-full.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('/fonts/be-vietnam-pro-v12-700-full.woff2') format('woff2');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg-primary: #0a0c16;
  --bg-card: rgba(18, 22, 41, 0.7);
  --bg-card-border: rgba(255, 255, 255, 0.1);
  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7f00ff;
  --accent-pink: #ff007f;
  --text-main: #f0f4f8;
  --text-muted: #8a99ad;
  --success: #00e676;
  --warning: #ffab00;
  --danger: #ff5252;
  --font-main: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Be Vietnam Pro', system-ui, sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Glow Effects */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(127, 0, 255, 0.4) 0%, rgba(127, 0, 255, 0) 70%);
  top: -100px;
  left: -100px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 242, 254, 0.4) 0%, rgba(0, 242, 254, 0) 70%);
  bottom: -200px;
  right: -100px;
}

.bg-glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 0, 127, 0.3) 0%, rgba(255, 0, 127, 0) 70%);
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.app-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Header */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.logo-icon {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 242, 254, 0.3);
  padding: 2px;
  overflow: hidden;
}

.logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}

.brand-text h1 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-text h1 span {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.3);
  color: var(--success);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.zalo-button,
.zalo-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #fff;
  background: linear-gradient(135deg, #0084ff, #0068ff);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 104, 255, 0.25);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  animation: pulse 2s infinite;
}

/* Step 5 Stats Section */
.stats-section {
  margin-bottom: 0;
}

.stats-section .card-header {
  margin-bottom: 1.2rem;
}

.stats-section .card-header small {
  display: block;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

.index-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.index-stats-grid .stat-tile {
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  background: rgba(5, 8, 18, 0.65);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.index-stats-grid .stat-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.3);
}

.index-stats-grid .stat-tile span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.index-stats-grid .stat-tile strong {
  margin-top: 0.35rem;
  font-family: var(--font-mono, monospace);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.index-stats-grid .stat-tile.success strong { color: var(--success, #00e676); }
.index-stats-grid .stat-tile.rejected strong { color: #ff7690; }

@media (max-width: 600px) {
  .index-stats-grid {
    gap: 0.5rem;
  }
  .index-stats-grid .stat-tile {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
  }
  .index-stats-grid .stat-tile strong {
    font-size: 1.2rem;
  }
  .index-stats-grid .stat-tile span {
    font-size: 0.72rem;
  }
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 230, 118, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Promo MXH Button (Placed right above Step 1) */
.promo-mxh-button {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1.15rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.12), rgba(0, 242, 254, 0.12)), rgba(10, 14, 28, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 16px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(14px);
  transition: all 0.25s ease;
}

.promo-mxh-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 0, 128, 0.6);
  box-shadow: 0 10px 28px rgba(255, 0, 128, 0.25), 0 0 15px rgba(0, 242, 254, 0.2);
}

.promo-mxh-icon {
  font-size: 1.5rem;
  line-height: 1;
  filter: drop-shadow(0 0 8px rgba(0, 242, 254, 0.5));
}

.promo-mxh-text {
  flex: 1;
  min-width: 0;
}

.promo-mxh-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  background: linear-gradient(90deg, #00f2fe, #ff007f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.2px;
}

.promo-mxh-text small {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted, #8e95ad);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.promo-mxh-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 700;
  color: #00f2fe;
  transition: transform 0.2s ease, background 0.2s ease;
}

.promo-mxh-button:hover .promo-mxh-arrow {
  transform: translate(2px, -2px);
  background: rgba(0, 242, 254, 0.2);
  color: #fff;
}

@media (max-width: 600px) {
  .promo-mxh-button {
    padding: 0.75rem 0.95rem;
    margin-bottom: 1.15rem;
    border-radius: 14px;
    gap: 0.75rem;
  }
  .promo-mxh-icon {
    font-size: 1.3rem;
  }
  .promo-mxh-text strong {
    font-size: 0.88rem;
  }
  .promo-mxh-text small {
    font-size: 0.7rem;
  }
  .promo-mxh-arrow {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}

/* Info Card */
.info-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.bottom-info-card {
  margin-top: 1rem;
}

.info-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.1rem;
  color: var(--accent-cyan);
  margin-bottom: 1.2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.icon-red { background: rgba(255, 82, 82, 0.15); color: var(--danger); }
.icon-green { background: rgba(0, 230, 118, 0.15); color: var(--success); }
.icon-blue { background: rgba(79, 172, 254, 0.15); color: var(--accent-blue); }

.info-item h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.info-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Main Grid Layout */
.main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
}

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

}

/* Glass Card Component */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 1.8rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.step-num {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.kgvn-source-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 13px;
  background: rgba(10, 12, 22, 0.45);
}

.kgvn-source-tab {
  min-width: 0;
  min-height: 42px;
  padding: 0.6rem 0.45rem;
  border: 0;
  border-radius: 9px;
  color: var(--text-muted);
  background: transparent;
  font: 700 0.78rem var(--font-main);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.kgvn-source-tab.active {
  color: #071018;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  box-shadow: 0 6px 16px rgba(0, 242, 254, 0.16);
}

.kgvn-source-tab i {
  margin-right: 0.35rem;
}

.kgvn-source-panel {
  display: none;
}

.kgvn-source-panel.active {
  display: block;
}

.source-form-group {
  margin-bottom: 0;
}

.har-upload-button {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px dashed rgba(0, 242, 254, 0.38);
  border-radius: 14px;
  color: var(--text-main);
  background: rgba(0, 242, 254, 0.05);
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
}

.har-upload-button > span:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.har-upload-button strong,
.har-upload-button small {
  display: block;
}

.har-upload-button strong {
  font-size: 0.88rem;
}

.har-upload-button small {
  margin-top: 0.18rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.har-upload-button > i {
  color: var(--accent-cyan);
  font-size: 0.75rem;
}

.har-upload-icon {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  font-size: 1.1rem;
}

.inline-guide-button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.referral-card { margin-top:.8rem; padding:.8rem; border:1px solid rgba(127,0,255,.35); border-radius:14px; background:linear-gradient(135deg,rgba(127,0,255,.1),rgba(0,242,254,.06)); }
.mission-box .referral-card { margin:0 0 .8rem; padding:0 0 .8rem; border:0; border-bottom:1px solid rgba(255,255,255,.08); border-radius:0; background:transparent; }
.referral-title { display:flex; align-items:center; gap:.55rem; }
.referral-title strong,.referral-title small { display:block; }
.referral-title small { margin-top:.12rem; color:var(--text-muted); font-size:.68rem; }
.referral-link-row { display:flex; gap:.45rem; margin-top:.65rem; }
.referral-link-row input { min-width:0; flex:1; padding:.6rem; border:1px solid rgba(255,255,255,.12); border-radius:9px; color:var(--text-main); background:rgba(0,0,0,.25); }
.referral-link-row button { border:0; border-radius:9px; padding:0 .75rem; color:#06111b; background:var(--accent-cyan); font-weight:700; cursor:pointer; }
.referral-stats { display:flex; justify-content:space-between; gap:.6rem; margin-top:.65rem; color:var(--text-muted); font-size:.72rem; }
.referral-stats strong { color:var(--accent-cyan); font-size:.9rem; }
.success-reward { display:flex; align-items:center; justify-content:space-between; gap:.75rem; margin-top:.7rem; padding-top:.65rem; border-top:1px solid rgba(255,255,255,.09); }
.success-reward-copy span,.success-reward-copy small { display:block; }
.success-reward-copy span { color:var(--text-main); font-size:.72rem; font-weight:700; }
.success-reward-copy small { margin-top:.12rem; color:var(--text-muted); font-size:.62rem; }
.success-lights { display:flex; flex:0 0 auto; gap:.35rem; }
.success-lights i { width:18px; height:18px; border:1px solid rgba(0,242,254,.32); border-radius:50%; background:rgba(255,255,255,.05); box-shadow:inset 0 0 5px rgba(0,0,0,.4); transition:all .25s ease; }
.success-lights i.active { border-color:#00eaff; background:#00eaff; box-shadow:0 0 10px rgba(0,234,255,.85),0 0 18px rgba(127,0,255,.4); }

.mission-box { margin:0; padding:1.5rem; border-radius:16px; text-align:left; }
.mission-header { margin-bottom:1rem; }
.mission-header h2 { color:var(--text-main); }
.mission-credit-badge { display:inline-flex; align-items:center; margin-left:.35rem; padding:.18rem .55rem; border:1px solid rgba(0,230,118,.38); border-radius:999px; color:var(--success); background:rgba(0,230,118,.1); font-size:.68rem; font-weight:700; white-space:nowrap; box-shadow:0 0 14px rgba(0,230,118,.1); vertical-align:middle; }
.mission-credit-badge span { margin-left:.2rem; font-size:.78rem; }
.code-section { margin:0; }
.code-section-header { align-items:center; }
.code-section-header small { display:block; margin-top:.15rem; color:var(--text-muted); font-size:.68rem; }
.mission-list { display:flex; flex-direction:column; gap:0; margin:0; padding:0; list-style:none; }
.mission-item { padding:.7rem 0; border-bottom:1px solid rgba(255,255,255,.06); }
.mission-item:first-child { padding-top:0; }
.mission-item:last-child { padding-bottom:0; border-bottom:0; }
.mission-item span,.mission-item small { display:block; }
.mission-item span { color:var(--text-main); font-size:.72rem; font-weight:700; }
.mission-item small { margin-top:.12rem; color:var(--text-muted); font-size:.62rem; }
.mission-item a { color:var(--accent-blue); font-weight:700; text-decoration:none; }
.mission-proof a { color:var(--accent-pink); border-bottom:1px dashed currentColor; }
.mission-reward { color:var(--success); font-weight:700; }

.column-left,
.column-right { display:flex; flex-direction:column; gap:2rem; min-width:0; }
.column-left > *,
.column-right > * { margin:0; }

@media (max-width: 992px) {
  .column-left,
  .column-right { gap:1rem; }
}

.inline-guide-button:hover {
  border-color: rgba(0, 242, 254, 0.45);
  background: rgba(0, 242, 254, 0.07);
  transform: translateY(-1px);
}

.inline-guide-button > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.inline-guide-button strong,
.inline-guide-button small {
  display: block;
}

.inline-guide-button strong {
  font-size: 0.82rem;
}

.inline-guide-button small {
  margin-top: 0.12rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.har-status {
  min-height: 1.25rem;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  line-height: 1.5;
}

.har-status.loading { color: var(--accent-blue); }
.har-status.success { color: var(--success); }
.har-status.error { color: var(--danger); }

.guide-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.guide-buttons > a {
  min-width: 0;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.guide-buttons > a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.4);
  background: rgba(0, 242, 254, 0.07);
}

.guide-buttons > a > span:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.guide-buttons strong,
.guide-buttons small {
  display: block;
}

.guide-buttons strong {
  font-size: 0.86rem;
}

.guide-buttons small {
  overflow: hidden;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guide-buttons > a > i {
  color: var(--text-muted);
  font-size: 0.7rem;
}

.guide-icon {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 1.15rem;
}

.guide-icon.android { background: linear-gradient(135deg, #3ddc84, #00a86b); }
.guide-icon.apple { background: linear-gradient(135deg, #ef4444, #b91c1c); }

/* Form Controls */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 1.2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

textarea, input[type="text"], input[type="url"] {
  width: 100%;
  background: rgba(10, 12, 22, 0.6);
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  padding: 1rem 1rem 1rem 3rem;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

textarea:focus, input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.input-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Parsed Info Box */
.parsed-info-box {
  background: rgba(0, 242, 254, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 14px;
  padding: 1rem;
  margin-top: 1rem;
}

.hidden { display: none !important; }

.player-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.player-name {
  font-size: 1.1rem;
  font-weight: 700;
}

.player-meta {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.meta-tag {
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  color: var(--text-muted);
}

.status-verified {
  margin-left: auto;
  color: var(--success);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.tab-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--bg-card-border);
  color: var(--text-muted);
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #000;
  border-color: transparent;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(10, 12, 22, 0.4);
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.05);
}

.hidden-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-mobile-button {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem;
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 15px;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.08), rgba(127, 0, 255, 0.1));
  font-family: var(--font-main);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.upload-mobile-button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 242, 254, 0.55);
}

.upload-mobile-button > span:nth-child(2) {
  min-width: 0;
  flex: 1 1 auto;
}

.upload-mobile-button strong,
.upload-mobile-button small {
  display: block;
}

.upload-mobile-button strong {
  font-size: 0.92rem;
}

.upload-mobile-button small {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 0.7rem;
}

.upload-mobile-button > i {
  color: var(--accent-cyan);
  font-size: 0.8rem;
}

.moderation-status {
  width: 100%;
  margin: 0.7rem 0 0;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  color: var(--text-muted);
  background: rgba(10, 12, 22, 0.45);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

.moderation-status:empty { display: none; }

.moderation-status.loading { border-color:rgba(0,242,254,.28); color:var(--accent-cyan); background:rgba(0,242,254,.06); }
.moderation-status.accepted { border-color:rgba(74,222,128,.28); color:var(--success); background:rgba(74,222,128,.06); }
.moderation-status.warning { border-color:rgba(255,209,102,.28); color:#ffd166; background:rgba(255,209,102,.06); }
.moderation-status.rejected { border-color:rgba(248,113,113,.28); color:var(--danger); background:rgba(248,113,113,.06); }

.upload-mobile-button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.upload-button-icon {
  width: 46px;
  height: 46px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.2);
  font-size: 1.15rem;
}

.drop-icon {
  font-size: 2.5rem;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
}

.drop-text {
  font-size: 1rem;
  color: var(--text-main);
}

.drop-text span {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.drop-subtext {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Preset Grid */
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
}

.preset-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 1080 / 1701;
}

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

.preset-item span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  font-size: 0.75rem;
  padding: 0.3rem;
  text-align: center;
}

.preset-item:hover, .preset-item.selected {
  border-color: var(--accent-cyan);
  transform: scale(1.03);
}

/* Button Action */
.btn-action {
  width: 100%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #fff;
  border: none;
  border-radius: 16px;
  padding: 1.2rem;
  font-family: var(--font-main);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.3);
  transition: all 0.3s ease;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(0, 242, 254, 0.4);
}

.btn-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Poster Preview Frame (1080 x 1701 Standard) */
.poster-preview-container {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

.change-image-button {
  flex: 0 0 auto;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(0, 242, 254, 0.42);
  border-radius: 10px;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  font-family: var(--font-main);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.change-image-button:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.14);
}

.aov-poster-frame {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1080 / 1701;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  border: 2px solid rgba(0, 242, 254, 0.5);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.25);
}

#posterCanvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

#posterCanvas.dragging {
  cursor: grabbing;
}

.title-controls{margin-top:14px;padding:14px;border:1px solid rgba(0,242,254,.22);border-radius:16px;background:rgba(8,12,28,.55)}
.title-controls>label,.title-adjustments label{display:grid;gap:8px;color:#eef2ff;font-size:.9rem}
.title-controls select{width:100%;padding:12px;border:1px solid rgba(114,89,255,.4);border-radius:12px;background:#0b1022;color:#fff;font:inherit}
.title-adjustments{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}
.title-adjustments label strong{color:#10dbea}
.title-adjustments input{width:100%;accent-color:#14d7e6}
@media(max-width:600px){.title-adjustments{grid-template-columns:1fr}}
.title-admin-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:14px;margin-top:18px}
.title-admin-item{display:grid;gap:10px;padding:12px;border:1px solid rgba(125,109,255,.25);border-radius:14px;background:rgba(7,11,25,.55)}
.title-admin-item img{width:100%;height:90px;object-fit:contain;background:linear-gradient(45deg,#151a2b 25%,#0d1120 25%,#0d1120 50%,#151a2b 50%,#151a2b 75%,#0d1120 75%);background-size:16px 16px;border-radius:10px}
.title-admin-item strong{font-size:.88rem}.title-admin-actions{display:flex;gap:8px}.title-admin-actions button{flex:1;border:1px solid rgba(0,220,235,.3);border-radius:9px;padding:8px;background:#10162b;color:#fff;cursor:pointer}.title-admin-actions .danger{border-color:#ff466755;color:#ff8da1}
.title-list-toggle{margin-top:10px;width:auto;min-width:160px}

.aov-poster-frame .no-img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.poster-upload-trigger {
  inset: 50% auto auto 50% !important;
  width: auto;
  min-width: 170px;
  padding: 0.9rem 1.1rem !important;
  border: 1px solid rgba(0, 242, 254, 0.55);
  border-radius: 16px;
  color: var(--text-main);
  background: rgba(10, 12, 22, 0.9);
  font-family: var(--font-main);
  text-align: center;
  cursor: pointer;
  z-index: 4;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.poster-upload-trigger:hover,
.poster-upload-trigger:focus-visible {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  box-shadow: 0 0 24px rgba(0, 242, 254, 0.24);
}

.poster-upload-trigger:disabled {
  cursor: wait;
  opacity: 0.75;
}

.poster-upload-trigger strong,
.poster-upload-trigger small {
  display: block;
}

.cooldown-notice { display:none !important; }
.cooldown-notice.waiting { color:var(--text-muted); background:rgba(255,255,255,.06); }
.cooldown-notice.ready { color:#4ade80; background:rgba(74,222,128,.1); box-shadow:inset 0 0 0 1px rgba(74,222,128,.22); }
.cooldown-notice.blocked { color:#fbbf24; background:rgba(251,191,36,.1); box-shadow:inset 0 0 0 1px rgba(251,191,36,.22); }

.poster-upload-trigger strong {
  margin-top: 0.7rem;
  font-size: 0.9rem;
}

.poster-upload-trigger small {
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.68rem;
}

.poster-upload-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  box-shadow: 0 10px 24px rgba(0, 242, 254, 0.25);
  font-size: 1.35rem;
}

.poster-moderation-status {
  text-align: center;
}

.watermark-preview {
  display: none !important;
  position: absolute;
  z-index: 3;
  top: auto;
  right: 0;
  bottom: 0;
  left: 0;
  transform: none;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 0.48rem 0.35rem;
  border: 0;
  border-top: 2px solid #00eaff;
  border-radius: 0;
  color: #fff;
  background: rgba(7, 17, 31, 0.96);
  font-size: clamp(0.78rem, 1.72vw, 1rem);
  white-space: nowrap;
  letter-spacing: 0.01em;
  box-shadow: none;
  pointer-events: none;
}

.watermark-preview strong {
  font-weight: 700;
  line-height: 1;
  text-shadow: none;
}

.watermark-preview b {
  color: #00eaff;
  font-weight: 900;
}


.crop-controls {
  margin-top: 0.5rem;
  padding: 1rem;
  display: flex;
  align-items: center;
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  background: rgba(10, 12, 22, 0.45);
}

.crop-controls label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.crop-controls label strong {
  color: var(--accent-cyan);
}

.crop-controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent-cyan);
  cursor: pointer;
}

.crop-actions {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
}

.crop-actions button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 10px;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  font: 600 0.85rem var(--font-main);
  cursor: pointer;
}

.crop-actions span {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: right;
}

.watermark-controls {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(0, 132, 255, 0.3);
  border-radius: 14px;
  background: rgba(0, 104, 255, 0.06);
}

.watermark-trigger {
  width: 100%;
  min-height: 66px;
  margin-top: 1rem;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(127, 0, 255, 0.38);
  border-radius: 16px;
  color: var(--text-main);
  background: linear-gradient(135deg, rgba(127, 0, 255, 0.13), rgba(0, 242, 254, 0.07));
  font-family: var(--font-main);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.watermark-trigger:hover {
  border-color: rgba(0, 242, 254, 0.55);
  background: linear-gradient(135deg, rgba(127, 0, 255, 0.2), rgba(0, 242, 254, 0.11));
  transform: translateY(-1px);
}

.watermark-trigger-icon,
.watermark-trigger-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.watermark-trigger-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  color: #fff;
  box-shadow: 0 7px 18px rgba(127, 0, 255, 0.28);
}

.watermark-trigger-copy {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  gap: 0.18rem;
}

.watermark-trigger-copy strong {
  font-size: 0.9rem;
}

.watermark-trigger-copy small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watermark-trigger-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.09);
  color: var(--accent-cyan);
}

.submit-after-editor {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

.modal-open {
  overflow: hidden;
}

.code-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.code-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(3, 5, 12, 0.78);
  backdrop-filter: blur(8px);
  cursor: default;
}

.code-modal-panel {
  position: relative;
  z-index: 1;
  width: min(420px, 95%);
  padding: 2.2rem 1.8rem 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(0, 242, 254, 0.4);
  border-radius: 24px;
  color: var(--text-main);
  background: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.12), transparent 50%), #121629;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  text-align: center;
  transition: all 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 82, 82, 0.15);
  color: var(--danger);
}

.modal-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.2rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: var(--accent-cyan);
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(79, 172, 254, 0.2));
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 8px 20px rgba(0, 242, 254, 0.15);
  font-size: 1.5rem;
}

.code-modal-panel h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #fff, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.code-modal-panel > p {
  margin: 0 0 1.6rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.success-modal-panel {
  overflow: hidden;
  border-color: rgba(0, 230, 118, 0.3);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 230, 118, 0.17), transparent 42%),
    #121629;
}

.success-check {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #07130d;
  background: linear-gradient(135deg, #69ffb1, #00e676);
  box-shadow: 0 0 0 10px rgba(0, 230, 118, 0.08), 0 14px 36px rgba(0, 230, 118, 0.3);
  font-size: 1.8rem;
}

.success-eyebrow {
  color: var(--success);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.success-modal-panel h2 {
  margin-top: 0.35rem;
  font-size: 1.35rem;
}

.success-modal-panel > p {
  margin: 0.55rem auto 1.25rem;
  max-width: 330px;
  line-height: 1.6;
}

.success-modal-panel > p strong {
  color: var(--accent-cyan);
}

.success-done {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #06130c;
  background: linear-gradient(135deg, #69ffb1, #00e676);
  font: 700 0.95rem var(--font-main);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 230, 118, 0.2);
}

.cooldown-modal-panel {
  overflow:hidden;
  border-color:rgba(251,191,36,.35);
  background:radial-gradient(circle at 50% 0%,rgba(251,191,36,.16),transparent 44%),#121629;
}
.cooldown-modal-icon { width:70px;height:70px;margin:0 auto 1rem;display:grid;place-items:center;border:1px solid rgba(251,191,36,.3);border-radius:22px;background:linear-gradient(135deg,rgba(251,191,36,.25),rgba(249,115,22,.2));box-shadow:0 12px 30px rgba(249,115,22,.18);font-size:1.8rem; }
.cooldown-modal-eyebrow { color:#fbbf24;font-size:.68rem;font-weight:700;letter-spacing:.14em; }
.cooldown-modal-panel h2 { margin-top:.4rem;font-size:1.35rem; }
.cooldown-modal-panel > p { margin:.55rem auto 1rem;max-width:340px;line-height:1.6; }
.cooldown-modal-panel > p strong { color:#fbbf24; }
.cooldown-modal-tip { margin-bottom:1rem;padding:.7rem .8rem;border:1px solid rgba(0,242,254,.15);border-radius:11px;color:var(--text-muted);background:rgba(0,242,254,.05);font-size:.76rem; }
.cooldown-tasks-button { width:100%;min-height:48px;border:0;border-radius:12px;color:#06111b;background:linear-gradient(135deg,var(--accent-cyan),var(--accent-blue));font:700 .92rem var(--font-main);cursor:pointer;box-shadow:0 10px 24px rgba(0,242,254,.2); }

.rejected-modal-panel {
  border-color: rgba(255, 82, 112, 0.34);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 82, 112, 0.18), transparent 43%),
    #121629;
}

.rejected-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, #ff5270, #9d174d);
  box-shadow: 0 12px 32px rgba(255, 82, 112, 0.25);
  font-size: 1.6rem;
}

.rejected-eyebrow {
  color: #ff7690;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.rejected-modal-panel h2 {
  margin-top: 0.4rem;
  font-size: 1.35rem;
}

.rejected-done {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #ff5270, #b4235a);
  font: 700 0.95rem var(--font-main);
  cursor: pointer;
}

.watermark-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.watermark-title > i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.watermark-title strong,
.watermark-title span {
  display: block;
}

.watermark-title span {
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.code-row {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.code-input-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.code-input-wrapper input {
  width: 100%;
  padding: 0.8rem 3.4rem 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  background: rgba(10, 12, 22, 0.7);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.code-input-wrapper input::placeholder {
  text-transform: none;
}

.code-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.25);
  background: rgba(10, 12, 22, 0.9);
}

.btn-paste-inline-modal {
  position: absolute;
  right: 0.5rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(127, 0, 255, 0.5);
  border-radius: 8px;
  background: rgba(127, 0, 255, 0.25);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-paste-inline-modal:hover {
  background: rgba(127, 0, 255, 0.45);
  border-color: var(--accent-cyan);
}

.btn-check-code {
  padding: 0 1.2rem;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
  font: 700 0.88rem var(--font-main);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
  white-space: nowrap;
}

.btn-check-code:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 172, 254, 0.35);
}

.btn-check-code:active {
  transform: translateY(0);
}

.codes-title button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 11px;
  padding: 0.7rem 0.9rem;
  color: #fff;
  background: #087cff;
  font: 700 0.8rem var(--font-main);
  cursor: pointer;
}

.code-status {
  min-height: 1.2rem;
  margin: 0.6rem 0;
  font-size: 0.82rem;
  font-weight: 500;
}

.code-status.valid { color: var(--success); }
.code-status.invalid { color: var(--danger); }

.zalo-inline-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.8rem;
  border: 1px solid rgba(0, 242, 254, 0.2);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.05), rgba(79, 172, 254, 0.05));
  color: var(--accent-cyan);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.25s ease;
}

.zalo-inline-modal:hover {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.15));
  border-color: var(--accent-cyan);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.15);
}

.admin-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 1rem;
}

.admin-shell {
  width: min(720px, 100%);
}

.admin-login-card {
  width: min(520px, 100%);
  margin: 8vh auto 0;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
  color: var(--text-main);
  background: rgba(8, 21, 45, 0.72);
  border: 1px solid rgba(117, 92, 255, 0.35);
  border-radius: 14px;
}

.admin-toolbar button {
  padding: 0.55rem 0.85rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}

.admin-toolbar button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.admin-card {
  margin: 0;
}

.admin-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-heading > span {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  color: #070a12;
  background: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-heading h1,
.admin-heading h2 { font-size: 1.35rem; }
.admin-heading p { margin-top: 0.2rem; color: var(--text-muted); font-size: 0.8rem; }

.admin-toggle-button { margin-left:auto; flex:0 0 auto; padding:.6rem .75rem; border:1px solid rgba(74,222,128,.5); border-radius:10px; color:#4ade80; background:rgba(74,222,128,.08); font:700 .72rem var(--font-main); cursor:pointer; }
.admin-toggle-button.off { border-color:rgba(248,113,113,.5); color:#f87171; background:rgba(248,113,113,.08); }
.stat-tile.online strong { color:#4ade80; }
.referral-credit-grid { grid-template-columns:minmax(0,2fr) minmax(120px,1fr); }

.admin-card label {
  display: block;
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-card input {
  width: 100%;
  margin-top: 0.45rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 11px;
  color: var(--text-main);
  background: rgba(10, 12, 22, 0.65);
  font: 400 0.95rem var(--font-main);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.admin-status { min-height: 1.5rem; margin-top: 1rem; font-size: 0.85rem; }
.admin-status.success { color: var(--success); }
.admin-status.error { color: var(--danger); }

.generated-codes {
  margin-top: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 12px;
  background: #060810;
}

.codes-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.generated-codes pre {
  overflow-x: auto;
  color: var(--accent-cyan);
  font: 700 0.95rem var(--font-mono);
  line-height: 1.8;
}

.settings-admin-card {
  margin-top: 1rem;
}

.stats-admin-card {
  margin-bottom: 1rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-tile {
  padding: 1rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 13px;
  background: rgba(5, 8, 18, 0.58);
}

.stat-tile span,
.stat-tile strong {
  display: block;
}

.stat-tile span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.stat-tile strong {
  margin-top: 0.25rem;
  color: #fff;
  font-size: 1.35rem;
}

.stat-tile.accepted strong,
.stat-tile.success strong { color: var(--success); }
.stat-tile.rejected strong,
.stat-tile.failed strong { color: #ff7690; }

.stats-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
  color: var(--text-muted);
  font-size: 0.74rem;
}

.aov-poster-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #121629;
}

.no-img-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.no-img-placeholder i {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.aov-poster-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
}

.player-rank-badge {
  align-self: flex-start;
  background: linear-gradient(135deg, #ff9100, #ff3d00);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(255, 61, 0, 0.4);
}

.player-poster-info h3 {
  font-size: 1.2rem;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.player-poster-info p {
  font-size: 0.8rem;
  color: var(--accent-cyan);
}

/* Console Log Terminal */
.console-card {
  margin-bottom: 0;
}

.console-card .card-header {
  justify-content: space-between;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-clear:hover { color: var(--danger); }

.terminal-body {
  background: #060810;
  border-radius: 12px;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.log-entry {
  margin-bottom: 0.5rem;
  line-height: 1.4;
  word-break: break-all;
}

.log-time { color: var(--text-muted); margin-right: 0.5rem; }
.log-entry.info .log-msg { color: var(--accent-blue); }
.log-entry.success .log-msg { color: var(--success); }
.log-entry.warn .log-msg { color: var(--warning); }
.log-entry.error .log-msg { color: var(--danger); }

/* Footer */
.app-footer {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--bg-card-border);
}

.app-footer a {
  color: var(--accent-cyan);
  font-weight: 700;
  text-decoration: none;
}

.app-footer a:hover {
  text-decoration: underline;
}

.seo-guide {
  margin-top: 1.5rem;
  line-height: 1.75;
}

.seo-guide .info-header h2 {
  font-size: 1.15rem;
}

.seo-guide > p,
.seo-guide ol {
  color: var(--text-muted);
}

.seo-guide ol {
  margin: 1rem 0 1rem 1.25rem;
  padding-left: 1rem;
}

.seo-guide li {
  margin-bottom: 0.45rem;
}

.seo-guide strong,
.seo-guide .seo-note i {
  color: var(--accent-cyan);
}

.seo-guide .seo-note {
  margin-bottom: 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--bg-card-border);
}

@media (max-width: 768px) {
  .app-container {
    padding: 1rem 0.75rem;
  }

  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    margin-bottom: 1.25rem;
  }

  .brand {
    align-items: center;
    gap: 0.75rem;
  }

  .logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 1.35rem;
  }

  .logo-icon img {
    border-radius: 10px;
  }

  .brand-text h1 {
    font-size: 1.08rem;
    line-height: 1.35;
    letter-spacing: -0.2px;
  }

  .brand-text p {
    font-size: 0.8rem;
    line-height: 1.35;
  }

  .header-badge {
    display: none;
  }

  .zalo-button {
    width: 100%;
    min-height: 42px;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.82rem;
  }

  .zalo-button i { font-size: 1rem; }

  .info-card,
  .glass-card {
    padding: 1rem;
    border-radius: 15px;
    margin-bottom: 1rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .main-grid {
    gap: 1rem;
  }

  .card-header {
    margin-bottom: 1rem;
  }

  .card-header h2 {
    font-size: 1.05rem;
  }

  .guide-buttons {
    grid-template-columns: 1fr;
  }

  textarea,
  input[type="text"],
  input[type="url"] {
    font-size: 16px;
  }

  .player-profile {
    flex-wrap: wrap;
  }

  .status-verified {
    width: 100%;
    margin-left: 0;
  }

  .tabs-nav {
    gap: 0.5rem;
  }

  .tab-btn {
    min-height: 46px;
    padding: 0.65rem 0.45rem;
    font-size: 0.82rem;
  }

  .dropzone {
    padding: 1.5rem 0.75rem;
  }

  .btn-action {
    min-height: 54px;
    padding: 0.9rem;
    border-radius: 14px;
    font-size: 0.95rem;
  }

  .column-right .glass-card {
    margin-bottom: 0;
  }

  .poster-preview-container {
    padding: 0.25rem 0;
  }

  .aov-poster-frame {
    max-width: min(72vw, 310px);
    border-radius: 14px;
  }

  .crop-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .crop-actions button {
    width: 100%;
  }

  .crop-actions span {
    text-align: center;
  }

  .code-row {
    flex-direction: column;
  }

  .code-row > button {
    min-height: 44px;
  }

  .watermark-trigger { min-height: 62px; }

  .submit-after-editor {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }

  .code-modal-panel {
    padding: 1.25rem 1rem;
    border-radius: 17px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }

  .seo-guide {
    margin-top: 1rem;
  }
}

@media (max-width: 380px) {
  .brand-text h1 {
    font-size: 1.1rem;
  }

  .meta-tag {
    font-size: 0.68rem;
  }

  .aov-poster-frame {
    max-width: 78vw;
  }
}

/* Paste Button (inline inside input) */
.paste-wrapper {
  position: relative;
}

.btn-paste-inline {
  position: absolute;
  right: 0.6rem;
  bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid rgba(127, 0, 255, 0.5);
  border-radius: 0.5rem;
  background: rgba(127, 0, 255, 0.2);
  backdrop-filter: blur(8px);
  color: var(--accent-cyan);
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.btn-paste-inline:hover {
  background: rgba(127, 0, 255, 0.4);
  border-color: var(--accent-cyan);
}

.btn-paste-inline:active {
  transform: scale(0.94);
}

/* Referral History Admin */
.referral-history-admin-card {
  margin-top: 1rem;
}

.referral-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.referral-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--bg-card-border);
  border-radius: 14px;
  background: rgba(10, 14, 28, 0.6);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.referral-history-item:hover {
  border-color: rgba(0, 242, 254, 0.35);
  background: rgba(10, 14, 28, 0.85);
}

.ref-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.ref-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ref-code-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(114, 89, 255, 0.2);
  border: 1px solid rgba(114, 89, 255, 0.45);
  color: #c4b5fd;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.ref-nickname {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
}

.ref-action-text {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.ref-item-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.ref-time {
  color: var(--text-muted);
}

.ref-owner b {
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.ref-item-reward {
  flex-shrink: 0;
}

.ref-credit-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #4ade80;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 600px) {
  .referral-history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
  }
  .ref-item-reward {
    align-self: flex-start;
  }
}
