html, body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 16px;
}

a, .btn-link {
  color: #006bb7;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
  padding-top: 1.1rem;
}

h1:focus {
  outline: none;
}

.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}

.blazor-error-boundary {
  background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
  padding: 1rem 1rem 1rem 3.7rem;
  color: white;
}

.blazor-error-boundary::after {
  content: "An error has occurred.";
}

.darker-border-checkbox.form-check-input {
  border-color: #929292;
}

.questionnaire-container {
  margin: 2rem;
}

.question {
  animation: fadeIn 0.6s ease-in-out;
}

.answers {
  margin-top: 1rem;
}

.answer-button {
  margin: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.3125rem;
  background-color: #1976d2;
  color: white;
  cursor: pointer;
  animation: fadeIn 0.6s ease-in-out;
}

.answer-button:hover {
  background-color: #145a9e;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeInSimple {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.top-bar {
  line-height: 3rem;
  background-color: #ebdab7;
}

* {
  box-sizing: border-box;
}

.chat-container {
  height: calc(100vh - 3rem);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #ebdab7 0%, #FFFFFF 100%);
}

.settings-toggle {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: flex;
  gap: 1.25rem;
  z-index: 250;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.625rem 0.9375rem;
  border-radius: 1.25rem;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.1);
  max-width: calc(100% - 2.5rem);
  opacity: 0.8;
}

.settings-toggle .form-check {
  margin: 0;
}

.settings-toggle .form-check-label {
  font-size: 0.75rem;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 5rem 1.25rem 10rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 50rem;
  width: 100%;
  margin: 0 auto;
}

.welcome-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #333;
}

.welcome-message h2 {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.welcome-message p {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

.message-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  max-width: 70%;
}

.message-wrapper.user-message {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message-wrapper.assistant-message {
  margin-right: auto;
}

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD93D 0%, #FFA500 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.125rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
}

.user-avatar {
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
}

.typing-avatar {
  animation: pulse 1.5s ease-in-out infinite;
}

.message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  word-wrap: break-word;
  line-height: 1.4;
  font-size: 0.9375rem;
}

.user-bubble {
  background: #007AFF;
  color: white;
  border-bottom-right-radius: 0.25rem;
}

.assistant-bubble {
  background: #E9ECEF;
  color: #1a1a1a;
  border-bottom-left-radius: 0.25rem;
}

.typing-indicator {
  padding: 1rem;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #999;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

.chat-input-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: white;
  border-top: 1px solid #E0E0E0;
  width: 100%;
  z-index: 100;
  box-shadow: 0 -0.125rem 0.625rem rgba(0, 0, 0, 0.1);
}

.input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  background: #F5F5F5;
  border-radius: 1.5rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid #E0E0E0;
  max-width: 100%;
  margin: 0 auto;
}

.icon-button {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.icon-button:hover:not(:disabled) {
  color: #007AFF;
}

.icon-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  resize: none;
  outline: none;
  font-size: 0.9375rem;
  line-height: 1.4;
  padding: 0.5rem 0;
  max-height: 7.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.chat-input::placeholder {
  color: #999;
}

.chat-input:disabled {
  opacity: 0.6;
}

.send-button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: #007AFF;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, transform 0.1s;
  flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
  background: #0056CC;
  transform: scale(1.05);
}

.send-button:active:not(:disabled) {
  transform: scale(0.95);
}

.send-button:disabled,
.send-button.disabled {
  background: #CCCCCC;
  cursor: not-allowed;
  transform: none;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-0.25rem);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0.25rem 0.75rem rgba(255, 217, 61, 0.4);
  }
}
/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
  width: 0.375rem;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0.1875rem;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

/* Desktop: Account for sidebar */
@media (min-width: 641px) {
  .chat-container {
    left: 15.625rem; /* 250px Sidebar width from MainLayout */
  }
  .chat-input-area {
    left: 15.625rem; /* 250px Sidebar width from MainLayout */
    width: calc(100% - 15.625rem); /* Subtract sidebar width */
  }
}
/* Mobile Responsive */
@media (max-width: 768px) {
  .chat-container {
    left: 0; /* No sidebar on mobile */
    top: 3.5rem; /* Keep the top-row header visible */
  }
  .settings-toggle {
    position: fixed;
    top: 7.5625rem;
    right: 0.625rem;
    left: 0.625rem;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    max-width: none;
    width: auto;
  }
  .settings-toggle .form-check-label {
    white-space: normal;
    font-size: 0.6875rem;
    line-height: 1.3;
  }
  .chat-messages {
    padding: 6.875rem 0.9375rem 8.75rem;
  }
  .message-wrapper {
    max-width: 85%;
  }
  .welcome-message h2 {
    font-size: 1.5rem;
  }
  .welcome-message p {
    font-size: 0.875rem;
  }
  .chat-input-area {
    padding: 0.9375rem;
    left: 0;
  }
}
.chat-welcome-container {
  background-image: url("/img/v1/Backgroundimage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  overscroll-behavior: contain;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.chat-welcome-container.page-transition-slide-out-left {
  transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
}
.chat-welcome-container.animate-in {
  animation: slideInFromLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-animation: slideInFromLeft 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.sidebar-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  animation: fadeInSimple 0.3s ease;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  min-height: -webkit-fill-available;
  background: #fff;
  background-color: #fff;
  z-index: 999;
  transform: translateX(-100%);
  -webkit-transform: translateX(-100%);
  transition: transform 0.3s ease;
  -webkit-transition: -webkit-transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  will-change: transform;
}
.sidebar.sidebar-open {
  transform: translateX(0);
  -webkit-transform: translateX(0);
}

.sidebar-header {
  padding: 1rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  padding-top: calc(1rem + constant(safe-area-inset-top));
  border-bottom: 1px solid #E0E0E0;
  background: #F5F5F5;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.sidebar-header .sidebar-header-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1a1a;
}

.sidebar-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
  padding-bottom: constant(safe-area-inset-bottom);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-bottom: 1px solid #E0E0E0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.sidebar-profile:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
.sidebar-profile .profile-avatar {
  position: relative;
  flex-shrink: 0;
}
.sidebar-profile .profile-avatar .avatar-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #E0E0E0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
}
.sidebar-profile .profile-avatar .avatar-status-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF9500;
  border: 2px solid #fff;
}
.sidebar-profile .profile-info {
  flex: 1;
  min-width: 0;
}
.sidebar-profile .profile-info .profile-name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-profile .profile-chevron-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}
.sidebar-profile .profile-chevron-btn:hover {
  color: #1a1a1a;
}

.sidebar-menu-items {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  border-bottom: 1px solid #E0E0E0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}
.menu-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
.menu-item svg {
  flex-shrink: 0;
  color: #1a1a1a;
  width: 24px;
  height: 24px;
}
.menu-item span {
  flex: 1;
  font-size: 0.9375rem;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-item .menu-item-notification {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF9500;
  flex-shrink: 0;
}

.sidebar-chats-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.75rem 0;
  border-bottom: 1px solid #E0E0E0;
}

.chats-heading {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chats-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.chat-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.9375rem;
  color: #1a1a1a;
}
.chat-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.sidebar-personality-test {
  padding: 1rem;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.sidebar-personality-test:hover {
  background-color: #f9f9f9;
}
.sidebar-personality-test .personality-test-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #F4F1EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  flex-shrink: 0;
}
.sidebar-personality-test .personality-test-content {
  text-align: left;
}
.sidebar-personality-test .personality-test-content .personality-test-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.25rem;
}
.sidebar-personality-test .personality-test-content .personality-test-description {
  font-size: 0.75rem;
  color: #666;
  line-height: 1.4;
}

.chat-welcome-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  background: transparent;
}
.chat-welcome-header .header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-welcome-header .header-menu-btn {
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.chat-welcome-header .header-menu-btn:hover {
  opacity: 0.7;
}
.chat-welcome-header .header-menu-btn:active {
  opacity: 0.5;
}
.chat-welcome-header .header-menu-btn img {
  width: 20px;
  height: 20px;
}
.chat-welcome-header .header-right-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-welcome-header .header-login-btn {
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.chat-welcome-header .header-login-btn:hover {
  opacity: 0.7;
}
.chat-welcome-header .header-login-btn:active {
  opacity: 0.5;
}
.chat-welcome-header .header-login-btn svg {
  width: 20px;
  height: 20px;
}
.chat-welcome-header .header-notification-btn {
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}
.chat-welcome-header .header-notification-btn:hover {
  opacity: 0.7;
}
.chat-welcome-header .header-notification-btn:active {
  opacity: 0.5;
}
.chat-welcome-header .header-notification-btn img {
  width: 20px;
  height: 20px;
}
.chat-welcome-header .header-logo {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  line-height: 140%;
  letter-spacing: -0.2px;
  text-align: center;
  color: #14110A;
}

.chat-welcome-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 1rem;
  padding-bottom: calc(220px + env(safe-area-inset-bottom) + 0.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.welcome-greeting {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
  width: 100%;
  margin-bottom: 1rem;
}
.welcome-greeting h1 {
  font-size: 1.5rem;
  font-weight: 400;
  color: #000000;
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}
.welcome-greeting .welcome-subtitle {
  font-size: 0.875rem;
  font-weight: 400;
  color: #666666;
  margin: 0;
  line-height: 1.5;
  max-width: 600px;
}

.option-buttons-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-self: flex-end;
  align-items: flex-end;
  width: auto;
  max-width: 90%;
  margin-top: auto;
  padding: 0 0.75rem;
}

.option-button {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.25rem;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: flex-end;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  text-align: right;
  width: auto;
  white-space: nowrap;
}
.option-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.option-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.option-button .option-emoji {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}
.option-button .option-text {
  font-size: 0.9375rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.chat-welcome-input-area {
  position: fixed !important;
  bottom: 0 !important;
  bottom: env(safe-area-inset-bottom) !important;
  left: 50%;
  transform: translateX(-50%);
  width: 653px;
  min-height: 150px;
  background: transparent;
  padding: 16px;
  padding-bottom: 16px;
  box-shadow: none;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  box-sizing: border-box;
}
.chat-welcome-input-area .input-container {
  background: #FFFFFF;
  border: 0.5px solid #D8D7D4;
  border-radius: 1.5rem;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 118px;
  justify-content: flex-end;
  overflow: visible;
}
.chat-welcome-input-area .recording-mode-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
.chat-welcome-input-area .sound-wave-recording {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 48px;
  padding: 0.5rem 0;
  overflow: hidden;
  align-items: flex-end;
}
.chat-welcome-input-area .input-buttons-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}
.chat-welcome-input-area .right-buttons-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-welcome-input-area .plus-btn {
  background: #F4F1EB;
  border: none;
  border-radius: 100px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 8px;
  gap: 8px;
  opacity: 1;
}
.chat-welcome-input-area .plus-btn:hover {
  background-color: rgb(234.9516129032, 229.4838709677, 218.5483870968);
}
.chat-welcome-input-area .plus-btn:active {
  transform: scale(0.95);
}
.chat-welcome-input-area .plus-btn img {
  width: 20px;
  height: 20px;
}
.chat-welcome-input-area .chat-welcome-input {
  width: 100%;
  border: none;
  background: transparent;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  resize: none;
  max-height: 300px;
  overflow-y: auto;
  line-height: 1.4;
  min-height: 1.4em;
}
.chat-welcome-input-area .chat-welcome-input:focus {
  outline: none;
}
.chat-welcome-input-area .chat-welcome-input::placeholder {
  color: #999;
}
.chat-welcome-input-area .mic-btn {
  background: #F4F1EB;
  border: none;
  border-radius: 100px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  flex-shrink: 0;
  transition: all 0.2s ease;
  padding: 8px;
  gap: 8px;
  opacity: 1;
}
.chat-welcome-input-area .mic-btn:hover:not(:disabled) {
  background-color: rgb(234.9516129032, 229.4838709677, 218.5483870968);
}
.chat-welcome-input-area .mic-btn:active:not(:disabled) {
  transform: scale(0.95);
}
.chat-welcome-input-area .mic-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.chat-welcome-input-area .mic-btn img {
  width: 20px;
  height: 20px;
}
.chat-welcome-input-area .speak-btn {
  background: #FFBB54;
  border: none;
  border-radius: 1.5rem;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #000000;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 500;
  font-style: normal;
  line-height: 140%;
  letter-spacing: 0px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(255, 187, 84, 0.3);
}
.chat-welcome-input-area .speak-btn:hover:not(:disabled) {
  background-color: #FFA730;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 187, 84, 0.4);
}
.chat-welcome-input-area .speak-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(255, 187, 84, 0.3);
}
.chat-welcome-input-area .speak-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255, 187, 84, 0.5);
}
.chat-welcome-input-area .speak-btn img {
  width: 20px;
  height: 20px;
}
.chat-welcome-input-area .speak-btn svg {
  width: 20px;
  height: 20px;
}
.chat-welcome-input-area .send-btn {
  background: #FFBB54;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: all 0.2s ease;
  margin-left: auto;
}
.chat-welcome-input-area .send-btn:hover {
  background-color: rgb(255, 197.1403508772, 109.5);
  transform: scale(1.05);
}
.chat-welcome-input-area .send-btn:active {
  transform: scale(0.95);
}
.chat-welcome-input-area .send-btn img {
  width: 20px;
  height: 20px;
}

@media (max-width: 640px) {
  .chat-welcome-content {
    padding: 1.25rem 0.75rem;
    padding-bottom: calc(240px + env(safe-area-inset-bottom) + 0.5rem);
  }
  .welcome-greeting h1 {
    font-size: 1.5rem;
  }
  .welcome-greeting .welcome-subtitle {
    font-size: 0.8125rem;
  }
  .option-card {
    padding: 1rem;
  }
  .option-card .option-card-emoji {
    font-size: 1.5rem;
  }
  .option-card .option-card-text {
    font-size: 0.75rem;
  }
  .chat-welcome-input-area {
    width: calc(100% - 32px);
    max-width: 100%;
    padding: 0.75rem;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
  }
}
.dictate-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.dictate-content {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 90%;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dictate-header {
  text-align: center;
}
.dictate-header h2 {
  font-size: 1.75rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0;
}

.sound-wave-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem 0;
  min-height: 120px;
}

.sound-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 100px;
}

.sound-wave-bar {
  width: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: height 0.1s ease, opacity 0.2s ease;
  min-height: 4px;
  max-height: 36px;
  opacity: 0.3;
}

.sound-wave-recording .sound-wave-bar {
  width: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: height 0.1s ease, opacity 0.2s ease;
  min-height: 4px;
  max-height: 36px;
  opacity: 0.3;
}

.dictate-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.dictate-cancel-btn,
.dictate-confirm-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}
.dictate-cancel-btn svg,
.dictate-confirm-btn svg {
  width: 20px;
  height: 20px;
}

.dictate-cancel-btn {
  background: transparent;
  color: #1a1a1a;
}
.dictate-cancel-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}
.dictate-cancel-btn:active {
  transform: scale(0.95);
}

.dictate-confirm-btn {
  background: #1a1a1a;
  color: #fff;
}
.dictate-confirm-btn:hover:not(:disabled) {
  background-color: rgb(51.5, 51.5, 51.5);
  transform: scale(1.05);
}
.dictate-confirm-btn:active:not(:disabled) {
  transform: scale(0.95);
}
.dictate-confirm-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(26, 26, 26, 0.4);
}

@media (max-width: 640px) {
  .sidebar {
    width: 100vw;
    max-width: 100vw;
  }
}
@media (min-width: 769px) {
  .chat-welcome-container {
    margin: 0 auto;
    margin-left: 0;
    transition: margin-left 0.3s ease;
  }
  .chat-welcome-container.sidebar-open-desktop {
    margin-left: 320px;
  }
  .chat-welcome-header {
    max-width: none;
    margin: 0;
    left: 0;
    right: 0;
    transition: left 0.3s ease;
  }
  .chat-welcome-input-area {
    width: 653px;
    max-width: calc(100% - 32px);
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    transition: left 0.3s ease;
  }
  .sidebar {
    width: 320px;
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
  }
  .sidebar .profile-chevron-btn {
    display: none;
  }
  .sidebar-backdrop {
    display: none;
  }
}
@supports (-webkit-touch-callout: none) {
  .sidebar,
  .sidebar-backdrop {
    position: fixed;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .sidebar {
    width: 100vw;
    max-width: 100vw;
    background: #fff;
    background-color: #fff;
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
  }
  .sidebar.sidebar-open {
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
  .sidebar button,
  .menu-item,
  .chat-item,
  .sidebar-profile,
  .sidebar-personality-test {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
  }
  .menu-item,
  .chat-item,
  .sidebar-profile,
  .sidebar-personality-test {
    border: none;
    background: transparent;
  }
  .chat-welcome-container {
    background-attachment: scroll;
  }
}
@media (max-width: 768px) {
  .chat-welcome-container {
    background-attachment: scroll;
  }
}
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 900px;
  padding: 0 1rem;
  margin-top: 1rem;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.25rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-align: left;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.feature-card:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.feature-card .feature-card-icon {
  flex-shrink: 0;
}
.feature-card .feature-card-icon svg {
  width: 24px;
  height: 24px;
  color: #1a1a1a;
}
.feature-card .feature-card-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.feature-card h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.4;
}
.feature-card p {
  font-size: 0.75rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.quick-actions-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  padding: 0.5rem 0;
  width: 100%;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.quick-actions-scroll::-webkit-scrollbar {
  display: none;
}

.quick-action-btn {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.25rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: -webkit-fill-available;
  min-width: fit-content;
}
.quick-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.quick-action-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.quick-action-btn .quick-action-emoji {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.quick-action-btn .quick-action-text {
  font-size: 0.75rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.chat-welcome-input-area .quick-actions-scroll {
  min-width: 0;
}

@media (max-width: 768px) {
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    padding: 0 0.75rem;
  }
  .feature-card {
    padding: 1rem;
  }
  .feature-card .feature-card-icon svg {
    width: 20px;
    height: 20px;
  }
  .feature-card h3 {
    font-size: 0.75rem;
  }
  .feature-card p {
    font-size: 0.6875rem;
  }
}
.chat-welcome-content.chat-active {
  justify-content: flex-start;
  align-items: stretch;
  padding: 0;
  padding-bottom: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100vh - 280px - env(safe-area-inset-bottom) - env(safe-area-inset-top));
  max-height: calc(100dvh - 280px - env(safe-area-inset-bottom) - env(safe-area-inset-top));
}
.chat-welcome-content.chat-active::-webkit-scrollbar {
  width: 8px;
}
.chat-welcome-content.chat-active::-webkit-scrollbar-track {
  background: transparent;
}
.chat-welcome-content.chat-active::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.chat-welcome-content.chat-active::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.chat-messages-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1rem;
  padding-bottom: 1.25rem;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  min-height: min-content;
}

.chat-message {
  display: flex;
  width: 100%;
  animation: fadeInMessage 0.3s ease;
}
.chat-message.user-message {
  justify-content: flex-end;
}
.chat-message.machine-message {
  justify-content: flex-start;
}

.message-bubble {
  max-width: 70%;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  word-wrap: break-word;
  word-break: break-word;
}
.user-message .message-bubble {
  background: #F4F1EB;
  border-radius: 1.25rem;
  max-width: 60%;
}
.machine-message .message-bubble {
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1.25rem;
  max-width: 75%;
}
.message-bubble .message-text {
  font-size: 0.9375rem;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.5;
}

.message-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.message-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  background: #F4F1EB;
  border-radius: 0.3125rem;
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
}

.typing-indicator {
  padding: 1rem !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  background-color: #999;
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}
@keyframes fadeInMessage {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 640px) {
  .chat-messages-container {
    padding: 1rem 0.75rem;
    padding-bottom: calc(240px + env(safe-area-inset-bottom) + 0.5rem);
  }
  .message-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
  }
}
.matches-container {
  background: #fff;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100svh;
  min-height: -webkit-fill-available;
  height: 100vh;
  height: 100dvh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: slideInFromRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.matches-container.page-transition-slide-out-right {
  transform: translateX(100%);
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
.matches-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  background: #fff;
  border-bottom: 1px solid #E0E0E0;
  position: sticky;
  top: 0;
  z-index: 10;
}
.matches-header .back-button {
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}
.matches-header .back-button:hover {
  opacity: 0.7;
}
.matches-header .back-button:active {
  opacity: 0.5;
}
.matches-header .back-button svg {
  width: 24px;
  height: 24px;
}
.matches-header .matches-header-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1a1a;
  flex: 1;
  text-align: center;
}
.matches-header .matches-header-spacer {
  width: 40px;
  flex-shrink: 0;
}

.matches-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-overflow-scrolling: touch;
}

.matches-list {
  display: flex;
  flex-direction: column;
  padding: 0;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: none;
  border-bottom: 1px solid #E0E0E0;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
  width: 100%;
}
.match-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
.match-item:active {
  background-color: rgba(0, 0, 0, 0.05);
}
.match-item:last-child {
  border-bottom: none;
}

.match-avatar-container {
  position: relative;
  flex-shrink: 0;
}

.match-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1a1a1a;
  background: #E0E0E0;
}

.match-notification-dot {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FF9500;
  border: 2px solid #fff;
}

.match-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.match-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.match-item-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-item-message {
  font-size: 0.75rem;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}

@media (max-width: 640px) {
  .matches-header {
    padding: 0.75rem 1rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top));
  }
  .match-item {
    padding: 0.75rem;
  }
  .match-avatar {
    width: 50px;
    height: 50px;
    font-size: 0.9375rem;
  }
}
@media (min-width: 769px) {
  .matches-container {
    max-width: 50rem;
    margin: 0 auto;
  }
}
.login-container {
  background-image: url("/img/v1/Backgroundimage.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  padding-top: calc(1rem + env(safe-area-inset-top));
  padding-top: calc(1rem + constant(safe-area-inset-top));
}
.login-header .login-back-btn {
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.2s ease;
}
.login-header .login-back-btn:hover {
  opacity: 0.7;
}
.login-header .login-back-btn:active {
  opacity: 0.5;
}
.login-header .login-back-btn svg {
  width: 24px;
  height: 24px;
}
.login-header .login-logo {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #14110A;
}
.login-header .login-header-spacer {
  width: 24px;
}

.login-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  padding-bottom: calc(1.5rem + constant(safe-area-inset-bottom));
}

.login-card {
  background: #fff;
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.status-alert {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.3125rem;
  margin-bottom: 1.5rem;
  animation: slideDown 0.3s ease;
  font-size: 0.9375rem;
}
.status-alert svg {
  flex-shrink: 0;
}
.status-alert span {
  flex: 1;
  line-height: 1.4;
}
.status-alert.status-success {
  background: rgba(38, 176, 80, 0.1);
  border: 1px solid #26b050;
  color: rgb(28.9439252336, 134.0560747664, 60.9345794393);
}
.status-alert.status-success svg {
  color: #26b050;
}
.status-alert.status-error {
  background: rgba(229, 0, 0, 0.1);
  border: 1px solid #e50000;
  color: #b20000;
}
.status-alert.status-error svg {
  color: #e50000;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.login-tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #E0E0E0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.login-tabs::-webkit-scrollbar {
  display: none;
}

.login-tab {
  background: none;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #666;
  cursor: pointer;
  position: relative;
  transition: color 0.2s ease;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  flex-shrink: 0;
}
.login-tab:hover {
  color: #1a1a1a;
}
.login-tab.active {
  color: #007AFF;
  border-bottom-color: #007AFF;
  font-weight: 500;
}

.login-tab-content {
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeInTab 0.3s ease;
}
.tab-pane.active {
  display: block;
}

@keyframes fadeInTab {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #E0E0E0;
  border-radius: 0.3125rem;
  font-size: 0.9375rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #1a1a1a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  box-sizing: border-box;
}
.form-input:focus {
  outline: none;
  border-color: #007AFF;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}
.form-input::placeholder {
  color: #999;
}
.form-input.invalid, .form-input.validation-error {
  border-color: #e50000;
}
.form-input.valid.modified {
  border-color: #26b050;
}

.validation-msg {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #e50000;
  line-height: 1.4;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-primary-custom {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #007AFF;
  border: none;
  border-radius: 0.3125rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-primary-custom:hover {
  background-color: #0056CC;
}
.btn-primary-custom:active {
  transform: scale(0.98);
}
.btn-primary-custom:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary-custom {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #666;
  border: none;
  border-radius: 0.3125rem;
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn-secondary-custom:hover {
  background-color: rgb(76.5, 76.5, 76.5);
}
.btn-secondary-custom:active {
  transform: scale(0.98);
}
.btn-secondary-custom:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-link-custom {
  background: none;
  border: none;
  color: #007AFF;
  font-size: 0.75rem;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  text-align: center;
  padding: 0.5rem;
  transition: opacity 0.2s ease;
}
.btn-link-custom:hover {
  opacity: 0.7;
  text-decoration: underline;
}
.btn-link-custom:active {
  opacity: 0.5;
}

.account-section {
  margin-bottom: 1.5rem;
}
.account-section.account-section-divider {
  padding-top: 1.5rem;
  border-top: 1px solid #E0E0E0;
}
.account-section .section-title {
  font-size: 1.125rem;
  font-weight: 500;
  color: #1a1a1a;
  margin: 0 0 1.25rem 0;
}

.forgot-password-intro {
  margin-bottom: 1.25rem;
}
.forgot-password-intro p {
  font-size: 0.9375rem;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 640px) {
  .login-card {
    padding: 1.5rem 1rem;
    margin: 0.75rem;
  }
  .login-tabs {
    gap: 0;
  }
  .login-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  .login-content {
    padding: 1rem 0.75rem;
  }
}
@media (max-width: 480px) {
  .login-header {
    padding: 0.75rem;
    padding-top: calc(0.75rem + env(safe-area-inset-top));
  }
  .login-content {
    padding: 0.75rem;
  }
  .login-card {
    padding: 1.25rem 0.75rem;
    margin: 0;
  }
  .form-group {
    margin-bottom: 1rem;
  }
  .form-actions {
    margin-top: 1.25rem;
  }
}
@media (max-width: 768px) {
  .login-container {
    background-attachment: scroll;
  }
}
@supports (-webkit-touch-callout: none) {
  .login-container {
    background-attachment: scroll;
  }
}
