@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

/* =========================================================
   Affiliate Solution – AdminLTE 3 Brand Theme
   Load this file AFTER adminlte.min.css
   ========================================================= */

:root {
  --as-primary: #0D47A1;
  --as-primary-dark: #083574;
  --as-primary-600: #0A3B87;
  --as-primary-50: #EEF5FF;
  --as-primary-deep: #0B1F3A;
  --as-orange: #FF6D00;
  --as-orange-hover: #E85F00;
  --as-orange-600: #E85F00;
  --as-orange-soft: #FFF3E8;
  --as-light-blue: #E3F2FD;
  --as-light-blue-hover: #D4EBFC;
  --as-content-bg: #F6F8FC;
  --as-card-bg: #FFFFFF;
  --as-heading: #0B1F3A;
  --as-text: #172033;
  --as-muted: #6B7280;
  --as-border: #E5EAF2;
  --as-success: #18864B;
  --as-success-soft: #E8F5EC;
  --as-info: #0288D1;
  --as-info-soft: #E7F5FC;
  --as-warning: #C97700;
  --as-warning-soft: #FFF7E8;
  --as-danger: #DC3545;
  --as-danger-soft: #FDECEC;
  --as-radius-sm: 6px;
  --as-radius-md: 10px;
  --as-radius-lg: 14px;
  --as-shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.05);
  --as-shadow-md: 0 8px 24px rgba(13, 71, 161, 0.12);
  --as-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

/* =========================================================
   Base
   ========================================================= */

html,
body {
  font-family: "Montserrat", "Poppins", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
  color: var(--as-text);
  background: var(--as-content-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.as-admin,
body.hold-transition {
  background: var(--as-content-bg);
}

a {
  color: var(--as-primary);
}

a:hover,
a:focus {
  color: var(--as-primary-dark);
}

::selection {
  background: var(--as-light-blue);
  color: var(--as-primary-deep);
}

:focus-visible {
  outline: 3px solid rgba(255, 109, 0, 0.35);
  outline-offset: 2px;
}

/* =========================================================
   Cards
   ========================================================= */

.card {
  margin-bottom: 1.1rem;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-lg);
  background: var(--as-card-bg);
  box-shadow: var(--as-shadow-sm);
  overflow: hidden;
}

.card-header {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 0.82rem 1rem;
  background: #FFFFFF;
  color: var(--as-heading);
  border-bottom: 1px solid var(--as-border);
}

.card-title {
  margin: 0;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}

.card-body {
  padding: 1.1rem;
}

.card-footer {
  padding: 0.8rem 1rem;
  background: #F9FBFD;
  border-top: 1px solid var(--as-border);
}

.card-tools .btn-tool {
  color: inherit;
  opacity: 0.85;
}

.card-tools .btn-tool:hover {
  opacity: 1;
}

/* Existing AdminLTE card colour classes mapped to brand palette */
.card-primary:not(.card-outline) > .card-header,
.card-blue:not(.card-outline) > .card-header,
.card-lightblue:not(.card-outline) > .card-header,
.card-cyan:not(.card-outline) > .card-header,
.card-info:not(.card-outline) > .card-header,
.card-teal:not(.card-outline) > .card-header,
.card-gray:not(.card-outline) > .card-header,
.card-secondary:not(.card-outline) > .card-header {
  background: var(--as-primary);
  color: #FFFFFF;
  border-bottom-color: transparent;
}

.card-success:not(.card-outline) > .card-header {
  background: var(--as-success);
  color: #FFFFFF;
  border-bottom-color: transparent;
}

.card-warning:not(.card-outline) > .card-header {
  background: var(--as-orange);
  color: #FFFFFF;
  border-bottom-color: transparent;
}

.card-danger:not(.card-outline) > .card-header,
.card-maroon:not(.card-outline) > .card-header {
  background: var(--as-danger);
  color: #FFFFFF;
  border-bottom-color: transparent;
}

.card-primary.card-outline,
.card-blue.card-outline,
.card-lightblue.card-outline,
.card-cyan.card-outline,
.card-info.card-outline,
.card-teal.card-outline,
.card-secondary.card-outline,
.card-gray.card-outline {
  border-top: 3px solid var(--as-primary);
}

.card-success.card-outline {
  border-top: 3px solid var(--as-success);
}

.card-warning.card-outline {
  border-top: 3px solid var(--as-orange);
}

.card-danger.card-outline,
.card-maroon.card-outline {
  border-top: 3px solid var(--as-danger);
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  min-height: 36px;
  padding: 0.48rem 0.88rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: none;
  transition: transform 0.12s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary,
.bg-primary {
  background-color: var(--as-orange) !important;
  border-color: var(--as-orange) !important;
  color: #FFFFFF !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
a.bg-primary:hover,
button.bg-primary:hover {
  background-color: var(--as-orange-hover) !important;
  border-color: var(--as-orange-hover) !important;
  color: #FFFFFF !important;
}

.btn-secondary,
.btn-info {
  background-color: var(--as-primary);
  border-color: var(--as-primary);
  color: #FFFFFF;
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-info:hover,
.btn-info:focus {
  background-color: var(--as-primary-dark);
  border-color: var(--as-primary-dark);
  color: #FFFFFF;
}

.btn-success {
  background-color: var(--as-success);
  border-color: var(--as-success);
}

.btn-warning {
  background-color: #F5A623;
  border-color: #F5A623;
  color: #2B2100;
}

.btn-danger,
.bg-danger {
  background-color: var(--as-danger) !important;
  border-color: var(--as-danger) !important;
  color: #FFFFFF !important;
}

.btn-outline-primary {
  color: var(--as-primary);
  border-color: var(--as-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--as-primary);
  border-color: var(--as-primary);
  color: #FFFFFF;
}

.btn-light {
  background: #FFFFFF;
  border-color: var(--as-border);
  color: var(--as-text);
}

.btn-block {
  width: 100%;
}

/* Current non-destructive Appender button */
#createmessageappender.btn.bg-danger {
  background: #FFFFFF !important;
  border: 1px solid var(--as-primary) !important;
  color: var(--as-primary) !important;
}

#createmessageappender.btn.bg-danger:hover {
  background: var(--as-light-blue) !important;
}

/* =========================================================
   Forms
   ========================================================= */

label {
  color: var(--as-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

.form-group {
  margin-bottom: 1rem;
}

.form-control,
.custom-select,
.custom-file-label,
.input-group-text {
  min-height: 40px;
  border: 1px solid var(--as-border);
  border-radius: 8px;
  color: var(--as-text);
  background: #FFFFFF;
  font-family: inherit;
  font-size: 0.84rem;
  box-shadow: none;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-control::placeholder {
  color: #94A3B8;
}

.form-control:focus,
.custom-select:focus,
.custom-file-input:focus ~ .custom-file-label {
  border-color: var(--as-primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.form-control:disabled,
.form-control[readonly] {
  background: #F1F5F9;
  color: var(--as-muted);
}

.input-group-text {
  background: #F8FAFC;
  color: var(--as-muted);
}

.custom-file-label::after {
  height: 38px;
  background: var(--as-light-blue);
  color: var(--as-primary);
  border-left-color: var(--as-border);
}

.icheck-success.d-inline {
  display: inline-flex !important;
  align-items: center;
  margin: 0 1rem 0.55rem 0;
}

.icheck-success input[type="radio"],
.icheck-success input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-right: 0.35rem;
  accent-color: var(--as-primary);
}

.icheck-success label {
  margin: 0;
  cursor: pointer;
}

.invalid-feedback {
  color: var(--as-danger);
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: var(--as-danger);
}

.form-control.is-valid,
.was-validated .form-control:valid {
  border-color: var(--as-success);
}

/* =========================================================
   Tables and DataTables
   ========================================================= */

.table {
  color: var(--as-text);
  font-size: 0.8rem;
}

.table th {
  color: var(--as-heading);
  font-weight: 700;
  background: #F4F8FC;
}

.table td,
.table th {
  padding: 0.72rem 0.75rem;
  vertical-align: middle;
  border-color: var(--as-border);
}

.table-striped tbody tr:nth-of-type(odd) {
  background: #FAFCFE;
}

.table-hover tbody tr:hover {
  background: var(--as-light-blue);
}

.table-bordered,
.table-bordered td,
.table-bordered th {
  border-color: var(--as-border);
}

.dataTables_wrapper {
  font-size: 0.8rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  min-height: 34px;
  border: 1px solid var(--as-border);
  border-radius: 7px;
  padding: 0.3rem 0.55rem;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  border-color: var(--as-primary);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
}

div.dt-buttons .btn,
.dt-button {
  background: var(--as-primary) !important;
  border-color: var(--as-primary) !important;
  color: #FFFFFF !important;
}

.page-link {
  color: var(--as-primary);
  border-color: var(--as-border);
}

.page-link:hover {
  color: var(--as-primary-dark);
  background: var(--as-light-blue);
  border-color: var(--as-border);
}

.page-item.active .page-link {
  background: var(--as-primary);
  border-color: var(--as-primary);
}

/* =========================================================
   Alerts, badges and callouts
   ========================================================= */

.alert {
  border-radius: var(--as-radius-md);
  font-size: 0.84rem;
  border-width: 1px;
}

.alert-success {
  color: #145A32;
  background: var(--as-success-soft);
  border-color: #B7DEC4;
}

.alert-info {
  color: #075985;
  background: var(--as-info-soft);
  border-color: #B8E0F2;
}

.alert-warning {
  color: #7A4500;
  background: var(--as-warning-soft);
  border-color: #F6D49B;
}

.alert-danger {
  color: #8B1E2B;
  background: var(--as-danger-soft);
  border-color: #F2B8C0;
}

.badge {
  padding: 0.34em 0.6em;
  border-radius: 999px;
  font-weight: 700;
}

.badge-primary {
  background: var(--as-primary);
}

.badge-info {
  background: var(--as-info);
}

.badge-success {
  background: var(--as-success);
}

.badge-warning {
  background: var(--as-orange);
  color: #FFFFFF;
}

.badge-light {
  background: var(--as-light-blue);
  color: var(--as-primary);
}

/* =========================================================
   Small boxes and info boxes
   ========================================================= */

.small-box,
.info-box {
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-lg);
  box-shadow: var(--as-shadow-sm);
  overflow: hidden;
}

.small-box {
  min-height: 126px;
}

.small-box .inner {
  padding: 1rem;
}

.small-box h3 {
  font-size: 1.7rem;
  font-weight: 800;
}

.small-box p {
  font-size: 0.78rem;
  font-weight: 600;
}

.small-box .icon {
  opacity: 0.18;
}

.small-box.bg-primary {
  background: var(--as-primary) !important;
}

.small-box.bg-secondary {
  background: var(--as-primary-deep) !important;
}

.small-box.bg-info {
  background: var(--as-info) !important;
}

.small-box.bg-success {
  background: var(--as-success) !important;
}

.small-box.bg-warning {
  background: #F5A623 !important;
  color: #2B2100 !important;
}

.small-box.bg-danger {
  background: var(--as-danger) !important;
}

.info-box {
  min-height: 92px;
  color: #FFFFFF;
}

.info-box .info-box-icon {
  width: 70px;
  background: rgba(255, 255, 255, 0.12);
}

.info-box .info-box-content {
  padding: 0.8rem 0.9rem;
}

.info-box-text {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: none;
}

.info-box-number h1,
.info-box-number {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
}

/* =========================================================
   Modals
   ========================================================= */

.modal-content {
  border: 0;
  border-radius: var(--as-radius-lg);
  box-shadow: 0 18px 60px rgba(11, 31, 58, 0.22);
  overflow: hidden;
}

.modal-header {
  padding: 1rem 1.2rem;
  background: var(--as-primary);
  color: #FFFFFF;
  border-bottom: 0;
}

.modal-title {
  font-size: 1rem;
  font-weight: 700;
}

.modal-header .close {
  color: #FFFFFF;
  text-shadow: none;
  opacity: 0.85;
}

.modal-body {
  padding: 1.2rem;
}

.modal-footer {
  padding: 0.9rem 1.2rem;
  background: #F8FAFC;
  border-top: 1px solid var(--as-border);
}

.as-confirm-modal .modal-content {
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.18);
  overflow: hidden;
}

.as-confirm-modal .modal-header,
.as-confirm-modal__header {
  align-items: center;
  padding: 18px 20px;
  color: #172033;
  background: #FFFFFF;
  border-bottom: 1px solid #E5EAF2;
}

.as-confirm-modal .modal-title {
  margin: 0;
  color: #0D47A1;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
}

.as-confirm-modal .modal-header .close,
.as-confirm-modal__close {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  margin: -6px -6px -6px auto;
  padding: 0;
  color: #667085;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 24px;
  line-height: 1;
  text-shadow: none;
  opacity: 1;
}

.as-confirm-modal .modal-header .close:hover,
.as-confirm-modal .modal-header .close:focus,
.as-confirm-modal__close:hover,
.as-confirm-modal__close:focus {
  color: #0D47A1;
  background: #E3F2FD;
  border-color: #DBE4F0;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.as-confirm-modal .modal-body,
.as-confirm-modal__body {
  padding: 20px;
  color: #172033;
  background: #FFFFFF;
}

.as-confirm-modal .modal-body .lead,
.as-confirm-modal__body .lead {
  color: #172033;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.as-confirm-modal .modal-footer,
.as-confirm-modal__footer {
  gap: 8px;
  padding: 16px 20px;
  background: #F8FAFC;
  border-top: 1px solid #E5EAF2;
}

.as-confirm-modal__cancel {
  color: #0D47A1;
  background: #FFFFFF;
  border-color: #CBD5E1;
  font-weight: 700;
}

.as-confirm-modal__cancel:hover,
.as-confirm-modal__cancel:focus {
  color: #083574;
  background: #F8FBFF;
  border-color: #0D47A1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.as-confirm-modal__danger {
  font-weight: 700;
}

/* Use this after changing <div class="modal"></div>
   to <div class="as-loading-overlay"></div> */
.as-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--as-primary);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.as-loading-overlay::before {
  content: "";
  width: 30px;
  height: 30px;
  border: 3px solid rgba(13, 71, 161, 0.16);
  border-top-color: var(--as-primary);
  border-radius: 50%;
  animation: as-publish-spin 0.75s linear infinite;
}

.as-loading-overlay::after {
  content: attr(data-loading-message);
  max-width: min(280px, calc(100vw - 32px));
}

body.loading {
  overflow: hidden;
}

body.loading .as-loading-overlay {
  display: flex;
}

/* =========================================================
   Existing custom component system
   ========================================================= */

.page-header,
.enhanced-card .card-header,
.server-icon,
.option-icon-modern,
.shared-controls-icon {
  --primary-gradient: linear-gradient(
    135deg,
    var(--as-primary) 0%,
    var(--as-primary-dark) 100%
  );
  --success-gradient: linear-gradient(
    135deg,
    var(--as-success) 0%,
    #11683A 100%
  );
  --info-gradient: linear-gradient(
    135deg,
    var(--as-info) 0%,
    var(--as-primary) 100%
  );
  --warning-gradient: linear-gradient(
    135deg,
    #F5A623 0%,
    var(--as-orange) 100%
  );
  --secondary-gradient: linear-gradient(
    135deg,
    var(--as-primary-deep) 0%,
    var(--as-primary) 100%
  );
  --danger-gradient: linear-gradient(
    135deg,
    var(--as-danger) 0%,
    #B42332 100%
  );
}

.page-header {
  background: var(--primary-gradient);
  border-radius: var(--as-radius-lg);
  box-shadow: var(--as-shadow-md);
}

.enhanced-card {
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-lg);
  box-shadow: var(--as-shadow-sm);
}

.enhanced-card:hover {
  transform: none;
  box-shadow: var(--as-shadow-md);
}

.enhanced-card .card-header {
  background: var(--primary-gradient);
  color: #FFFFFF;
}

.modern-form .form-control {
  border: 1px solid var(--as-border);
  border-radius: 8px;
}

.modern-form .form-control:focus {
  border-color: var(--as-primary);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
  transform: none;
}

.btn-modern {
  border-radius: 8px;
  font-weight: 600;
}

.server-card,
.shared-controls-card {
  background: #F8FAFC;
  border: 1px solid var(--as-border);
  border-radius: var(--as-radius-lg);
}

.bot-link-modern {
  border-color: var(--as-border);
  border-radius: var(--as-radius-md);
}

.bot-link-modern:hover {
  border-color: var(--as-primary);
  box-shadow: var(--as-shadow-sm);
}

.option-card-modern {
  border-radius: var(--as-radius-md);
}

.status-badge {
  background: var(--as-success);
}

.status-badge.offline {
  background: var(--as-danger);
}

.status-badge.checking {
  background: #F5A623;
  color: #2B2100;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 767.98px) {
  .card-body {
    padding: 0.9rem;
  }

  .card-header {
    padding: 0.75rem 0.85rem;
  }

  .btn {
    min-height: 38px;
  }

  .icheck-success.d-inline {
    display: flex !important;
    margin-right: 0;
  }

}

@media (max-width: 575.98px) {
  .small-box {
    min-height: 112px;
  }

  .table-responsive {
    border: 0;
  }
}


/* =========================================================
   V3 visual refinements after dashboard review
   ========================================================= */

/* Keep ordinary reporting/chart cards in the core brand navy.
   Red remains reserved for actual danger/destructive sections. */
.card-maroon:not(.card-outline) > .card-header {
  background: var(--as-primary);
  color: #FFFFFF;
}

.card-maroon.card-outline {
  border-top-color: var(--as-primary);
}

/* Improve dashboard card rhythm and visual hierarchy. */
.content .row + .row {
  margin-top: 0.15rem;
}

.card-header .card-title {
  line-height: 1.35;
}

.chart {
  min-height: 280px;
}

.chart canvas {
  max-width: 100%;
}

/* =========================================================
   Operational dashboard
   ========================================================= */

.as-dashboard {
  color: #172033;
  font-size: 13px;
  overflow-x: hidden;
}

.as-dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.as-dashboard-heading h1 {
  margin: 0;
  color: #172033;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.as-dashboard-heading p {
  margin: 0.2rem 0 0;
  color: #6B7280;
  font-size: 13px;
  line-height: 1.45;
}

.as-btn-orange {
  color: #FFFFFF;
  background: #FF6D00;
  border-color: #FF6D00;
  font-weight: 700;
}

.as-btn-orange:hover,
.as-btn-orange:focus {
  color: #FFFFFF;
  background: #E85F00;
  border-color: #E85F00;
}

/* =========================================================
   Public account and authentication pages
   ========================================================= */

.as-auth-body {
  min-height: 100vh;
  align-items: stretch;
  background: #F6F8FC;
  color: #172033;
}

.as-auth-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 520px);
  gap: 28px;
  width: 100%;
  max-width: 1180px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 32px 20px;
  align-items: center;
}

.as-auth-brand-panel,
.as-auth-card {
  min-width: 0;
}

.as-auth-brand-card,
.as-auth-card {
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(13, 71, 161, 0.08);
}

.as-auth-brand-card {
  padding: 36px;
}

.as-auth-logo {
  display: block;
  max-width: 230px;
  height: auto;
  margin-bottom: 28px;
}

.as-auth-brand-card h1 {
  margin: 0 0 12px;
  color: #0D47A1;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
}

.as-auth-brand-card p {
  margin: 0;
  color: #667085;
  font-size: 15px;
  line-height: 1.6;
}

.as-auth-brand-card ul {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.as-auth-brand-card li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #172033;
  font-size: 14px;
  font-weight: 700;
}

.as-auth-brand-card li i {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  color: #027A48;
  background: #ECFDF3;
  border-radius: 50%;
  font-size: 11px;
}

.as-auth-card {
  padding: 30px;
}

.as-auth-heading {
  margin-bottom: 22px;
}

.as-auth-heading h2,
.as-auth-state h2 {
  margin: 0 0 8px;
  color: #172033;
  font-size: 26px;
  font-weight: 800;
}

.as-auth-heading p,
.as-auth-state p,
.as-auth-field small,
.as-auth-switch,
.as-auth-bottom-link {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.5;
}

.as-auth-switch {
  margin-bottom: 8px;
  text-align: right;
}

.as-auth-form {
  display: grid;
  gap: 16px;
}

.as-auth-fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  border: 0;
}

.as-auth-fieldset legend {
  width: auto;
  margin: 2px 0 0;
  color: #0D47A1;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.as-auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.as-auth-field {
  display: grid;
  gap: 6px;
}

.as-auth-field label,
.as-auth-terms label {
  margin: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.as-auth-field label span {
  color: #667085;
  font-weight: 700;
}

.as-auth-field .form-control,
.as-auth-field input,
.as-auth-form input[type="email"],
.as-auth-form input[type="text"],
.as-auth-form input[type="password"] {
  min-height: 44px;
  border: 1px solid #DBE4F0;
  border-radius: 10px;
  color: #172033;
  font-size: 14px;
  box-shadow: none;
}

.as-auth-field .form-control:focus,
.as-auth-field input:focus,
.as-auth-form input[type="email"]:focus,
.as-auth-form input[type="text"]:focus,
.as-auth-form input[type="password"]:focus {
  border-color: #0D47A1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.as-auth-field .is-invalid,
.as-auth-terms .is-invalid {
  border-color: #D92D20;
}

.as-auth-password {
  position: relative;
}

.as-auth-password input {
  padding-right: 46px;
}

.as-auth-password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  color: #0D47A1;
  background: #F8FBFF;
  border: 1px solid #DBE4F0;
  border-radius: 8px;
}

.as-auth-password-toggle:hover,
.as-auth-password-toggle:focus {
  color: #0D47A1;
  border-color: #0D47A1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
  outline: 0;
}

.as-auth-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.as-auth-check {
  min-height: 24px;
}

.as-auth-check label {
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.as-auth-row a,
.as-auth-bottom-link a,
.as-auth-link-stack a,
.as-auth-help-links a,
.as-auth-terms a,
.as-auth-state-link {
  color: #0D47A1;
  font-weight: 800;
}

.as-auth-submit {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  font-weight: 800;
}

.as-auth-bottom-link {
  margin-top: 18px;
  text-align: center;
}

.as-auth-link-stack {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  text-align: center;
}

.as-auth-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.as-auth-alert p {
  margin: 4px 0 0;
}

.as-auth-alert--danger {
  color: #B42318;
  background: #FEF3F2;
  border: 1px solid #FECDCA;
}

.as-auth-alert--success {
  color: #027A48;
  background: #ECFDF3;
  border: 1px solid #A6F4C5;
}

.as-auth-error-summary:empty {
  display: none;
}

.as-auth-terms,
.as-auth-captcha {
  display: grid;
  gap: 6px;
}

.as-auth-readonly {
  background-color: #F2F4F7;
}

.as-auth-state {
  display: grid;
  gap: 12px;
  justify-items: start;
  text-align: left;
}

.as-auth-state-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
}

.as-auth-state-icon--success {
  color: #027A48;
  background: #ECFDF3;
}

.as-auth-state-icon--warning {
  color: #B54708;
  background: #FFFAEB;
}

.as-auth-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #E5EAF2;
  font-size: 12px;
}

@media (max-width: 991.98px) {
  .as-auth-shell {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .as-auth-brand-panel {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .as-auth-body {
    display: block;
  }

  .as-auth-shell {
    min-height: 100vh;
    padding: 16px;
  }

  .as-auth-card {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .as-auth-grid {
    grid-template-columns: 1fr;
  }

  .as-auth-row {
    display: grid;
  }

  .as-auth-switch {
    text-align: left;
  }
}

.as-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.as-kpi-grid[data-kpi-columns="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.as-kpi-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.as-kpi-icon,
.as-service-icon,
.as-recent-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: #0D47A1;
  background: #E3F2FD;
  border-radius: 10px;
}

.as-kpi-card-3 .as-kpi-icon {
  color: #166534;
  background: #E8F5EC;
}

.as-kpi-card-4 .as-kpi-icon {
  color: #C2410C;
  background: #FFF3E8;
}

.as-kpi-card strong {
  display: block;
  color: #172033;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.as-kpi-card span:not(.as-kpi-icon) {
  display: block;
  margin-top: 0.35rem;
  color: #172033;
  font-size: 13px;
  font-weight: 600;
}

.as-kpi-card small,
.as-status-main small,
.as-recent-row small,
.as-card-meta {
  color: #6B7280;
}

.as-kpi-card small {
  display: block;
  margin-top: 0.18rem;
  font-size: 12px;
  line-height: 1.45;
}

.as-token-cell {
  font-weight: 700;
}

.as-dashboard-card {
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.as-dashboard-card > .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 16px 20px;
  background: #FFFFFF;
  border-bottom-color: #E5EAF2;
}

.as-dashboard-card > .card-body {
  padding: 20px;
}

.as-dashboard-card .card-title {
  color: #172033;
  font-size: 15px;
  font-weight: 600;
}

.as-card-meta {
  display: block;
  margin-top: 0.16rem;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.as-range-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.72rem;
  color: #0D47A1;
  background: #E3F2FD;
  border: 1px solid #D4EBFC;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.as-card-link {
  color: #0D47A1;
  font-size: 0.76rem;
  font-weight: 800;
}

.as-card-link:hover,
.as-card-link:focus {
  color: #083574;
  text-decoration: underline;
}

.as-plan-expiry-alert {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

.as-plan-expiry-warning {
  color: #92400E;
  background: #FFFBEB;
  border-color: #FDE68A;
}

.as-plan-expiry-critical,
.as-plan-expiry-expired {
  color: #991B1B;
  background: #FEF2F2;
  border-color: #FECACA;
}

.as-plan-expiry-pulse {
  animation: as-gentle-pulse 0.9s ease-in-out 2;
}

@keyframes as-gentle-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(255, 109, 0, 0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(255, 109, 0, 0.14);
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-plan-expiry-pulse {
    animation: none;
  }
}

.as-trend-chart {
  position: relative;
  height: 330px;
}

.as-trend-chart canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

.as-status-list,
.as-automation-list,
.as-recent-list {
  display: grid;
  gap: 0;
}

.as-status-row,
.as-recent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 12px 0;
  color: #172033;
  background: #FFFFFF;
  border: 0;
  border-bottom: 1px solid #EEF2F7;
  border-radius: 0;
}

.as-status-row:first-child,
.as-recent-row:first-child {
  padding-top: 0;
}

.as-status-row:last-child,
.as-recent-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.as-status-row:hover,
.as-status-row:focus {
  color: #172033;
}

.as-status-main {
  flex: 1 1 auto;
  min-width: 0;
}

.as-status-main strong,
.as-recent-row strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}

.as-status-main small,
.as-recent-row small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}

.as-status-side {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.as-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.as-status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 0.38rem;
  border-radius: 999px;
  background: currentColor;
}

.as-status-action {
  color: #0D47A1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.as-status-action:hover,
.as-status-action:focus {
  color: #083574;
  text-decoration: underline;
}

.as-status-action-upgrade {
  color: #0B1F3A;
}

.as-status-action-upgrade:hover,
.as-status-action-upgrade:focus {
  color: #C2410C;
}

.as-status-connected,
.as-status-active {
  color: #166534;
  background: #E8F5EC;
}

.as-status-configured {
  color: #0D47A1;
  background: #E3F2FD;
}

.as-status-needs_attention {
  color: #9A3412;
  background: #FFF3E8;
}

.as-status-warning {
  color: #92400E;
  background: #FEF3C7;
}

.as-status-critical,
.as-status-expired {
  color: #991B1B;
  background: #FEE2E2;
}

.as-status-upgrade_required {
  color: #9A3412;
  background: #FFF3E8;
}

.as-status-not_configured,
.as-status-disabled,
.as-status-unavailable,
.as-status-unknown {
  color: #4B5563;
  background: #F3F4F6;
}

.as-service-whatsapp {
  color: #128C7E;
}

.as-service-telegram {
  color: #229ED9;
}

.as-service-wordpress {
  color: #21759B;
}

.as-service-blogger {
  color: #FF5722;
}

.as-service-pinterest {
  color: #E60023;
}

.as-service-twitter {
  color: #1DA1F2;
}

.as-service-facebook {
  color: #1877F2;
}

.as-plan-name {
  color: #172033;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.as-plan-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.as-plan-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 0.85rem;
  margin: 0.85rem 0 1rem;
}

.as-plan-details dt {
  color: #6B7280;
  font-size: 12px;
  font-weight: 600;
}

.as-plan-details dd {
  margin: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 600;
}

.as-health-card {
  margin-top: 18px;
}

.as-health-card > .card-body {
  padding-top: 16px;
  padding-bottom: 16px;
}

.as-health-list {
  display: grid;
  gap: 0.65rem;
}

.as-health-row {
  display: grid;
  grid-template-columns: 10px 38px 1fr;
  align-items: center;
  gap: 0.6rem;
  min-height: 28px;
  color: #172033;
}

.as-health-row span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}

.as-health-row strong {
  font-size: 16px;
  font-weight: 700;
}

.as-health-row small {
  color: #6B7280;
  font-size: 12px;
  font-weight: 600;
}

.as-health-connected span {
  background: #18864B;
}

.as-health-attention span {
  background: #FF6D00;
}

.as-health-unavailable span {
  background: #9CA3AF;
}

.as-health-upgrade span {
  background: #FF6D00;
}

.as-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.as-quick-action {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 13px 14px;
  color: #172033;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  font-weight: 600;
  transition: border-color 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.15s ease;
}

.as-quick-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: inherit;
  background: rgba(13, 71, 161, 0.08);
  border-radius: 9px;
}

.as-quick-action-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.as-quick-action-copy strong,
.as-quick-action-copy small {
  display: block;
}

.as-quick-action-copy strong {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 700;
}

.as-quick-action-copy small {
  margin-top: 2px;
  color: #6B7280;
  font-size: 12px;
  line-height: 1.35;
}

.as-quick-action-arrow {
  flex: 0 0 auto;
  color: #94A3B8;
  font-size: 0.72rem;
}

.as-quick-action:hover,
.as-quick-action:focus {
  color: #0D47A1;
  background: #F8FBFF;
  border-color: #D4EBFC;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.as-quick-action-primary {
  color: #FFFFFF;
  background: #FF6D00;
  border-color: #FF6D00;
}

.as-quick-action-primary .as-quick-action-icon {
  background: rgba(255, 255, 255, 0.18);
}

.as-quick-action-primary .as-quick-action-copy small,
.as-quick-action-primary .as-quick-action-arrow {
  color: rgba(255, 255, 255, 0.82);
}

.as-quick-action-primary:hover,
.as-quick-action-primary:focus {
  color: #FFFFFF;
  background: #E85F00;
  border-color: #E85F00;
}

.as-quick-action-secondary {
  color: #0D47A1;
  background: #FFFFFF;
  border-color: #CFE0F4;
}

.as-quick-action-utility {
  color: #172033;
  background: #F6F8FC;
  border-color: #E5EAF2;
}

.as-recent-excerpt {
  display: block;
  margin-top: 3px;
  color: #172033;
  font-size: 13px;
  line-height: 1.45;
}

.as-recent-copy {
  min-width: 0;
}

@media (max-width: 1199.98px) {
  .as-kpi-grid,
  .as-kpi-grid[data-kpi-columns="3"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as-trend-chart {
    height: 290px;
  }
}

@media (max-width: 767.98px) {
  .as-dashboard-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .as-dashboard-heading h1 {
    font-size: 24px;
  }

  .as-kpi-grid,
  .as-kpi-grid[data-kpi-columns="3"],
  .as-quick-actions {
    grid-template-columns: 1fr;
  }

  .as-status-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .as-status-side {
    width: 100%;
    margin-left: 56px;
    align-items: flex-start;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .as-trend-chart {
    height: 240px;
  }
}

/* Dashboard information boxes: improve readability over inline gradients. */
.info-box {
  box-shadow: 0 5px 16px rgba(11, 31, 58, 0.11);
}

.info-box .info-box-icon {
  font-size: 1.45rem;
}

.info-box .info-box-icon h1 {
  margin: 0;
  font-size: inherit;
}

.info-box .info-box-text {
  color: rgba(255, 255, 255, 0.94);
  letter-spacing: 0.01em;
}

.info-box .info-box-number,
.info-box .info-box-number h1 {
  color: #FFFFFF;
}

/* Post Deal page refinements. */
#createmessageappender {
  margin-bottom: 0.35rem;
}

#js-post-deal-form .card-body {
  padding-top: 1rem;
}

#js-post-deal-form textarea.form-control {
  min-height: 170px;
}

#js-post-deal-form .card-footer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

#js-post-deal-form .form-group.clearfix {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

#js-post-deal-form .icheck-success.d-inline {
  min-height: 28px;
  margin-right: 0.85rem;
  margin-bottom: 0.35rem;
}

/* Better separation for the top utility action from the main form. */
.content > .card.card-solid > .card-body > .row:first-child + hr {
  margin: 0.7rem 0 0.9rem;
  border-top-color: var(--as-border);
}

@media (max-width: 767.98px) {
  #js-post-deal-form .form-group.clearfix {
    display: block;
  }

  #js-post-deal-form .icheck-success.d-inline {
    margin-right: 0;
  }
}


/* =========================================================
   Profile dropdown
   ========================================================= */

.as-profile-dropdown {
  width: 240px;
  min-width: 240px;
  margin-top: 6px;
  padding: 0;
  overflow: hidden;
  background: #FFFFFF;
  border: 1px solid var(--as-border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14);
  font-family: "Montserrat", "Poppins", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Arial, sans-serif;
}

.as-profile-dropdown-header {
  padding: 14px 16px 12px;
  background: #FFFFFF;
  border-bottom: 1px solid var(--as-border);
}

.as-profile-name {
  display: block;
  overflow: hidden;
  color: var(--as-heading);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-profile-email {
  margin-top: 2px;
  overflow: hidden;
  color: var(--as-muted);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-profile-dropdown .dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 16px;
  color: var(--as-text);
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  background: #FFFFFF;
  border: 0;
}

.as-profile-dropdown .dropdown-item i,
.as-profile-dropdown .dropdown-item svg {
  flex: 0 0 18px;
  width: 18px;
  color: #64748B;
  font-size: 14px;
  text-align: center;
}

.as-profile-dropdown .dropdown-item:hover,
.as-profile-dropdown .dropdown-item:focus {
  color: var(--as-primary);
  background: var(--as-light-blue);
}

.as-profile-dropdown .dropdown-item:hover i,
.as-profile-dropdown .dropdown-item:hover svg,
.as-profile-dropdown .dropdown-item:focus i,
.as-profile-dropdown .dropdown-item:focus svg {
  color: var(--as-primary);
}

.as-profile-dropdown .dropdown-divider {
  margin: 0;
  border-top-color: var(--as-border);
}

.as-profile-dropdown .as-profile-logout {
  color: var(--as-danger);
}

.as-profile-dropdown .as-profile-logout i,
.as-profile-dropdown .as-profile-logout svg {
  color: var(--as-danger);
}

.as-profile-dropdown .as-profile-logout:hover,
.as-profile-dropdown .as-profile-logout:focus {
  color: #B42332;
  background: var(--as-danger-soft);
}

@media (max-width: 575.98px) {
  .as-profile-dropdown {
    width: 225px;
    min-width: 225px;
  }
}

/* =========================================================
   Affiliate Solution Final UI Polish V6
   Keep this block at the end of the theme stylesheet.
   ========================================================= */

/* Dashboard typography */
.as-dashboard {
  font-size: 13px;
}

.as-dashboard-card .card-title {
  display: block;
  width: 100%;
  margin: 0;
  color: var(--as-text);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.as-dashboard-card .as-card-meta {
  display: block;
  width: 100%;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

/* Supports a wrapper around title + metadata without changing global card headers. */
.as-dashboard-card .as-card-heading-copy {
  display: block;
  min-width: 0;
}

.as-dashboard-card .as-card-heading-copy .card-title,
.as-dashboard-card .as-card-heading-copy .as-card-meta {
  float: none;
}

/* Improve secondary-text readability */
.as-kpi-card small,
.as-status-main small,
.as-quick-action-copy small,
.as-recent-row small,
.as-plan-details dt,
.as-health-row small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

/* Keep status badge and action visually separated */
.as-status-side {
  gap: 12px;
}

.as-status-action {
  margin-left: 0;
}

/* Recent activity: keep long content readable on wide screens */
.as-recent-copy {
  min-width: 0;
  max-width: 1100px;
}

.as-recent-excerpt {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--as-text);
  font-size: 13px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/*
  Optional template support:
  Add data-count="{{ value }}" to a health row to automatically hide zero values.
*/
.as-health-row[data-count="0"] {
  display: none;
}

/* Better alignment in system-health rows */
.as-health-row {
  grid-template-columns: 10px 34px minmax(0, 1fr);
  gap: 10px;
}

.as-health-row strong {
  min-width: 22px;
  text-align: left;
}

/* Compact title/meta layout on smaller screens */
@media (max-width: 767.98px) {
  .as-dashboard-card .card-title {
    font-size: 14px;
  }

  .as-recent-copy {
    max-width: 100%;
  }

  .as-recent-excerpt {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
  }
}

/* =========================================================
   Analytics summary
   ========================================================= */

.as-analytics-summary {
  margin-bottom: 18px;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.as-analytics-total {
  margin-bottom: 14px;
}

.as-analytics-total h2 {
  margin: 0;
  color: #172033;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.as-analytics-channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.as-analytics-channel-card {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 96px;
  padding: 14px 12px;
  gap: 12px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.as-analytics-channel-card:hover {
  border-color: #D4DEEC;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06);
}

.as-analytics-channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 18px;
}

.as-analytics-channel-copy {
  display: block;
  min-width: 0;
}

.as-analytics-channel-label,
.as-analytics-channel-value {
  display: block;
}

.as-analytics-channel-label {
  overflow-wrap: anywhere;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.as-analytics-channel-value {
  margin-top: 3px;
  color: #172033;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.1;
}

.as-analytics-channel-whatsapp .as-analytics-channel-icon {
  color: #25D366;
  background: rgba(37, 211, 102, 0.12);
}

.as-analytics-channel-telegram .as-analytics-channel-icon {
  color: #229ED9;
  background: rgba(34, 158, 217, 0.12);
}

.as-analytics-channel-wordpress .as-analytics-channel-icon {
  color: #21759B;
  background: rgba(33, 117, 155, 0.12);
}

.as-analytics-channel-blogger .as-analytics-channel-icon {
  color: #FF5722;
  background: rgba(255, 87, 34, 0.12);
}

.as-analytics-channel-twitter .as-analytics-channel-icon {
  color: #1DA1F2;
  background: rgba(29, 161, 242, 0.12);
}

.as-analytics-channel-facebook .as-analytics-channel-icon {
  color: #1877F2;
  background: rgba(24, 119, 242, 0.12);
}

.as-analytics-channel-pinterest .as-analytics-channel-icon {
  color: #E60023;
  background: rgba(230, 0, 35, 0.12);
}

@media (min-width: 1600px) {
  .as-analytics-channel-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .as-analytics-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .as-analytics-summary {
    padding: 14px;
  }

  .as-analytics-total h2 {
    font-size: 15px;
  }

  .as-analytics-channel-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Affiliate Solution Post Deal Page
   ========================================================= */

.as-post-deal {
  max-width: 1480px;
  margin: 0 auto;
}

.as-post-deal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.as-post-deal-heading h1 {
  margin: 0;
  color: #172033;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.as-post-deal-heading p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-post-header-action,
.as-outline-btn {
  color: #172033;
  background: #FFFFFF;
  border: 1px solid #C8D3E2;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
}

.as-post-header-action:hover,
.as-outline-btn:hover {
  color: #0F2743;
  background: #F6FAFF;
  border-color: #9FB4CF;
}

.as-post-layout {
  align-items: flex-start;
}

.as-post-main,
.as-post-summary {
  min-width: 0;
}

.as-post-section,
.as-publish-summary,
.as-post-guidance,
.as-converted-result {
  margin-bottom: 14px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.as-post-section-heading,
.as-result-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.as-post-section-heading h2,
.as-result-heading h2,
.as-summary-heading h2,
.as-post-guidance h2 {
  margin: 0;
  color: #172033;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.as-post-section-heading p,
.as-result-heading p {
  margin: 3px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.as-section-icon,
.as-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  color: #0F2743;
  background: #EAF4FF;
  border-radius: 10px;
  font-size: 15px;
}

.as-field-label {
  display: block;
  margin-bottom: 6px;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.as-message-field {
  min-height: 210px;
  color: #172033;
  border: 1px solid #D8E2EF;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
}

.as-message-field:focus,
.as-file-input:focus {
  border-color: #0D47A1;
  box-shadow: 0 0 0 0.18rem rgba(13, 71, 161, 0.12);
}

.as-field-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
}

.as-upload-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.as-upload-control {
  flex: 1 1 auto;
  min-width: 0;
}

.as-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.as-upload-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  cursor: pointer;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
}

.as-upload-shell:focus,
.as-upload-shell:focus-visible {
  border-color: #0D47A1;
  box-shadow: 0 0 0 0.18rem rgba(13, 71, 161, 0.12);
  outline: 0;
}

.as-upload-button,
.as-upload-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.as-upload-button {
  cursor: pointer;
  color: #FFFFFF;
  background: #0D47A1;
  border: 1px solid #0D47A1;
}

.as-upload-button:hover {
  background: #0B3D8A;
  border-color: #0B3D8A;
}

.as-upload-remove {
  color: #172033;
  background: #FFFFFF;
  border: 1px solid #C8D3E2;
}

.as-upload-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.as-upload-name {
  display: block;
  overflow: hidden;
  color: #44546A;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-upload-copy small {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 12px;
  line-height: 1.3;
}

.as-mode-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.as-mode-card,
.as-destination-tile {
  position: relative;
  display: block;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.as-mode-card {
  min-height: 104px;
  padding: 14px 13px 12px;
}

.as-mode-card:hover,
.as-destination-tile:hover {
  border-color: #B8C8DC;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.as-mode-card input,
.as-destination-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.as-mode-card.is-selected,
.as-mode-card-selected {
  background: #E3F2FD;
  border-color: #0D47A1;
  box-shadow: 0 6px 18px rgba(13, 71, 161, 0.10);
}

.as-mode-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 12px;
  color: transparent;
  background: #F2F5F9;
  border: 1px solid #D8E2EF;
  border-radius: 50%;
  font-size: 11px;
}

.as-mode-card.is-selected .as-mode-indicator {
  color: #FFFFFF;
  background: #0D47A1;
  border-color: #0D47A1;
}

.as-mode-title,
.as-mode-description {
  display: block;
}

.as-mode-title {
  color: #172033;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.as-mode-description {
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.as-destination-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 12px;
}

.as-destination-tile {
  display: flex;
  align-items: flex-start;
  min-height: 148px;
  padding: 11px;
  gap: 10px;
}

.as-destination-tile.is-unavailable {
  cursor: not-allowed;
  opacity: 0.78;
}

.as-destination-tile.is-inactive {
  background: #F8FAFC;
  border-color: #E5EAF2;
  box-shadow: none;
}

.as-destination-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  background: #F2F5F9;
  border-radius: 10px;
  font-size: 18px;
}

.as-destination-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
  min-height: 100%;
}

.as-destination-name,
.as-destination-status,
.as-destination-badge,
.as-upgrade-badge {
  display: block;
}

.as-destination-name {
  color: #172033;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.as-destination-status {
  margin-top: 4px;
  color: #667085;
  font-size: 11px;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.as-destination-badge {
  width: fit-content;
  margin-top: 4px;
  padding: 3px 7px;
  color: #0D47A1;
  background: #E3F2FD;
  border: 1px solid #BBDEFB;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.as-destination-setup .as-destination-badge,
.as-destination-setup_required .as-destination-badge,
.as-destination-needs-attention .as-destination-badge,
.as-destination-needs_attention .as-destination-badge,
.as-destination-disabled .as-destination-badge,
.as-destination-unavailable .as-destination-badge {
  color: #8A4B00;
  background: #FFF7ED;
  border-color: #FED7AA;
}

.as-destination-upgrade .as-destination-badge,
.as-destination-upgrade_required .as-destination-badge {
  color: #9A3412;
  background: #FFF4DE;
  border-color: #FDBA74;
}

.as-destination-action {
  display: inline-flex;
  width: fit-content;
  margin-top: auto;
  padding-top: 8px;
  color: #0D47A1;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.as-destination-check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #FFFFFF;
  background: #0D47A1;
  border-radius: 999px;
  font-size: 10px;
}

.as-destination-tile.is-selected,
.as-destination-selected {
  background: #E3F2FD;
  border-color: #0D47A1;
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.12);
}

.as-destination-tile.is-selected .as-destination-check,
.as-destination-selected .as-destination-check {
  display: inline-flex;
}

.as-destination-setup,
.as-destination-setup_required,
.as-destination-needs-attention,
.as-destination-needs_attention,
.as-destination-disabled,
.as-destination-unavailable,
.as-destination-upgrade,
.as-destination-upgrade_required {
  background: #F8FAFC;
}

.as-upgrade-badge {
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  color: #8A4B00;
  background: #FFF4DE;
  border: 1px solid #FFE1AD;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.as-destination-whatsapp .as-destination-icon {
  color: #25D366;
  background: rgba(37, 211, 102, 0.12);
}

.as-destination-telegram .as-destination-icon {
  color: #229ED9;
  background: rgba(34, 158, 217, 0.12);
}

.as-destination-twitter .as-destination-icon {
  color: #1DA1F2;
  background: rgba(29, 161, 242, 0.12);
}

.as-destination-pinterest .as-destination-icon {
  color: #E60023;
  background: rgba(230, 0, 35, 0.12);
}

.as-destination-facebook .as-destination-icon {
  color: #1877F2;
  background: rgba(24, 119, 242, 0.12);
}

.as-destination-wordpress .as-destination-icon {
  color: #21759B;
  background: rgba(33, 117, 155, 0.12);
}

.as-destination-blogger .as-destination-icon {
  color: #FF5722;
  background: rgba(255, 87, 34, 0.12);
}

.as-post-actions,
.as-result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px -16px -16px;
  padding: 12px 16px;
  background: #F8FAFC;
  border-top: 1px solid #E5EAF2;
  border-radius: 0 0 14px 14px;
}

.as-result-actions {
  margin: 0;
  padding: 0;
  background: transparent;
  border-top: 0;
  border-radius: 0;
  justify-content: flex-start;
}

.as-post-action-summary {
  min-width: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.as-post-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.as-primary-action {
  color: #FFFFFF;
  background: #FF6D00;
  border: 1px solid #FF6D00;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 6px 14px rgba(249, 115, 22, 0.18);
}

.as-primary-action:hover,
.as-primary-action:focus {
  color: #FFFFFF;
  background: #E86000;
  border-color: #E86000;
}

.as-primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.as-post-summary {
  position: sticky;
  top: 80px;
}

.as-summary-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.as-summary-heading span {
  overflow: hidden;
  max-width: 45%;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-summary-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #EEF2F7;
}

.as-summary-row span {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.as-summary-row strong {
  min-width: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.as-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 31px;
  padding-bottom: 10px;
}

.as-summary-chip,
.as-summary-empty {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.as-summary-chip {
  color: #0D47A1;
  background: #E3F2FD;
  border: 1px solid #BBDEFB;
}

.as-summary-chip-warning {
  color: #8A4B00;
  background: #FFF7ED;
  border-color: #FED7AA;
}

.as-summary-empty {
  color: #667085;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
}

.as-summary-note,
.as-summary-warning {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.as-summary-note {
  color: #155E75;
  background: #ECFEFF;
  border: 1px solid #CFFAFE;
}

.as-summary-warning {
  color: #8A4B00;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
}

.as-upgrade-link {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  color: #0F2743;
  font-size: 12px;
  font-weight: 700;
}

.as-post-guidance h2 {
  margin-bottom: 8px;
}

.as-guidance-message {
  margin: 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.as-guidance-message + .as-guidance-message {
  margin-top: 7px;
}

.as-error-alert {
  margin-bottom: 18px;
  padding: 14px 16px;
  color: #7F1D1D;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 12px;
}

.as-error-alert h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.as-error-alert ul {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.5;
}

.as-converted-result {
  border-color: #B7E4C7;
}

.as-result-icon {
  color: #FFFFFF;
  background: #16A34A;
}

.as-converted-message {
  max-height: 360px;
  margin-bottom: 14px;
  padding: 14px;
  overflow: auto;
  color: #172033;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

@media (max-width: 1199.98px) {
  .as-destination-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .as-post-summary {
    position: static;
    top: auto;
  }

  .as-mode-grid {
    grid-template-columns: 1fr;
  }

  .as-destination-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .as-post-deal-heading,
  .as-upload-row {
    align-items: stretch;
    flex-direction: column;
  }

  .as-post-header-action,
  .as-post-actions .btn,
  .as-post-action-buttons,
  .as-result-actions .btn {
    width: 100%;
  }

  .as-upload-shell,
  .as-post-actions,
  .as-post-action-buttons {
    align-items: stretch;
    flex-direction: column;
  }

  .as-post-section,
  .as-publish-summary,
  .as-post-guidance,
  .as-converted-result {
    padding: 14px;
  }

  .as-post-actions {
    margin: 14px -14px -14px;
    padding: 12px 14px;
  }

  .as-post-deal-heading h1 {
    font-size: 21px;
  }

  .as-destination-grid {
    grid-template-columns: 1fr;
  }

  .as-summary-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .as-summary-row strong {
    text-align: left;
  }
}

/* Affiliate Solution Message Appender Page */
.as-appender {
  color: #172033;
}

.as-appender-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.as-appender-heading h1 {
  margin: 0 0 6px;
  color: #0D47A1;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
}

.as-appender-heading p,
.as-appender-section-heading p,
.as-appender-switch p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-appender-alerts,
.as-appender-warning {
  margin-bottom: 16px;
}

.as-appender-warning {
  padding: 12px 14px;
  color: #8A4B00;
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.as-appender-layout {
  row-gap: 18px;
}

.as-appender-main,
.as-appender-side {
  min-width: 0;
}

.as-appender-section,
.as-appender-summary {
  margin-bottom: 16px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
}

.as-appender-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.as-appender-section-heading h2,
.as-appender-summary h2 {
  margin: 0 0 6px;
  color: #0D47A1;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.as-appender-field {
  margin-bottom: 0;
}

.as-appender-textarea {
  min-height: 150px;
  resize: vertical;
}

.as-appender-counter {
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
}

.as-appender-interval {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.as-appender-interval .form-control {
  width: 120px;
  max-width: 100%;
}

.as-appender-interval span {
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.as-appender-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #EEF2F7;
}

.as-appender-switch label {
  margin: 0;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.as-appender-switch-off-note {
  margin-top: 4px !important;
}

.as-appender-switch-control {
  position: relative;
  flex: 0 0 auto;
  width: 50px;
  height: 28px;
  cursor: pointer;
}

.as-appender-switch-control input {
  position: absolute;
  opacity: 0;
}

.as-appender-switch-control span {
  display: block;
  width: 100%;
  height: 100%;
  background: #E5EAF2;
  border: 1px solid #CBD5E1;
  border-radius: 999px;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.as-appender-switch-control span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  background: #FFFFFF;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.2);
  transition: transform 0.18s ease;
}

.as-appender-switch-control input:checked + span {
  background: #0D47A1;
  border-color: #0D47A1;
}

.as-appender-switch-control input:checked + span::after {
  transform: translateX(22px);
}

.as-appender-switch-control input:focus-visible + span,
.as-appender-platform-tile:focus-within {
  outline: 3px solid rgba(255, 109, 0, 0.22);
  outline-offset: 2px;
}

.as-appender-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.as-appender-platform-tile {
  position: relative;
  display: flex;
  gap: 12px;
  min-height: 148px;
  height: 100%;
  margin: 0;
  padding: 14px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.as-appender-platform-tile input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.as-appender-platform-tile.is-selected {
  background: #E3F2FD;
  border-color: #0D47A1;
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.12);
}

.as-appender-platform-tile.is-disabled {
  cursor: default;
  background: #F8FAFC;
}

.as-appender-platform-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: #FFFFFF;
  background: #0D47A1;
  border-radius: 50%;
  font-size: 11px;
}

.as-appender-platform-tile.is-selected .as-appender-platform-check {
  display: inline-flex;
}

.as-appender-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  font-size: 18px;
}

.as-appender-platform-whatsapp .as-appender-platform-icon {
  color: #16A34A;
}

.as-appender-platform-telegram .as-appender-platform-icon {
  color: #229ED9;
}

.as-appender-platform-twitter .as-appender-platform-icon {
  color: #1DA1F2;
}

.as-appender-platform-facebook .as-appender-platform-icon {
  color: #1877F2;
}

.as-appender-platform-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 100%;
}

.as-appender-platform-name {
  color: #172033;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.as-appender-platform-badge {
  align-self: flex-start;
  margin-top: 7px;
  padding: 4px 8px;
  color: #0D47A1;
  background: #E3F2FD;
  border: 1px solid #BBDEFB;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.as-appender-platform-helper,
.as-appender-platform-warning {
  margin-top: 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.as-appender-platform-warning {
  color: #8A4B00;
}

.as-appender-platform-action {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 10px;
  color: #0D47A1;
  font-size: 12px;
  font-weight: 800;
}

.as-appender-platform-error {
  grid-column: 1 / -1;
  margin-top: -4px;
  color: #7F1D1D;
  font-size: 12px;
  line-height: 1.4;
}

.as-appender-summary {
  position: sticky;
  top: 82px;
}

.as-appender-preview {
  min-height: 22px;
  margin: -3px 0 10px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.as-appender-guidance {
  position: static;
}

.as-appender-guidance ul {
  margin: 0 0 14px;
  padding-left: 18px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
}

.as-appender-example {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
}

.as-appender-example span {
  display: block;
  padding: 8px 10px;
  color: #172033;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.as-appender-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 18px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(23, 32, 51, 0.07);
}

.as-appender-actions > div {
  display: flex;
  gap: 10px;
}

.as-appender-unsaved {
  color: #8A4B00;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 991.98px) {
  .as-appender-summary {
    position: static;
    top: auto;
  }
}

@media (max-width: 575.98px) {
  .as-appender-heading,
  .as-appender-switch,
  .as-appender-actions,
  .as-appender-actions > div {
    align-items: stretch;
    flex-direction: column;
  }

  .as-appender-heading .btn,
  .as-appender-actions .btn,
  .as-appender-actions > div {
    width: 100%;
  }

  .as-appender-section,
  .as-appender-summary,
  .as-appender-actions {
    padding: 14px;
  }

  .as-appender-platform-grid {
    grid-template-columns: 1fr;
  }
}

.as-connection-page,
.as-telegram {
  color: #172033;
  padding-bottom: 24px;
}

.as-connection-header,
.as-connection-guide,
.as-connection-summary,
.as-connection-table,
.as-connection-form-card,
.as-connection-checklist,
.as-telegram-heading,
.as-telegram-page-header,
.as-telegram-guide,
.as-telegram-summary,
.as-telegram-list,
.as-telegram-empty,
.as-telegram-form-card,
.as-telegram-status-card,
.as-telegram-guide-card {
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.as-connection-header,
.as-telegram-heading,
.as-telegram-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px;
}

.as-telegram-page-header {
  align-items: center;
}

.as-connection-header h1,
.as-telegram-heading h1,
.as-telegram-page-header h1 {
  margin: 0 0 6px;
  color: #0D47A1;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
}

.as-connection-header p,
.as-connection-header span,
.as-connection-guide p,
.as-connection-form small,
.as-telegram-heading p,
.as-telegram-heading span,
.as-telegram-page-header p,
.as-telegram-guide p,
.as-telegram-form small,
.as-telegram-status-card small {
  margin-bottom: 0;
  color: #667085;
  font-size: 13px;
}

.as-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.as-platform--telegram,
.as-platform-telegram {
  color: #229ED9;
  background: #E7F6FD;
}

.as-platform--whatsapp,
.as-platform-whatsapp {
  color: #16A34A;
  background: #ECFDF3;
}

.as-platform--x,
.as-platform-twitter {
  color: #1DA1F2;
  background: #E8F5FE;
}

.as-platform--facebook,
.as-platform-facebook {
  color: #1877F2;
  background: #EEF5FF;
}

.as-platform--wordpress {
  color: #21759B;
  background: #EAF4F8;
}

.as-platform--blogger {
  color: #FF5722;
  background: #FFF0E9;
}

.as-platform--pinterest {
  color: #E60023;
  background: #FDECEF;
}

.as-primary-action,
.as-telegram-primary {
  color: #FFFFFF;
  background: #FF6D00;
  border-color: #FF6D00;
  font-weight: 700;
}

.as-primary-action:hover,
.as-primary-action:focus,
.as-telegram-primary:hover,
.as-telegram-primary:focus {
  color: #FFFFFF;
  background: #E96300;
  border-color: #E96300;
}

.as-connection-guide,
.as-connection-guide-list,
.as-telegram-guide {
  margin-bottom: 16px;
  padding: 18px;
}

.as-connection-guide-list {
  display: grid;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.as-connection-guide h2,
.as-telegram-guide h2,
.as-telegram-empty h2,
.as-telegram-guide-card h2 {
  margin-bottom: 12px;
  color: #0D47A1;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.as-connection-guide ol,
.as-telegram-guide ol,
.as-telegram-empty ul {
  margin-bottom: 10px;
  padding-left: 22px;
}

.as-connection-steps ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style-position: inside;
}

.as-connection-guide li,
.as-telegram-guide li,
.as-telegram-empty li {
  margin-bottom: 4px;
  font-size: 13px;
}

.as-summary-grid,
.as-connection-summary,
.as-telegram-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  padding: 16px;
}

.as-summary-grid[data-summary-columns="3"],
.as-connection-summary[data-summary-columns="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.as-summary-item,
.as-connection-summary-item,
.as-telegram-summary div {
  border-left: 3px solid #229ED9;
  padding: 6px 10px;
}

.as-connection-summary strong,
.as-telegram-summary strong {
  display: block;
  color: #0D47A1;
  font-size: 22px;
  line-height: 1;
}

.as-connection-summary span,
.as-telegram-summary span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.as-summary-help {
  margin: -6px 0 16px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-summary-help strong {
  color: #172033;
  font-weight: 800;
}

.as-connection-table,
.as-telegram-list {
  padding: 14px;
  overflow-x: auto;
}

.as-connection-table-help {
  margin: 0 0 12px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-secret-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 190px;
}

.as-secret-cell strong {
  color: #172033;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  font-weight: 700;
  word-break: break-word;
}

.as-secret-cell small {
  color: #667085;
  font-size: 12px;
}

.as-connection-table .dataTables_wrapper {
  width: 100%;
}

.as-connection-table .table-responsive,
.as-connection-table .dataTables_scroll,
.as-connection-table .dataTables_scrollBody {
  max-width: 100%;
}

.as-connection-table .as-table-toolbar,
.as-table-toolbar {
  align-items: center;
  margin-bottom: 10px;
}

.as-connection-table .dataTables_filter,
.as-table-search {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 10px;
}

.as-connection-table .dataTables_filter label,
.as-table-search label {
  position: relative;
  margin: 0;
  color: transparent;
  font-size: 0;
}

.as-connection-table .dataTables_filter label::before,
.as-table-search label::before {
  content: "\f002";
  position: absolute;
  top: 50%;
  left: 12px;
  z-index: 1;
  transform: translateY(-50%);
  color: #667085;
  font-family: "Font Awesome 5 Free";
  font-size: 12px;
  font-weight: 900;
  pointer-events: none;
}

.as-connection-table .dataTables_filter input,
.as-table-search input {
  width: 252px;
  height: 38px;
  min-height: 38px;
  margin-left: 0 !important;
  padding: 8px 12px 8px 34px;
  border: 1px solid #E5EAF2;
  border-radius: 9px;
  color: #172033;
  font-family: inherit;
  font-size: 12px;
}

.as-connection-table .dataTables_filter input:focus,
.as-table-search input:focus {
  border-color: #0D47A1;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.as-type-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid #D6E1F0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.as-type-group {
  color: #0D47A1;
  background: #EAF3FF;
}

.as-type-channel {
  color: #315466;
  background: #EEF7F8;
  border-color: #CFE4E8;
}

.as-telegram-list table {
  min-width: 820px;
  margin-bottom: 0;
}

.as-telegram-list th {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.as-telegram-list th:last-child {
  width: 190px;
}

.as-telegram-list td {
  vertical-align: middle;
  border-top: 1px solid #EEF2F7;
  padding: 14px 10px;
}

.as-telegram-list td:nth-child(2) {
  max-width: 260px;
}

.as-telegram-channel-name {
  color: #172033;
  font-weight: 800;
}

.as-telegram-private-channel {
  color: #0D47A1;
}

.as-telegram-channel-secondary {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.as-website-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.as-website-title {
  color: #172033;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.as-website-url {
  display: block;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.as-telegram-status-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.as-status,
.as-connection-status,
.as-telegram-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.as-status--success,
.as-status--ready,
.as-telegram-status-ready {
  color: #067647;
  background: #ECFDF3;
}

.as-status--warning,
.as-status--needs_attention,
.as-status--setup_required,
.as-status--in_progress,
.as-telegram-status-needs_attention,
.as-telegram-status-setup_required {
  color: #B54708;
  background: #FFFAEB;
}

.as-status--danger {
  color: #B42318;
  background: #FEF3F2;
}

.as-status--muted,
.as-status--not_configured,
.as-status--disabled,
.as-telegram-status-disabled {
  color: #344054;
  background: #F2F4F7;
}

.as-status--info,
.as-status--unavailable,
.as-telegram-status-unavailable {
  color: #344054;
  background: #F2F4F7;
}

.as-telegram-publishing {
  min-width: 158px;
}

.as-publish-control,
.as-telegram-publish-control {
  display: inline-flex;
  min-height: 0;
  padding-left: 0;
  cursor: pointer;
}

.as-publish-control .custom-control-input,
.as-telegram-publish-control .custom-control-input {
  position: absolute;
}

.as-publish-control .custom-control-label::before,
.as-publish-control .custom-control-label::after,
.as-telegram-publish-control .custom-control-label::before,
.as-telegram-publish-control .custom-control-label::after {
  display: none;
}

.as-connection-publish-state,
.as-publish-state,
.as-telegram-publish-state {
  display: inline-flex;
  min-width: 156px;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}

.as-connection-publish-state span,
.as-publish-state span,
.as-telegram-publish-state span {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 5px rgba(23, 32, 51, 0.22);
  transition: transform 0.16s ease, background-color 0.16s ease;
}

.as-publish-state--enabled,
.as-publish-enabled,
.as-telegram-publish-enabled {
  color: #05603A;
  background: #ECFDF3;
}

.as-publish-state--enabled span,
.as-publish-enabled span,
.as-telegram-publish-enabled span {
  background: #12B76A;
  box-shadow: inset 0 0 0 4px #FFFFFF, 0 1px 5px rgba(23, 32, 51, 0.22);
}

.as-publish-state--disabled,
.as-publish-disabled,
.as-telegram-publish-disabled {
  color: #344054;
  background: #F2F4F7;
}

.as-publish-state--disabled span,
.as-publish-disabled span,
.as-telegram-publish-disabled span {
  background: #98A2B3;
  box-shadow: inset 0 0 0 4px #FFFFFF, 0 1px 5px rgba(23, 32, 51, 0.22);
}

.as-whatsapp-groups-page .as-publish-disabled,
.as-telegram-list .as-publish-disabled {
  color: #9F1239;
  background: #FFF1F2;
  border-color: #FECDD3;
}

.as-whatsapp-groups-page .as-publish-disabled span,
.as-telegram-list .as-publish-disabled span {
  background: #E11D48;
}

.as-publish-state--attention,
.as-telegram-publish-attention {
  color: #B54708;
  background: #FFFAEB;
}

.as-publish-state--attention span,
.as-telegram-publish-attention span {
  background: #F79009;
}

.as-publish-state--processing,
.as-publish-state--unavailable,
.as-telegram-publish-unavailable {
  color: #344054;
  background: #F2F4F7;
}

.as-publish-state--processing span,
.as-publish-state--unavailable span,
.as-telegram-publish-unavailable span {
  background: #98A2B3;
}

.as-publish-control .custom-control-input:focus ~ .custom-control-label,
.as-telegram-publish-control .custom-control-input:focus ~ .custom-control-label {
  box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.15);
}

.as-publish-control .custom-control-label,
.as-telegram-publish-control .custom-control-label {
  color: #172033;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.as-publish-control .custom-control-label:hover,
.as-telegram-publish-control .custom-control-label:hover {
  border-color: #CBD5E1;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(23, 32, 51, 0.08);
}

.as-publish-control .as-publish-enabled,
.as-telegram-publish-control .as-telegram-publish-enabled {
  color: #05603A;
}

.as-publish-control .as-publish-disabled,
.as-telegram-publish-control .as-telegram-publish-disabled {
  color: #344054;
}

.as-whatsapp-groups-page .as-publish-control .as-publish-disabled,
.as-telegram-list .as-telegram-publish-control .as-publish-disabled,
.as-connection-table .as-publish-control .as-publish-disabled {
  color: #9F1239;
  background: #FFF1F2;
  border-color: #FECDD3;
}

.as-publish-control-busy,
.as-publish-control-busy .custom-control-label {
  cursor: wait;
}

.as-publish-processing {
  min-width: 128px;
  color: #475467;
  background: #F2F4F7;
  border-color: #D0D5DD;
}

.as-publish-spinner {
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  border: 2px solid #CBD5E1;
  border-top-color: #0D47A1;
  border-radius: 50%;
  background: transparent !important;
  box-shadow: none !important;
  animation: as-publish-spin 0.75s linear infinite;
}

.as-publish-label {
  width: auto !important;
  height: auto !important;
  flex: 0 1 auto !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

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

.as-publish-control .custom-control-input:focus-visible ~ .custom-control-label,
.as-telegram-publish-control .custom-control-input:focus-visible ~ .custom-control-label {
  border-color: #0D47A1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.14);
}

.as-telegram-last-checked,
.as-telegram-status-wrap small {
  color: #667085;
  font-size: 12px;
}

.as-row-actions,
.as-connection-actions,
.as-telegram-actions {
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.as-telegram-actions > .btn {
  min-height: 34px;
  border-radius: 7px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.as-telegram-actions > .btn-outline-primary {
  color: #0D47A1;
  border-color: #0D47A1;
}

.as-telegram-actions > .btn-outline-primary:hover,
.as-telegram-actions > .btn-outline-primary:focus {
  color: #0D47A1;
  background: #E3F2FD;
}

.as-action-menu,
.as-telegram-action-menu {
  min-width: 190px;
  padding: 6px;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.12);
}

.as-action-item,
.as-telegram-action-item {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  padding: 8px 10px;
  color: #172033;
  font-family: "Montserrat", "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.as-action-item i,
.as-telegram-action-item i {
  width: 14px;
  color: #0D47A1;
  text-align: center;
}

.as-action-item:hover,
.as-action-item:focus,
.as-telegram-action-item:hover,
.as-telegram-action-item:focus {
  color: #0D47A1;
  background: #E3F2FD;
}

.as-action-item--danger,
.as-action-item--danger i,
.as-telegram-action-danger,
.as-telegram-action-danger i {
  color: #B42318;
}

.as-action-item--danger:hover,
.as-action-item--danger:focus,
.as-telegram-action-danger:hover,
.as-telegram-action-danger:focus {
  color: #B42318;
  background: #FEF3F2;
}

.as-action-menu .dropdown-divider,
.as-telegram-action-menu .dropdown-divider {
  margin: 6px 4px;
  border-color: #E5EAF2;
}

.as-empty-state,
.as-telegram-empty {
  padding: 30px;
  text-align: center;
}

.as-empty-state .fab,
.as-telegram-empty .fab {
  color: #229ED9;
  font-size: 34px;
  margin-bottom: 10px;
}

.as-empty-state p,
.as-telegram-empty p {
  color: #667085;
  font-size: 14px;
}

.as-empty-state div,
.as-telegram-empty div {
  display: inline-block;
  margin-top: 18px;
  text-align: left;
}

.as-connection-layout,
.as-telegram-connect-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.as-connection-form,
.as-telegram-form {
  min-width: 0;
}

.as-connection-form-card,
.as-telegram-form-card {
  padding: 20px;
}

.as-telegram-form label {
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.as-telegram-form .form-control:focus,
.as-telegram-actions .btn:focus,
.as-telegram-primary:focus,
.as-telegram-token-toggle:focus,
.as-telegram-action-item:focus {
  border-color: #0D47A1;
  box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.15);
}

.as-telegram-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.as-credential-card,
.as-telegram-token-card,
.as-telegram-status-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
}

.as-telegram-token-card {
  grid-template-columns: 1fr auto;
  align-items: center;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
}

.as-telegram-token-card span,
.as-telegram-status-card span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.as-telegram-token-card strong,
.as-telegram-status-card strong {
  display: block;
  color: #172033;
  font-size: 14px;
}

.as-telegram-summary-item {
  min-width: 0;
}

.as-telegram-summary-item strong,
.as-telegram-summary-item small {
  overflow-wrap: anywhere;
}

.as-telegram-token-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.as-telegram-revealed-token {
  grid-column: 1 / -1;
  padding-top: 14px;
  border-top: 1px solid #E5EAF2;
}

.as-telegram-revealed-token label {
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.as-telegram-token-field .input-group,
.as-telegram-revealed-token .input-group {
  min-width: 0;
}

.as-telegram-token-field .form-control,
.as-telegram-revealed-token .form-control {
  min-width: 0;
  overflow-wrap: anywhere;
}

.as-telegram-connect-guide {
  display: grid;
  gap: 16px;
}

.as-telegram-guide-card {
  padding: 18px;
}

.as-telegram-guide-card ol {
  margin: 0;
  padding-left: 20px;
}

.as-telegram-guide-card li {
  margin-bottom: 8px;
  color: #172033;
  font-size: 13px;
}

.as-telegram-guide-card p {
  margin: 0 0 8px;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.as-x-settings-page {
  max-width: 1180px;
  margin: 0 auto;
}

.as-connection-layout,
.as-x-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: start;
}

.as-x-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 20px;
  flex: 0 0 auto;
}

.as-x-form-card {
  min-width: 0;
}

.as-x-form-intro {
  margin-bottom: 18px;
}

.as-x-form-intro h2,
.as-x-section h3 {
  margin: 0 0 6px;
  color: #0D47A1;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.as-x-form-intro p,
.as-x-section p,
.as-x-summary-status p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-x-alert {
  font-size: 13px;
}

.as-x-section {
  border-top: 1px solid #E5EAF2;
  padding-top: 18px;
  margin-top: 18px;
}

.as-x-credential-field label {
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.as-x-credential-input-group {
  min-width: 0;
}

.as-x-credential-input-group .form-control {
  min-width: 0;
}

.as-x-credential-input-group .btn:focus,
.as-x-credential-field .form-control:focus,
.as-x-actions .btn:focus,
.as-x-disconnect-modal .btn:focus {
  border-color: #0D47A1;
  box-shadow: 0 0 0 0.2rem rgba(13, 71, 161, 0.15);
}

.as-credential-control .as-credential-card,
.as-x-configured-credential {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #E5EAF2;
  border-radius: 9px;
  padding: 12px;
  background: #F8FAFC;
}

.as-x-configured-credential span {
  display: block;
  color: #05603A;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.as-x-configured-credential strong {
  display: block;
  color: #172033;
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.4;
}

.as-status--configured,
.as-x-status-configured {
  color: #05603A;
  background: #ECFDF3;
}

.as-x-summary-card .as-check-row strong,
.as-x-summary-card .as-telegram-check-row strong {
  max-width: 190px;
  white-space: normal;
  text-align: right;
}

.as-x-disconnect-modal .modal-content {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.18);
}

.as-x-disconnect-modal .modal-title {
  color: #172033;
  font-size: 18px;
  font-weight: 800;
}

.as-x-upgrade-card {
  max-width: 720px;
  margin: 0 auto;
}

.as-connection-checklist .as-check-row,
.as-connection-checklist .as-telegram-check-row,
.as-check-row,
.as-telegram-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #E5EAF2;
  padding: 12px 0;
}

.as-check-row:first-of-type,
.as-telegram-check-row:first-of-type {
  border-top: 0;
}

.as-check-row span,
.as-telegram-check-row span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.as-check-row strong,
.as-telegram-check-row strong {
  border-radius: 999px;
  padding: 4px 9px;
  color: #667085;
  background: #F2F4F7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}

.as-check-row.as-check-row--checking strong,
.as-telegram-check-row.as-telegram-check-checking strong {
  color: #0D47A1;
  background: #E3F2FD;
}

.as-check-row.as-check-row--passed strong,
.as-telegram-check-row.as-telegram-check-passed strong {
  color: #05603A;
  background: #ECFDF3;
}

.as-check-row.as-check-row--attention strong,
.as-telegram-check-row.as-telegram-check-attention strong {
  color: #B54708;
  background: #FFFAEB;
}

.as-check-row.as-check-row--waiting strong,
.as-check-row.as-check-row--not-checked strong,
.as-telegram-check-row.as-telegram-check-waiting strong,
.as-telegram-check-row.as-telegram-check-not-checked strong {
  color: #667085;
  background: #F2F4F7;
}

.as-check-row.as-check-row--unavailable strong,
.as-telegram-check-row.as-telegram-check-unavailable strong {
  color: #344054;
  background: #F2F4F7;
}

.as-telegram-token-modal .modal-title {
  font-size: 18px;
  font-weight: 800;
}

.as-telegram-token-modal .modal-body {
  color: #172033;
  font-size: 14px;
  line-height: 1.5;
}

.as-telegram-delete .modal-content {
  border: 0;
  border-radius: 14px;
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.18);
}

.as-telegram-delete .modal-title {
  color: #172033;
  font-size: 18px;
  font-weight: 800;
}

.as-telegram-delete .modal-body {
  color: #172033;
  font-size: 14px;
}

.as-telegram-delete .modal-footer .btn {
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

/* =========================================================
   WAHA WhatsApp setup and group management
   ========================================================= */

.as-waha {
  max-width: 1180px;
  margin: 0 auto;
}

.as-whatsapp-groups-page {
  max-width: 1280px;
}

.as-whatsapp-connected-page {
  max-width: 1180px;
}

.as-connection-layout.as-waha-login-layout,
.as-waha-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
  gap: 16px;
  align-items: start;
}

.as-waha-login-card {
  padding: 20px;
}

.as-progress-steps,
.as-waha-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.as-progress-step,
.as-waha-progress-step {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.05);
}

.as-progress-step span,
.as-waha-progress-step span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  align-items: center;
  justify-content: center;
  color: #0D47A1;
  background: #E3F2FD;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.as-progress-step strong,
.as-waha-progress-step strong {
  min-width: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.as-progress-step.is-active,
.as-waha-progress-step.is-active {
  border-color: #B7D9F8;
}

.as-progress-step.is-active span,
.as-waha-progress-step.is-active span {
  color: #FFFFFF;
  background: #0D47A1;
}

.as-method-tabs,
.as-waha-tabs {
  gap: 8px;
  border-bottom: 1px solid #E5EAF2;
}

.as-method-tabs .nav-link,
.as-waha-tabs .nav-link {
  min-height: 42px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px 8px 0 0;
  color: #667085;
  font-size: 13px;
  font-weight: 800;
}

.as-method-tabs .nav-link.active,
.as-waha-tabs .nav-link.active {
  color: #0D47A1;
  background: #FFFFFF;
  border-color: #E5EAF2 #E5EAF2 #FFFFFF;
}

.as-waha-tab-content {
  padding-top: 18px;
}

.as-waha-method-header h2,
.as-waha-connected-copy h2,
.as-waha-action-card h2 {
  margin: 0 0 6px;
  color: #0D47A1;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.as-waha-method-header p,
.as-waha-connected-copy p,
.as-waha-action-card p,
.as-waha-upgrade-card p {
  margin-bottom: 14px;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.as-qr-frame,
.as-waha-qr-frame {
  display: flex;
  min-height: 280px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 10px;
}

.as-qr-frame img,
.as-waha-qr-frame img {
  max-width: min(320px, 100%);
  max-height: 320px;
  object-fit: contain;
}

.as-waha-qr-message {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #667085;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.as-waha-qr-error {
  color: #B42318;
}

.as-waha-help-panel {
  position: sticky;
  top: 82px;
}

.as-waha-code-card {
  margin-top: 16px;
  padding: 16px;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
}

.as-waha-code-card > span {
  display: block;
  margin-bottom: 8px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.as-waha-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.as-waha-code-row strong {
  color: #172033;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.as-waha-code-card ol {
  margin: 0;
  padding-left: 20px;
  color: #172033;
  font-size: 13px;
  line-height: 1.55;
}

.as-empty-state.as-waha-upgrade-card,
.as-empty-state.as-x-upgrade-card,
.as-waha-upgrade-card {
  max-width: 560px;
  margin: 28px auto;
  padding: 30px;
  text-align: center;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.as-account-status-icon,
.as-waha-upgrade-icon,
.as-waha-connected-icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  color: #16A34A;
  background: #ECFDF3;
  border-radius: 50%;
  font-size: 28px;
}

.as-waha-upgrade-card h1 {
  margin: 14px 0 8px;
  color: #0D47A1;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
}

.as-waha-upgrade-actions,
.as-waha-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.as-waha-upgrade-actions {
  justify-content: center;
}

.as-account-status-card,
.as-waha-connected-card,
.as-waha-action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.as-waha-connected-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.as-waha-connected-copy h2 {
  margin-top: 10px;
}

.as-account-detail {
  display: grid;
  gap: 3px;
}

.as-account-detail span {
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
  text-transform: uppercase;
}

.as-account-detail strong {
  overflow-wrap: anywhere;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.as-waha-status-connected {
  justify-self: start;
  color: #067647;
  background: #ECFDF3;
}

.as-waha-action-card {
  justify-content: space-between;
  align-items: flex-start;
}

.as-connection-settings {
  padding: 18px 20px;
}

.as-waha-action-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.as-alert-panel,
.as-waha-modal-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  color: #8A4B00;
  background: #FFF7E8;
  border: 1px solid #F6D49B;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.as-waha-modal-warning i {
  margin-top: 2px;
  color: #C97700;
}

.as-waha .as-connection-table table {
  width: 100% !important;
  min-width: 680px;
}

.as-whatsapp-groups-page .as-connection-table table {
  min-width: 760px;
}

.as-waha .as-connection-table th {
  white-space: nowrap;
}

.as-waha .as-telegram-empty {
  margin-top: 16px;
}

@media (max-width: 991.98px) {
  .as-x-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .as-telegram-heading,
  .as-telegram-page-header,
  .as-telegram-form-actions,
  .as-connection-header,
  .as-waha-action-card,
  .as-waha-connected-card {
    align-items: stretch;
    flex-direction: column;
  }

  .as-telegram-heading .btn,
  .as-telegram-page-header .btn,
  .as-telegram-form-actions .btn,
  .as-telegram-form-actions a,
  .as-x-actions .btn,
  .as-x-configured-credential .btn,
  .as-waha-action-buttons,
  .as-waha-action-buttons .btn,
  .as-waha-upgrade-actions .btn {
    width: 100%;
  }

  .as-telegram-summary,
  .as-summary-grid,
  .as-connection-summary,
  .as-telegram-status-card,
  .as-telegram-token-card,
  .as-waha-progress {
    grid-template-columns: 1fr;
  }

  .as-whatsapp-groups-page .as-summary-grid,
  .as-whatsapp-groups-page .as-connection-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as-connection-steps ol {
    grid-template-columns: 1fr;
  }

  .as-telegram-token-actions,
  .as-telegram-revealed-token .input-group-append {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
  }

  .as-telegram-token-actions .btn,
  .as-telegram-revealed-token .btn {
    width: 100%;
  }

  .as-telegram-connect-layout,
  .as-connection-layout,
  .as-x-layout {
    grid-template-columns: 1fr;
  }

  .as-x-configured-credential {
    align-items: stretch;
    flex-direction: column;
  }

  .as-x-header-icon {
    display: none;
  }

  .as-waha-login-layout {
    grid-template-columns: 1fr;
  }

  .as-waha-help-panel {
    position: static;
    top: auto;
  }

  .as-waha-code-row {
    align-items: stretch;
    flex-direction: column;
  }

  .as-waha-code-row .btn {
    width: 100%;
  }

  .as-connection-table .as-table-toolbar,
  .as-table-toolbar {
    align-items: stretch;
  }

  .as-connection-table .dataTables_filter,
  .as-table-search {
    justify-content: stretch;
    width: 100%;
  }

  .as-connection-table .dataTables_filter label,
  .as-table-search label,
  .as-connection-table .dataTables_filter input,
  .as-table-search input {
    width: 100%;
  }

  .as-whatsapp-groups-page .as-connection-table table {
    min-width: 640px;
  }

  .as-telegram-heading h1,
  .as-telegram-page-header h1 {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .as-whatsapp-groups-page .as-summary-grid,
  .as-whatsapp-groups-page .as-connection-summary {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Getting Started
   ========================================================= */

.as-getting-started-page {
  max-width: 1120px;
  margin: 0 auto;
  overflow-x: hidden;
}

.as-getting-onboarding-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-bottom: 14px;
  padding: 22px 24px;
  background: #FFFFFF;
}

.as-getting-onboarding-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.as-getting-onboarding-copy h1 {
  margin: 0;
  color: #172033;
  font-size: 26px;
  font-weight: 800;
}

.as-getting-onboarding-copy p {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.as-getting-onboarding-copy strong {
  color: #0D47A1;
  font-size: 14px;
  font-weight: 800;
}

.as-getting-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #E3F2FD;
}

.as-getting-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0D47A1, #FF6D00);
}

.as-getting-progress--25 span {
  width: 25%;
}

.as-getting-progress--50 span {
  width: 50%;
}

.as-getting-progress--75 span {
  width: 75%;
}

.as-getting-progress--100 span {
  width: 100%;
}

.as-getting-started-page .as-section-card {
  margin-bottom: 14px;
}

.as-getting-started-page .as-section-heading {
  margin-bottom: 10px;
}

.as-getting-started-page .as-section-heading h2 {
  font-size: 18px;
}

.as-getting-goals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.as-getting-goal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 42px;
  padding: 9px 12px;
  text-align: left;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  border-radius: 999px;
  cursor: pointer;
}

.as-getting-goal:hover,
.as-getting-goal:focus {
  border-color: #0D47A1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
  outline: 0;
}

.as-getting-goal.is-selected {
  background: #E3F2FD;
  border-color: #0D47A1;
}

.as-getting-goal strong {
  color: #0D47A1;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.as-getting-goal small {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.as-getting-goal-helper,
.as-getting-step p,
.as-getting-complete p,
.as-getting-automation p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-getting-goal-helper {
  margin-top: 10px;
  color: #0D47A1;
  font-weight: 700;
}

.as-getting-step-list {
  display: grid;
  gap: 12px;
}

.as-getting-step {
  margin-bottom: 0;
  padding: 18px 20px;
}

.as-getting-step-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.as-getting-step-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.as-getting-step-meta > span:first-child {
  color: #0D47A1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.as-getting-step-header h2,
.as-getting-complete h2,
.as-getting-automation h3,
.as-getting-first-deal h3 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 18px;
  font-weight: 800;
}

.as-getting-step-body {
  display: none;
  margin-top: 12px;
}

.as-getting-step.is-expanded .as-getting-step-body {
  display: block;
}

.as-getting-dependency,
.as-getting-inline-help {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-getting-dependency {
  margin-top: 6px;
}

.as-getting-inline-help {
  margin-bottom: 12px;
}

.as-getting-inline-help strong {
  color: #0D47A1;
  font-weight: 800;
}

.as-getting-flow {
  margin-bottom: 12px;
  padding: 9px 12px;
  background: #F8FBFF;
  border-left: 3px solid #0D47A1;
  border-radius: 8px;
  color: #0D47A1;
  font-size: 13px;
  font-weight: 800;
}

.as-getting-facts {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.as-getting-facts div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1.2fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: #F8FAFC;
  border: 1px solid #E5EAF2;
  border-radius: 8px;
}

.as-getting-facts strong,
.as-getting-summary {
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.as-getting-facts span {
  color: #0D47A1;
  font-size: 13px;
  font-weight: 800;
}

.as-getting-facts em {
  justify-self: end;
  font-style: normal;
}

.as-getting-facts small {
  grid-column: 1 / -1;
  color: #B42318;
  font-size: 12px;
  line-height: 1.4;
}

.as-getting-summary {
  margin-bottom: 12px;
}

.as-getting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.as-getting-complete {
  border-color: #A6F4C5;
  background: #F6FEF9;
}

.as-getting-first-deal,
.as-getting-automation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.as-getting-first-deal ol {
  margin: 12px 0 0;
  padding-left: 18px;
  color: #172033;
  font-size: 13px;
  line-height: 1.6;
}

.as-getting-support-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.as-getting-support-links a {
  color: #0D47A1;
  font-size: 13px;
  font-weight: 800;
}

.as-getting-support-panel {
  background: #F8FBFF;
  border-color: #DBE4F0;
}

.as-getting-support-panel i {
  color: #0D47A1;
}

@media (max-width: 991.98px) {
  .as-getting-onboarding-header,
  .as-getting-first-deal,
  .as-getting-automation {
    grid-template-columns: 1fr;
  }

  .as-getting-actions .btn,
  .as-getting-primary-cta {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .as-getting-onboarding-header,
  .as-getting-step {
    padding: 16px;
  }

  .as-getting-onboarding-copy h1 {
    font-size: 22px;
  }

  .as-getting-goal {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .as-getting-facts div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .as-getting-facts em {
    justify-self: start;
  }
}

/* =========================================================
   Affiliate program settings
   ========================================================= */

.as-affiliate-settings-page {
  max-width: 1280px;
  margin: 0 auto;
  overflow-x: hidden;
}

.as-page-kicker {
  display: block;
  margin-bottom: 4px;
  color: #0D47A1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.as-affiliate-settings-page .as-connection-header small {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 13px;
}

.as-section-card {
  margin-bottom: 16px;
  padding: 20px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.as-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.as-section-heading h2 {
  margin: 0 0 5px;
  color: #172033;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
}

.as-section-heading p,
.as-affiliate-conversion-option p,
.as-affiliate-program-toggle small,
.as-affiliate-program-body p,
.as-affiliate-save-panel p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-affiliate-conversion-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.as-affiliate-conversion-option {
  min-width: 0;
  padding: 16px;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  background: #F8FAFC;
}

.as-affiliate-conversion-option label,
.as-affiliate-wishlink-card h3,
.as-affiliate-api-heading h3,
.as-affiliate-program-summary h3 {
  margin: 0 0 6px;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.as-affiliate-conversion-option small {
  display: block;
  margin-top: 5px;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.as-affiliate-select {
  margin-top: 12px;
}

.as-affiliate-choice-group {
  margin-top: 12px;
}

.as-affiliate-choice-group .form-group {
  margin-bottom: 0;
}

.as-affiliate-choice-group .form-check,
.as-affiliate-choice-group .radio {
  display: flex;
  align-items: center;
  min-height: 38px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid #E5EAF2;
  border-radius: 8px;
  background: #FFFFFF;
}

.as-affiliate-choice-group input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0 8px 0 0;
  accent-color: #0D47A1;
}

.as-affiliate-choice-group label {
  margin: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 700;
}

.as-help-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.as-help-steps--single {
  grid-template-columns: 1fr;
}

.as-help-step,
.as-resource-link,
.as-choice-row,
.as-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  background: #FFFFFF;
}

.as-help-step span,
.as-resource-link i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #0D47A1;
  background: #E3F2FD;
  font-weight: 800;
}

.as-help-step strong,
.as-resource-link strong,
.as-choice-row strong,
.as-list-heading {
  color: #172033;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.as-field-legend {
  margin-bottom: 10px;
  color: #172033;
  font-size: 14px;
  font-weight: 800;
}

.as-choice-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.as-choice-row {
  width: 100%;
  margin: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.as-choice-row input[type="radio"],
.as-choice-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #0D47A1;
}

.as-choice-row > span {
  min-width: 0;
}

.as-choice-row small,
.as-resource-link small,
.as-collapse-toggle small {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.as-choice-row:focus-within,
.as-choice-row:hover,
.as-resource-link:hover,
.as-resource-link:focus {
  border-color: #0D47A1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.08);
  text-decoration: none;
}

.as-choice-row.is-selected {
  color: #0D47A1;
  background: #E3F2FD;
  border-color: #0D47A1;
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.12);
}

.as-choice-row--disabled {
  cursor: not-allowed;
  background: #F8FAFC;
}

.as-choice-row--disabled:hover {
  border-color: #E5EAF2;
  box-shadow: none;
}

.as-choice-row--disabled strong,
.as-choice-row--disabled small {
  color: #667085;
}

.as-action-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.as-muted-action {
  padding-top: 12px;
  border-top: 1px solid #E5EAF2;
}

.as-collapse-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.as-collapse-toggle strong {
  display: block;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
}

.as-resource-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.as-resource-link span {
  min-width: 0;
}

.as-resource-link small {
  overflow-wrap: anywhere;
}

.as-list-heading {
  margin: 0 0 10px;
}

.as-checkbox-row .form-group,
.as-checkbox-row .form-check,
.as-checkbox-row .custom-control {
  margin-bottom: 0;
}

.as-checkbox-row label {
  margin-bottom: 0;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.as-affiliate-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  background: #FFFFFF;
}

@media (max-width: 991.98px) {
  .as-help-steps,
  .as-choice-group,
  .as-resource-link-grid {
    grid-template-columns: 1fr;
  }
}

.as-affiliate-program-table {
  min-width: 760px;
  margin: 0;
}

.as-affiliate-program-table thead th {
  border-top: 0;
  border-bottom: 1px solid #E5EAF2;
  background: #F8FAFC;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  vertical-align: middle;
}

.as-affiliate-program-table td {
  border-top: 1px solid #E5EAF2;
  color: #172033;
  font-size: 13px;
  vertical-align: middle;
}

.as-affiliate-program-table tbody tr:first-child td {
  border-top: 0;
}

.as-affiliate-program-table strong {
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.as-table-message-preview {
  display: -webkit-box;
  max-width: 520px;
  overflow: hidden;
  color: #172033;
  line-height: 1.45;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.as-table-text-preview,
.as-table-link-preview {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.as-table-link-preview {
  color: #0D47A1;
  font-weight: 800;
}

.as-table-link-preview span {
  display: block;
  max-width: 360px;
  margin-top: 2px;
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.as-block-loading {
  min-width: 220px;
  padding: 16px 18px;
  color: #0D47A1;
  background: #FFFFFF;
  border: 1px solid #DBE4F0;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(23, 32, 51, 0.14);
  font-size: 13px;
  font-weight: 800;
}

.as-wishlist-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #E5EAF2;
}

.as-help-steps--wishlist {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 991.98px) {
  .as-help-steps--wishlist {
    grid-template-columns: 1fr;
  }
}

.as-datetime-input .input-group-text {
  color: #0D47A1;
  background: #E3F2FD;
  border-color: #DBE4F0;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
  border: 1px solid #DBE4F0;
  border-radius: 10px;
  box-shadow: 0 16px 34px rgba(23, 32, 51, 0.14);
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover,
.bootstrap-datetimepicker-widget table td span.active {
  background-color: #0D47A1;
}

.bootstrap-datetimepicker-widget table td.today::before {
  border-bottom-color: #FF6D00;
}

.as-affiliate-detail-value {
  display: inline-block;
  max-width: 260px;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.as-affiliate-more-detail {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.as-copy-button {
  margin-left: 6px;
}

.as-table-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.as-affiliate-editor-list {
  margin-top: 12px;
}

.as-affiliate-program-card,
.as-affiliate-editor-card {
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  background: #FFFFFF;
  overflow: hidden;
}

.as-affiliate-editor-card {
  margin-top: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.as-affiliate-editor-card > .collapse:not(.show) {
  display: none;
}

.as-affiliate-editor-card .as-affiliate-program-body {
  margin-top: 10px;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
}

.as-affiliate-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
}

.as-affiliate-empty h3 {
  margin: 0 0 5px;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
}

.as-affiliate-empty p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.as-affiliate-program-summary {
  display: flex;
  min-height: 118px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}

.as-affiliate-editor-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.as-affiliate-editor-heading h3 {
  margin: 0 0 5px;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
}

.as-affiliate-editor-heading p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-affiliate-program-summary > div:first-child {
  min-width: 0;
}

.as-affiliate-program-summary p {
  margin: 0 0 8px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-affiliate-program-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: flex-end;
  flex-direction: column;
  gap: 10px;
}

.as-affiliate-program-toggle {
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 0;
  background: #FFFFFF;
  color: #172033;
  text-align: left;
}

.as-affiliate-program-toggle:focus {
  outline: 0;
  box-shadow: inset 0 0 0 3px rgba(13, 71, 161, 0.14);
}

.as-affiliate-program-toggle strong {
  display: block;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.as-affiliate-program-meta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.as-affiliate-program-toggle[aria-expanded="true"] .fa-chevron-down {
  transform: rotate(180deg);
}

.as-affiliate-program-body {
  padding: 16px;
  border-top: 1px solid #E5EAF2;
  background: #FFFFFF;
}

.as-program-note {
  display: block;
  color: #0D47A1;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.as-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.as-status--selected {
  color: #0D47A1;
  background: #E3F2FD;
}

.as-status--in-use {
  margin-left: 6px;
  color: #0D47A1;
  background: #E3F2FD;
}

.as-status--connected,
.as-status--configured {
  color: #05603A;
  background: #ECFDF3;
}

.as-status--details_required {
  color: #B54708;
  background: #FFFAEB;
}

.as-status--not_configured {
  color: #667085;
  background: #F2F4F7;
}

.as-converter-update-status {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.as-affiliate-wishlink-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  background: #F8FAFC;
}

.as-external-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #0D47A1;
  font-size: 13px;
  font-weight: 800;
}

.as-affiliate-api-group {
  padding: 16px 0;
  border-top: 1px solid #E5EAF2;
}

.as-affiliate-api-group:first-child {
  padding-top: 0;
  border-top: 0;
}

.as-affiliate-api-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.as-credential-toggle {
  margin-top: 6px;
}

.as-affiliate-add-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.as-affiliate-add-row .form-control {
  max-width: 420px;
}

.as-affiliate-unused-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
}

.as-affiliate-unused-item {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid #E5EAF2;
  border-radius: 10px;
  background: #F8FAFC;
}

.as-affiliate-unused-item strong {
  display: block;
  margin-bottom: 5px;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.as-affiliate-save-panel {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.as-affiliate-save-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.as-affiliate-save-panel strong {
  display: block;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

#affiliate-save-status {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.as-saving-progress {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  max-width: 360px;
  color: #0D47A1;
  font-size: 12px;
  font-weight: 800;
}

.as-saving-progress[hidden] {
  display: none;
}

.as-saving-progress__bar {
  position: relative;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #E3F2FD;
}

.as-saving-progress__bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0D47A1, #FF6D00);
  animation: as-saving-progress 1.1s ease-in-out infinite;
}

@keyframes as-saving-progress {
  0% {
    left: -40%;
  }
  100% {
    left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .as-saving-progress__bar::after {
    left: 0;
    width: 100%;
    animation: none;
  }
}

@media (max-width: 991.98px) {
  .as-affiliate-conversion-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .as-affiliate-conversion-grid,
  .as-affiliate-unused-list {
    grid-template-columns: 1fr;
  }

  .as-affiliate-table-wrap {
    overflow-x: visible;
    border: 0;
    background: transparent;
  }

  .as-affiliate-program-table {
    min-width: 0;
  }

  .as-affiliate-program-table thead {
    display: none;
  }

  .as-affiliate-program-table,
  .as-affiliate-program-table tbody,
  .as-affiliate-program-table tr,
  .as-affiliate-program-table td {
    display: block;
    width: 100%;
  }

  .as-affiliate-program-table tr {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid #E5EAF2;
    border-radius: 10px;
    background: #FFFFFF;
  }

  .as-affiliate-program-table td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 0;
    border: 0;
  }

  .as-affiliate-program-table td::before {
    content: attr(data-label);
    flex: 0 0 116px;
    color: #667085;
    font-size: 12px;
    font-weight: 800;
  }

  .as-affiliate-detail-value {
    max-width: 100%;
  }

  .as-affiliate-program-toggle,
  .as-affiliate-program-summary,
  .as-affiliate-editor-heading,
  .as-affiliate-wishlink-card,
  .as-affiliate-add-row,
  .as-affiliate-save-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .as-affiliate-program-meta {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .as-affiliate-save-panel .btn,
  .as-affiliate-wishlink-card .btn,
  .as-affiliate-wishlink-card a,
  .as-affiliate-add-row .btn,
  .as-affiliate-add-row .form-control,
  .as-affiliate-save-actions {
    width: 100%;
  }

  .as-affiliate-program-actions {
    align-items: stretch;
  }

  .as-affiliate-save-actions {
    flex-direction: column;
  }
}

/* =========================================================
   Payment
   ========================================================= */

.as-payment-page .as-section-card {
  overflow: visible;
}

.as-payment-upi-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.as-payment-qr-box {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  background: #F8FAFC;
}

.as-payment-qr-box img {
  max-height: 180px;
  object-fit: contain;
}

.as-payment-label {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.as-payment-upi-value {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.as-payment-upi-value strong {
  color: #172033;
  font-size: 18px;
  overflow-wrap: anywhere;
}

#upiId {
  cursor: pointer;
}

.as-payment-copy-feedback {
  display: none;
  margin-bottom: 12px;
  padding: 8px 10px;
  color: #0D47A1;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #BBDEFB;
  border-radius: 8px;
  background: #E3F2FD;
}

.as-payment-copy-feedback.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.as-payment-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: payment-step;
}

.as-payment-steps li {
  position: relative;
  min-height: 28px;
  padding-left: 38px;
  color: #172033;
  font-size: 13px;
  line-height: 1.45;
  counter-increment: payment-step;
}

.as-payment-steps li::before {
  content: counter(payment-step);
  position: absolute;
  top: -2px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #0D47A1;
  font-size: 12px;
  font-weight: 800;
  border-radius: 8px;
  background: #E3F2FD;
}

.as-payment-coupon-input .form-control {
  min-height: 42px;
  border-color: #DBE4F0;
}

.as-payment-coupon-input .form-control:focus {
  border-color: #0D47A1;
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.12);
}

.as-payment-coupon-note {
  padding: 12px;
  border: 1px solid #FFE0B2;
  border-radius: 10px;
  background: #FFF8F0;
}

.as-payment-coupon-note strong {
  display: block;
  margin-bottom: 4px;
  color: #172033;
  font-size: 14px;
}

.as-payment-coupon-note p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-payment-coupon-note code {
  color: #0D47A1;
  font-weight: 800;
  background: #FFFFFF;
  border: 1px solid #E5EAF2;
  border-radius: 6px;
  padding: 2px 6px;
}

.as-payment-info-box {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid #F6C56B;
  border-radius: 12px;
  background: #FFF8E8;
}

.as-payment-info-box i {
  color: #B7791F;
  font-size: 18px;
  margin-top: 2px;
}

.as-payment-info-box h2 {
  margin: 0 0 4px;
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.as-payment-info-box p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-payment-history-cards {
  display: none;
}

.as-payment-history-empty,
.as-payment-history-card {
  padding: 14px;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.as-payment-history-empty {
  color: #667085;
  font-size: 13px;
  font-weight: 700;
}

.as-payment-history-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #E5EAF2;
}

.as-payment-history-card__head span,
.as-payment-history-card dt {
  color: #667085;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.as-payment-history-card__head strong {
  color: #172033;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
}

.as-payment-history-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.as-payment-history-card dl div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.as-payment-history-card dt,
.as-payment-history-card dd {
  margin: 0;
}

.as-payment-history-card dd {
  color: #172033;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
}

.as-plan-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.as-plan-summary-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.as-plan-summary-card--recommended {
  border-color: #FFB74D;
  background: #FFF8F0;
}

.as-plan-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.as-plan-summary-head h3 {
  margin: 0;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
}

.as-plan-summary-head strong {
  color: #0D47A1;
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.as-plan-summary-card > span {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  color: #9A4D00;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  background: #FFE0B2;
}

.as-plan-summary-card p {
  margin: 0 0 10px;
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.as-plan-summary-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
  color: #172033;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.as-plan-compare-wrapper {
  overflow-x: auto;
  padding-bottom: 2px;
}

.as-plan-compare-wrapper small {
  display: block;
  margin-bottom: 8px;
  text-align: center;
}

.as-plan-compare-table {
  min-width: 920px;
  width: 100%;
  border: 1px solid #E5EAF2;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  background: #FFFFFF;
}

.as-plan-compare-table th,
.as-plan-compare-table td {
  padding: 12px;
  border-right: 1px solid #E5EAF2;
  border-bottom: 1px solid #E5EAF2;
  color: #172033;
  font-size: 13px;
  text-align: center;
  vertical-align: middle;
}

.as-plan-compare-table th:last-child,
.as-plan-compare-table td:last-child {
  border-right: 0;
}

.as-plan-compare-table tbody tr:last-child td {
  border-bottom: 0;
}

.as-plan-compare-table thead th {
  background: #F8FAFC;
  color: #0D47A1;
  font-weight: 800;
}

.as-plan-compare-table .feature-col,
.as-plan-compare-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  min-width: 190px;
  text-align: left;
  font-weight: 800;
  background: #FFFFFF;
}

.as-plan-compare-table thead .feature-col {
  z-index: 3;
  background: #F8FAFC;
}

.as-plan-compare-table .section-row td {
  background: #F1F5F9;
  color: #0D47A1;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.as-plan-compare-table .recommended {
  background: #FFF8F0;
}

.as-plan-compare-table th.recommended,
.as-plan-compare-table td.recommended {
  border-left: 2px solid #FFB74D;
  border-right: 2px solid #FFB74D;
}

.as-plan-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 118px;
  color: #172033;
}

.as-plan-header i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #0D47A1;
  border-radius: 10px;
  background: #E3F2FD;
}

.as-plan-header .plan-name {
  color: #172033;
  font-size: 15px;
  font-weight: 800;
}

.as-plan-header .plan-price {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.as-plan-header span {
  display: inline-flex;
  padding: 3px 8px;
  color: #9A4D00;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  background: #FFE0B2;
}

.as-plan-header--recommended i {
  color: #9A4D00;
  background: #FFE0B2;
}

.as-plan-compare-table .check {
  color: #16803C;
  font-weight: 800;
}

.as-plan-compare-table .cross {
  color: #98A2B3;
  font-weight: 700;
}

.as-addon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.as-addon-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #E5EAF2;
  border-radius: 12px;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.as-addon-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.as-addon-heading i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #0D47A1;
  border-radius: 10px;
  background: #E3F2FD;
}

.as-addon-heading h3 {
  margin: 0;
  color: #172033;
  font-size: 16px;
  font-weight: 800;
}

.as-addon-price {
  margin-bottom: 12px;
  color: #0D47A1;
  font-size: 26px;
  font-weight: 800;
}

.as-addon-price small {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.as-addon-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.as-addon-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #172033;
  font-size: 13px;
  line-height: 1.45;
}

.as-addon-card li .fa-check {
  color: #16803C;
  margin-top: 3px;
}

.as-addon-info-icon {
  color: #0D47A1;
  margin-top: 3px;
}

@media (max-width: 991.98px) {
  .as-addon-grid,
  .as-plan-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as-payment-upi-layout {
    grid-template-columns: 1fr;
  }

  .as-payment-qr-box img {
    max-height: 220px;
  }
}

@media (max-width: 767.98px) {
  .as-payment-history-table {
    display: none;
  }

  .as-payment-history-cards {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 575.98px) {
  .as-payment-upi-value,
  .as-payment-coupon-input {
    align-items: stretch;
    flex-direction: column;
  }

  .as-payment-coupon-input .input-group-append,
  .as-payment-coupon-input .btn,
  .as-payment-upi-value .btn {
    width: 100%;
  }

  .as-payment-coupon-input .input-group-append {
    margin-left: 0;
  }

  .as-payment-upi-layout,
  .as-addon-grid,
  .as-plan-summary-grid {
    grid-template-columns: 1fr;
  }
}
