body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f9fafb;
  color: #1f2937;
}

* {
  box-sizing: border-box;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.bg-gray-50 { background-color: #f9fafb; }
.bg-white { background-color: #ffffff; }
.bg-black { background-color: #000000; }
.bg-opacity-40 { background-color: rgba(0, 0, 0, 0.4); }
.bg-blue-600 { background-color: #2563eb; }
.bg-gray-200 { background-color: #e5e7eb; }

.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-green-500 { color: #22c55e; }
.text-red-600 { color: #dc2626; }
.text-white { color: #ffffff; }

.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; line-height: 1.4; }
.text-lg { font-size: 1.125rem; line-height: 1.4; }
.text-xl { font-size: 1.25rem; line-height: 1.4; }
.text-2xl { font-size: 1.5rem; line-height: 1.3; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.max-w-6xl { max-width: 72rem; }
.max-w-md { max-width: 28rem; }
.max-h-\[300px\] { max-height: 300px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-2 { margin-left: 0.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

.w-full { width: 100%; }
.w-16 { width: 4rem; }
.w-5 { width: 1.25rem; }
.h-16 { height: 4rem; }
.h-5 { height: 1.25rem; }

.border { border: 1px solid #d1d5db; }
.border-2 { border-width: 2px; border-style: solid; }
.border-gray-300 { border-color: #d1d5db; }
.border-red-500 { border-color: #ef4444; }
.rounded { border-radius: 0.375rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow { box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08); }
.shadow-xl { box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18); }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { inset: 0; }
.top-2 { top: 0.5rem; }
.right-2 { right: 0.5rem; }
.z-50 { z-index: 50; }

.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.divide-y > * + * { border-top: 1px solid #e5e7eb; }
.space-y-4 > * + * { margin-top: 1rem; }

.overflow-y-auto { overflow-y: auto; }
.object-cover { object-fit: cover; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.transition { transition: all 0.2s ease; }

.hover\:underline:hover { text-decoration: underline; }
.hover\:text-gray-800:hover { color: #1f2937; }
.hover\:text-red-500:hover { color: #ef4444; }
.hover\:text-blue-600:hover { color: #2563eb; }
.hover\:bg-blue-100:hover { background-color: #dbeafe; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
}

input[type="text"],
input[type="email"],
input[type="tel"] {
  min-height: 42px;
}

.phone-field {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.phone-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 104px;
  padding: 0 0.85rem;
  border: 1px solid #d1d5db;
  border-right: 0;
  border-radius: 0.375rem 0 0 0.375rem;
  background: #ffffff;
  color: #111827;
  white-space: nowrap;
}

.phone-flag {
  font-size: 1.15rem;
  line-height: 1;
}

.phone-code {
  font-size: 0.95rem;
  font-weight: 500;
}

.phone-input {
  border-radius: 0 0.375rem 0.375rem 0 !important;
}

.phone-field--enhanced .phone-fallback {
  display: none;
}

.phone-field--enhanced .phone-input {
  border-radius: 0.375rem !important;
}

.timezone-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.timezone-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 9999px;
  background: rgba(34, 197, 94, 0.1);
  color: #16a34a;
  font-size: 0.875rem;
  font-weight: 700;
}

.timezone-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.timezone-label {
  color: #6b7280;
  font-size: 0.75rem;
  line-height: 1.2;
}

.timezone-value {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  word-break: break-word;
}

.timezone-action {
  justify-self: start;
  margin-left: calc(3.5rem + 1rem);
  padding: 0;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.timezone-action:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:w-2\/3 { width: 66.666667%; }
  .sm\:w-auto { width: auto; }

  .timezone-panel {
    grid-template-columns: auto 1fr 1fr auto;
    gap: 1rem;
  }

  .timezone-action {
    margin-left: 0;
    justify-self: end;
  }
}

@media (min-width: 768px) {
  .md\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:w-1\/3 { width: 33.333333%; }
  .lg\:w-2\/3 { width: 66.666667%; }
}
