@import url('./roboto.css');

:root {
  /* Edu Trade Theme Palette */
  --theme-palette-color-1: #27B24F;
  /* Bright Brand Green */
  --theme-palette-color-2: #139848;
  /* Deep Brand Green (Primary) */
  --theme-palette-color-3: #EC1F27;
  /* Red Accent */
  --theme-palette-color-4: #111827;
  /* Dark Main Headings & Text */
  --theme-palette-color-5: #374151;
  /* Dark Gray Subtext */
  --theme-palette-color-6: #c4c6cb;
  /* Muted Border */
  --theme-palette-color-7: #F5F7F6;
  /* Page Light Background */
  --theme-palette-color-8: #ffffff;
  /* Pure White */

  /* Primary Brand Green (Selected Deep Tone #139848) */
  --brand-green: #139848;
  --brand-green-hover: #0e7d3a;
  --brand-green-light: #e8f7ee;
  --brand-green-subtle: #f0fdf4;
  --brand-red: var(--theme-palette-color-3);
  /* #EC1F27 */
  --brand-red-light: #fef2f2;
  --text-main: var(--theme-palette-color-4);
  /* #111827 */
  --text-muted: var(--theme-palette-color-5);
  /* #374151 */
  --text-subtle: #94a3b8;
  --bg-desktop: var(--theme-palette-color-7);
  /* #F5F7F6 */
  --bg-app: #ffffff;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-focus: var(--brand-green);
  /* #139848 */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.04), 0 2px 6px -1px rgba(0, 0, 0, 0.02);
  --shadow-elevated: 0 10px 30px -4px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  font-family: 'Roboto', sans-serif;
}

::selection {
  background-color: var(--brand-green);
  color: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  min-height: 100%;
  background-color: var(--bg-desktop);
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--text-main);
  text-wrap: balance;
}

p,
li,
label,
span {
  text-wrap: pretty;
}

button,
input,
select,
textarea {
  font-family: 'Roboto', sans-serif;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ==========================================================================
   APP FRAME CONTAINER (Mobile-First Shell)
   ========================================================================== */

#app {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
}

@media (min-width: 481px) {
  #app {
    padding: 20px 16px;
  }
}

.mobile-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background-color: var(--bg-app);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border-radius: 0;
}

@media (min-width: 481px) {
  .mobile-shell {
    min-height: calc(100vh - 40px);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
  }
}

/* ==========================================================================
   HEADER & STEPPER
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 6px 12px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  min-width: 36px;
  width: 36px;
  flex-shrink: 0;
}

.header-brand-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
}

.header-logo-img {
  height: 28px;
  width: 28px;
  object-fit: contain;
  border-radius: var(--radius-xs);
}

.header-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.2s;
}

.icon-btn:hover {
  background-color: var(--bg-desktop);
}

.icon-btn:active {
  transform: scale(0.92);
}

/* ==========================================================================
   HEADER STEPPER (4-step icon + text label bar directly in app-header)
   ========================================================================== */

.header-stepper-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 280px;
  margin: 0 auto;
}

.header-stepper-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  width: 100%;
}

.header-stepper-line-bg {
  position: absolute;
  top: 13px;
  left: 24px;
  right: 24px;
  height: 2px;
  background-color: #e2e8f0;
  border-radius: 999px;
  z-index: 1;
}

.header-stepper-line-fill {
  position: absolute;
  top: 13px;
  left: 24px;
  max-width: calc(100% - 48px);
  height: 2px;
  background-color: var(--brand-green);
  border-radius: 999px;
  z-index: 2;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  position: relative;
  z-index: 3;
  width: 48px;
  flex-shrink: 0;
}

.header-step-node {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-step-node svg {
  width: 13px;
  height: 13px;
  display: block;
}

.header-step-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
  letter-spacing: -0.15px;
  transition: all 0.25s ease;
  line-height: 1.25;
}

/* Active State */
.header-step-item.active .header-step-node {
  border-color: var(--brand-green);
  background-color: var(--brand-green);
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(19, 152, 72, 0.18);
  transform: scale(1.06);
}

.header-step-item.active .header-step-node svg {
  stroke-width: 2.3;
}

.header-step-item.active .header-step-label {
  color: var(--brand-green);
  font-weight: 700;
}

/* Done State */
.header-step-item.done .header-step-node {
  border-color: var(--brand-green);
  background-color: var(--brand-green);
  color: #ffffff;
}

.header-step-item.done .header-step-node svg {
  stroke-width: 2.4;
}

.header-step-item.done .header-step-label {
  color: var(--text-main);
  font-weight: 600;
}

/* Inline Security & Environment Guidance Notices */
.security-notice-inline {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--brand-green);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
  margin-top: 6px;
  margin-bottom: 12px;
}

.security-notice-inline .notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 13.5px;
  font-style: normal;
  font-weight: 700;
}

.page-heading-sub-red {
  font-size: 14.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-top: 2px;
  margin-bottom: 6px;
  letter-spacing: 0.25px;
  line-height: 1.35;
}

/* ==========================================================================
   PAGE BODY & COMMON ELEMENTS
   ========================================================================== */

.page-body {
  flex: 1;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
}

.page-content-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-title-section {
  margin-bottom: 18px;
}

.page-eyebrow,
.page-eyebrow-red {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand-red);
  margin-bottom: 3px;
  line-height: 1.3;
}

.page-heading {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.page-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.45;
}

.highlight-red {
  color: var(--brand-red);
  font-weight: 700;
}

.highlight-green {
  color: var(--brand-green);
  font-weight: 700;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 5px 14px;
  background-color: var(--brand-green);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(19, 152, 72, 0.18);
  line-height: 1.4;
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--brand-green-hover);
  box-shadow: 0 3px 10px rgba(19, 152, 72, 0.25);
}

.btn-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-primary:disabled {
  background-color: #cbd5e1;
  color: #94a3b8;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 5px 14px;
  background-color: #f1f5f9;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.btn-secondary:hover {
  background-color: #e2e8f0;
}

.btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  min-height: 36px;
  padding: 5px 14px;
  border: 1.5px solid var(--border);
  background-color: #ffffff;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  border-radius: 5px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.btn-outline:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.btn-group-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.btn-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

/* ==========================================================================
   INPUT FIELDS & SELECTS
   ========================================================================== */

.form-group {
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}

.form-label .req {
  color: var(--brand-red);
  margin-left: 2px;
}

.input-box {
  width: 100%;
  min-height: 36px;
  height: 36px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  box-sizing: border-box;
}

select.input-box {
  padding: 5px 12px;
  line-height: 24px;
  height: 36px;
  min-height: 36px;
}

.input-box:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-light);
}

.input-box:disabled {
  background-color: #f8fafc;
  color: #64748b;
  cursor: not-allowed;
}

.input-box::placeholder {
  color: #94a3b8;
}

.password-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-container .input-box {
  padding-right: 38px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}

/* Date Input Masking & Calendar Picker */
.date-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.date-input-wrap .input-box {
  padding-right: 38px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.2px;
}

.date-picker-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  padding: 0;
}

.date-picker-btn:hover {
  color: var(--brand-green);
  background: rgba(19, 152, 72, 0.08);
}

.hidden-date-native {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.form-helper,
.field-helper {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.4;
}

.field-helper.info {
  color: #64748b;
}

.field-helper.accent {
  color: var(--brand-green);
  font-weight: 500;
}

.field-helper.warning {
  color: #d97706;
}

.field-helper.danger,
.form-helper.danger {
  color: var(--brand-red);
}

.field-helper svg,
.form-helper svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* 2-Column Grid Layout for OCR Form */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-grid-2 .full-span {
  grid-column: 1 / -1;
}

/* ==========================================================================
   CARDS & SELECTIONS (Fintech Minimalist)
   ========================================================================== */

.option-card {
  width: 100%;
  padding: 10px 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: background-color 0.2s ease;
  box-shadow: none;
  cursor: pointer;
}

.option-card:hover {
  background-color: #f8fafc;
}

.option-card:active {
  background-color: #f1f5f9;
}

.option-card.selected {
  background-color: var(--brand-green-subtle);
}

.option-card-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.option-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.option-card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.option-card-arrow {
  color: #94a3b8;
  display: flex;
  align-items: center;
  padding-left: 8px;
}

/* Roadmap Stepper Timeline (Screen 2.1 - Borderless Clean Timeline) */
.roadmap-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 20px;
}

.roadmap-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 6px;
  background: transparent;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: none;
  cursor: default;
  user-select: none;
}

.roadmap-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--brand-green-light);
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roadmap-badge svg {
  width: 18px;
  height: 18px;
  display: block;
}

.roadmap-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.roadmap-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
}

.roadmap-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Product Catalog Accordion */
.products-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: -6px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  animation: fadeIn 0.2s ease-out;
}

.product-group-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 10px;
}

.product-group-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.product-group-items {
  font-size: 11px;
  color: #64748b;
  line-height: 1.4;
}

/* ==========================================================================
   SEARCHABLE BANK SELECTOR & BOTTOM SHEET MODAL
   ========================================================================== */

.bank-select-trigger {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  box-sizing: border-box;
}

.bank-select-trigger:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.bank-select-trigger:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-light);
}

.bank-trigger-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.bank-badge-code {
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--brand-green-light);
  color: var(--brand-green);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  min-width: 46px;
  text-align: center;
  border: 1px solid rgba(19, 152, 72, 0.2);
}

.bank-trigger-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.bank-trigger-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-trigger-sub {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-trigger-arrow {
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 8px;
}

.bank-trigger-arrow svg {
  width: 16px;
  height: 16px;
}

/* Bank Picker Bottom Sheet Modal */
.bank-modal-card {
  max-height: 82vh;
  height: 82vh;
  display: flex;
  flex-direction: column;
  padding: 18px 16px 20px;
  box-sizing: border-box;
}

.bank-search-bar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 12px;
}

.bank-search-icon {
  position: absolute;
  left: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  pointer-events: none;
}

.bank-search-icon svg {
  width: 16px;
  height: 16px;
}

.bank-search-input {
  width: 100%;
  height: 40px;
  padding: 6px 36px 6px 38px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 13.5px;
  font-family: 'Roboto', sans-serif;
  outline: none;
  background: #ffffff;
  color: var(--text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.bank-search-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-light);
}

.bank-search-clear {
  position: absolute;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: pointer;
  border: none;
  font-weight: bold;
  transition: background 0.15s;
}

.bank-search-clear:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.bank-list-scroll-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 2px;
}

.bank-modal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 10px;
  text-align: left;
}

.bank-modal-item:hover {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.bank-modal-item.selected {
  background-color: #f0fdf4;
  border-color: var(--brand-green);
}

.bank-modal-item-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  gap: 2px;
}

.bank-modal-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.bank-code-tag {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--brand-green);
  background: var(--brand-green-light);
  padding: 1px 5px;
  border-radius: 3px;
}

.bank-modal-item-sub {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-modal-item-check {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bank-check-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--brand-green);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bank-check-badge svg {
  width: 11px;
  height: 11px;
  stroke-width: 3.2;
}

.bank-empty-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  text-align: center;
  color: #64748b;
}

.bank-empty-icon {
  color: #cbd5e1;
  margin-bottom: 8px;
}

.bank-empty-icon svg {
  width: 36px;
  height: 36px;
}

.bank-empty-text {
  font-size: 13.5px;
  color: #334155;
  margin-bottom: 4px;
}

.bank-empty-sub {
  font-size: 12px;
  color: #94a3b8;
}

/* Password Requirement Checklist */
.pass-req-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-top: 6px;
}

.pass-req-item {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}

.pass-req-item.valid {
  color: var(--brand-green);
  font-weight: 600;
}

/* Guidance & Info Inline Callouts (Borderless Clean Text) */
.guidance-box,
.info-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 2px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  margin: 0px 0px 12px;
}

.guidance-box.accent-green {
  background: transparent;
  border: none;
}

.guidance-icon {
  color: var(--brand-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.9;
}

.guidance-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: #475569;
  font-weight: 500;
}

.guidance-text b {
  color: var(--text-main);
  font-weight: 700;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.checkbox-line input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--brand-green);
  cursor: pointer;
}

/* ==========================================================================
   OTP SLOTS & VERIFICATION (Modern & Scientific FinTech UI)
   ========================================================================== */

.otp-page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
}

.otp-hero-badge {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--brand-green-light) 0%, #dcfce7 100%);
  border: 2px solid rgba(19, 152, 72, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  box-shadow: 0 4px 14px rgba(19, 152, 72, 0.12);
  animation: scaleUp 0.3s ease-out;
}

/* OTP Center Modal Popup Component */
.otp-center-modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 20px 20px;
  width: 92%;
  max-width: 380px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.otp-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f1f5f9;
}

.otp-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.otp-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
}

.otp-modal-icon svg {
  width: 22px;
  height: 22px;
}

.otp-modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.otp-modal-body {
  display: flex;
  flex-direction: column;
}

.otp-modal-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 14px;
  text-align: center;
}

.otp-modal-desc b {
  color: #1e293b;
}

/* Compact Channel Pill Buttons */
.otp-compact-channels {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.otp-channel-label {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 500;
}

.otp-channel-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.otp-channel-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.otp-channel-pill-btn:hover {
  background: transparent !important;
  text-decoration: underline !important;
}

.otp-channel-pill-btn[data-channel="zalo"] {
  color: #0068ff !important;
  background: transparent !important;
}

.otp-channel-pill-btn[data-channel="zalo"]:hover {
  color: #0052cc !important;
  background: transparent !important;
}

.otp-channel-pill-btn[data-channel="email"] {
  color: #059669 !important;
  background: transparent !important;
}

.otp-channel-pill-btn[data-channel="email"]:hover {
  color: #047857 !important;
  background: transparent !important;
}

.otp-channel-pill-btn[data-channel="sms"] {
  color: #475569 !important;
  background: transparent !important;
}

.otp-channel-pill-btn[data-channel="sms"]:hover {
  color: #1e293b !important;
  background: transparent !important;
}

.otp-channel-pill-btn svg {
  width: 13px;
  height: 13px;
}

.otp-target-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 11px 14px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.otp-target-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.otp-target-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: var(--brand-green-light);
  color: var(--brand-green);
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.otp-target-badge svg {
  width: 14px;
  height: 14px;
}

.otp-exp-tag {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
}

.otp-target-destination {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: #334155;
}

.otp-target-destination strong {
  font-size: 14.5px;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

/* 6-Digit Continuous OTP Layout */
.otp-slots-container {
  display: flex;
  justify-content: center;
  margin: 10px 0 16px;
}

.otp-slots-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.otp-slot-input {
  width: 44px;
  height: 50px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.otp-slot-input:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(19, 152, 72, 0.18);
  background: #ffffff;
  transform: translateY(-1px);
}

.otp-slot-input.filled {
  border-color: var(--brand-green);
  background-color: #f0fdf4;
  color: var(--brand-green);
}

/* Countdown & Resend */
.otp-countdown-container {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  min-height: 34px;
}

.otp-timer-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 12px;
  color: #475569;
}

.otp-timer-pill svg {
  color: #64748b;
  width: 13px;
  height: 13px;
}

.otp-timer-pill b {
  color: var(--brand-green);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.otp-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--brand-green-light);
  border: 1px solid rgba(19, 152, 72, 0.3);
  border-radius: 999px;
  color: var(--brand-green);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  animation: fadeIn 0.2s ease-out;
}

.otp-resend-btn:hover {
  background: #dcfce7;
  transform: scale(1.02);
}

/* Multi-Channel Cards Grid (Compact & Clean) */
.otp-channels-section {
  margin-top: 4px;
  margin-bottom: 6px;
}

.otp-channels-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.otp-channel-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.otp-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 6px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.otp-channel-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.otp-channel-card.active {
  border-color: var(--brand-green);
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(19, 152, 72, 0.12);
}

.otp-card-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: #f1f5f9;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 5px;
  transition: all 0.2s;
}

.otp-card-icon svg {
  width: 16px;
  height: 16px;
}

.otp-channel-card.active .otp-card-icon {
  background: var(--brand-green);
  color: #ffffff;
}

.otp-card-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.otp-channel-card.active .otp-card-name {
  color: var(--brand-green);
}

/* Security Assurance Footer */
.otp-security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 14px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.35;
}

.otp-security-footer svg {
  color: #94a3b8;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   ACCOUNT NUMBER MODE SELECTOR (Segmented Radio Cards)
   ========================================================================== */

.acc-mode-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.acc-mode-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.acc-mode-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.acc-mode-card.active {
  border-color: var(--brand-green);
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(19, 152, 72, 0.12);
}

.acc-mode-radio-circle {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid #cbd5e1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.acc-mode-card.active .acc-mode-radio-circle {
  border-color: var(--brand-green);
}

.acc-mode-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--brand-green);
}

.acc-mode-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.acc-mode-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  transition: color 0.2s;
}

.acc-mode-card.active .acc-mode-title {
  color: var(--brand-green);
}

.acc-mode-sub {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ==========================================================================
   ACCOUNT NUMBER GRID (2 cols x 3 rows) & CUSTOM SLOTS
   ========================================================================== */

.account-number-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0 12px;
}

.account-number-item {
  padding: 10px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-number-item:hover {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

.account-number-item.selected {
  border-color: var(--brand-green);
  background-color: #f0fdf4;
  box-shadow: 0 2px 8px rgba(19, 152, 72, 0.1);
}

.acc-num-label {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: 0.3px;
}

.account-number-item.selected .acc-num-label {
  font-weight: 700;
  color: var(--text-main);
}

.account-prefix-bold {
  color: var(--brand-green);
  font-weight: 800;
}

.acc-num-check-slot {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.acc-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background-color: var(--brand-green);
  color: #ffffff;
  border-radius: var(--radius-full);
}

.acc-check-badge svg {
  width: 10px;
  height: 10px;
  stroke-width: 3.5;
}

.custom-account-container {
  margin: 4px 0 10px;
}

.custom-slots-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin: 4px 0 10px;
  overflow-x: auto;
  padding: 4px 2px;
}

.custom-prefix-badge {
  height: 36px;
  padding: 0 8px;
  background-color: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--brand-green);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.custom-slot-input {
  width: 32px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  background: #ffffff;
  outline: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
}

.custom-slot-input.filled {
  border-color: var(--brand-green);
  background-color: #f0fdf4;
  color: var(--brand-green);
}

.custom-slot-input:focus {
  border-color: var(--brand-green);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(19, 152, 72, 0.15);
}

.custom-slot-input::placeholder {
  color: #cbd5e1;
  font-weight: normal;
  font-size: 14px;
}

/* ==========================================================================
   DOCUMENT & SELFIE UPLOADS
   ========================================================================== */

.upload-card-box {
  width: 100%;
  border: 1.5px dashed #cbd5e1;
  border-radius: var(--radius-md);
  background: #ffffff;
  padding: 24px 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 12px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  min-height: 135px;
}

.upload-card-box:hover {
  border-color: var(--brand-green);
  background-color: var(--brand-green-subtle);
}

.upload-card-box.has-image {
  border-style: solid;
  border-color: var(--border);
  background-size: cover;
  background-position: center;
}

.upload-card-top-tag {
  position: absolute;
  top: 10px;
  left: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.upload-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--brand-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 2px;
}

.upload-card-icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

.upload-card-label {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

.upload-card-hint {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.upload-card-delete {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.upload-card-delete:hover {
  color: var(--brand-red);
  border-color: var(--brand-red);
  background: #fee2e2;
}

.ekyc-selfie-frame {
  width: 195px;
  height: 255px;
  border-radius: 50% / 50%;
  border: 3px dashed var(--brand-green);
  background: #f8fafc;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 20px rgba(19, 152, 72, 0.12);
  transition: all 0.25s ease;
}

.ekyc-selfie-frame.has-image {
  border-style: solid;
}

.ekyc-selfie-frame:hover {
  border-color: var(--brand-green-hover);
  transform: scale(1.02);
  background-color: var(--brand-green-subtle);
}

/* ==========================================================================
   CONTRACT AGREEMENT (BOXED CARDS & VIEWING MODAL)
   ========================================================================== */

.contract-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 14px 0 16px;
}

/* ==========================================================================
   CONTRACT & RISK DISCLOSURE FRAMED PREVIEW COMPONENT
   ========================================================================== */

.contract-tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 6px 0 12px;
}

.contract-tab-btn {
  padding: 10px 12px;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.contract-tab-btn:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.contract-tab-btn.active {
  background: #ffffff;
  border-color: var(--brand-green);
  box-shadow: 0 2px 8px rgba(19, 152, 72, 0.12);
}

.contract-tab-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.contract-tab-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.contract-tab-num.is-read {
  background: var(--brand-green);
  color: #ffffff;
}

.contract-tab-btn.active .contract-tab-num:not(.is-read) {
  background: #cbd5e1;
  color: #0f172a;
}

.contract-tab-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Framed Document Preview Box */
.contract-preview-frame {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 12px;
}

.contract-frame-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.contract-frame-status-wrap {
  display: flex;
  align-items: center;
}

.contract-read-status-badge {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.contract-read-status-badge.all-read {
  color: var(--brand-green);
  font-weight: 700;
}

.contract-zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.contract-zoom-btn:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
  background: #f0fdf4;
}

.contract-zoom-btn svg {
  width: 13px;
  height: 13px;
}

.contract-frame-scroll {
  height: 340px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px;
  background: #e2e8f0;
  display: flex;
  justify-content: center;
}

.contract-paper-sheet {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.contract-frame-img {
  width: 100%;
  height: auto;
  display: block;
}

.contract-overall-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

/* Modal View Full Document */
.contract-modal-card {
  width: 94%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contract-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.contract-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.contract-modal-scroll-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px;
  background: #f8fafc;
  max-height: calc(90vh - 70px);
}

.contract-modal-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.contract-modal-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ==========================================================================
   LOGIN SCREEN LAYOUT (PIXEL-PERFECT PAGE 1 SPEC)
   ========================================================================== */

.login-page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 16px 20px 18px;
  position: relative;
}

.login-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 40px;
}

.mxv-top-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
}

/* Language switch capsule (Border-free minimalist flags) */
.lang-switch-capsule {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  gap: 8px;
}

.lang-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.45;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-pill-btn.active {
  opacity: 1;
  background: transparent;
  box-shadow: none;
  transform: scale(1.08);
}

.lang-pill-btn:hover {
  opacity: 0.85;
}

.flag-icon-img {
  width: 24px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: block;
}

.login-center-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 10px 0 16px;
  text-align: center;
}

.edutrade-hero-logo {
  height: 125px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(19, 152, 72, 0.12));
}

.password-row-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.password-row-wrap .password-container {
  flex: 1;
}

.bio-auth-square-btn {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.bio-auth-square-btn:hover {
  background: var(--brand-green-light);
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.remember-device-row {
  display: flex;
  align-items: center;
  margin: 6px 0 2px;
}

.login-sublinks-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--brand-green);
  margin-top: 14px;
  font-weight: 500;
}

.login-sublinks-between span {
  cursor: pointer;
}

.login-sublinks-between span:hover {
  text-decoration: underline;
}

.legal-notice-wrap {
  text-align: center;
  margin-top: 16px;
}

.legal-notice-title {
  font-size: 11.5px;
  color: var(--text-muted);
}

.legal-notice-links {
  font-size: 12px;
  margin-top: 2px;
}

.legal-notice-links a {
  color: var(--brand-green);
  text-decoration: none;
  font-weight: 600;
}

.legal-notice-links a:hover {
  text-decoration: underline;
}

.legal-arrow {
  color: var(--brand-green);
  margin: 0 4px;
  font-weight: 700;
}

.help-section-title {
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.8px;
  margin-top: auto;
  padding-top: 18px;
  margin-bottom: 10px;
  text-transform: uppercase;
}

/* ==========================================================================
   FOOTER SUPPORT BAR (4 Pill Buttons: Chatbot, Hotline, Email, FAQs)
   ========================================================================== */

.footer-support-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding-top: 4px;
}

.footer-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 32px;
  padding: 0 6px;
  background: #f1f5f9;
  border: none;
  border-radius: 9999px;
  color: #475569;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.footer-pill-btn:hover {
  background: var(--brand-green-subtle);
  color: var(--brand-green);
  transform: translateY(-1px);
}

.footer-pill-btn:active {
  transform: scale(0.96);
}

.pill-icon {
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pill-text {
  white-space: nowrap;
}

/* ==========================================================================
   MODALS & POPUPS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease-out;
}

/* ==========================================================================
   APP DIALOG / NOTIFICATION POPUP (Success, Info, Warning, Error)
   ========================================================================== */

.app-dialog-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 350px;
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-dialog-icon-wrap {
  width: auto;
  height: auto;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  animation: bounceIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-dialog-icon-wrap.success {
  background: transparent;
  color: var(--brand-green);
  border: none;
}

.app-dialog-icon-wrap.info {
  background: transparent;
  color: #2563eb;
  border: none;
}

.app-dialog-icon-wrap.warning {
  background: transparent;
  color: #f59e0b;
  border: none;
}

.app-dialog-icon-wrap.error {
  background: transparent;
  color: var(--brand-red);
  border: none;
}

.app-dialog-icon-wrap svg {
  width: 44px;
  height: 44px;
  stroke-width: 2.1;
  display: block;
}

.app-dialog-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.35;
}

.app-dialog-msg {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 20px;
  word-break: break-word;
}

.app-dialog-actions {
  display: flex;
  gap: 10px;
}

.app-dialog-actions .btn-primary,
.app-dialog-actions .btn-secondary {
  height: 36px;
  min-height: 36px;
  border-radius: 5px;
  font-size: 14px;
  padding: 5px 14px;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 100%;
  max-width: 400px;
  padding: 24px 20px;
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.modal-close-btn:hover {
  background-color: #f1f5f9;
}

.qr-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qr-modal-logo {
  height: 54px;
  width: auto;
  object-fit: contain;
  margin-bottom: 6px;
}

.qr-code-img {
  width: 170px;
  height: 170px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 10px 0 14px;
  background: #ffffff;
}

.qr-channels-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 16px;
}

.qr-channel-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background-color: #f8fafc;
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-align: left;
}

.qr-channel-item svg {
  color: var(--brand-green);
  flex-shrink: 0;
}

.bottom-sheet-card {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 440px;
  margin: 0 auto;
  background: #ffffff;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
  padding: 22px 18px 28px;
  z-index: 101;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-sheet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  transition: all 0.2s;
}

.bottom-sheet-option:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
}

.bottom-sheet-option svg {
  color: var(--brand-green);
}

.webcam-card {
  max-width: 500px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#webcam-video {
  width: 100%;
  max-height: 360px;
  border-radius: var(--radius-md);
  background: #000000;
  object-fit: cover;
  margin-bottom: 16px;
}

/* Success Card */
.success-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 10px;
}

.success-check-img {
  width: 68px;
  height: 68px;
  margin-bottom: 16px;
  animation: bounceIn 0.5s ease-out;
}

.success-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
}

.success-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

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

  to {
    opacity: 1;
  }
}

@keyframes scaleUp {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }

  50% {
    transform: scale(1.05);
  }

  70% {
    transform: scale(0.9);
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ==========================================================================
   LOGIN SCREEN (Screen 1)
   ========================================================================== */

.login-page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px 18px 20px;
  min-height: 100vh;
}

@media (min-width: 481px) {
  .login-page-container {
    min-height: calc(100vh - 40px);
  }
}

.login-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.top-left-logo {
  display: flex;
  align-items: center;
}

.mxv-top-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.lang-switch-capsule {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border-radius: var(--radius-full);
  padding: 0;
  gap: 8px;
  border: none;
}

.lang-pill-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.45;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-pill-btn.active {
  opacity: 1;
  background: transparent;
  box-shadow: none;
  transform: scale(1.08);
}

.flag-icon-img {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  display: block;
}

.login-center-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 16px;
}

.edutrade-hero-logo {
  height: 125px;
  width: auto;
  object-fit: contain;
}

.login-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.remember-device-row {
  margin: 6px 0 2px;
}

.login-form .btn-stack {
  margin-top: 0;
  padding-top: 10px;
}

.login-sublinks-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 16px;
  font-size: 13px;
  color: var(--brand-green);
  font-weight: 600;
  cursor: pointer;
}

.login-sublinks-between span:hover {
  text-decoration: underline;
}

.legal-notice-wrap {
  margin: 12px 0 20px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-muted);
}

.legal-notice-title {
  margin-bottom: 4px;
}

.legal-notice-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.legal-notice-links a {
  color: var(--brand-green);
  font-weight: 600;
  text-decoration: underline;
}

.legal-arrow {
  color: #94a3b8;
  font-size: 13px;
}

/* ==========================================================================
   UNIFIED FOOTER SUPPORT SECTION (Sticky Bottom + Divider)
   ========================================================================== */

.footer-support-section {
  margin-top: auto;
  padding-top: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: var(--border);
  margin-bottom: 14px;
}

.help-section-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}

.footer-support-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  width: 100%;
}

.footer-pill-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  min-height: 32px;
  background: #f1f5f9;
  border: none;
  border-radius: var(--radius-sm);
  color: #475569;
  transition: all 0.2s ease;
  gap: 4px;
  text-align: center;
  width: 100%;
  white-space: nowrap;
}

.footer-pill-btn:hover,
.footer-pill-btn:active {
  background: var(--brand-green-subtle);
  border-color: transparent;
  color: var(--brand-green);
  transform: translateY(-1px);
}

.pill-icon {
  font-size: 13px;
  line-height: 1;
  opacity: 0.85;
}

.pill-text {
  font-size: 11px;
  font-weight: 500;
  color: inherit;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   SECURITY TRUST BADGE (Privacy & Compliance Assurance)
   ========================================================================== */

/* Security Trust Badge (Borderless Clean Text) */
.security-trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  background-color: transparent;
  border: none;
  border-radius: 0;
  margin-top: 14px;
  margin-bottom: 4px;
}

.trust-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  flex-shrink: 0;
}

.trust-badge-text {
  font-size: 11.5px;
  line-height: 1.45;
  color: #64748b;
  font-weight: 500;
  text-align: left;
}

.trust-badge-link {
  color: var(--brand-green);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.trust-badge-link:hover {
  color: var(--brand-green-hover);
}

/* ==========================================================================
   AI SCANNING MODAL & LIVENESS CHECK ANIMATION
   ========================================================================== */

.ocr-scanning-modal {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 90%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  animation: modalPopIn 0.3s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes modalPopIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.ocr-scanner-radar {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 2px solid #86efac;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
}

.ocr-scanner-circle {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1.5px dashed #22c55e;
  animation: spinRadar 6s linear infinite;
}

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

.ocr-scanner-laser {
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #22c55e, #16a34a, transparent);
  box-shadow: 0 0 12px #22c55e;
  animation: laserScan 1.6s ease-in-out infinite alternate;
}

@keyframes laserScan {
  0% {
    top: 10%;
  }

  100% {
    top: 90%;
  }
}

.ocr-scanner-icon {
  color: var(--brand-green);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ocr-scanning-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}

.ocr-scanning-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748b;
  margin-bottom: 18px;
  max-width: 290px;
}

.ocr-scanning-bar-wrap {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.ocr-scanning-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981, #139848);
  border-radius: 10px;
  animation: fillProgress 0.9s ease-in-out forwards;
}

@keyframes fillProgress {
  0% {
    width: 0%;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}

.otp-resend-link.disabled {
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  text-decoration: none !important;
  font-weight: 500 !important;
}