:root {
  --primary-color: #38220f;
  --secondary-color: #ead4c3;
  --accent-color: #38220f;
  --background-color: #f3e7dd;
  --text-color: #38220f;
  --border-radius: 24px;
  --border-radius-pill: 999px;
}

body {
  padding: 0;
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.4;
  letter-spacing: -0.32px;
  min-height: 100vh;
  position: relative;
}

.site-header {
  background-color: var(--primary-color);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.welcome-text {
  color: white;
  font-size: 1rem;
}

.logout-link, .login-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid white;
  border-radius: 4px;
  transition: all 0.2s;
}

.logout-link:hover, .login-link:hover {
  background-color: white;
  color: var(--primary-color);
}

.cafe-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}

.cafe-title {
  color: var(--primary-color);
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.cafe-description {
  text-align: center;
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.nav-links a {
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.nav-links a:hover {
  background-color: var(--primary-color);
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

/* Audio Section */
.audio-section {
  background-color: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: fit-content;
  margin-bottom: 2rem;
  grid-column: 1 / -1;
}

.audio-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.audio-description {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.audio-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background-color: var(--background-color);
  border-radius: 10px;
}

.audio-visualizer {
  width: 100%;
  max-width: 400px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(74, 52, 40, 0.05);
  border-radius: 10px;
  padding: 1rem;
}

.audio-visualizer-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  height: 60px;
  opacity: 0.3;
  transition: opacity 0.3s;
}

.audio-visualizer-bars.active {
  opacity: 1;
}

.visualizer-bar {
  width: 8px;
  height: 5%;
  background: linear-gradient(to top, var(--accent-color), var(--primary-color));
  border-radius: 4px;
  transition: height 0.1s ease;
}

.record-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  height: 40px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-pill);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: none;
  letter-spacing: -0.32px;
}

.record-button:hover {
  background-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.record-button.recording {
  background-color: #dc3545;
  animation: pulse 1.5s infinite;
}

.record-button.recording:hover {
  background-color: #c82333;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(220, 53, 69, 0.7);
  }
  50% {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15), 0 0 0 15px rgba(220, 53, 69, 0);
  }
}

/* Continuous mode styling */
.record-button.continuous-mode {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.record-button.continuous-mode:hover {
  background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

@keyframes continuous-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4), 0 0 0 0 rgba(220, 53, 69, 0.5);
  }
  50% {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4), 0 0 0 20px rgba(220, 53, 69, 0);
  }
}

.record-button.continuous-mode.recording {
  animation: continuous-pulse 2s infinite;
}

/* Status indicator for continuous mode */
.audio-status-text.continuous-active {
  color: #dc3545;
  font-weight: bold;
}

.record-icon {
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  position: relative;
  transition: all 0.3s;
}

.record-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--accent-color);
  border-radius: 50%;
  transition: all 0.3s;
}

.recording-icon::before {
  background-color: #dc3545;
  border-radius: 2px;
}

.audio-status-text {
  text-align: center;
  color: var(--secondary-color);
  font-size: 1rem;
  min-height: 1.5rem;
}

.audio-transcription-display {
  width: 100%;
  max-width: 600px;
  margin-top: 1rem;
  padding: 1rem;
  background-color: white;
  border-radius: 8px;
  border: 2px solid var(--accent-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transcription-label {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transcription-text {
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.5;
  min-height: 2rem;
  font-style: italic;
}

.menu-section {
  background-color: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: fit-content;
}

.menu-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.menu-list {
  max-width: 100%;
}

.menu-item {
  border-bottom: 1px dashed var(--secondary-color);
  padding: 1.5rem 0;
  transition: background-color 0.2s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.item-name {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin: 0;
}

.item-price {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: bold;
}

.item-description {
  color: var(--secondary-color);
  font-style: italic;
  margin: 0;
  padding-right: 2rem;
}

.chat-section {
  background-color: transparent;
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  height: 600px;
}

.chat-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.chat-description {
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.chat-box {
  background-color: var(--background-color);
  border-radius: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
}

.chat-input {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background-color: white;
  border-top: 1px solid var(--secondary-color);
}

.message-input {
  flex-grow: 1;
  padding: 0.5rem 1rem;
  height: 40px;
  background-color: #e9dcd3;
  border: 1px solid rgba(233, 220, 211, 0.4);
  border-radius: var(--border-radius-pill);
  font-size: 16px;
  letter-spacing: -0.32px;
  color: var(--text-color);
}

.message-input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.send-button {
  padding: 0.5rem 1rem;
  height: 40px;
  width: 40px;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-pill);
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-button:hover {
  background-color: var(--primary-color);
}

/* Cart Section */
.cart-section {
  background-color: #f8f1ec;
  border-radius: var(--border-radius);
  padding: 1rem;
  box-shadow: 0px 6px 12px 0px rgba(56, 34, 15, 0.12);
  display: flex;
  flex-direction: column;
  height: 600px;
}

.cart-title {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.cart-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
  background-color: var(--background-color);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.cart-item {
  background-color: white;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s;
}

.cart-item:hover {
  transform: translateX(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-name {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.cart-item-quantity {
  color: var(--secondary-color);
  font-size: 0.9rem;
}

.cart-item-actions {
  display: flex;
  gap: 0.5rem;
}

.remove-item-button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background-color 0.2s;
}

.remove-item-button:hover {
  background-color: #c82333;
}

.cart-empty-message {
  text-align: center;
  color: var(--secondary-color);
  padding: 2rem;
  font-style: italic;
}

.cart-summary {
  background-color: var(--background-color);
  padding: 1rem;
  border-radius: 10px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 1rem;
  background-color: white;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
}

.total-label {
  color: var(--primary-color);
}

.total-count {
  color: var(--accent-color);
  font-size: 1.3rem;
}

.cart-actions {
  display: flex;
  gap: 0.75rem;
}

.primary-button, .secondary-button {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.primary-button {
  background-color: var(--accent-color);
  color: white;
}

.primary-button:hover {
  background-color: var(--primary-color);
}

.secondary-button {
  background-color: #6c757d;
  color: white;
}

.secondary-button:hover {
  background-color: #5a6268;
}

.primary-button:disabled, .secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* User management styles */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--secondary-color);
  border-radius: 5px;
  font-size: 1rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--secondary-color);
}

button[type="submit"] {
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

button[type="submit"]:hover {
  background-color: var(--primary-color);
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: white;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.users-table th,
.users-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--background-color);
}

.users-table th {
  background-color: var(--primary-color);
  color: white;
}

.users-table tr:hover {
  background-color: var(--background-color);
}

.create-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.2s;
}

.create-button:hover {
  background-color: var(--primary-color);
}

/* Alert styles */
.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.alert-error {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #991b1b;
}

.alert p {
  margin: 0;
}

/* Login styles */
.login-container {
  max-width: 400px;
  margin: 2rem auto;
  padding: 2rem;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-container h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.signup-link {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--secondary-color);
}

.signup-link a {
  color: var(--accent-color);
  text-decoration: none;
}

.signup-link a:hover {
  text-decoration: underline;
}

/* V2 Design Styles */
.v2-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 0;
}

.welcome-section {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 56px;
  text-align: center;
  animation: fadeIn 0.6s ease-in;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 20px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.welcome-content {
  width: 100%;
}

.welcome-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: normal;
  letter-spacing: -0.48px;
  color: rgba(56, 34, 15, 0.8);
  margin: 0 0 8px 0;
  text-align: center;
}

.welcome-description {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.4px;
  color: rgba(56, 34, 15, 0.5);
  margin: 0 0 40px 0;
  max-width: 446px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 40px;
}

.email-input {
  background-color: #e9dcd3;
  border: 1px solid rgba(233, 220, 211, 0.4);
  border-radius: var(--border-radius-pill);
  height: 40px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.32px;
  color: rgba(56, 34, 15, 0.3);
  outline: none;
  transition: all 0.2s;
  flex: 0 0 auto;
  min-width: 120px;
}

.email-input:focus {
  color: var(--text-color);
  border-color: rgba(56, 34, 15, 0.3);
}

.start-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-pill);
  height: 40px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.32px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.start-button:hover {
  background-color: rgba(56, 34, 15, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(56, 34, 15, 0.2);
}

.start-button:active {
  transform: translateY(0);
}

.chat-interface {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: fadeInChat 0.6s ease-in;
}

@keyframes fadeInChat {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 20px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.chat-interface .chat-box {
  background-color: transparent;
  border-radius: var(--border-radius);
  display: flex;
  flex-direction: column;
  min-height: 400px;
  max-height: 600px;
}

.chat-interface .chat-messages {
  flex-grow: 1;
  padding: 1rem 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-interface .message {
  max-width: 348px;
  padding: 10px 14px;
  border-radius: var(--border-radius);
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  word-wrap: break-word;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-interface .user-message {
  background-color: var(--primary-color);
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.chat-interface .assistant-message {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  align-self: flex-start;
  margin-right: auto;
}

.chat-input-container {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 1rem;
}

.chat-interface .message-input {
  flex-grow: 1;
  background-color: #e9dcd3;
  border: 1px solid rgba(233, 220, 211, 0.4);
  border-radius: var(--border-radius-pill);
  height: 40px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: -0.32px;
  color: var(--text-color);
  outline: none;
  transition: all 0.2s;
}

.chat-interface .message-input:focus {
  border-color: rgba(56, 34, 15, 0.3);
}

.chat-interface .send-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--border-radius-pill);
  height: 40px;
  width: 40px;
  min-width: 40px;
  padding: 0;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-interface .send-button:hover {
  background-color: rgba(56, 34, 15, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(56, 34, 15, 0.2);
}

.cart-status-message {
  margin-top: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.32px;
  color: rgba(56, 34, 15, 0.7);
  text-align: left;
  animation: fadeIn 0.3s ease-in;
}

.v2-footer {
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 100%;
}

.v2-footer p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.28px;
  color: rgba(56, 34, 15, 0.5);
  margin: 0;
}

.social-icons {
  position: fixed;
  top: 40px;
  right: 40px;
  display: flex;
  gap: 10.67px;
  align-items: center;
  z-index: 10;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
}

.social-icon:hover {
  opacity: 0.7;
}

.social-icon svg {
  display: block;
}

/* Cart Icon Button */
.cart-icon-button {
  position: fixed;
  top: 48px;
  right: 48px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s, opacity 0.3s ease, transform 0.3s ease;
  color: #38220f;
  z-index: 999;
  opacity: 1;
  transform: scale(1);
}

.cart-icon-button:hover {
  background-color: rgba(56, 34, 15, 0.1);
}

.cart-icon-button.cart-icon-hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.cart-icon-button[style*="display: none"] {
  display: none !important;
}

.cart-icon {
  width: 24px;
  height: 24px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background-color: #38220f;
  color: white;
  border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cart Panel Styles (Figma Design) */
.cart-panel {
  position: fixed;
  top: 32px;
  right: 48px;
  width: 368px;
  background-color: #f8f1ec;
  border-radius: 24px;
  box-shadow: 0px 6px 12px 0px rgba(56, 34, 15, 0.12);
  padding: 16px;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 64px);
  overflow: hidden;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cart-panel.cart-panel-visible {
  opacity: 1;
  transform: translateX(0);
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.cart-panel-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  color: #38220f;
  margin: 0;
}

.cart-panel-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
  color: #38220f;
}

.cart-panel-close:hover {
  background-color: rgba(56, 34, 15, 0.1);
}

.cart-panel-close svg {
  width: 24px;
  height: 24px;
}

.cart-panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.cart-item-card {
  display: flex;
  gap: 16px;
  align-items: center;
}

.cart-item-image {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background-color: #eae0d8;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.cart-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cart-item-name {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  color: #38220f;
  margin: 0;
}

.cart-item-price {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  color: #38220f;
  margin: 0;
}

.cart-item-quantity-controls {
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 6px;
  height: 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  width: fit-content;
}

.quantity-button {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #38220f;
  transition: opacity 0.2s;
}

.quantity-button:hover {
  opacity: 0.7;
}

.quantity-button svg {
  width: 16px;
  height: 16px;
}

.quantity-value {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  color: #38220f;
  text-align: center;
  min-width: 32px;
}

.cart-panel-summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-shrink: 0;
  padding-top: 16px;
  border-top: 1px solid rgba(56, 34, 15, 0.1);
}

.cart-subtotal {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-subtotal-label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  color: #38220f;
  margin: 0;
}

.cart-subtotal-amount {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.32px;
  color: #38220f;
  margin: 0;
}

.cart-checkout-button {
  background-color: #38220f;
  color: white;
  border: none;
  border-radius: 999px;
  height: 40px;
  padding: 8px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.32px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.cart-checkout-button:hover {
  background-color: rgba(56, 34, 15, 0.9);
}

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

.cart-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: rgba(56, 34, 15, 0.5);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
}

/* Voice Control Buttons */
.voice-controls {
  margin-top: 16px;
  gap: 8px;
}

.voice-button {
  background-color: #38220f;
  color: white;
  border: none;
  border-radius: 999px;
  height: 40px;
  padding: 8px 20px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: -0.28px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.voice-button:hover {
  background-color: rgba(56, 34, 15, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(56, 34, 15, 0.2);
}

.voice-button:active {
  transform: translateY(0);
}

.speak-to-agent-button {
  background-color: #38220f;
}

.agent-listening-button {
  background-color: #2563eb;
  animation: pulse-listening 2s infinite;
}

.agent-listening-button:hover {
  background-color: #1d4ed8;
}

@keyframes pulse-listening {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
  }
}

.agent-speaking-button {
  background-color: #059669;
  animation: pulse-speaking 2s infinite;
}

.agent-speaking-button:hover {
  background-color: #047857;
}

@keyframes pulse-speaking {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
  }
}

.stop-voice-button {
  background-color: #dc2626;
}

.stop-voice-button:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(220, 38, 38, 0.2);
}

.agent-processing-button {
  background-color: #f59e0b;
  animation: pulse-processing 2s infinite;
}

.agent-processing-button:hover {
  background-color: #d97706;
}

@keyframes pulse-processing {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
}

/* Audio Wave Visualizer */
.audio-wave-visualizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 40px;
  width: 100%;
  max-width: 200px;
  padding: 8px 16px;
  margin-top: 8px;
}

.wave-bar {
  width: 4px;
  height: 8px;
  background-color: #2563eb;
  border-radius: 2px;
  transition: height 0.1s ease, opacity 0.1s ease;
  /* No CSS animation - will be controlled by JavaScript based on actual audio */
}

/* Checkout Modal Styles */
.checkout-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(56, 34, 15, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.checkout-modal-overlay.modal-visible {
  opacity: 1;
}

.checkout-modal {
  background-color: #f8f1ec;
  border-radius: 24px;
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0px 12px 24px 0px rgba(56, 34, 15, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.checkout-modal-overlay.modal-visible .checkout-modal {
  transform: scale(1) translateY(0);
}

.checkout-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.fun-emoji-container {
  width: 120px;
  height: 120px;
  position: relative;
  animation: bounce-rotate 2s ease-in-out infinite;
}

@keyframes bounce-rotate {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(-5deg);
  }
  50% {
    transform: translateY(-15px) rotate(0deg);
  }
  75% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.emoji-face {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #ffd93d 0%, #ffcd3c 100%);
  border-radius: 50%;
  position: relative;
  box-shadow: 
    0 8px 16px rgba(255, 217, 61, 0.3),
    inset -8px -8px 16px rgba(255, 193, 7, 0.3),
    inset 8px 8px 16px rgba(255, 235, 59, 0.3);
  animation: pulse-face 2s ease-in-out infinite;
}

@keyframes pulse-face {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.emoji-eyes {
  position: absolute;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  animation: blink-eyes 3s ease-in-out infinite;
}

@keyframes blink-eyes {
  0%, 90%, 100% {
    transform: translateX(-50%) scaleY(1);
  }
  92%, 98% {
    transform: translateX(-50%) scaleY(0.1);
  }
}

.emoji-eye {
  width: 16px;
  height: 20px;
  background-color: #38220f;
  border-radius: 50%;
  position: relative;
  animation: eye-wiggle 4s ease-in-out infinite;
}

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

@keyframes eye-wiggle {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

.emoji-mouth {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 25px;
  border: 4px solid #38220f;
  border-top: none;
  border-radius: 0 0 50px 50px;
  animation: smile-wiggle 2.5s ease-in-out infinite;
}

@keyframes smile-wiggle {
  0%, 100% {
    width: 50px;
    transform: translateX(-50%);
  }
  50% {
    width: 55px;
    transform: translateX(-50%);
  }
}

.checkout-modal-text {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.32px;
  color: #38220f;
  text-align: center;
  margin: 0;
}

.checkout-modal-link {
  color: #38220f;
  text-decoration: underline;
  font-weight: 500;
  transition: opacity 0.2s;
}

.checkout-modal-link:hover {
  opacity: 0.7;
}

.checkout-modal-close {
  background-color: #38220f;
  color: white;
  border: none;
  border-radius: 999px;
  height: 40px;
  padding: 8px 24px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.32px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.checkout-modal-close:hover {
  background-color: rgba(56, 34, 15, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(56, 34, 15, 0.2);
}

.checkout-modal-close:active {
  transform: translateY(0);
}

/* Responsive design for smaller screens */
@media (max-width: 1400px) {
  .main-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .audio-section {
    grid-column: 1 / -1;
  }
  
  .cart-section {
    grid-column: 1 / -1;
    height: 400px;
  }
}

@media (max-width: 1024px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .audio-section {
    grid-column: 1;
  }
  
  .chat-section, .cart-section {
    height: 500px;
  }
  
  .audio-box {
    padding: 1.5rem;
  }
  
  .record-button {
    padding: 1.25rem 2rem;
    font-size: 1rem;
  }

  .social-icons {
    top: 20px;
    right: 20px;
  }

  .v2-footer {
    position: relative;
    bottom: 20px;
    margin-top: 2rem;
    transform: none;
  }

  .welcome-section,
  .chat-interface {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 2rem;
  }

  .cart-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: calc(100% - 40px);
    max-width: 368px;
  }

  .cart-icon-button {
    top: 20px;
    right: 20px;
  }
}
