.csa-shell {
  max-width: 980px;
  margin: 0 auto;
}

.csa-auth-tabs-wrap {
  width: 100%;
}

.csa-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.csa-tab {
  min-height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  color: #6b7280;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.csa-tab.is-active {
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.15);
}

.csa-tab-panel {
  display: none;
}

.csa-tab-panel.is-active {
  display: block;
}

.csa-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.csa-card-head h3,
.csa-section-head h4,
.csa-voucher-head h5,
.csa-voucher-preview h5,
.csa-dashboard-hero h3 {
  margin: 0 0 8px;
  color: #111827;
}

.csa-card-head p,
.csa-note,
.csa-section-head p,
.csa-dashboard-hero p,
.csa-empty-state {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.csa-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.csa-form label {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #374151;
}

.csa-form input,
.csa-select {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: #fff;
  font-size: 16px;
  color: #111827;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

.csa-form input:focus,
.csa-select:focus {
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.csa-btn {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

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

.csa-btn-primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.15);
}

.csa-btn-primary:hover {
  background: #000;
  color: #fff;
}

.csa-btn-secondary {
  background: #fff;
  color: #111827;
}

.csa-btn-secondary:hover {
  background: #f9fafb;
  color: #111827;
}

.csa-btn-full {
  width: 100%;
  margin-top: 8px;
}

.csa-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: #9ca3af;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.csa-divider::before,
.csa-divider::after {
  content: "";
  height: 1px;
  background: rgba(17, 24, 39, 0.12);
  flex: 1;
}

.csa-alert {
  margin-bottom: 18px;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
}

.csa-alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.csa-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.csa-social-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
}

.csa-social-wrap .nsl-container,
.csa-social-wrap .nsl-container-block,
.csa-social-wrap .nsl-button,
.csa-social-wrap .nsl-button-default {
  width: 100%;
}

.csa-social-wrap .nsl-container,
.csa-social-wrap .nsl-container-block {
  display: flex !important;
  justify-content: center !important;
}

.csa-password-field {
  position: relative;
}

.csa-password-field input {
  padding-right: 110px;
}

.csa-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}

.csa-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  color: #374151;
  font-size: 14px;
}

.csa-checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  padding: 0;
}

.csa-grid {
  display: grid;
  gap: 14px;
}

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

.csa-dashboard {
  display: grid;
  gap: 18px;
}

.csa-dashboard-hero-row,
.csa-section-head,
.csa-voucher-head,
.csa-voucher-preview-head,
.csa-used-voucher-item,
.csa-dashboard-actions,
.csa-voucher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.csa-dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.csa-stat {
  min-width: 120px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f9fafb;
  border: 1px solid rgba(17,24,39,.08);
  text-align: center;
}

.csa-stat strong {
  display: block;
  font-size: 24px;
  color: #111827;
}

.csa-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

.csa-dashboard-actions {
  justify-content: flex-start;
  margin-top: 18px;
  flex-wrap: wrap;
}

.csa-dashboard-section {
  display: grid;
  gap: 18px;
}

.csa-voucher-list,
.csa-used-voucher-list {
  display: grid;
  gap: 14px;
}

.csa-voucher-item {
  align-items: stretch;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(17,24,39,.08);
  background: #fcfcfd;
}

.csa-voucher-main {
  flex: 1;
  display: grid;
  gap: 12px;
}

.csa-voucher-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.csa-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.csa-status-active {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.csa-status-expired {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.csa-status-used {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.csa-status-cancelled {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
}

.csa-status-source {
  background: #f9fafb;
  color: #374151;
  border: 1px solid rgba(17,24,39,.12);
}

.csa-voucher-meta {
  display: grid;
  gap: 8px;
  color: #374151;
}

.csa-date-expired {
  color: #be123c;
  font-weight: 700;
}

.csa-voucher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.csa-voucher-qr {
  width: 132px;
  min-width: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(17,24,39,.08);
  padding: 10px;
}

.csa-voucher-qr img {
  width: 110px;
  height: 110px;
  display: block;
}

.csa-used-voucher-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fcfcfd;
  border: 1px solid rgba(17,24,39,.08);
}

.csa-voucher-preview {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
}

.csa-voucher-preview ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.csa-voucher-preview li {
  margin-bottom: 6px;
}

.csa-inline-form {
  margin-top: 14px;
}

.csa-guardian-wrap {
  display: none;
}

.csa-guardian-wrap.is-visible {
  display: block;
}

.csa-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.csa-modal.is-open {
  display: block;
}

.csa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17,24,39,.58);
}

.csa-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100vw - 24px));
  margin: 8vh auto 0;
  background: #fff;
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(17,24,39,.22);
}

.csa-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  border: 0;
  background: transparent;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  color: #111827;
}

@media (max-width: 767px) {
  .csa-shell {
    max-width: 100%;
  }

  .csa-card,
  .csa-modal-dialog {
    padding: 22px;
    border-radius: 18px;
  }

  .csa-grid-2,
  .csa-dashboard-hero-row,
  .csa-section-head,
  .csa-voucher-item,
  .csa-used-voucher-item,
  .csa-voucher-preview-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .csa-dashboard-stats,
  .csa-dashboard-actions,
  .csa-voucher-badges,
  .csa-voucher-actions {
    width: 100%;
  }

  .csa-voucher-qr {
    width: 100%;
    min-width: 0;
  }
}



.csa-grid-compact {
  max-width: 760px;
}

.csa-inline-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: #dbeafe;
  color: #1d4ed8;
}

.csa-profile-form.is-hidden,
.csa-profile-summary.is-hidden {
  display: none;
}

.csa-notification-panel {
  margin-top: 18px;
  padding: 18px;
  border-radius: 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: grid;
  gap: 12px;
}

.csa-notification-panel h5 {
  margin: 0 0 4px;
}

.csa-notification-panel p,
.csa-notification-note {
  margin: 0;
  color: #1f2937;
}

.csa-notification-toggles,
.csa-notification-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.csa-notification-edit {
  margin-top: 18px;
  flex-direction: column;
  align-items: flex-start;
}

.csa-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
}

.csa-pill.is-active {
  background: #dcfce7;
  color: #166534;
}

.csa-pill.is-inactive {
  background: #fee2e2;
  color: #991b1b;
}

.csa-pill.is-neutral {
  background: #e5e7eb;
  color: #374151;
}

.csa-pill.is-warning {
  background: #ffedd5;
  color: #c2410c;
}

.csa-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.csa-form-actions {
  margin-top: 18px;
}

.csa-btn.is-loading {
  opacity: .8;
  pointer-events: none;
}

.csa-stat-value-bad {
  color: #b91c1c;
}

.csa-stat-value-ok {
  color: inherit;
}

.csa-notification-warning {
  margin-top: 2px;
  color: #9a3412;
  font-size: 14px;
}

.csa-dashboard-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: -4px 0 8px;
}

.csa-dashboard-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  color: #312e81;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.10);
  font-weight: 600;
  text-decoration: none;
}

.csa-dashboard-nav a:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #e0e7ff 100%);
  border-color: #a5b4fc;
  color: #1e1b4b;
}

.csa-profile-summary {
  max-width: 680px;
}

.csa-profile-summary-list {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.csa-summary-row {
  display: block;
  padding: 0;
  margin: 0;
}

.csa-summary-row strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #111827;
}

.csa-dashboard-footer {
  margin-top: 6px;
  padding-top: 8px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 767px) {
  .csa-dashboard-nav a {
    width: 100%;
    justify-content: center;
  }

  .csa-dashboard-footer {
    justify-content: stretch;
  }

  .csa-dashboard-footer .csa-btn {
    width: 100%;
  }
}


.csa-profile-summary-list { display:grid; gap:8px; }
.csa-summary-row { font-size:15px; line-height:1.6; color:#111827; }
.csa-summary-label { color:#6b7280; margin-right:6px; }
.csa-email-verify-box { margin-top:18px; padding:16px 18px; border:1px solid #fbbf24; background:#fffbeb; border-radius:16px; }
.csa-email-verify-box h5 { margin:0 0 8px; }
.csa-email-verify-box p { margin:0 0 12px; color:#92400e; }
.csa-email-verify-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.csa-inline-code-input { min-height:52px; border-radius:16px; border:1px solid rgba(17,24,39,0.16); padding:0 16px; min-width:120px; box-sizing:border-box; }
.csa-inline-form.csa-email-verify-form { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }


.csa-checklist-wrap {
  margin: 4px 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}


.csa-checklist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.csa-checklist-dismiss {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 8px;
  flex: 0 0 auto;
}

.csa-checklist-dismiss:hover {
  background: rgba(148, 163, 184, 0.12);
  color: #334155;
}

.csa-checklist-wrap.is-hidden {
  display: none;
}

.csa-checklist-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.csa-checklist-subtitle {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
  color: #64748b;
}

.csa-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.csa-checklist-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
  border: 1px solid transparent;
}

.csa-checklist-item strong {
  font-size: 12px;
}

.csa-checklist-item.is-done {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.csa-checklist-item.is-todo {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

.csa-checklist-item.is-todo:hover {
  background: #ffedd5;
}

.csa-checklist-num {
  opacity: .75;
}

.csa-checklist-reason {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #9a3412;
}

.csa-summary-row strong {
  display: inline;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

@media (max-width: 767px) {
  .csa-checklist-wrap {
    padding: 12px !important;
    border-radius: 16px;
  }

  .csa-checklist-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .csa-checklist-head > div {
    min-width: 0;
    flex: 1 1 auto;
  }

  .csa-checklist-subtitle {
    font-size: 12px;
  }

  .csa-checklist {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
  }

  .csa-checklist-item {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
    font-size: 12px;
    padding: 9px 10px;
    box-sizing: border-box;
  }

  .csa-checklist-item strong {
    margin-left: auto;
    flex: 0 0 auto;
  }

  .csa-dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .csa-dashboard-nav a {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }

  .csa-profile-summary {
    max-width: 100%;
  }

  .csa-summary-row {
    font-size: 14px;
    line-height: 1.5;
  }

  .csa-notification-panel {
    padding: 14px;
    border-radius: 16px;
  }

  .csa-notification-toggles {
    gap: 8px;
  }

  .csa-pill {
    width: 100%;
    justify-content: space-between;
    padding: 9px 12px;
    font-size: 13px;
    box-sizing: border-box;
  }
}
