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

:root {
  --bg-gradient-start: #0a0a0a;
  --bg-gradient-end: #000000;
  --card-bg: rgba(0, 0, 0, 0.6);
  --card-border: rgba(102, 255, 102, 0.3);
  --text-primary: #66ff66;
  --text-secondary: rgba(102, 255, 102, 0.7);
  --input-bg: rgba(0, 0, 0, 0.7);
  --input-border: rgba(102, 255, 102, 0.4);
  --input-focus: rgba(102, 255, 102, 0.6);
  --primary: #66ff66;
  --primary-hover: #7fff7f;
  --success: #66ff66;
  --danger: #ff0000;
  --warning: #ffaa00;
  --shadow: 0 8px 32px rgba(102, 255, 102, 0.2);
  --shadow-lg: 0 12px 48px rgba(102, 255, 102, 0.3);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Canvas cho hiệu ứng code bay bay */
#code-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* Logo Header */
.logo-header {
  text-align: center;
  margin-bottom: 30px;
  animation: fadeInDown 0.6s ease-out;
  position: relative;
}

.logo-text {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 3px;
  margin: 0;
  display: inline-block;
  position: relative;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  text-transform: uppercase;
  font-stretch: condensed;
  line-height: 1.2;
  background: linear-gradient(135deg, #00d4ff 0%, #00ff88 25%, #00d4ff 50%, #0088ff 75%, #00d4ff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.8)) 
          drop-shadow(0 0 16px rgba(0, 255, 136, 0.6)) 
          drop-shadow(0 0 24px rgba(0, 136, 255, 0.4));
}

.logo-text::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  box-shadow: 0 0 10px #00d4ff;
  animation: shimmer 3s infinite;
}

/* Language Selector */
.language-selector {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.lang-btn {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(102, 255, 102, 0.4);
  border-radius: 8px;
  padding: 8px 16px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Courier New', monospace;
  min-width: 50px;
}

.lang-btn:hover {
  border-color: #66ff66;
  color: #66ff66;
  background: rgba(102, 255, 102, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 255, 102, 0.3);
}

.lang-btn.active {
  background: rgba(102, 255, 102, 0.2);
  border-color: #66ff66;
  color: #66ff66;
  box-shadow: 0 0 10px rgba(102, 255, 102, 0.4);
}

/* Main Content */
.main-content {
  width: 100%;
  max-width: 500px;
  animation: fadeInUp 0.6s ease-out;
}

.check-card {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(102, 255, 102, 0.4);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 0 20px rgba(102, 255, 102, 0.3), var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.check-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #66ff66, transparent);
  box-shadow: 0 0 10px #66ff66;
  animation: shimmer 3s infinite;
}

.card-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00d4ff;
  text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 30px #00d4ff;
  margin: 0 0 30px 0;
  text-align: center;
  animation: fadeInDown 0.6s ease-out;
  font-family: 'Courier New', monospace;
}

/* Form */
.check-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-label {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 12px;
  padding: 0 15px;
  transition: all 0.3s ease;
}

.input-group:focus-within {
  border-color: #66ff66;
  box-shadow: 0 0 0 3px rgba(102, 255, 102, 0.2), 0 0 10px rgba(102, 255, 102, 0.3);
  background: rgba(0, 0, 0, 0.8);
}

.input-icon {
  color: var(--text-secondary);
  font-size: 18px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 14px;
  padding: 16px 0;
  font-weight: 500;
}

.form-input::placeholder {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 12px;
}

/* Submit Button */
.submit-btn {
  background: rgba(102, 255, 102, 0.1);
  border: 2px solid #66ff66;
  border-radius: 12px;
  padding: 18px 24px;
  color: #66ff66;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(102, 255, 102, 0.4), inset 0 0 15px rgba(102, 255, 102, 0.1);
  position: relative;
  overflow: hidden;
  margin-top: 10px;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px #66ff66;
}

.submit-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 255, 102, 0.3), transparent);
  transition: left 0.5s ease;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(102, 255, 102, 0.6), inset 0 0 20px rgba(102, 255, 102, 0.2);
  background: rgba(102, 255, 102, 0.2);
}

.submit-btn:active:not(:disabled) {
  transform: translateY(0);
}

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

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--card-border);
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 20px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid var(--input-border);
  background: var(--input-bg);
}

.social-icon:hover {
  transform: translateY(-3px) scale(1.1);
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.telegram-icon:hover {
  background: #0088cc;
  border-color: #0088cc;
}

.zalo-icon:hover {
  background: #0068ff;
  border-color: #0068ff;
}

/* Result Box */
.result-box {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-size: 14px;
  min-height: 50px;
  display: flex;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.result-box:empty {
  display: none;
}

.result-box.success {
  color: var(--success);
  background: rgba(0, 255, 136, 0.1);
  border-color: var(--success);
}

.result-box.error {
  color: var(--danger);
  background: rgba(255, 68, 68, 0.1);
  border-color: var(--danger);
}

.result-box.warning {
  color: var(--warning);
  background: rgba(255, 170, 0, 0.1);
  border-color: var(--warning);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal.active {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
}

/* Khi cảnh báo hiển thị, overlay thành màu đỏ đậm huyền bí */
.warning-modal .modal-overlay {
  background: radial-gradient(circle at center, rgba(140, 0, 0, 0.45) 0%, rgba(15, 0, 0, 0.88) 100%) !important;
  backdrop-filter: blur(8px);
}

/* Khi cảnh báo: các nút và viền thành màu đỏ, nền giữ bình thường */
body.warning-active .submit-btn {
  border-color: #ff0000 !important;
  color: #ff0000 !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4), inset 0 0 15px rgba(255, 0, 0, 0.1) !important;
  text-shadow: 0 0 10px #ff0000 !important;
}

body.warning-active .submit-btn::before {
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.3), transparent) !important;
}

body.warning-active .submit-btn:hover:not(:disabled) {
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6), inset 0 0 20px rgba(255, 0, 0, 0.2) !important;
  background: rgba(255, 0, 0, 0.2) !important;
}

body.warning-active .activate-btn {
  border-color: #ff0000 !important;
  color: #ff0000 !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4), inset 0 0 15px rgba(255, 0, 0, 0.1) !important;
  text-shadow: 0 0 10px #ff0000 !important;
}

body.warning-active .activate-btn:hover:not(:disabled) {
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6), inset 0 0 20px rgba(255, 0, 0, 0.2) !important;
  background: rgba(255, 0, 0, 0.2) !important;
}

body.warning-active .result-close-btn {
  border-color: #ff0000 !important;
  color: #ff0000 !important;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.4), inset 0 0 15px rgba(255, 0, 0, 0.1) !important;
  text-shadow: 0 0 10px #ff0000 !important;
}

body.warning-active .result-close-btn:hover {
  box-shadow: 0 0 25px rgba(255, 0, 0, 0.6), inset 0 0 20px rgba(255, 0, 0, 0.2) !important;
  background: rgba(255, 0, 0, 0.2) !important;
}

/* Viền input và card thành đỏ khi cảnh báo */
body.warning-active .input-group {
  border-color: #ff0000 !important;
}

body.warning-active .input-group:focus-within {
  border-color: #ff0000 !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, 0.2), 0 0 10px rgba(255, 0, 0, 0.3) !important;
}

body.warning-active .check-card {
  border-color: rgba(255, 0, 0, 0.4) !important;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3), var(--shadow-lg) !important;
}

body.warning-active .check-card::before {
  background: linear-gradient(90deg, transparent, #ff0000, transparent) !important;
  box-shadow: 0 0 10px #ff0000 !important;
}

.modal-content {
  position: relative;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(102, 255, 102, 0.4);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 0 30px rgba(102, 255, 102, 0.4), var(--shadow-lg);
  z-index: 1001;
  animation: slideUp 0.3s ease;
}

/* Viền modal màu đỏ khi cảnh báo */
.warning-modal .modal-content,
.warning-modal .result-modal-content {
  border-color: #ff0000 !important;
  box-shadow: 0 0 30px rgba(255, 0, 0, 0.4), var(--shadow-lg) !important;
}

/* Viền modal màu xanh khi hoàn thành */
.success-modal .modal-content,
.success-modal .result-modal-content {
  border-color: #66ff66 !important;
  box-shadow: 0 0 30px rgba(102, 255, 102, 0.4), var(--shadow-lg) !important;
}

/* ========================================================
   GIAO DIỆN CẢNH BÁO NGUY HIỂM - ROBOT DANGER WARNING HUD
   ======================================================== */
.danger-robot-box {
  display: none;
}

.warning-modal .danger-robot-box {
  display: flex !important;
}

.warning-modal #standard-result-content {
  display: none !important;
}

.main-danger {
  position: relative;
  background: #1a0000;
  border: 2px solid #ff0000;
  border-radius: 12px;
  padding: 28px 36px;
  box-shadow: 0 0 20px #ff0000, 0 0 40px #ff0000;
  animation: dangerPulse 1.5s infinite alternate;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  max-width: 780px;
  width: 92%;
  margin: auto;
  z-index: 1002;
  box-sizing: border-box;
}

/* Dải sọc cảnh báo nguy hiểm trên và dưới hộp cảnh báo */
.main-danger::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    #ff0000 0,
    #ff0000 12px,
    #300000 12px,
    #300000 24px
  );
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  box-shadow: 0 0 8px #ff0000;
}

.main-danger::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    #ff0000 0,
    #ff0000 12px,
    #300000 12px,
    #300000 24px
  );
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  box-shadow: 0 0 8px #ff0000;
}

@keyframes dangerPulse {
  0% {
    box-shadow: 0 0 20px #ff0000, 0 0 40px rgba(255, 0, 0, 0.4);
    border-color: #ff0000;
  }
  100% {
    box-shadow: 0 0 35px #ff2222, 0 0 65px rgba(255, 0, 0, 0.7);
    border-color: #ff3333;
  }
}

/* Robot Visual */
.danger-robot-visual {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.danger-robot-svg {
  width: 165px;
  height: 175px;
  filter: drop-shadow(0 0 16px rgba(255, 0, 0, 0.85));
  animation: robotHover 3s ease-in-out infinite;
}

@keyframes robotHover {
  0%, 100% {
    transform: translateY(0);
    filter: drop-shadow(0 0 14px rgba(255, 0, 0, 0.85));
  }
  50% {
    transform: translateY(-6px);
    filter: drop-shadow(0 0 24px rgba(255, 0, 0, 1));
  }
}

/* Nội dung cảnh báo bên phải */
.danger-robot-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.main-danger h1,
.danger-main-title {
  color: #ff0000;
  font-size: 32px;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
  margin: 0 0 14px 0;
  letter-spacing: 1px;
  line-height: 1.2;
}

.main-danger .subtitle,
.danger-subtitle {
  color: #ff4d4d;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
}

.main-danger ul,
.danger-bullet-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.main-danger li,
.danger-bullet-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #ffb3b3;
  font-size: 15px;
  line-height: 1.4;
}

.main-danger li i,
.danger-bullet-list li i {
  color: #ff2222;
  font-size: 17px;
  flex-shrink: 0;
  text-shadow: 0 0 8px #ff0000;
}

/* Nút TRÁNH XA TRANG NÀY! */
.danger-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #250000;
  border: 2px solid #ff0000;
  border-radius: 10px;
  padding: 13px 26px;
  color: #ff0000;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255, 0, 0, 0.45), inset 0 0 12px rgba(255, 0, 0, 0.25);
  text-shadow: 0 0 10px #ff0000;
  transition: all 0.25s ease;
  font-family: inherit;
  margin-top: 4px;
}

.danger-action-btn:hover {
  background: #3e0000;
  box-shadow: 0 0 28px rgba(255, 0, 0, 0.8), inset 0 0 16px rgba(255, 0, 0, 0.4);
  color: #ffffff;
  text-shadow: 0 0 14px #ff0000, 0 0 25px #ff0000;
  transform: translateY(-2px);
}

.danger-action-btn:active {
  transform: translateY(0);
}

.danger-action-btn i {
  font-size: 19px;
  color: #ff2222;
}

@media (max-width: 680px) {
  .main-danger {
    flex-direction: column;
    padding: 16px 14px;
    gap: 10px;
    text-align: center;
    max-height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 96%;
    max-width: 440px;
    margin: auto;
  }
  .danger-robot-visual {
    margin-bottom: -4px;
  }
  .danger-robot-svg {
    width: 82px;
    height: 88px;
  }
  .danger-robot-content {
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .main-danger h1,
  .danger-main-title {
    font-size: 18px;
    letter-spacing: 0.5px;
    margin: 0 0 3px 0;
  }
  .main-danger .subtitle,
  .danger-subtitle {
    font-size: 12px;
    line-height: 1.35;
    margin-bottom: 8px;
  }
  .danger-bullet-list {
    align-items: flex-start;
    gap: 5px;
    margin: 0 0 10px 0;
  }
  .danger-bullet-list li {
    font-size: 12px;
    line-height: 1.35;
    gap: 8px;
  }
  .danger-bullet-list li i {
    font-size: 13px;
  }
  .danger-actions-row {
    flex-direction: column;
    gap: 7px;
    margin-top: 3px;
  }
  .danger-action-btn {
    width: 100%;
    padding: 9px 14px;
    font-size: 13px;
  }
}

@media (max-height: 700px) and (max-width: 680px) {
  .main-danger {
    padding: 12px 10px;
    gap: 6px;
  }
  .danger-robot-svg {
    width: 65px;
    height: 70px;
  }
  .main-danger h1,
  .danger-main-title {
    font-size: 16px;
  }
  .main-danger .subtitle,
  .danger-subtitle {
    font-size: 11px;
    margin-bottom: 5px;
  }
  .danger-bullet-list {
    gap: 4px;
    margin-bottom: 8px;
  }
  .danger-bullet-list li {
    font-size: 11px;
  }
  .trusted-site-btn {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .danger-action-btn {
    padding: 7px 12px;
    font-size: 12px;
  }
}


.modal-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
  position: relative;
}

.modal-title-main {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #00d4ff;
  text-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 30px #00d4ff;
  margin: 0 0 10px 0;
  text-align: center;
  font-family: 'Courier New', monospace;
}

.modal-title-sub {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
}

.modal-header .modal-close {
  position: absolute;
  top: 0;
  right: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Modal Result Box */
.modal-result {
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-size: 13px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.modal-result.loading::after {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--text-secondary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

.modal-result:empty {
  display: none;
}

.modal-result.error {
  color: var(--danger);
  background: rgba(255, 68, 68, 0.15);
  border-color: var(--danger);
}

.modal-result.success {
  color: var(--success);
  background: rgba(0, 255, 136, 0.15);
  border-color: var(--success);
}

.modal-result.warning {
  color: var(--warning);
  background: rgba(255, 170, 0, 0.15);
  border-color: var(--warning);
}

.activate-btn {
  background: rgba(102, 255, 102, 0.1);
  border: 2px solid #66ff66;
  border-radius: 12px;
  padding: 16px 24px;
  color: #66ff66;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(102, 255, 102, 0.4), inset 0 0 15px rgba(102, 255, 102, 0.1);
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px #66ff66;
}

.activate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(102, 255, 102, 0.6), inset 0 0 20px rgba(102, 255, 102, 0.2);
  background: rgba(102, 255, 102, 0.2);
}

.activate-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.modal-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid rgba(102, 255, 102, 0.4);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  font-weight: 600;
  text-transform: uppercase;
  font-family: inherit;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  background: rgba(102, 255, 102, 0.1);
  border-color: #66ff66;
  color: #66ff66;
}

/* Result Modal - Bảng thông báo kết quả */
.result-modal-content {
  max-width: 500px;
  text-align: center;
  padding: 40px 30px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(102, 255, 102, 0.4);
  box-shadow: 0 0 30px rgba(102, 255, 102, 0.4);
}

.result-modal-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  animation: scaleIn 0.5s ease-out;
  position: relative;
}

.result-modal-icon::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

.result-modal-icon.success {
  background: rgba(102, 255, 102, 0.2);
  color: #66ff66;
  border: 3px solid #66ff66;
  box-shadow: 0 0 20px rgba(102, 255, 102, 0.5);
}

.result-modal-icon.error {
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.2) 0%, rgba(255, 68, 68, 0.1) 100%);
  color: var(--danger);
  border: 3px solid var(--danger);
}

.result-modal-icon.warning {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 0, 0, 0.1) 100%) !important;
  color: #ff0000 !important;
  border: 3px solid #ff0000 !important;
  animation: warningBlink 1.5s ease-in-out infinite;
}

.result-modal-icon.warning * {
  color: #ff0000 !important;
}

@keyframes warningBlink {
  0%, 100% {
    color: #ff0000 !important;
    border-color: #ff0000 !important;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5), 0 0 40px rgba(255, 0, 0, 0.3) !important;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2) 0%, rgba(255, 0, 0, 0.1) 100%) !important;
  }
  50% {
    color: #ff0000 !important;
    border-color: #ff0000 !important;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.8), 0 0 60px rgba(255, 0, 0, 0.5) !important;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.3) 0%, rgba(255, 0, 0, 0.2) 100%) !important;
  }
}

.result-modal-icon i {
  position: relative;
  z-index: 1;
  animation: bounceIn 0.6s ease-out;
}

.result-modal-icon.warning i {
  color: #ff0000 !important;
  animation: bounceIn 0.6s ease-out, warningIconBlink 1.5s ease-in-out infinite 0.6s;
}

@keyframes warningIconBlink {
  0%, 100% {
    color: #ff0000 !important;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000 !important;
  }
  50% {
    color: #ff0000 !important;
    text-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000, 0 0 45px #ff0000 !important;
  }
}

.result-modal-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: fadeInUp 0.5s ease-out 0.2s both;
}

.result-modal-message-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-left: 0 !important;
}

.result-modal-message {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 30px;
  padding: 0 10px;
  animation: fadeInUp 0.5s ease-out 0.3s both;
  text-align: left;
  min-height: 200px;
}

.result-modal-message div {
  font-size: 15px;
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.result-modal-message div::before {
  content: "=>";
  position: absolute;
  left: 0;
  color: #66ff66;
  font-weight: bold;
  text-shadow: 0 0 5px #66ff66;
}

.result-modal-message .result-modal-message-title::before {
  content: none;
}

.result-modal-message .warning-step {
  color: #ff0000 !important;
}

.result-modal-message .warning-step::before {
  color: #ff0000 !important;
  text-shadow: 0 0 5px #ff0000 !important;
}

.result-modal-message.warning .warning-step {
  color: #ff0000 !important;
}

.result-modal-message .warning-step .typing-cursor {
  color: #ff0000 !important;
  text-shadow: 0 0 5px #ff0000 !important;
}

/* Cursor nhấp nháy khi đang typing */
.typing-cursor {
  display: inline-block;
  color: #66ff66;
  font-weight: bold;
  animation: blink 1s infinite;
  margin-left: 2px;
  text-shadow: 0 0 5px #66ff66;
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
    text-shadow: 0 0 5px #66ff66;
  }
  51%, 100% {
    opacity: 0;
    text-shadow: none;
  }
}

.result-modal-message.success {
  color: var(--success);
}

.result-modal-message.error {
  color: var(--danger);
}

.result-modal-message.warning {
  color: #ff0000;
}

.result-close-btn {
  background: rgba(102, 255, 102, 0.1);
  border: 2px solid #66ff66;
  border-radius: 12px;
  padding: 14px 40px;
  color: #66ff66;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(102, 255, 102, 0.4), inset 0 0 15px rgba(102, 255, 102, 0.1);
  animation: fadeInUp 0.5s ease-out 0.4s both;
  font-family: 'Courier New', monospace;
  text-shadow: 0 0 10px #66ff66;
}

.result-close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(102, 255, 102, 0.6), inset 0 0 20px rgba(102, 255, 102, 0.2);
  background: rgba(102, 255, 102, 0.2);
}

.result-close-btn:active {
  transform: translateY(0);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.1;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .header__title {
    font-size: 36px;
    letter-spacing: 2px;
  }

  .check-card {
    padding: 30px 20px;
    border-radius: 16px;
  }

  .form-input::placeholder {
    font-size: 11px;
  }

  .submit-btn {
    padding: 16px 20px;
    font-size: 14px;
  }

  .modal-content {
    padding: 16px 14px 14px;
    max-height: calc(100dvh - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: auto;
    width: 92%;
    max-width: 380px;
    border-radius: 16px;
  }

  .modal-header {
    margin-bottom: 12px;
  }

  .modal-title-main {
    font-size: 22px;
    letter-spacing: 2px;
    margin: 0 0 4px 0;
  }

  .modal-title-sub {
    font-size: 13.5px;
  }

  .modal-body {
    gap: 12px;
  }

  .modal-body .input-group {
    padding: 0 12px;
    border-radius: 10px;
  }

  .modal-body .form-input {
    padding: 11px 0;
    font-size: 13.5px;
  }

  .modal-actions-group {
    gap: 8px;
  }

  .activate-btn {
    padding: 11px 16px;
    font-size: 14px;
    border-radius: 10px;
    width: 100%;
  }

  .modal-close-btn {
    padding: 9px 16px;
    font-size: 12.5px;
    border-radius: 10px;
  }

  .result-modal-content {
    padding: 20px 16px;
    max-height: calc(100dvh - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin: auto;
  }

  .result-modal-icon {
    width: 65px;
    height: 65px;
    font-size: 32px;
    margin: 0 auto 15px;
  }

  .result-modal-title {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .result-modal-message {
    min-height: auto;
    font-size: 13.5px;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 0 4px;
  }

  .result-close-btn {
    padding: 10px 24px;
    font-size: 13.5px;
    width: 100%;
  }
}

/* ==========================================================
   CYBER HUD RADAR LOADING SCREEN (Sci-Fi Red Edition)
   ========================================================== */
.cyber-loading-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background: #070102;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.cyber-loading-modal.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

/* Sci-Fi Backdrop & Earth Globe Atmosphere */
.cyber-loading-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.cyber-globe-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #050002 url('earth-globe.jpg') no-repeat center top;
  background-size: cover;
  filter: brightness(0.92) contrast(1.18);
  opacity: 0.95;
  transform: scale(1.01);
  animation: cyberGlobePulse 12s ease-in-out infinite alternate;
}

.cyber-globe-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(5, 0, 2, 0.5) 0%, rgba(7, 1, 2, 0.2) 35%, rgba(7, 1, 2, 0.55) 75%, rgba(7, 1, 2, 0.85) 100%);
  pointer-events: none;
}

@keyframes cyberGlobePulse {
  0% {
    transform: scale(1.0);
    filter: brightness(0.88) contrast(1.15);
  }
  100% {
    transform: scale(1.03);
    filter: brightness(1.02) contrast(1.22);
  }
}

.cyber-grid-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 20, 40, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 20, 40, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.7;
}

.cyber-scanline {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.45) 51%);
  background-size: 100% 4px;
  opacity: 0.35;
  pointer-events: none;
}

/* HUD Corner Brackets */
.hud-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: #ff1a2b;
  border-style: solid;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 26, 43, 0.8));
}
.hud-top-left { top: 24px; left: 24px; border-width: 3px 0 0 3px; }
.hud-top-right { top: 24px; right: 24px; border-width: 3px 3px 0 0; }
.hud-bottom-left { bottom: 24px; left: 24px; border-width: 0 0 3px 3px; }
.hud-bottom-right { bottom: 24px; right: 24px; border-width: 0 3px 3px 0; }

/* Top Right Status Bar */
.hud-status-bar {
  position: absolute;
  top: 28px;
  right: 65px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: monospace, 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #ff334b;
  text-shadow: 0 0 6px rgba(255, 26, 43, 0.7);
  pointer-events: none;
}
.hud-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff1a2b;
  box-shadow: 0 0 10px #ff1a2b;
  animation: hudDotBlink 0.9s infinite alternate;
}
@keyframes hudDotBlink {
  0% { opacity: 0.3; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1.15); box-shadow: 0 0 14px #ff1a2b; }
}

/* Left Hacker Console & Security Chat Box */
.hud-terminal-box {
  position: absolute;
  left: 35px;
  bottom: 35px;
  width: 400px;
  max-width: calc(50vw - 260px);
  height: 380px;
  max-height: 48vh;
  background: rgba(16, 2, 5, 0.85);
  border: 1px solid rgba(255, 26, 43, 0.6);
  border-radius: 8px;
  box-shadow: 0 0 25px rgba(255, 20, 40, 0.28), inset 0 0 16px rgba(255, 0, 30, 0.12);
  backdrop-filter: blur(8px);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  z-index: 15;
  pointer-events: none;
  overflow: hidden;
}

.hud-terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 26, 43, 0.35);
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.terminal-title {
  font-size: 11px;
  font-weight: 800;
  color: #ff2035;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 7px;
  text-shadow: 0 0 8px rgba(255, 32, 53, 0.8);
}

.hud-blink-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #00ff88;
  box-shadow: 0 0 8px #00ff88;
  animation: hudDotBlink 0.8s infinite alternate;
}

.terminal-badge {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: #00ff88;
  letter-spacing: 1px;
  font-weight: bold;
}

.hud-telemetry-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  font-size: 10px;
  font-family: monospace;
  margin-bottom: 6px;
}
.hud-tele-item .tele-lbl { color: #ff1a2b; font-weight: bold; margin-right: 4px; }
.hud-tele-item .tele-val { color: rgba(255, 255, 255, 0.85); }

.hud-terminal-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 26, 43, 0.6), transparent);
  margin-bottom: 6px;
}

/* Chat Stream Log */
.hud-chat-stream {
  flex: 1;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-family: monospace, 'Courier New', monospace;
  font-size: 11px;
  line-height: 1.35;
  padding-right: 2px;
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: chatMsgFadeIn 0.3s ease-out forwards;
}

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

.chat-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
}

.chat-time {
  color: rgba(255, 255, 255, 0.45);
}

.chat-tag {
  font-weight: 700;
  border-radius: 2px;
  padding: 0 4px;
  font-size: 9px;
  letter-spacing: 0.5px;
}
.tag-audit { color: #00e5ff; background: rgba(0, 229, 255, 0.15); border: 1px solid rgba(0, 229, 255, 0.35); }
.tag-security { color: #ffd600; background: rgba(255, 214, 0, 0.15); border: 1px solid rgba(255, 214, 0, 0.35); }
.tag-exploit { color: #ff334b; background: rgba(255, 26, 43, 0.2); border: 1px solid rgba(255, 26, 43, 0.45); }
.tag-hacker { color: #ff0055; background: rgba(255, 0, 85, 0.2); border: 1px solid rgba(255, 0, 85, 0.45); }
.tag-success { color: #00ff88; background: rgba(0, 255, 136, 0.15); border: 1px solid rgba(0, 255, 136, 0.4); }

.chat-text {
  color: rgba(255, 230, 235, 0.95);
  font-size: 10.5px;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.9);
}

/* Right Panels Stacked Container */
.hud-right-panels {
  position: absolute;
  right: 35px;
  top: 65px;
  bottom: 35px;
  width: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
  z-index: 15;
}

.hud-sub-box {
  padding: 10px 14px;
  background: rgba(18, 2, 5, 0.82);
  border: 1px solid rgba(255, 26, 43, 0.55);
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255, 20, 40, 0.2), inset 0 0 12px rgba(255, 0, 30, 0.1);
  backdrop-filter: blur(5px);
  font-family: monospace, sans-serif;
}

.hud-sub-header {
  font-size: 11px;
  font-weight: 800;
  color: #ff2035;
  letter-spacing: 1.5px;
  margin-bottom: 7px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 26, 43, 0.3);
  text-shadow: 0 0 6px rgba(255, 32, 53, 0.8);
}

.hud-stat-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 140, 150, 0.7);
}
.stat-row .s-lbl { font-weight: 600; color: rgba(255, 100, 120, 0.85); }
.stat-row .s-val { font-weight: 700; color: #fff; }

.text-red { color: #ff334b !important; text-shadow: 0 0 6px rgba(255, 26, 43, 0.8); }
.text-warn { color: #ffd600 !important; }
.text-yellow { color: #ffaa00 !important; }
.text-green { color: #00ff88 !important; text-shadow: 0 0 6px rgba(0, 255, 136, 0.6); }
.text-glow { color: #ff334b; animation: textPulse 1.2s infinite alternate; }
.text-dim { color: rgba(255, 255, 255, 0.65) !important; }

/* Right Module Engine Box */
.hud-module-box {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  background: rgba(18, 2, 5, 0.82);
  border: 1px solid rgba(255, 26, 43, 0.55);
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 20, 40, 0.25), inset 0 0 16px rgba(255, 0, 30, 0.12);
  backdrop-filter: blur(5px);
  font-family: monospace, sans-serif;
  pointer-events: none;
}
.hud-module-header {
  font-size: 11px;
  font-weight: 800;
  color: #ff2035;
  letter-spacing: 2px;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 26, 43, 0.35);
  text-shadow: 0 0 8px rgba(255, 32, 53, 0.8);
}
.hud-module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 10.5px;
}
.module-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 120, 130, 0.6);
  transition: all 0.25s ease;
}
.module-item .prefix { color: #ff1a2b; margin-right: 6px; font-weight: bold; }
.module-item.active {
  color: #ff334b;
  text-shadow: 0 0 8px rgba(255, 30, 50, 0.8);
  font-weight: 700;
}
.module-item .mod-status {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(255, 26, 43, 0.15);
  border: 1px solid rgba(255, 26, 43, 0.4);
  color: #ff334b;
}
.module-item.active .mod-status {
  background: #ff1a2b;
  color: #fff;
  box-shadow: 0 0 8px #ff1a2b;
}

/* Center HUD Radar & Core Circle */
.cyber-loading-center {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cyber-radar-wrapper {
  position: relative;
  width: 440px;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cyber-radar-wrapper::before {
  content: '';
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 1, 3, 0.94) 0%, rgba(12, 1, 4, 0.88) 55%, rgba(16, 2, 5, 0.6) 75%, transparent 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), inset 0 0 40px rgba(0, 0, 0, 0.85);
  z-index: 1;
  pointer-events: none;
}
.radar-svg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 2;
}
.svg-ring-outer {
  fill: none;
  stroke: rgba(255, 26, 43, 0.35);
  stroke-width: 1.5;
}
.svg-ring-ticks {
  fill: none;
  stroke: rgba(255, 30, 50, 0.75);
  stroke-width: 7;
  stroke-dasharray: 2 6;
  filter: drop-shadow(0 0 8px rgba(255, 26, 43, 0.8));
}
.svg-ring-dashed {
  fill: none;
  stroke: rgba(255, 26, 43, 0.6);
  stroke-width: 2;
  stroke-dasharray: 8 6;
  animation: cyberRotateCW 25s linear infinite;
  transform-origin: 200px 200px;
}
.svg-ring-solid {
  fill: none;
  stroke: #ff1a2b;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 12px rgba(255, 26, 43, 0.95));
}
.svg-ring-inner-dots {
  fill: none;
  stroke: rgba(255, 40, 60, 0.5);
  stroke-width: 3;
  stroke-dasharray: 2 12;
  animation: cyberRotateCCW 18s linear infinite;
  transform-origin: 200px 200px;
}

/* Top highlighted solid red segment (exact match to user photo!) */
.radar-top-segment {
  position: absolute;
  top: 13px;
  left: calc(50% - 15px);
  width: 30px;
  height: 14px;
  background: #ff1a2b;
  border-radius: 3px 3px 1px 1px;
  box-shadow: 0 0 16px #ff1a2b, 0 0 32px rgba(255, 26, 43, 0.95);
  z-index: 5;
}

/* Rotating radar sweep / radar scan cone */
.radar-sweep-spin {
  position: absolute;
  inset: 48px;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(from 0deg, rgba(255, 26, 43, 0.35) 0deg, transparent 65deg, transparent 360deg);
  animation: cyberRotateCW 3.5s linear infinite;
  mix-blend-mode: screen;
  z-index: 3;
}

/* Radar Core Content */
.radar-core-content {
  position: relative;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 300px;
  height: 300px;
}

/* Alert Emblem (Triangle + Skull) */
.cyber-alert-emblem {
  width: 68px;
  height: 60px;
  margin-bottom: 2px;
  animation: alertPulse 2s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(255, 26, 43, 0.95)) drop-shadow(0 0 25px rgba(255, 0, 40, 0.5));
}
.skull-triangle-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.tri-border {
  fill: rgba(30, 2, 5, 0.88);
  stroke: #ff1a2b;
  stroke-width: 4;
  stroke-linejoin: round;
}
.tri-inner {
  fill: rgba(180, 10, 25, 0.22);
  stroke: rgba(255, 60, 80, 0.5);
  stroke-width: 1.5;
}

/* Status Text "ĐANG CHẠY" */
.cyber-status-text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #ff2a3c;
  letter-spacing: 5px;
  text-transform: uppercase;
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.95),
    0 0 10px rgba(255, 26, 43, 0.95), 
    0 0 20px rgba(255, 0, 30, 0.8);
  margin-top: 6px;
  animation: textPulse 1.6s ease-in-out infinite alternate;
}

/* Big Percent "5%" -> "100%" */
.cyber-percent-number {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 78px;
  font-weight: 900;
  color: #ff2537;
  letter-spacing: 2px;
  line-height: 1;
  margin: 10px 0 14px;
  font-variant-numeric: tabular-nums;
  text-shadow: 
    0 2px 4px #000,
    0 0 12px rgba(0, 0, 0, 0.9),
    0 0 20px rgba(255, 26, 43, 0.95), 
    0 0 40px rgba(255, 20, 40, 0.7);
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
}

/* Progress Capsule Container */
.cyber-progress-container {
  width: 220px;
  max-width: 85%;
  margin: 0 auto;
}
.cyber-progress-pill {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  border: 2px solid #ff1a2b;
  background: rgba(25, 2, 5, 0.9);
  box-shadow: 0 0 14px rgba(255, 26, 43, 0.4), inset 0 0 10px rgba(0, 0, 0, 0.9);
  padding: 2px;
  overflow: hidden;
  position: relative;
}
.cyber-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d6001a, #ff1a2b, #ff4455);
  box-shadow: 0 0 12px #ff1a2b, 0 0 22px rgba(255, 40, 60, 0.9);
  transition: width 0.08s ease-out;
  position: relative;
}
.cyber-progress-fill::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 15px #ff1a2b;
  opacity: 0.85;
}

/* Bottom Warning Text */
.cyber-sub-warning {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #ff334b;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 1px 3px #000, 0 0 8px rgba(255, 26, 43, 0.9);
  margin-top: 14px;
}

/* Keyframe Animations */
@keyframes cyberRotateCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes cyberRotateCCW {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
@keyframes alertPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(255, 26, 43, 0.8)); }
  100% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(255, 26, 43, 1)) drop-shadow(0 0 32px rgba(255, 0, 40, 0.7)); }
}
@keyframes textPulse {
  0% { opacity: 0.85; }
  100% { opacity: 1; text-shadow: 0 0 15px rgba(255, 26, 43, 1), 0 0 30px rgba(255, 0, 40, 0.8); }
}

/* Tablet Adaptations (769px - 1100px) */
@media (max-width: 1100px) and (min-width: 769px) {
  .hud-terminal-box {
    width: 300px;
    height: 330px;
    left: 20px;
    bottom: 20px;
  }
  .hud-right-panels {
    width: 190px;
    right: 20px;
    top: 55px;
    bottom: 20px;
  }
  .cyber-radar-wrapper {
    width: 340px;
    height: 340px;
  }
  .cyber-radar-wrapper::before {
    width: 310px;
    height: 310px;
  }
  .radar-core-content {
    width: 240px;
    height: 240px;
  }
  .cyber-percent-number {
    font-size: 58px;
  }
}

/* Mobile Phone Adaptations (max-width: 768px) */
@media (max-width: 768px) {
  .cyber-loading-modal {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 24px 10px 10px;
    box-sizing: border-box;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
  }
  .cyber-loading-modal.active {
    display: flex;
  }

  /* 1. Center HUD Radar at the Top */
  .cyber-loading-center {
    order: 1;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 0 4px;
    flex: 0 0 auto;
    z-index: 10;
  }

  .cyber-radar-wrapper {
    width: 200px;
    height: 200px;
  }
  .cyber-radar-wrapper::before {
    width: 180px;
    height: 180px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.95);
  }
  .radar-core-content {
    width: 155px;
    height: 155px;
  }
  .radar-sweep-spin {
    inset: 20px;
  }
  .radar-top-segment {
    top: 6px;
    left: calc(50% - 9px);
    width: 18px;
    height: 8px;
  }
  .cyber-alert-emblem {
    width: 30px;
    height: 26px;
    margin-bottom: 0;
  }
  .cyber-status-text {
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 1px;
  }
  .cyber-percent-number {
    font-size: 36px;
    margin: 1px 0 3px;
  }
  .cyber-progress-container {
    width: 125px;
  }
  .cyber-progress-pill {
    height: 10px;
    border-width: 1.5px;
  }
  .cyber-sub-warning {
    font-size: 8px;
    letter-spacing: 0.8px;
    margin-top: 4px;
  }

  /* 2. Middle Row: The 2 Side-by-Side Boxes (Matching User's Green Rectangles) */
  .hud-right-panels {
    order: 2;
    position: relative;
    top: auto;
    bottom: auto;
    right: auto;
    left: auto;
    width: 100%;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
    margin: 3px 0 5px;
    flex: 0 0 auto;
    z-index: 15;
    pointer-events: none;
  }

  .hud-sub-box.hud-sec-box {
    flex: 1 1 50%;
    min-width: 0;
    padding: 8px 10px;
    background: rgba(16, 2, 5, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 26, 43, 0.55);
    border-radius: 8px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.85);
  }

  /* Hide exploit box on mobile so exactly 2 balanced side-by-side boxes appear */
  .hud-sub-box.hud-exploit-box {
    display: none !important;
  }

  .hud-module-box {
    flex: 1 1 50%;
    min-width: 0;
    padding: 8px 10px;
    background: rgba(16, 2, 5, 0.86);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 26, 43, 0.55);
    border-radius: 8px;
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.85);
  }

  .hud-sub-header, .hud-module-header {
    font-size: 9.5px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    padding-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hud-stat-grid, .hud-module-list {
    gap: 4px;
    font-size: 9px;
  }
  .stat-row .s-lbl, .module-item .name {
    font-size: 8.5px;
  }
  .stat-row .s-val, .module-item .mod-status {
    font-size: 8.5px;
  }
  .module-item .mod-status {
    padding: 0 3px;
  }

  /* 3. Bottom Hacker Console & Security Chat Box */
  .hud-terminal-box {
    order: 3;
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    flex: 1 1 auto;
    min-height: 150px;
    max-height: 250px;
    padding: 8px 10px;
    background: rgba(14, 1, 4, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 26, 43, 0.55);
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.95), inset 0 0 12px rgba(255, 20, 40, 0.15);
    z-index: 20;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .hud-terminal-header {
    padding-bottom: 4px;
    margin-bottom: 4px;
  }

  .terminal-title {
    font-size: 9.5px;
    letter-spacing: 1px;
  }

  .terminal-badge {
    font-size: 8px;
    padding: 0 4px;
  }

  .hud-telemetry-stats {
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
    font-size: 8.5px;
    margin-bottom: 4px;
  }
  .hud-tele-item .tele-lbl {
    font-size: 8px;
  }
  .hud-tele-item .tele-val {
    font-size: 8px;
  }

  .hud-chat-stream {
    flex: 1;
    overflow-y: hidden;
    font-size: 9px;
    gap: 4px;
    line-height: 1.25;
  }

  .chat-meta {
    gap: 4px;
    font-size: 8px;
  }
  .chat-tag {
    font-size: 7.5px;
    padding: 0 3px;
  }
  .chat-text {
    font-size: 8.5px;
  }

  /* Top Right Status bar & corners on mobile */
  .hud-status-bar {
    right: 14px;
    top: 8px;
    font-size: 8px;
    gap: 5px;
  }
  .hud-dot {
    width: 6px;
    height: 6px;
  }

  .hud-corner {
    width: 14px;
    height: 14px;
  }
  .hud-top-left { top: 6px; left: 6px; border-width: 2px 0 0 2px; }
  .hud-top-right { top: 6px; right: 6px; border-width: 2px 2px 0 0; }
  .hud-bottom-left { bottom: 6px; left: 6px; border-width: 0 0 2px 2px; }
  .hud-bottom-right { bottom: 6px; right: 6px; border-width: 0 2px 2px 0; }
}

/* Extra small mobile (e.g. iPhone SE 375px or 360px Android) */
@media (max-width: 380px) {
  .cyber-radar-wrapper {
    width: 180px;
    height: 180px;
  }
  .cyber-radar-wrapper::before {
    width: 160px;
    height: 160px;
  }
  .radar-core-content {
    width: 140px;
    height: 140px;
  }
  .cyber-percent-number {
    font-size: 32px;
  }
  .hud-terminal-box {
    max-height: 220px;
  }
}

/* ========================================================
   NHÓM NÚT HÀNH ĐỘNG CẢNH BÁO: XEM TRANG UY TÍN & TRÁNH XA
   ======================================================== */
.danger-actions-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 10px;
}

/* NÚT XEM TRANG UY TÍN */
.trusted-site-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(0, 168, 120, 0.35) 0%, rgba(0, 230, 150, 0.25) 50%, rgba(0, 212, 255, 0.3) 100%);
  border: 2px solid #00ffaa;
  border-radius: 10px;
  padding: 13px 24px;
  color: #00ffaa;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 255, 170, 0.45), inset 0 0 14px rgba(0, 255, 170, 0.25);
  text-shadow: 0 0 10px #00ffaa;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  overflow: hidden;
  animation: trustedBtnPulse 2s infinite alternate;
}

@keyframes trustedBtnPulse {
  0% {
    box-shadow: 0 0 14px rgba(0, 255, 170, 0.4), inset 0 0 10px rgba(0, 255, 170, 0.2);
    border-color: #00ffaa;
  }
  100% {
    box-shadow: 0 0 28px rgba(0, 255, 170, 0.75), inset 0 0 20px rgba(0, 255, 170, 0.4);
    border-color: #33ffbb;
  }
}

.trusted-site-btn .btn-glow-bar {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  animation: shineSwipe 2.8s infinite;
}

@keyframes shineSwipe {
  0% { left: -100%; }
  40% { left: 160%; }
  100% { left: 160%; }
}

.trusted-site-btn i {
  font-size: 18px;
  color: #00ffaa;
  filter: drop-shadow(0 0 6px #00ffaa);
  transition: transform 0.3s ease;
}

.trusted-site-btn:hover {
  background: linear-gradient(135deg, rgba(0, 200, 140, 0.5) 0%, rgba(0, 255, 170, 0.4) 100%);
  color: #ffffff;
  text-shadow: 0 0 14px #00ffaa, 0 0 24px #00ffaa;
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0, 255, 170, 0.85), inset 0 0 18px rgba(0, 255, 170, 0.5);
}

.trusted-site-btn:hover i {
  transform: scale(1.15) rotate(5deg);
}

.trusted-site-btn:active {
  transform: translateY(0);
}

@media (max-width: 680px) {
  .danger-actions-row {
    flex-direction: column;
    align-items: stretch;
  }
  .trusted-site-btn,
  .danger-action-btn {
    width: 100%;
  }
}

/* ========================================================
   MODAL TRANG UY TÍN / VÒNG QUAY RANDOM
   ======================================================== */
#trusted-site-modal {
  z-index: 10000;
}

.trusted-site-modal-content {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(0, 50, 40, 0.7) 0%, rgba(10, 18, 26, 0.98) 75%), #060d13;
  border: 1px solid rgba(0, 255, 170, 0.5);
  box-shadow: 0 0 35px rgba(0, 255, 170, 0.3), 0 20px 50px rgba(0, 0, 0, 0.8);
  border-radius: 16px;
  padding: 24px 28px;
  width: 92%;
  max-width: 660px;
  max-height: calc(100dvh - 32px);
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  margin: auto;
  color: #e0f2fe;
  box-sizing: border-box;
  animation: trustedModalPop 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.trusted-modal-header {
  flex-shrink: 0;
}

.trusted-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.trusted-modal-body::-webkit-scrollbar {
  width: 4px;
}
.trusted-modal-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}
.trusted-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 170, 0.4);
  border-radius: 4px;
}
.trusted-site-modal-content.theme-red-modal .trusted-modal-body::-webkit-scrollbar-thumb,
#trusted-site-modal.theme-red .trusted-modal-body::-webkit-scrollbar-thumb {
  background: rgba(239, 68, 68, 0.5);
}
.trusted-site-modal-content.theme-yellow-modal .trusted-modal-body::-webkit-scrollbar-thumb,
#trusted-site-modal.theme-yellow .trusted-modal-body::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.5);
}

.trusted-modal-footer {
  flex-shrink: 0;
}

@keyframes trustedModalPop {
  0% {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

/* HUD Corners */
.t-hud-corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #00ffaa;
  border-style: solid;
  pointer-events: none;
}
.t-hud-tl { top: 8px; left: 8px; border-width: 2px 0 0 2px; }
.t-hud-tr { top: 8px; right: 8px; border-width: 2px 2px 0 0; }
.t-hud-bl { bottom: 8px; left: 8px; border-width: 0 0 2px 2px; }
.t-hud-br { bottom: 8px; right: 8px; border-width: 0 2px 2px 0; }

/* Header */
.trusted-modal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 255, 170, 0.2);
  margin-bottom: 22px;
  position: relative;
}

.trusted-header-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 255, 170, 0.12);
  border: 1px solid rgba(0, 255, 170, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #00ffaa;
  box-shadow: 0 0 16px rgba(0, 255, 170, 0.35);
  flex-shrink: 0;
}

.trusted-header-titles {
  flex: 1;
}

.trusted-main-title {
  font-size: 24px;
  font-weight: 900;
  color: #00ffaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 4px 0;
  text-shadow: 0 0 12px rgba(0, 255, 170, 0.6);
}

.trusted-sub-title {
  font-size: 13px;
  color: #8be4cb;
  font-weight: 500;
}

.trusted-modal-x-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s;
}

.trusted-modal-x-btn:hover {
  color: #00ffaa;
  transform: rotate(90deg);
}

/* ================== KHUNG 1: VÒNG QUAY SLOT REEL ================== */
.trusted-spinner-box {
  background: rgba(4, 12, 18, 0.85);
  border: 1px solid rgba(0, 255, 170, 0.3);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  margin-bottom: 20px;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.8);
}

.spinner-hud-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #00ffaa;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.spinner-radar-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00ffaa;
  box-shadow: 0 0 8px #00ffaa;
  animation: radarBlink 0.8s infinite alternate;
}

@keyframes radarBlink {
  0% { opacity: 0.3; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}

/* Slot Reel Viewport */
.slot-reel-viewport {
  position: relative;
  height: 110px;
  overflow: hidden;
  background: linear-gradient(180deg, #020609 0%, #071520 50%, #020609 100%);
  border: 2px solid #00ffaa;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.3), inset 0 0 20px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Vignette bóng đổ trên và dưới bánh xe cuộn */
.slot-reel-viewport::before,
.slot-reel-viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 28px;
  pointer-events: none;
  z-index: 5;
}

.slot-reel-viewport::before {
  top: 0;
  background: linear-gradient(180deg, rgba(2, 6, 9, 0.95) 0%, transparent 100%);
}

.slot-reel-viewport::after {
  bottom: 0;
  background: linear-gradient(0deg, rgba(2, 6, 9, 0.95) 0%, transparent 100%);
}

/* Con trỏ ngắm giữa */
.slot-center-pointer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.pointer-left,
.pointer-right {
  font-size: 26px;
  color: #ffcc00;
  filter: drop-shadow(0 0 8px #ffcc00);
  animation: pointerPulse 0.5s infinite alternate;
}

@keyframes pointerPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 1; }
}

.pointer-scan-beam {
  flex: 1;
  height: 2px;
  margin: 0 10px;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.5), transparent);
  box-shadow: 0 0 6px #ffcc00;
}

/* Dải cuộn items */
.slot-reel-strip {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: translateY(0);
  transition: transform 0.1s linear;
}

.slot-reel-item {
  height: 110px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow: 0 0 14px rgba(0, 255, 170, 0.8);
}

.slot-reel-item i {
  color: #00ffaa;
  font-size: 26px;
}

/* Progress track khi đang quay */
.spinner-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 10px 0;
}

.spinner-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00ffaa, #00d4ff);
  box-shadow: 0 0 10px #00ffaa;
  transition: width 0.05s linear;
}

.spinner-hint-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 8px;
}

/* ================== KHUNG 2: CHI TIẾT TRANG UY TÍN ================== */
.trusted-site-detail-box {
  animation: detailFadeIn 0.4s ease;
}

@keyframes detailFadeIn {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Khung Trang Uy Tín Thống Nhất (Tất cả trong 1 khung) */
.trusted-brand-card.unified-card {
  position: relative;
  background: linear-gradient(165deg, rgba(2, 32, 24, 0.88) 0%, rgba(3, 18, 26, 0.94) 100%);
  border: 1.5px solid rgba(0, 255, 170, 0.55);
  border-radius: 18px;
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  box-shadow: 0 10px 35px rgba(0, 255, 170, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-bottom: 18px;
  overflow: hidden;
}

.trusted-brand-card.unified-card .trusted-brand-glow {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 160px;
  background: radial-gradient(circle, rgba(0, 255, 170, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

/* 1. Biểu tượng bảo mật */
.trusted-brand-icon-wrap {
  position: relative;
  z-index: 1;
}

.trusted-brand-card.unified-card .trusted-brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.2), rgba(0, 212, 255, 0.2));
  border: 1.5px solid #00ffaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #00ffaa;
  box-shadow: 0 0 22px rgba(0, 255, 170, 0.5), inset 0 0 12px rgba(0, 255, 170, 0.25);
  animation: shieldPulse 3s infinite ease-in-out;
}

@keyframes shieldPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 255, 170, 0.45), inset 0 0 12px rgba(0, 255, 170, 0.25);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 30px rgba(0, 255, 170, 0.75), inset 0 0 18px rgba(0, 255, 170, 0.4);
  }
}

/* 2. Tên trang nhà cái */
.trusted-brand-card.unified-card .trusted-brand-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 1;
}

.trusted-brand-card.unified-card .trusted-brand-name {
  font-size: 26px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0, 255, 170, 0.8), 0 0 26px rgba(0, 255, 170, 0.5);
  line-height: 1.2;
  margin: 0;
}

.trusted-brand-card.unified-card .trusted-brand-note {
  font-size: 12px;
  color: #8be4cb;
  font-weight: 500;
  opacity: 0.85;
}

/* 3. Mức độ tin cậy / Độ uy tín (Tự động đổi 4 màu: Bạch Kim, Xanh lá, Vàng, Đỏ) */
.trusted-trust-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  z-index: 1;
}

.trusted-trust-score-badge strong {
  font-size: 15px;
  font-weight: 900;
}

/* CẤP ĐỘ 4: BẠCH KIM > 95% (Cực kỳ an toàn) */
.trusted-trust-score-badge.score-platinum {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(203, 213, 225, 0.28));
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.5), 0 0 10px rgba(186, 230, 253, 0.7);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.95);
}
.trusted-trust-score-badge.score-platinum strong {
  color: #f8fafc;
}

/* CẤP ĐỘ 3: MÀU XANH LÁ: Tỷ lệ 75% - 95% (An toàn, cần xem xét khi chơi) */
.trusted-trust-score-badge.score-green {
  background: rgba(0, 255, 170, 0.12);
  color: #00ffaa;
  border: 1px solid rgba(0, 255, 170, 0.6);
  box-shadow: 0 0 16px rgba(0, 255, 170, 0.35);
  text-shadow: 0 0 10px rgba(0, 255, 170, 0.6);
}
.trusted-trust-score-badge.score-green strong {
  color: #a7f3d0;
}

/* CẤP ĐỘ 2: MÀU VÀNG: Tỷ lệ 65% - < 75% (Kém, nên cảnh giác) */
.trusted-trust-score-badge.score-yellow {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.6);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.35);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
}
.trusted-trust-score-badge.score-yellow strong {
  color: #fde68a;
}

/* CẤP ĐỘ 1: MÀU ĐỎ: Tỷ lệ < 65% (Nguy hiểm cảnh báo) */
.trusted-trust-score-badge.score-red {
  background: rgba(239, 68, 68, 0.14);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.4);
  text-shadow: 0 0 10px rgba(248, 113, 113, 0.6);
}
.trusted-trust-score-badge.score-red strong {
  color: #fca5a5;
}

/* 4. Dòng chữ nổi lên ĐÃ XÁC THỰC (Đổi 4 màu theo 4 cấp độ bảo mật) */
.trusted-verified-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  transform: translateY(0);
  z-index: 1;
  transition: all 0.3s ease;
  animation: bannerFloat 2.8s infinite ease-in-out;
}

/* CẤP 4: BẠCH KIM > 95% (Mức bảo mật cực kỳ an toàn) */
.trusted-verified-banner.level-platinum {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(203, 213, 225, 0.5) 25%, rgba(148, 163, 184, 0.35) 50%, rgba(255, 255, 255, 0.65) 75%, rgba(226, 232, 240, 0.5) 100%);
  color: #ffffff;
  border: 1.8px solid #ffffff;
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5), 0 0 20px rgba(186, 230, 253, 0.8), inset 0 1px 2px rgba(255, 255, 255, 1), inset 0 -2px 4px rgba(0, 0, 0, 0.3);
  text-shadow: 0 0 14px rgba(255, 255, 255, 1), 0 0 25px rgba(186, 230, 253, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
  animation: bannerFloatPlatinum 2.6s infinite ease-in-out;
}

.trusted-verified-banner.level-platinum i {
  color: #ffffff;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 1)) drop-shadow(0 0 14px rgba(125, 211, 252, 0.9));
}

@keyframes bannerFloatPlatinum {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.5), 0 0 20px rgba(186, 230, 253, 0.8), inset 0 1px 2px rgba(255, 255, 255, 1);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 10px 32px rgba(255, 255, 255, 0.75), 0 0 28px rgba(186, 230, 253, 1), inset 0 1px 2px rgba(255, 255, 255, 1);
  }
}

/* CẤP 3: MÀU XANH: 75% - 95% (An toàn, cần xem xét khi chơi) */
.trusted-verified-banner.level-green {
  background: linear-gradient(135deg, rgba(0, 255, 170, 0.28) 0%, rgba(16, 185, 129, 0.38) 50%, rgba(0, 212, 255, 0.25) 100%);
  color: #ffffff;
  border: 1.5px solid rgba(0, 255, 170, 0.9);
  box-shadow: 0 6px 20px rgba(0, 255, 170, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -2px 5px rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 12px rgba(0, 255, 170, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.trusted-verified-banner.level-green i {
  color: #00ffaa;
  filter: drop-shadow(0 0 6px rgba(0, 255, 170, 0.9));
}

/* CẤP 2: MÀU VÀNG: 65% - < 75% (Kém, nên cảnh giác) */
.trusted-verified-banner.level-yellow {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28) 0%, rgba(217, 119, 6, 0.38) 50%, rgba(251, 191, 36, 0.25) 100%);
  color: #ffffff;
  border: 1.5px solid rgba(245, 158, 11, 0.95);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -2px 5px rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.trusted-verified-banner.level-yellow i {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.9));
}

/* CẤP 1: MÀU ĐỎ: < 65% (Nguy hiểm cảnh báo) */
.trusted-verified-banner.level-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(185, 28, 28, 0.45) 50%, rgba(248, 113, 113, 0.25) 100%);
  color: #ffffff;
  border: 1.5px solid rgba(239, 68, 68, 0.95);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.45), inset 0 1px 1px rgba(255, 255, 255, 0.7), inset 0 -2px 5px rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.9), 0 2px 4px rgba(0, 0, 0, 0.8);
}

.trusted-verified-banner.level-red i {
  color: #f87171;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.9));
}

/* ==========================================================================
   THEME MÀU TOÀN DIỆN CHO 3 CẤP ĐỘ (ĐỎ RỰC - VÀNG CẢNH GIÁC - XANH AN TOÀN)
   ========================================================================== */

/* 1. THEME ĐỎ RỰC: Dưới 65% (Nguy hiểm cảnh báo rủi ro cao) */
.trusted-site-detail-box.theme-red .trusted-brand-card.unified-card {
  border: 2px solid #ef4444;
  background: linear-gradient(165deg, rgba(48, 6, 6, 0.94) 0%, rgba(22, 3, 3, 0.98) 100%);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.55), inset 0 0 25px rgba(239, 68, 68, 0.25);
  animation: redCardAlarm 2s infinite ease-in-out;
}

@keyframes redCardAlarm {
  0%, 100% {
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5), inset 0 0 20px rgba(239, 68, 68, 0.2);
  }
  50% {
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.85), inset 0 0 32px rgba(239, 68, 68, 0.4);
  }
}

.trusted-site-detail-box.theme-red .trusted-brand-glow {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.7) 0%, transparent 70%);
}

.trusted-site-detail-box.theme-red .trusted-brand-icon {
  border: 1.8px solid #ef4444;
  color: #ef4444;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35), rgba(185, 28, 28, 0.45));
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.8), inset 0 0 14px rgba(239, 68, 68, 0.45);
  animation: redIconFlash 1.2s infinite ease-in-out;
}

@keyframes redIconFlash {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 22px rgba(239, 68, 68, 0.65);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 0 40px rgba(239, 68, 68, 1), inset 0 0 20px rgba(255, 120, 120, 0.7);
  }
}

.trusted-site-detail-box.theme-red .trusted-brand-name {
  color: #ffffff;
  text-shadow: 0 0 18px #ef4444, 0 0 35px rgba(239, 68, 68, 0.95);
}

.trusted-site-detail-box.theme-red .trusted-brand-note {
  color: #fca5a5;
  font-weight: 700;
}

.trusted-site-detail-box.theme-red .trusted-url-card {
  border-color: rgba(239, 68, 68, 0.55);
  background: rgba(30, 4, 4, 0.9);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.3);
}

.trusted-site-detail-box.theme-red .url-card-icon {
  color: #ef4444;
  filter: drop-shadow(0 0 6px #ef4444);
}

.trusted-site-detail-box.theme-red .url-value {
  color: #fca5a5;
}

.trusted-site-detail-box.theme-red .trusted-perks-list li i {
  color: #ef4444;
  filter: drop-shadow(0 0 6px #ef4444);
}

.trusted-site-detail-box.theme-red .trusted-perks-list li strong {
  color: #fca5a5;
}

.trusted-site-modal-content.theme-red-modal,
#trusted-site-modal.theme-red .trusted-site-modal-content {
  border-color: #ef4444 !important;
  box-shadow: 0 0 55px rgba(239, 68, 68, 0.65), inset 0 0 20px rgba(239, 68, 68, 0.15) !important;
}

.trusted-site-modal-content.theme-red-modal .t-hud-corner,
#trusted-site-modal.theme-red .t-hud-corner {
  border-color: #ef4444 !important;
}

.trusted-site-modal-content.theme-red-modal .trusted-modal-header,
#trusted-site-modal.theme-red .trusted-modal-header {
  border-bottom: 1px solid rgba(239, 68, 68, 0.35) !important;
}

.trusted-site-modal-content.theme-red-modal .trusted-header-icon-box,
#trusted-site-modal.theme-red .trusted-header-icon-box {
  border-color: #ef4444 !important;
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.22) !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.75) !important;
}

.trusted-site-modal-content.theme-red-modal .trusted-header-icon-box i,
#trusted-site-modal.theme-red .trusted-header-icon-box i {
  color: #ef4444 !important;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.9) !important;
}

.trusted-site-modal-content.theme-red-modal .trusted-main-title,
#trusted-site-modal.theme-red .trusted-main-title {
  color: #ef4444 !important;
  text-shadow: 0 0 18px rgba(239, 68, 68, 0.95), 0 0 32px rgba(255, 50, 50, 0.7) !important;
}

.trusted-site-modal-content.theme-red-modal .trusted-sub-title,
#trusted-site-modal.theme-red .trusted-sub-title {
  color: #fca5a5 !important;
}

.trusted-site-modal-content.theme-red-modal .url-card-icon i,
#trusted-site-modal.theme-red .url-card-icon i {
  color: #ef4444 !important;
}

.trusted-site-modal-content.theme-red-modal .trusted-btn-visit,
#trusted-site-modal.theme-red .trusted-btn-visit {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%) !important;
  border: 1px solid #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.7) !important;
}

/* 2. THEME VÀNG CẢNH GIÁC: 65% - <75% (Kém, nên cảnh giác) */
.trusted-site-detail-box.theme-yellow .trusted-brand-card.unified-card {
  border: 2px solid #f59e0b;
  background: linear-gradient(165deg, rgba(42, 28, 3, 0.94) 0%, rgba(20, 14, 2, 0.98) 100%);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.45), inset 0 0 25px rgba(245, 158, 11, 0.2);
}

.trusted-site-detail-box.theme-yellow .trusted-brand-glow {
  background: radial-gradient(circle, rgba(245, 158, 11, 0.65) 0%, transparent 70%);
}

.trusted-site-detail-box.theme-yellow .trusted-brand-icon {
  border: 1.8px solid #f59e0b;
  color: #fbbf24;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.45));
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.7), inset 0 0 14px rgba(245, 158, 11, 0.4);
}

.trusted-site-detail-box.theme-yellow .trusted-brand-name {
  color: #ffffff;
  text-shadow: 0 0 18px #fbbf24, 0 0 35px rgba(245, 158, 11, 0.9);
}

.trusted-site-detail-box.theme-yellow .trusted-brand-note {
  color: #fde68a;
  font-weight: 700;
}

.trusted-site-detail-box.theme-yellow .trusted-url-card {
  border-color: rgba(245, 158, 11, 0.5);
  background: rgba(30, 20, 3, 0.9);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.2);
}

.trusted-site-detail-box.theme-yellow .url-card-icon {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px #fbbf24);
}

.trusted-site-detail-box.theme-yellow .url-value {
  color: #fde68a;
}

.trusted-site-detail-box.theme-yellow .trusted-perks-list li i {
  color: #fbbf24;
  filter: drop-shadow(0 0 6px #fbbf24);
}

.trusted-site-detail-box.theme-yellow .trusted-perks-list li strong {
  color: #fde68a;
}

.trusted-site-modal-content.theme-yellow-modal,
#trusted-site-modal.theme-yellow .trusted-site-modal-content {
  border-color: #f59e0b !important;
  box-shadow: 0 0 45px rgba(245, 158, 11, 0.5), inset 0 0 20px rgba(245, 158, 11, 0.12) !important;
}

.trusted-site-modal-content.theme-yellow-modal .t-hud-corner,
#trusted-site-modal.theme-yellow .t-hud-corner {
  border-color: #f59e0b !important;
}

.trusted-site-modal-content.theme-yellow-modal .trusted-modal-header,
#trusted-site-modal.theme-yellow .trusted-modal-header {
  border-bottom: 1px solid rgba(245, 158, 11, 0.35) !important;
}

.trusted-site-modal-content.theme-yellow-modal .trusted-header-icon-box,
#trusted-site-modal.theme-yellow .trusted-header-icon-box {
  border-color: #f59e0b !important;
  color: #fbbf24 !important;
  background: rgba(245, 158, 11, 0.22) !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.65) !important;
}

.trusted-site-modal-content.theme-yellow-modal .trusted-header-icon-box i,
#trusted-site-modal.theme-yellow .trusted-header-icon-box i {
  color: #fbbf24 !important;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.8) !important;
}

.trusted-site-modal-content.theme-yellow-modal .trusted-main-title,
#trusted-site-modal.theme-yellow .trusted-main-title {
  color: #fbbf24 !important;
  text-shadow: 0 0 16px rgba(245, 158, 11, 0.9), 0 0 28px rgba(251, 191, 36, 0.6) !important;
}

.trusted-site-modal-content.theme-yellow-modal .trusted-sub-title,
#trusted-site-modal.theme-yellow .trusted-sub-title {
  color: #fde68a !important;
}

.trusted-site-modal-content.theme-yellow-modal .url-card-icon i,
#trusted-site-modal.theme-yellow .url-card-icon i {
  color: #fbbf24 !important;
}

.trusted-site-modal-content.theme-yellow-modal .trusted-btn-visit,
#trusted-site-modal.theme-yellow .trusted-btn-visit {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border: 1px solid #f59e0b !important;
  color: #000000 !important;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.6) !important;
  font-weight: 900 !important;
}

/* Thẻ URL */
.trusted-url-card {
  background: rgba(2, 6, 9, 0.85);
  border: 1px solid rgba(0, 255, 170, 0.25);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.url-card-icon {
  font-size: 18px;
  color: #00ffaa;
}

.url-card-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.url-label {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.url-value {
  color: #00ffaa;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 0.2s;
}

.url-value:hover {
  color: #ffffff;
  text-shadow: 0 0 8px #00ffaa;
  text-decoration: underline;
}

.btn-copy-url {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-url:hover {
  background: rgba(0, 255, 170, 0.2);
  border-color: #00ffaa;
  color: #00ffaa;
}

/* Danh sách 3 đặc quyền */
.trusted-perks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.trusted-perks-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: #cbd5e1;
  line-height: 1.45;
}

.trusted-perks-list li i {
  color: #00ffaa;
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px #00ffaa);
}

.trusted-perks-list li strong {
  color: #ffffff;
}

/* Footer Modal Actions */
.trusted-modal-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.trusted-btn-visit {
  flex: 2;
  min-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #00b09b 0%, #00ffaa 100%);
  border: none;
  border-radius: 10px;
  padding: 14px 24px;
  color: #022016;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 255, 170, 0.5);
  transition: all 0.25s ease;
  font-family: inherit;
}

.trusted-btn-visit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 170, 0.8);
  filter: brightness(1.1);
}

.trusted-btn-visit:active {
  transform: translateY(0);
}

.trusted-btn-reroll {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 204, 0, 0.15);
  border: 1px solid #ffcc00;
  border-radius: 10px;
  padding: 13px 18px;
  color: #ffcc00;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 204, 0, 0.3);
  transition: all 0.2s ease;
  font-family: inherit;
}

.trusted-btn-reroll:hover {
  background: rgba(255, 204, 0, 0.3);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
  transform: translateY(-2px);
}

.trusted-btn-reroll i {
  transition: transform 0.4s ease;
}

.trusted-btn-reroll:hover i {
  transform: rotate(180deg);
}

.trusted-btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #94a3b8;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.trusted-btn-close:hover {
  border-color: #cbd5e1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

/* ========================================================
   RESPONSIVE AUTO-FIT DỌC CHO MÀN HÌNH ĐIỆN THOẠI (MOBILE)
   Tự động căn chỉnh vừa vặn chiều cao điện thoại, chữ to rõ ràng
   ======================================================== */

@media (max-width: 680px) {
  .trusted-site-modal-content {
    width: 96%;
    max-width: 460px;
    max-height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    padding: 12px 14px 10px;
    border-radius: 14px;
    margin: auto;
  }

  .t-hud-corner {
    width: 12px;
    height: 12px;
  }

  /* Header Modal */
  .trusted-modal-header {
    gap: 10px;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .trusted-header-icon-box {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 9px;
  }

  .trusted-main-title {
    font-size: 16.5px;
    letter-spacing: 0.5px;
    line-height: 1.25;
    margin-bottom: 2px;
  }

  .trusted-sub-title {
    font-size: 11px;
    line-height: 1.25;
  }

  .trusted-modal-x-btn {
    font-size: 24px;
    padding: 0 4px;
  }

  /* Vòng quay Slot Reel khi đang quay trên mobile */
  .trusted-spinner-box {
    padding: 14px 12px;
    margin-bottom: 10px;
  }
  .spinner-hud-label {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .slot-reel-viewport {
    height: 80px;
  }
  .slot-reel-item {
    height: 80px;
    font-size: 22px;
    gap: 8px;
  }
  .slot-reel-item i {
    font-size: 20px;
  }
  .spinner-progress-track {
    margin: 12px 0 8px 0;
    height: 5px;
  }

  /* Khung Nhà Cái Uy Tín Thống Nhất (Card chính) */
  .trusted-brand-card.unified-card {
    padding: 10px 12px 8px;
    gap: 6px;
    margin-bottom: 8px;
    border-radius: 12px;
  }

  .trusted-brand-card.unified-card .trusted-brand-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
    border-radius: 12px;
  }

  .trusted-brand-card.unified-card .trusted-brand-name {
    font-size: 19px;
    letter-spacing: 1.2px;
    line-height: 1.2;
  }

  .trusted-brand-card.unified-card .trusted-brand-note {
    font-size: 11px;
    line-height: 1.25;
  }

  /* Mức độ tin cậy / Độ uy tín */
  .trusted-trust-score-badge {
    padding: 4px 14px;
    font-size: 11.5px;
    gap: 6px;
  }
  .trusted-trust-score-badge strong {
    font-size: 13.5px;
  }

  /* Dòng chữ ĐÃ XÁC THỰC THÀNH CÔNG */
  .trusted-verified-banner {
    padding: 6px 16px;
    font-size: 12px;
    letter-spacing: 0.8px;
  }

  /* Khung link bảo mật SSL */
  .trusted-url-card {
    padding: 6px 10px;
    margin-bottom: 8px;
    border-radius: 10px;
    gap: 8px;
  }
  .url-card-icon {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }
  .url-label {
    font-size: 9.5px;
    letter-spacing: 0.4px;
    margin-bottom: 1px;
  }
  .url-value {
    font-size: 12.5px;
  }
  .btn-copy-url {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  /* 3 Đặc Quyền / Ưu Điểm */
  .trusted-perks-list {
    gap: 5px;
    margin-bottom: 4px;
  }
  .trusted-perks-list li {
    font-size: 11.5px;
    line-height: 1.35;
    gap: 8px;
  }
  .trusted-perks-list li i {
    font-size: 13px;
    margin-top: 1px;
  }

  /* Footer Hành Động - Tự căn chỉnh hàng ngang thông minh */
  .trusted-modal-footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
    padding-top: 8px;
  }

  .trusted-btn-visit {
    width: 100%;
    flex: 1 1 100%;
    padding: 10px 14px;
    font-size: 13.5px;
    border-radius: 8px;
    gap: 8px;
  }

  .trusted-btn-reroll {
    flex: 1 1 45%;
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
    gap: 6px;
  }

  .trusted-btn-close {
    flex: 1 1 45%;
    min-width: 0;
    padding: 8px 10px;
    font-size: 12px;
    border-radius: 8px;
  }
}

/* Tự động co giãn thêm khi màn hình điện thoại có chiều cao hạn chế (ví dụ dưới 720px hoặc xoay ngang) */
@media (max-height: 720px) and (max-width: 680px) {
  .trusted-site-modal-content {
    padding: 8px 12px 6px;
  }
  .trusted-modal-header {
    padding-bottom: 5px;
    margin-bottom: 5px;
    gap: 8px;
  }
  .trusted-header-icon-box {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .trusted-main-title {
    font-size: 15px;
  }
  .trusted-brand-card.unified-card {
    padding: 6px 10px 6px;
    gap: 3px;
    margin-bottom: 5px;
  }
  .trusted-brand-card.unified-card .trusted-brand-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 10px;
  }
  .trusted-brand-card.unified-card .trusted-brand-name {
    font-size: 17px;
  }
  .trusted-brand-card.unified-card .trusted-brand-note {
    font-size: 10.5px;
  }
  .trusted-trust-score-badge {
    padding: 2px 10px;
    font-size: 11px;
  }
  .trusted-verified-banner {
    padding: 4px 12px;
    font-size: 11px;
  }
  .trusted-url-card {
    padding: 4px 8px;
    margin-bottom: 5px;
  }
  .trusted-perks-list {
    gap: 3px;
  }
  .trusted-perks-list li {
    font-size: 11px;
    line-height: 1.25;
  }
  .trusted-modal-footer {
    margin-top: 5px;
    padding-top: 5px;
    gap: 5px;
  }
  .trusted-btn-visit {
    padding: 8px 12px;
    font-size: 12.5px;
  }
  .trusted-btn-reroll,
  .trusted-btn-close {
    padding: 6px 8px;
    font-size: 11px;
  }

  /* Modal Nhập Mã Kích Hoạt khi màn hình ngắn */
  .modal-content {
    padding: 12px 14px 10px;
    border-radius: 14px;
    max-width: 360px;
  }
  .modal-content .modal-header {
    margin-bottom: 8px;
  }
  .modal-content .modal-title-main {
    font-size: 19px;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
  }
  .modal-content .modal-title-sub {
    font-size: 12px;
  }
  .modal-content .modal-body {
    gap: 8px;
  }
  .modal-content .modal-body .form-input {
    padding: 9px 0;
    font-size: 12.5px;
  }
  .modal-content .modal-actions-group {
    display: flex;
    flex-direction: row;
    gap: 7px;
    width: 100%;
  }
  .modal-content .activate-btn {
    flex: 1.2;
    padding: 9px 12px;
    font-size: 13px;
    width: auto;
  }
  .modal-content .modal-close-btn {
    flex: 1;
    padding: 9px 12px;
    font-size: 12px;
    width: auto;
  }
}

/* Màn hình siêu nhỏ (max-width: 360px) */
@media (max-width: 360px) {
  .trusted-brand-card.unified-card .trusted-brand-name {
    font-size: 16px;
    letter-spacing: 0.8px;
  }
  .trusted-main-title {
    font-size: 14.5px;
  }
  .trusted-btn-visit {
    font-size: 12px;
    padding: 8px 10px;
  }
}


