/* Maps the class names used by the old (dark_voilet) inner pages onto Modernize so they
   render acceptably until each page is restyled natively. */
.main { margin: 0; padding: 0; }
.pagetitle { margin-bottom: 1.5rem; }
.pagetitle h3 { font-size: 1.25rem; font-weight: 600; }
.breadcrumb { margin-bottom: 0; }

.cmn-btn {
  display: inline-block;
  background: var(--bs-primary);
  color: #fff;
  border: 0;
  border-radius: var(--bs-border-radius);
  padding: .5rem 1rem;
  font-weight: 500;
  text-decoration: none;
}
.cmn-btn:hover { background: var(--bs-primary-hover, var(--bs-primary)); color: #fff; opacity: .9; }

.box-card {
  background: var(--bs-card-bg, var(--bs-body-bg));
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-box-shadow);
  padding: 1.25rem;
}
.box-card .top { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.box-card .icon-box {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bs-primary-bg-subtle); color: var(--bs-primary);
}
.box-card .bottom { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.box-card .bottom .item { display: flex; align-items: center; gap: .4rem; }

.cmn-table .table th { white-space: nowrap; }
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }

/* old auth markup (password reset / verification pages) inside the new auth card */
.login-signup-page .container { padding: 0; max-width: none; }
.login-signup-page .col-lg-5, .login-signup-page .col-md-10, .login-signup-page .col-lg-6 { width: 100%; flex: 0 0 100%; max-width: 100%; }
.login-signup-form .section-header { margin-bottom: 1.25rem; text-align: center; }
.pt-20 { padding-top: 20px; }
.highlight a { color: var(--bs-primary); font-weight: 500; }
.password-box { position: relative; }
.password-box .password-icon, .password-box .confirm-password-icon { position: absolute; top: 50%; right: 1rem; transform: translateY(-50%); cursor: pointer; }

/* buttons and small controls used across the order / fund / ticket pages */
.cmn-btn-close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--bs-border-color);
  background: transparent; color: var(--bs-body-color);
  display: inline-flex; align-items: center; justify-content: center;
}
.filter-btn i, .cmn-btn i { margin-left: .35rem; }
.cancel-btn, .delete-btn, .action-btn, .action-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .35rem .75rem; border-radius: var(--bs-border-radius);
  border: 1px solid var(--bs-border-color); background: transparent; color: var(--bs-body-color);
}
.delete-btn { color: var(--bs-danger); border-color: var(--bs-danger-border-subtle, var(--bs-danger)); }
.action-btn-secondary { width: 32px; height: 32px; padding: 0; }
.cmn-select2, .modal-select { width: 100% !important; }
.select2-container--default .select2-selection--single {
  height: 40px; border-color: var(--bs-border-color); background: var(--bs-body-bg);
}
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 38px; color: var(--bs-body-color); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
.gateway-img { max-width: 100%; height: auto; border-radius: var(--bs-border-radius); }
.error-image { max-width: 160px; }
.api-code-box { background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: var(--bs-border-radius); padding: 1rem; overflow-x: auto; }
.editor-dots { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--bs-border-color); margin-right: 4px; }
.cmn-file-input { width: 100%; }
.account-settings-navbar { margin-bottom: 1rem; }
.pagination-section { margin-top: 1rem; display: flex; justify-content: center; }
/* the tables switch to stacked rows on small screens in the old theme via data-label */
@media (max-width: 575.98px) { .cmn-table td::before { content: attr(data-label); display: block; font-weight: 600; font-size: .75rem; opacity: .7; } }

[v-cloak] { display: none !important; }
.mb-30 { margin-bottom: 30px; }

/* new order page */
.new_order .social-btn {
  padding: .6rem 1rem; border-radius: var(--bs-border-radius);
  background: var(--bs-body-bg); border: 1px solid var(--bs-border-color);
  display: flex; align-items: center; gap: .6rem;
  font-weight: 600; text-transform: capitalize; color: var(--bs-heading-color, var(--bs-body-color));
  transition: all .2s;
}
.new_order .social-btn:hover { color: var(--bs-primary); border-color: var(--bs-primary); }
.new_order .social-btn.activeSocialMedia, .activeSocialMedia {
  border-color: var(--bs-primary); color: var(--bs-primary); background: var(--bs-primary-bg-subtle);
}
.new_order .social-media-img { width: 18px !important; height: 18px; object-fit: contain; }
.new_order textarea[disabled], .new_order input[disabled] { background-color: var(--bs-secondary-bg); }

/* social network buttons: two per row on phones, tighter so longer names still fit */
@media (max-width: 575.98px) {
  .new_order .social-btn { padding: .5rem .6rem; gap: .4rem; font-size: .85rem; min-width: 0; }
  .new_order .social-btn img { flex-shrink: 0; }
}

/* page loader: three bouncing dots in the primary colour */
.preloader { display: flex; align-items: center; justify-content: center; }
.vb-loader { display: flex; gap: 10px; }
.vb-loader span {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bs-primary);
  animation: vb-bounce 1s infinite ease-in-out both;
}
.vb-loader span:nth-child(1) { animation-delay: -.32s; }
.vb-loader span:nth-child(2) { animation-delay: -.16s; }
@keyframes vb-bounce {
  0%, 80%, 100% { transform: scale(.4); opacity: .4; }
  40% { transform: scale(1); opacity: 1; }
}

/* show the moon in light mode and the sun in dark mode */
[data-bs-theme="dark"] .d-dark-none { display: none !important; }
[data-bs-theme="dark"] .d-dark-block { display: inline-block !important; }

/* intl-tel-input wrapper should fill its column */
.iti { width: 100%; }

/* Modernize's select2 override assumes its own taller build; re-seat the arrow for the shared select2 */
body .select2-container--default .select2-selection--single .select2-selection__arrow { top: 1px; right: 6px; width: 20px; height: 38px; }
body .select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: .75rem; }
.select2-container { display: block; width: 100% !important; vertical-align: top; }
.select2-container--default .select2-selection--single { position: relative; }
