/* MyDIAKO — mobile-first learner portal. Diako tokens, orange only for CTA. */
.s360 {
  margin: 0;
  min-height: 100dvh;
  background: var(--ds-gray-50);
  color: var(--ds-navy-900);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.s360--auth {
  padding-bottom: 24px;
}

.s360-top,
.s360-main,
.s360-deskfoot {
  width: min(880px, calc(100% - 28px));
  margin-inline: auto;
}

.s360-top {
  padding-top: 12px;
}

.s360-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.s360-hello {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.s360-hello__hi {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.s360-hello__sub {
  margin: 0;
  color: var(--ds-gray-500);
  font-size: 12px;
}

.s360-top__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.s360-top__actions form {
  margin: 0;
}

.s360-link {
  background: none;
  border: 0;
  color: var(--ds-navy-600);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.s360-link--ink {
  color: var(--ds-navy-800);
  font-weight: 600;
}

.s360-main {
  padding: 8px 0 28px;
}

.s360-pagehead {
  margin: 0 0 12px;
}

.s360-pagehead h1,
.s360-auth h1,
.s360-card h2,
.s360-block h2,
.s360-empty h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;
}

.s360-pagehead p,
.s360-muted {
  color: var(--ds-gray-500);
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.s360-kicker {
  margin: 0 0 4px;
  color: var(--ds-orange-600);
  font-size: 11px;
  font-weight: 700;
}

.s360-section-title {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.s360-card,
.s360-row,
.s360-auth__card,
.s360-empty,
.s360-profile,
.s360-service,
.s360-block {
  background: #fff;
  border: 1px solid var(--ds-gray-200);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.s360-card,
.s360-empty,
.s360-block {
  padding: 14px;
  margin-bottom: 10px;
}

.s360-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.s360-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-color: #fed7aa;
}

.s360-welcome h2,
.s360-next h2 {
  margin: 0 0 4px;
}

.s360-welcome__actions,
.s360-region {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.s360-choice {
  display: grid;
  gap: 4px;
  padding: 14px;
  text-align: right;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--ds-gray-200);
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

.s360-choice strong {
  font-size: 14px;
}

.s360-choice span {
  color: var(--ds-gray-500);
  font-size: 12px;
  line-height: 1.6;
}

.s360-choice:hover,
.s360-choice:focus-visible {
  border-color: #fdba74;
}

.s360-welcome .s360-choice:first-child {
  border-color: #fed7aa;
  background: #fff7ed;
}

.s360-next h2 {
  margin: 0 0 2px;
}

.s360-next .s360-btn {
  flex-shrink: 0;
}

.s360-status__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
}

.s360-status__list dt {
  color: var(--ds-gray-500);
  font-size: 11px;
  margin-bottom: 2px;
}

.s360-status__list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.s360-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.s360-service {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 6px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}

.s360-service__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ds-gray-100);
  color: var(--ds-navy-800);
  display: grid;
  place-items: center;
}

.s360-service__icon svg {
  width: 16px;
  height: 16px;
}

.s360-service__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.s360-service__body strong {
  font-size: 13px;
}

.s360-service .s360-badge {
  grid-column: 1 / -1;
  justify-self: start;
}

.s360-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.s360-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.s360-row__end {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
  text-align: left;
}

.s360-row--past {
  opacity: 0.78;
}

.s360-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0 0 10px;
}

.s360-meta--stack {
  grid-template-columns: 1fr;
}

.s360-meta dt {
  color: var(--ds-gray-500);
  font-size: 11px;
}

.s360-meta dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 13px;
}

.s360-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  background: var(--ds-gray-100);
  color: var(--ds-navy-700);
}

.s360-badge--paid {
  background: #dcfce7;
  color: #166534;
}

.s360-badge--failed {
  background: #fee2e2;
  color: #991b1b;
}

.s360-badge--pending {
  background: #ffedd5;
  color: #9a3412;
}

.s360-receipt,
.s360-ok {
  margin: 4px 0 0;
  font-size: 12px;
}

.s360-ok {
  color: #166534;
}

.s360-empty {
  text-align: center;
  padding: 22px 16px;
}

.s360-more {
  margin: 8px 0 0;
}

.s360-progress {
  height: 6px;
  margin-top: 8px;
  background: var(--ds-gray-100);
  border-radius: 999px;
  overflow: hidden;
}

.s360-progress span {
  display: block;
  height: 100%;
  background: var(--ds-navy-800);
}

.s360-auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.s360-auth__card {
  width: min(420px, 100%);
  padding: 24px 20px;
  text-align: center;
}

.s360-auth__card--wide {
  width: min(520px, 100%);
}

.s360-auth__logo {
  display: block;
  margin: 0 auto 10px;
}

.s360-form {
  display: grid;
  gap: 8px;
  text-align: right;
  margin-top: 16px;
}

.s360-form label {
  font-size: 13px;
  font-weight: 700;
}

.s360-form input[type="tel"],
.s360-form input[type="text"],
.s360-form input[type="email"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ds-gray-300);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

.s360-form input[type="tel"] {
  text-align: left;
  direction: ltr;
}

.s360-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--ds-orange-500);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.s360-btn--sm {
  padding: 7px 11px;
  font-size: 13px;
  white-space: nowrap;
}

.s360-btn--ghost {
  background: #fff;
  color: var(--ds-navy-900);
  border: 1px solid var(--ds-gray-200);
}

.s360-alert {
  background: #fef2f2;
  color: #991b1b;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 13px;
}

.s360-otp {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

.s360-otp__box {
  width: 44px;
  height: 50px;
  text-align: center;
  font-size: 22px;
  border: 1px solid var(--ds-gray-300);
  border-radius: 10px;
}

.s360-resend {
  margin: 12px 0 8px;
}

.s360-profiles {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.s360-profile {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: right;
  font: inherit;
  cursor: pointer;
}

.s360-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ds-navy-800);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  object-fit: cover;
  flex-shrink: 0;
}

.s360-avatar--sm {
  width: 36px;
  height: 36px;
}

.s360-profile__meta {
  flex: 1;
  display: grid;
  gap: 2px;
}

.s360-profile__go {
  color: var(--ds-orange-600);
  font-size: 13px;
  font-weight: 700;
}

.s360-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
  border-right: 2px solid var(--ds-gray-200);
}

.s360-timeline__item {
  position: relative;
  padding: 0 16px 16px 0;
}

.s360-timeline__item::before {
  content: "";
  position: absolute;
  top: 6px;
  right: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ds-navy-400);
}

.s360-timeline time {
  display: block;
  color: var(--ds-gray-500);
  font-size: 12px;
  margin-bottom: 2px;
}

.s360-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff;
  border-top: 1px solid var(--ds-gray-200);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}

.s360-nav__item {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--ds-gray-500);
  text-decoration: none;
  font-size: 11px;
  padding: 6px 2px;
}

.s360-nav__item.is-active {
  color: var(--ds-orange-600);
  font-weight: 700;
}

.s360-nav__ico {
  width: 20px;
  height: 20px;
}

.s360-deskfoot {
  display: none;
}

.s360-profile-card .s360-btn {
  margin-top: 8px;
}

.s360-logout {
  margin: 0;
}

.s360-logout__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  border: 1px solid var(--ds-gray-200);
  background: #fff;
  color: var(--ds-navy-700);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.s360-logout__btn--menu {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  padding: 8px 4px;
  border-radius: 8px;
}

.s360-usermenu {
  display: block;
  position: relative;
}

.s360-usermenu__btn {
  list-style: none;
  cursor: pointer;
}

.s360-usermenu__btn::-webkit-details-marker {
  display: none;
}

.s360-usermenu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 168px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--ds-gray-200);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 2px;
  z-index: 40;
}

.s360-usermenu__panel a,
.s360-usermenu__panel button {
  font: inherit;
  font-size: 13px;
  text-align: right;
  color: var(--ds-navy-800);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
}

.s360-usermenu__panel form {
  margin: 0;
}

.s360-avatar--xs {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.s360-avatar--lg {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.s360-complete-status__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.s360-complete-status h2 {
  margin: 0;
  font-size: 15px;
}

.s360-complete-status__ok {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #166534;
}

.s360-stepper {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.s360-stepper__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ds-gray-200);
  min-width: 0;
}

.s360-stepper__item small {
  display: block;
  color: var(--ds-gray-500);
  font-size: 11px;
}

.s360-stepper__item strong {
  font-size: 12px;
}

.s360-stepper__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ds-gray-100);
  color: var(--ds-navy-700);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.s360-stepper__item.is-current {
  border-color: #fed7aa;
  background: #fff7ed;
}

.s360-stepper__item.is-current .s360-stepper__num,
.s360-stepper__item.is-done .s360-stepper__num {
  background: var(--ds-navy-800);
  color: #fff;
}

.s360-complete__form .s360-fields,
.s360-fields {
  display: grid;
  gap: 8px;
}

.s360-form select,
.s360-form textarea,
.s360-form input[type="date"],
.s360-datepicker__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ds-gray-300);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: #fff;
}

.s360-datepicker {
  position: relative;
}

.s360-datepicker__field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s360-datepicker__input {
  flex: 1 1 auto;
  text-align: center;
  letter-spacing: 0.04em;
}

.s360-datepicker__open {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ds-gray-300);
  border-radius: 10px;
  background: #fff;
  color: var(--ds-navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.s360-datepicker__open:hover {
  border-color: #fdba74;
  background: #fff7ed;
}

.s360-cal-pop {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.s360-cal {
  border: 1px solid var(--ds-gray-300);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.45);
  padding: 10px;
}

.s360-cal__nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.s360-cal__navbtn,
.s360-cal__today {
  border: 0;
  background: #f8fafc;
  color: var(--ds-navy-800);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.s360-cal__navbtn:hover,
.s360-cal__today:hover {
  background: #fff7ed;
}

.s360-cal__title {
  display: flex;
  gap: 4px;
  min-width: 0;
}

.s360-cal__month,
.s360-cal__year {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--ds-gray-300);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  padding: 5px 4px;
}

.s360-cal__week,
.s360-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.s360-cal__week span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  padding: 4px 0;
}

.s360-cal__day {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ds-navy-900);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.s360-cal__day:hover {
  background: #fff7ed;
}

.s360-cal__day.is-today {
  box-shadow: inset 0 0 0 1px #fdba74;
}

.s360-cal__day.is-selected {
  background: var(--ds-navy-800);
  color: #fff;
}

.s360-cal__empty {
  min-height: 34px;
}

.s360-cal__foot {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .s360-cal__week span {
    font-size: 9px;
  }
  .s360-cal__navbtn {
    font-size: 11px;
    padding: 6px;
  }
}

.s360-form input.is-readonly {
  background: var(--ds-gray-50);
  color: var(--ds-navy-700);
}

.s360-label {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.s360-choice-row,
.s360-choice-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.s360-choice-stack {
  display: grid;
}

.s360-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ds-gray-200);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}

.s360-avatar-edit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.s360-avatar-edit__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.s360-complete__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.s360-edu {
  border: 1px solid var(--ds-gray-200);
  border-radius: 12px;
  padding: 12px;
  margin: 0;
}

.s360-edu legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 4px;
}

.s360-opt,
.s360-req {
  font-weight: 500;
  color: var(--ds-gray-500);
  font-size: 12px;
}

.s360-crop {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px dashed var(--ds-gray-300);
  border-radius: 12px;
}

.s360-crop__stage {
  display: grid;
  place-items: center;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ds-gray-100);
}

.s360-logout--desk {
  display: none;
}

@media (max-width: 379px) {
  .s360-services {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .s360-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s360-status__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .s360 {
    padding-bottom: 16px;
  }

  .s360-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .s360-nav {
    display: none;
  }

  .s360-deskfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    margin-bottom: 16px;
    padding: 8px 0;
    color: var(--ds-gray-500);
    font-size: 12px;
    border-top: 1px solid var(--ds-gray-200);
  }

  .s360-logout--desk {
    display: block;
  }

  .s360-usermenu {
    display: none;
  }
}

.s360-country {
  position: relative;
}

.s360-country__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--ds-gray-300);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ds-navy-900);
  cursor: pointer;
  text-align: right;
}

.s360-country__trigger:hover,
.s360-country__trigger[aria-expanded="true"] {
  border-color: #fdba74;
}

.s360-country__flag {
  font-size: 1.25rem;
  line-height: 1;
  width: 1.6em;
  text-align: center;
  flex: 0 0 auto;
}

.s360-country__chosen {
  flex: 1 1 auto;
  min-width: 0;
}

.s360-country__caret {
  color: #94a3b8;
  font-size: 12px;
}

.s360-country__panel {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 24;
  border: 1px solid var(--ds-gray-300);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.45);
  padding: 8px;
}

.s360-country__search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ds-gray-300);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  margin-bottom: 6px;
}

.s360-country__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
}

.s360-country__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.s360-country__option:hover,
.s360-country__option.is-selected {
  background: #fff7ed;
}

.s360-country__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.s360-country__text strong {
  font-size: 14px;
  font-weight: 700;
}

.s360-country__text small {
  font-size: 11px;
  color: #64748b;
}

.s360-country__empty {
  margin: 8px 4px 4px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}
