/* FarmacoOra — Phone mockup + App screens */

/* ── Phone frame ── */
.phone {
  width: 280px;
  flex-shrink: 0;
}

.phone--sm {
  width: 220px;
}

.phone--md {
  width: 260px;
}

.phone__frame {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 42px;
  background: #1A1F1D;
  padding: 10px;
  box-shadow:
    var(--shadow-phone),
    inset 0 0 0 1.5px #3A423E,
    inset 0 0 0 3px #0D1210;
}

.phone--sm .phone__frame {
  border-radius: 34px;
  padding: 8px;
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #F2F6F5;
}

.phone--sm .phone__screen {
  border-radius: 26px;
}

.phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #0D1210;
  border-radius: 20px;
  z-index: 10;
}

.phone--sm .phone__island {
  width: 72px;
  height: 22px;
  top: 8px;
}

.phone__status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 22px 6px;
  font-size: 11px;
  font-weight: 650;
  color: #0F1714;
  z-index: 5;
  pointer-events: none;
}

.phone--sm .phone__status {
  font-size: 9px;
  padding: 0 16px 4px;
  height: 36px;
}

.phone__status-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.phone__status-icons svg {
  width: 14px;
  height: 14px;
}

/* ── App screen base ── */
.app-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 48px 14px 16px;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #0F1714;
  background: #F2F6F5;
  overflow: hidden;
  position: relative;
}

.phone--sm .app-screen {
  padding: 40px 11px 12px;
}

.app-screen__scroll {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Shared UI atoms */
.as-greeting {
  font-size: 13px;
  font-weight: 500;
  color: #5A6B64;
  margin-bottom: 2px;
}

.as-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.phone--sm .as-title {
  font-size: 16px;
  margin-bottom: 8px;
}

.as-card {
  background: #fff;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 20, 0.06);
  border: 1px solid rgba(197, 208, 202, 0.5);
}

.phone--sm .as-card {
  padding: 9px 10px;
  border-radius: 12px;
}

.as-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 650;
}

.as-pill--ok {
  background: #D6F0E0;
  color: #1B7A45;
}

.as-pill--pending {
  background: #E0F5F1;
  color: #0A6B5E;
}

.as-pill--later {
  background: #E8EBEE;
  color: #4A5560;
}

.as-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  border: none;
  font-family: inherit;
}

.as-btn--primary {
  background: linear-gradient(160deg, #14A090, #0E8A7A);
  color: #fff;
}

.as-btn--ghost {
  background: #fff;
  color: #0F1714;
  border: 1px solid #C5D0CA;
}

.as-btn--soft {
  background: #E0F5F1;
  color: #0A6B5E;
}

.as-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 4px 4px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  margin-top: auto;
  border: 1px solid rgba(197, 208, 202, 0.4);
  box-shadow: 0 -2px 12px rgba(15, 23, 20, 0.04);
}

.as-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 8px;
  font-weight: 600;
  color: #8FA098;
  padding: 4px 10px;
}

.as-nav__item--active {
  color: #0E8A7A;
}

.as-nav__item svg {
  width: 18px;
  height: 18px;
}

/* ── 1. Home Dashboard ── */
.screen-home .as-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.screen-home .as-progress__bar {
  flex: 1;
  height: 6px;
  background: #E4ECEA;
  border-radius: 3px;
  overflow: hidden;
}

.screen-home .as-progress__fill {
  width: 33%;
  height: 100%;
  background: linear-gradient(90deg, #0E8A7A, #3DCFB0);
  border-radius: 3px;
}

.screen-home .as-progress__label {
  font-size: 10px;
  font-weight: 650;
  color: #0E8A7A;
  white-space: nowrap;
}

.screen-home .as-day-strip {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
}

.screen-home .as-day {
  flex: 1;
  text-align: center;
  padding: 6px 2px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  color: #5A6B64;
}

.screen-home .as-day strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
  color: #0F1714;
}

.screen-home .as-day--today {
  background: #0E8A7A;
  color: rgba(255, 255, 255, 0.8);
}

.screen-home .as-day--today strong {
  color: #fff;
}

.screen-home .as-therapy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.screen-home .as-therapy__icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #E0F5F1;
  color: #0E8A7A;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.screen-home .as-therapy__icon svg {
  width: 18px;
  height: 18px;
}

.screen-home .as-therapy__info {
  flex: 1;
  min-width: 0;
}

.screen-home .as-therapy__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.screen-home .as-therapy__time {
  font-size: 11px;
  color: #5A6B64;
  font-weight: 500;
}

.screen-home .as-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, #E8F1FB, #F0F6FC);
  border: 1px solid rgba(43, 108, 176, 0.12);
}

.screen-home .as-next__label {
  font-size: 10px;
  font-weight: 650;
  color: #2B6CB0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.screen-home .as-next__value {
  font-size: 12px;
  font-weight: 650;
  color: #0F1714;
}

/* ── 2. Add therapy ── */
.screen-add .as-field {
  margin-bottom: 8px;
}

.screen-add .as-field label {
  display: block;
  font-size: 10px;
  font-weight: 650;
  color: #5A6B64;
  margin-bottom: 4px;
}

.screen-add .as-input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1px solid #C5D0CA;
  background: #fff;
  font-size: 12px;
  font-weight: 550;
  color: #0F1714;
  font-family: inherit;
}

.screen-add .as-freq {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.screen-add .as-freq__opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1.5px solid #C5D0CA;
  font-size: 11px;
  font-weight: 550;
}

.screen-add .as-freq__opt--active {
  border-color: #0E8A7A;
  background: #E0F5F1;
  color: #0A6B5E;
}

.screen-add .as-freq__radio {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #8FA098;
  flex-shrink: 0;
  position: relative;
}

.screen-add .as-freq__opt--active .as-freq__radio {
  border-color: #0E8A7A;
}

.screen-add .as-freq__opt--active .as-freq__radio::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: #0E8A7A;
}

.screen-add .as-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* ── 3. Notification ── */
.screen-notify {
  background: linear-gradient(180deg, #1A2A28 0%, #0D1614 100%);
  color: #fff;
  justify-content: flex-end;
  padding-bottom: 28px;
}

.screen-notify .as-notify-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 22px;
  padding: 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.screen-notify .as-notify-app {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.screen-notify .as-notify-app img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.screen-notify .as-notify-app span {
  font-size: 12px;
  font-weight: 650;
}

.screen-notify .as-notify-app time {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.6;
}

.screen-notify h3 {
  font-size: 15px;
  font-weight: 650;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
  color: #fff;
}

.screen-notify .as-notify-drug {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 8px 0 2px;
}

.screen-notify .as-notify-time {
  font-size: 13px;
  opacity: 0.7;
  margin-bottom: 14px;
}

.screen-notify .as-notify-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.screen-notify .as-btn--primary {
  background: #fff;
  color: #0A6B5E;
}

.screen-notify .as-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── 4. Confirm ── */
.screen-confirm {
  align-items: center;
  text-align: center;
  justify-content: center;
  background: linear-gradient(180deg, #E0F5F1 0%, #F2F6F5 45%);
}

.screen-confirm .as-check-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1B7A45, #3DCFB0);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 12px 32px rgba(27, 122, 69, 0.3);
  animation: check-pop 0.6s var(--ease-spring) both;
}

.screen-confirm .as-check-ring svg {
  width: 44px;
  height: 44px;
  color: #fff;
}

@keyframes check-pop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.screen-confirm h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
}

.screen-confirm .as-confirm-detail {
  font-size: 13px;
  color: #5A6B64;
  margin-bottom: 18px;
}

.screen-confirm .as-history-snip {
  width: 100%;
  text-align: left;
}

.screen-confirm .as-history-snip__title {
  font-size: 10px;
  font-weight: 650;
  color: #5A6B64;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.screen-confirm .as-history-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 550;
  padding: 4px 0;
}

.screen-confirm .as-history-row .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #D6F0E0;
  color: #1B7A45;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.screen-confirm .as-history-row .dot svg {
  width: 12px;
  height: 12px;
}

.screen-confirm .as-history-row time {
  margin-left: auto;
  color: #5A6B64;
  font-size: 11px;
}

/* ── 5. Calendar ── */
.screen-cal .as-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.screen-cal .as-cal-header h2 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

.screen-cal .as-cal-pct {
  text-align: center;
  padding: 12px;
  margin-bottom: 8px;
}

.screen-cal .as-cal-pct__num {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #0E8A7A;
  line-height: 1;
}

.screen-cal .as-cal-pct__label {
  font-size: 10px;
  font-weight: 550;
  color: #5A6B64;
  margin-top: 4px;
}

.screen-cal .as-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}

.screen-cal .as-cal-dow {
  font-size: 8px;
  font-weight: 650;
  color: #8FA098;
  padding: 4px 0;
}

.screen-cal .as-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  border-radius: 8px;
  color: #0F1714;
}

.screen-cal .as-cal-day--done {
  background: #D6F0E0;
  color: #1B7A45;
}

.screen-cal .as-cal-day--today {
  background: #0E8A7A;
  color: #fff;
}

.screen-cal .as-cal-day--future {
  color: #A8B4AE;
}

.screen-cal .as-cal-day--empty {
  visibility: hidden;
}

.screen-cal .as-cal-legend {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  font-size: 9px;
  font-weight: 550;
  color: #5A6B64;
}

.screen-cal .as-cal-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.screen-cal .as-cal-legend i {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  display: block;
}

/* ── 6. History ── */
.screen-history .as-timeline-group {
  margin-bottom: 10px;
}

.screen-history .as-timeline-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  color: #0F1714;
}

.screen-history .as-timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 5px;
  border: 1px solid rgba(197, 208, 202, 0.4);
}

.screen-history .as-timeline-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #D6F0E0;
  color: #1B7A45;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.screen-history .as-timeline-check svg {
  width: 14px;
  height: 14px;
}

.screen-history .as-timeline-name {
  font-size: 12px;
  font-weight: 650;
  flex: 1;
}

.screen-history .as-timeline-time {
  font-size: 11px;
  color: #5A6B64;
  font-weight: 550;
}

/* ── 7. Premium ── */
.screen-premium {
  background: linear-gradient(180deg, #FBF3D8 0%, #F2F6F5 40%);
}

.screen-premium .as-prem-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #F5E6A8, #E8D078);
  color: #5C4A0A;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.screen-premium .as-prem-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.screen-premium .as-prem-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.screen-premium .as-prem-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(197, 208, 202, 0.4);
}

.screen-premium .as-prem-item .check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0E8A7A;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.screen-premium .as-prem-item .check svg {
  width: 12px;
  height: 12px;
}
