@font-face {
  font-family: 'Be Vietnam Pro';
  src: url('https://like.vipvui.vn/assets/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('https://like.vipvui.vn/assets/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%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.bg-glow-1 {
  width: 500px;
  height: 500px;
  background: var(--accent-purple);
  top: -100px;
  left: -100px;
}

.bg-glow-2 {
  width: 600px;
  height: 600px;
  background: var(--accent-cyan);
  bottom: -200px;
  right: -100px;
}

.bg-glow-3 {
  width: 400px;
  height: 400px;
  background: var(--accent-pink);
  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 10px var(--success);
  animation: pulse 1.5s infinite;
}

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

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

.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, #64748b, #111827); }

/* 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 {
  min-height: 1.25rem;
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.moderation-status.loading { color: var(--accent-cyan); }
.moderation-status.accepted { color: var(--success); }
.moderation-status.warning { color: #ffd166; }
.moderation-status.rejected { color: var(--danger); }

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

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

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

.watermark-preview {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 2.5%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.28rem 0.42rem;
  border: 1px solid rgba(79, 172, 254, 0.55);
  border-radius: 999px;
  color: #fff;
  background: rgba(5, 8, 20, 0.78);
  font-size: clamp(0.66rem, 1.55vw, 0.82rem);
  white-space: nowrap;
  letter-spacing: 0.04em;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.watermark-preview strong {
  font-weight: 700;
  text-shadow: 0 1px 3px #000;
}

.wm-icon {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  padding: 1px;
  background: linear-gradient(135deg, #7f00ff, #4facfe);
}

.wm-icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.crop-controls {
  margin-top: 0.5rem;
  padding: 1rem;
  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 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
}

.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(430px, 100%);
  padding: 1.5rem;
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: 20px;
  color: var(--text-main);
  background: #121629;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.8rem;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.1);
  font-size: 1.3rem;
}

.code-modal-panel h2 {
  font-size: 1.2rem;
}

.code-modal-panel > p {
  margin: 0.4rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.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);
}

.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.55rem;
}

.code-row input {
  min-width: 0;
  padding-left: 1rem;
  text-transform: uppercase;
}

.code-row button,
.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.55rem 0;
  font-size: 0.78rem;
}

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

.zalo-inline {
  width: 100%;
  margin-top: 0.2rem;
  border-radius: 11px;
}

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