* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(180deg, #ffffff 0%, #f0f7ff 55%, #d6e8ff 100%);
  color: #1e293b;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.container {
  width: 100%;
  max-width: 640px;
  padding: 36px 20px 48px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.vehicle-header {
  text-align: center;
  margin-bottom: 8px;
}

.top-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #0f294a;
  margin-bottom: 8px;
}

.plate-text {
  font-size: clamp(2.1rem, 7vw, 3rem);
  font-weight: 800;
  color: #0f294a;
  letter-spacing: 0.04em;
  line-height: 1.15;
  cursor: pointer;
  user-select: all;
}

.brand-text {
  font-size: 1rem;
  font-weight: 600;
  color: #475569;
  margin-top: 6px;
}

.subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin-top: 18px;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(15, 41, 74, 0.06);
}

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.quick-text {
  font-size: 0.98rem;
  font-weight: 500;
  color: #0f294a;
  line-height: 1.4;
  flex: 1;
}

.msg-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
}

.msg-input:focus {
  border-color: #60a5fa;
  background: #ffffff;
}

.send-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #7dd3fc;
  color: #090d16;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.send-btn:hover {
  background-color: #38bdf8;
}

.send-btn:active {
  transform: scale(0.98);
}

.send-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.send-icon {
  width: 17px;
  height: 17px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal-overlay.hidden {
  display: none;
}

.modal-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.18);
  outline: none;
}

.modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon.success {
  background: #dcfce7;
  color: #16a34a;
}

.modal-icon.error {
  background: #fee2e2;
  color: #dc2626;
}

.modal-icon.incoming {
  background: #e0f2fe;
  color: #0284c7;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f294a;
  margin-bottom: 8px;
}

.modal-title:empty {
  display: none;
}

.modal-body {
  font-size: 1rem;
  color: #1e293b;
  line-height: 1.45;
  margin-bottom: 20px;
  word-break: break-word;
}

.modal-body:empty {
  display: none;
}

.modal-btn {
  width: 100%;
  background-color: #7dd3fc;
  color: #090d16;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.modal-btn:hover {
  background-color: #38bdf8;
}

@media (max-width: 480px) {
  .card-row {
    flex-direction: column;
    align-items: stretch;
  }

  .send-btn {
    width: 100%;
  }
}
