/* Tag web — customer & driver mobile-first surfaces */
.tag-web-page main {
  padding-bottom: 88px;
}

.tag-web {
  min-height: calc(100vh - 120px);
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.tag-web__shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px 16px 24px;
}

.tag-header h1 {
  font-size: clamp(1.35rem, 1.2rem + 1vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #0f172a;
}

.tag-muted {
  color: #64748b;
  font-size: 0.925rem;
  line-height: 1.5;
  margin: 0;
}

.tag-meta {
  font-size: 0.85rem;
  color: #94a3b8;
}

.tag-center {
  text-align: center;
  margin-top: 16px;
}

.tag-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.tag-card--banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.tag-card h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 12px;
  color: #0f172a;
}

.tag-alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.tag-alert--info {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.tag-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  margin-bottom: 14px;
}

.tag-alert--closed {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  margin-bottom: 14px;
}

.tag-unavailable {
  background: #ffffff;
  border: 1px solid rgba(26, 31, 54, 0.08);
  border-radius: 20px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: 0 10px 28px rgba(26, 31, 54, 0.06);
}

.tag-unavailable__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 12px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(15, 158, 150, 0.12);
  color: #0b827b;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.tag-unavailable__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1a1f36;
  line-height: 1.25;
}

.tag-unavailable__desc {
  margin: 0 0 8px;
  color: #3b445c;
  font-size: 0.98rem;
  line-height: 1.55;
}

.tag-unavailable__hint {
  margin: 0 0 22px;
  color: #8b93a7;
  font-size: 0.9rem;
  line-height: 1.5;
}

.tag-unavailable__actions {
  display: grid;
  gap: 10px;
}

.tag-alert a {
  color: inherit;
  font-weight: 600;
  margin-left: 6px;
}

.tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tag-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.tag-list li:last-child {
  border-bottom: 0;
}

.tag-list li.is-done {
  color: #059669;
}

.tag-list li.is-read {
  opacity: 0.65;
}

.tag-list--rides li {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag-list__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tag-list__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #64748b;
}

.tag-list__meta a {
  color: #059669;
  font-weight: 600;
  text-decoration: none;
}

.tag-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(100px, 38%) 1fr;
  gap: 8px 12px;
  font-size: 0.925rem;
}

.tag-dl dt {
  color: #64748b;
  font-weight: 500;
}

.tag-dl dd {
  margin: 0;
  color: #0f172a;
  word-break: break-word;
}

.tag-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tag-form--inline {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
}

.tag-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tag-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 140px;
}

.tag-form__group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.tag-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
  color: #0f172a;
}

.tag-input:focus {
  outline: 2px solid rgba(5, 150, 105, 0.35);
  border-color: #059669;
}

.tag-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tag-btn {
  min-height: 48px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

.tag-btn--primary {
  background: var(--pr-brand, #059669);
  color: #fff;
}

.tag-btn--secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.tag-btn--outline {
  background: transparent;
  color: #059669;
  border: 1px solid #059669;
}

.tag-btn--danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.tag-result {
  margin-top: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 12px;
  font-family: ui-monospace, monospace;
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 200px;
  overflow: auto;
}

.tag-code {
  font-size: 0.75rem;
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  overflow: auto;
  max-height: 180px;
}

.tag-contract {
  max-height: 200px;
  overflow-y: auto;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #475569;
  margin-bottom: 14px;
}

.tag-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-around;
  gap: 2px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
}

.tag-nav--driver {
  /* same layout, fewer items */
}

.tag-nav__item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-radius: 10px;
}

.tag-nav__item i {
  font-size: 1.1rem;
}

.tag-nav__item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.tag-nav__item.is-active {
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
}

@media (min-width: 768px) {
  .tag-web__shell {
    max-width: 560px;
    padding-top: 24px;
  }

  .tag-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .tag-btn {
    flex: 1 1 auto;
  }

  .tag-nav__item {
    font-size: 0.72rem;
  }
}

@media (min-width: 992px) {
  .tag-web-page main {
    padding-bottom: 24px;
  }

  .tag-nav {
    position: sticky;
    bottom: auto;
    top: 72px;
    max-width: 560px;
    margin: 0 auto 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }
}
