/* Block-number guide (/kako-blokirati-broj/). Loaded only on that page via $pageStyles. */

  margin-top: var(--spacing-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.block-guide__number strong { color: var(--text-dark-primary); }

.block-guide a:not(.block-choice):not(.block-brand):not(.inline-cta) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.block-guide a:focus-visible { border-radius: var(--radius-sm); }

.block-picker {
  margin-bottom: var(--spacing-xl);
}

.block-picker__heading {
  font-size: 1.2rem;
  margin-bottom: var(--spacing-md);
}

.block-picker__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--spacing-md);
}

.block-choice,
.block-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  min-height: 44px;
  padding: var(--spacing-lg);
  background: var(--card-bg);
  border: 2px solid var(--border-light);
  border-radius: 16px;
  color: var(--text-dark-primary);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.block-choice:hover,
.block-brand:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.block-choice[aria-current="true"],
.block-brand[aria-current="true"] {
  border-color: var(--primary-color);
  background: var(--surface-subtle);
}

.block-choice[aria-current="true"]::after,
.block-brand[aria-current="true"]::after {
  content: "\2713";
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.block-choice__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary-color);
  background: rgba(102, 126, 234, 0.12);
}

.block-choice__icon svg { width: 30px; height: 30px; }

.block-choice__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.block-brand {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  padding: var(--spacing-md) var(--spacing-lg);
}

.block-choice__text strong { font-size: 1.15rem; }

.block-choice__text small,
.block-brand small {
  color: var(--text-dark-secondary);
  font-size: 0.85rem;
}

.block-picker__detected {
  margin-top: var(--spacing-md);
  color: var(--text-dark-secondary);
  font-size: 0.9rem;
}

.block-panel {
  margin-bottom: var(--spacing-xl);
  padding: var(--spacing-xl);
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 90px;
}

.block-panel h2 { font-size: 1.35rem; margin-bottom: var(--spacing-sm); }

.block-panel__lead,
.block-panel__note {
  color: var(--text-dark-secondary);
  line-height: 1.55;
  margin-bottom: var(--spacing-lg);
}

.block-panel__note {
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  background: var(--surface-subtle);
}

.block-panel:focus,
.block-brand-panel:focus { outline: none; }

.block-panel[hidden],
.block-brand-panel[hidden] { display: none; }

.block-brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
}

.block-brand-panel { scroll-margin-top: 90px; }

.block-brand-panel + .block-brand-panel {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-light);
}

.block-brand-panel h3 { font-size: 1.15rem; margin-bottom: var(--spacing-md); }

.block-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-lg);
}

.block-step {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
  padding: var(--spacing-lg) var(--spacing-md);
  border-radius: 16px;
  background: var(--surface-subtle);
}

.block-step__body { position: relative; padding-left: 2.6rem; }

.block-step__num {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  background: var(--action-bg);
}

.block-step h3,
.block-step h4,
.block-extra h3,
.block-extra h4 {
  font-size: 1rem;
  margin: 0.2rem 0 0.35rem;
  color: var(--text-dark-primary);
}

.block-step p,
.block-extra p {
  margin: 0;
  color: var(--text-dark-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.block-step strong,
.block-extra strong { color: var(--text-dark-primary); }

.block-extra {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
  padding: var(--spacing-lg);
  border: 1px dashed var(--border-brand-soft);
  border-radius: 16px;
}

.block-extra .phone-mock { flex-shrink: 0; }

.block-extra__body .subpage-kicker { margin-bottom: var(--spacing-sm); }

.block-guide__labels-note {
  color: var(--text-dark-secondary);
  font-size: 0.85rem;
  margin-bottom: var(--spacing-xl);
}

@media (max-width: 900px) {
  .block-steps { grid-template-columns: 1fr; }
  .block-step { flex-direction: row; align-items: center; }
  .block-step .phone-mock { width: 150px; }
}

@media (max-width: 600px) {
  .block-picker__options,
  .block-brands { grid-template-columns: 1fr; }
  .block-panel { padding: var(--spacing-lg) var(--spacing-md); }
  .block-step,
  .block-extra { flex-direction: column; align-items: stretch; }
  .block-step .phone-mock { width: 200px; }
  .block-choice { padding: var(--spacing-md); }
}

/* Drawn phone screens: fixed light palette so they read as a phone in both themes. */
.phone-mock {
  width: 200px;
  margin-inline: auto;
  padding: 7px;
  border-radius: 30px;
  background: #0f172a;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
}

.phone-mock__screen {
  position: relative;
  height: 290px;
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  color: #0f172a;
  font-size: 11px;
  line-height: 1.3;
}

.phone-mock--android .phone-mock__screen { background: #f8fafc; }

.phone-mock__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 4px;
  font-size: 9px;
  font-weight: 700;
}

.phone-mock__notch {
  width: 54px;
  height: 14px;
  border-radius: 999px;
  background: #0f172a;
}

.phone-mock--android .phone-mock__notch { width: 10px; height: 10px; }

.phone-mock__title {
  padding: 6px 14px 8px;
  font-size: 17px;
  font-weight: 800;
}

.phone-mock--android .phone-mock__title { font-size: 15px; font-weight: 600; }

.phone-mock__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 12px 12px;
  text-align: center;
}

.phone-mock__header strong { font-size: 14px; }
.phone-mock__header span:last-child { color: #64748b; font-size: 10px; }

.phone-mock__avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #cbd5e1, #94a3b8);
}

.phone-mock__avatar--lg { width: 52px; height: 52px; }

.phone-mock__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px;
  padding: 8px 6px;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 10px;
}

.phone-mock__row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.phone-mock__row-text b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phone-mock__row-text small { color: #64748b; font-size: 9px; }

.phone-mock__info {
  position: relative;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #2563eb;
  color: #2563eb;
  font-size: 9px;
  font-weight: 800;
  font-style: italic;
}

.phone-mock__list {
  margin: 4px 8px;
  border-radius: 12px;
  background: #f1f5f9;
}

.phone-mock--android .phone-mock__list { background: #ffffff; }

.phone-mock__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  color: #2563eb;
  border-bottom: 1px solid #e2e8f0;
}

.phone-mock__item:last-child { border-bottom: 0; }
.phone-mock__sheet .phone-mock__item,
.phone-mock__dialog .phone-mock__item { color: #0f172a; }
.phone-mock__item.is-danger { color: #dc2626; font-weight: 700; }

.phone-mock__toggle {
  margin-left: auto;
  width: 26px;
  height: 15px;
  border-radius: 999px;
  background: #22c55e;
  position: relative;
  flex-shrink: 0;
}

.phone-mock__toggle::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ffffff;
}

.phone-mock__item:has(.phone-mock__toggle) { color: #0f172a; }

.phone-mock__check {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #2563eb;
  flex-shrink: 0;
  position: relative;
}

.phone-mock__check::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  color: #ffffff;
  font-size: 10px;
  line-height: 13px;
  text-align: center;
}

.phone-mock__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.phone-mock__sheet,
.phone-mock__dialog {
  position: absolute;
  background: #ffffff;
  box-shadow: 0 -6px 18px rgba(15, 23, 42, 0.2);
}

.phone-mock__sheet {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 6px 14px;
  border-radius: 18px 18px 0 0;
}

.phone-mock__dialog {
  left: 14px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 14px 10px 12px;
  border-radius: 18px;
}

.phone-mock__overlay-title {
  padding: 0 8px 8px;
  font-size: 12px;
  font-weight: 700;
}

.phone-mock__button {
  position: relative;
  margin: 10px 8px 0 auto;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
}

/* The element to tap: highlight plus a "finger" ring. */
.phone-mock .is-target {
  background-color: rgba(37, 99, 235, 0.12);
  box-shadow: inset 0 0 0 2px #2563eb;
}

.phone-mock__button.is-target { background-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.35); }
.phone-mock__info.is-target { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25); }

.phone-mock .is-target::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
  pointer-events: none;
  animation: phone-mock-tap 1.8s ease-in-out infinite;
}

.phone-mock__info.is-target::after,
.phone-mock__button.is-target::after { right: -8px; top: 100%; }
.phone-mock__item:has(.phone-mock__toggle).is-target::after,
.phone-mock__row.is-target:has(.phone-mock__info)::after { right: 42px; }

@keyframes phone-mock-tap {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.8); opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .phone-mock .is-target::after { animation: none; }
  .block-choice,
  .block-brand { transition: none; }
  .block-choice:hover,
  .block-brand:hover { transform: none; }
}
