body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0a1628 0%, #1a2f4f 50%, #005eff 100%);
  background-attachment: fixed;
  color: white;
  text-align: center;
  min-height: 100vh;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  z-index: 1000;
  background: rgba(0, 26, 68, 0.8);
  backdrop-filter: blur(10px);
}

.language-switcher {
  display: flex;
  gap: 10px;
}

.profile-section {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 8px 15px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: white;
  font-weight: 600;
}

.flag {
  font-size: 18px;
}

.profile-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 8px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.profile-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.profile-icon {
  font-size: 18px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: linear-gradient(135deg, #001a44, #003d99);
  padding: 40px;
  border-radius: 20px;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 32px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  transition: transform 0.2s;
}

.close:hover {
  transform: scale(1.2);
}

.modal-content h2 {
  margin: 0 0 30px;
  font-size: 2em;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 14px;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  box-sizing: border-box;
  transition: all 0.3s;
}

.password-input-wrapper input {
  padding-right: 50px;
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.toggle-password:hover {
  transform: scale(1.1);
}

.eye-icon {
  width: 24px;
  height: 24px;
  color: #0088ff;
  transition: all 0.3s;
}

.toggle-password:hover .eye-icon {
  color: #00a3ff;
  transform: scale(1.15);
}

.form-group input:focus {
  outline: none;
  border-color: #0088ff;
  background: rgba(255, 255, 255, 0.15);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #005eff, #0088ff);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  margin-top: 10px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 136, 255, 0.4);
}

.logout-btn {
  background: linear-gradient(135deg, #ff4444, #cc0000);
}

.logout-btn:hover {
  box-shadow: 0 5px 20px rgba(255, 68, 68, 0.4);
}

.switch-modal {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.switch-modal a {
  color: #0088ff;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
}

.switch-modal a:hover {
  text-decoration: underline;
}

.profile-info {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.profile-info p {
  margin: 10px 0;
  text-align: left;
}

header {
  padding: 80px 20px 30px;
}

.header-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 80px !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 60px !important;
}

.mascot {
  width: 140px;
  height: 140px;
  animation: float 3s ease-in-out infinite;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 30px rgba(0, 255, 136, 0.4));
  transition: transform 0.3s;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.mascot:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 15px 40px rgba(0, 255, 136, 0.6));
}

.header-text {
  text-align: left;
  flex-shrink: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.header-text h1 {
  margin: 0;
  font-size: 3.5em;
  background: linear-gradient(135deg, #fff 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 2px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5)); }
  to { filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.8)); }
}

.header-text p {
  margin: 10px 0 0;
  font-size: 1.2em;
  opacity: 0.9;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

main {
  padding: 10px 20px 40px;
}

.search-container {
  max-width: 750px;
  margin: 10px auto 40px;
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 136, 255, 0.4), 0 0 100px rgba(0, 255, 136, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  padding: 8px;
}

.search-container:hover {
  box-shadow: 0 20px 60px rgba(0, 136, 255, 0.5), 0 0 120px rgba(0, 255, 136, 0.3);
  transform: translateY(-2px);
}

#search {
  flex: 1;
  border: none;
  padding: 15px 25px;
  font-size: 16px;
  outline: none;
  color: #001a44;
}

#search::placeholder {
  color: #999;
}

#searchBtn {
  background: linear-gradient(135deg, #005eff 0%, #00a3ff 50%, #00d4ff 100%);
  color: white;
  padding: 15px 40px;
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s;
  
}

#searchBtn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

#searchBtn:hover::before {
  width: 300px;
  height: 300px;
}

#searchBtn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 136, 255, 0.5);
}

.ai-hint {
  max-width: 850px;
  margin: 40px auto 0;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.15) 0%, rgba(0, 212, 255, 0.15) 100%);
  border: 2px solid rgba(0, 255, 136, 0.4);
  border-radius: 20px;
  padding: 25px;
  display: flex;
  gap: 20px;
  align-items: center;
  animation: pulse 3s ease-in-out infinite;
  box-shadow: 0 10px 40px rgba(0, 255, 136, 0.2);
  
}



@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
  }
}

.ai-hint-icon {
  font-size: 40px;
  animation: float 3s ease-in-out infinite;
}

.ai-hint-text {
  flex: 1;
  text-align: left;
}

.ai-hint-text strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
}

.categories-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.categories-hints span {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 136, 255, 0.2) 100%);
  padding: 10px 18px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.categories-hints span::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #00ff88 0%, #00d4ff 100%);
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.categories-hints span:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 255, 136, 0.8);
  box-shadow: 0 8px 25px rgba(0, 255, 136, 0.4);
  color: #001a44;
}

.categories-hints span:hover::before {
  opacity: 1;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 20px !important;
    padding: 0 20px !important;
  }
  
  .header-text {
    text-align: center;
  }
  
  .search-container {
    flex-direction: column;
    border-radius: 20px;
  }
  
  #searchBtn {
    width: 100%;
  }
  
  .ai-hint {
    flex-direction: column;
    text-align: center;
  }
  
  .ai-hint-text {
    text-align: center;
  }
  
  .categories-hints {
    justify-content: center;
  }
}

/* AI Chat Button (Floating) */
.ai-chat-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  border: none;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
  z-index: 999;
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

.ai-chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(0, 255, 136, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(0, 255, 136, 0.7);
  }
}

/* AI Chat Modal */
.ai-chat-modal .modal-content {
  max-width: 600px;
  height: 70vh;
  max-height: 700px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  color: #001a44;
  border-radius: 20px 20px 0 0;
}

.ai-chat-title {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ai-avatar {
  font-size: 40px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ai-chat-title h3 {
  margin: 0;
  font-size: 20px;
}

.ai-status {
  margin: 0;
  font-size: 12px;
  opacity: 0.8;
}

.ai-chat-header .close {
  color: #001a44;
  font-size: 32px;
  opacity: 0.7;
}

.ai-chat-header .close:hover {
  opacity: 1;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: rgba(0, 26, 68, 0.5);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.ai-message,
.user-message {
  display: flex;
  gap: 10px;
  animation: slideIn 0.3s ease-out;
}

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

.user-message {
  flex-direction: row-reverse;
}

.message-avatar {
  font-size: 32px;
  min-width: 40px;
}

.message-content {
  background: rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  border-radius: 15px;
  max-width: 70%;
}

.user-message .message-content {
  background: linear-gradient(135deg, #0088ff, #00d4ff);
}

.message-content p {
  margin: 0;
  text-align: left;
  line-height: 1.5;
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

.ai-chat-input-area {
  padding: 15px 20px 20px;
  background: rgba(0, 26, 68, 0.8);
  border-radius: 0 0 20px 20px;
}

.ai-quick-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.quick-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 6px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s;
}

.quick-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.ai-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

#aiChatInput {
  flex: 1;
  padding: 12px 18px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

#aiChatInput:focus {
  border-color: #00ff88;
  background: rgba(255, 255, 255, 0.15);
}

#aiChatInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.ai-send-btn {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00ff88, #00d4ff);
  border: none;
  color: #001a44;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.ai-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 255, 136, 0.5);
}

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

/* AI Product Cards in Chat */
.ai-products-grid {
  display: grid;
  gap: 12px;
  margin-top: 15px;
  grid-template-columns: 1fr;
}

.ai-product-card {
  display: flex;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 10px;
  transition: all 0.3s;
  text-decoration: none;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.ai-product-card:hover {
  background: rgba(0, 136, 255, 0.2);
  border-color: rgba(0, 255, 136, 0.4);
  transform: translateX(5px);
}

.ai-product-card img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 5px;
}

.ai-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ai-product-info h4 {
  margin: 0 0 5px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.ai-product-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 5px 0;
}

.ai-old-price {
  text-decoration: line-through;
  opacity: 0.5;
  font-size: 12px;
}

.ai-price {
  font-size: 16px;
  font-weight: bold;
  color: #00ff88;
}

.ai-product-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  opacity: 0.8;
}

/* Scrollbar for chat */
.ai-chat-messages::-webkit-scrollbar {
  width: 8px;
}

.ai-chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.ai-chat-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 255, 136, 0.3);
  border-radius: 10px;
}

.ai-chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 255, 136, 0.5);
}

/* Mobile responsive for AI chat */
@media (max-width: 768px) {
  .ai-chat-button {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
  
  .ai-chat-modal .modal-content {
    width: 95%;
    height: 80vh;
    margin: 10vh auto;
  }
  
  .message-content {
    max-width: 85%;
  }
  
  .ai-quick-actions {
    gap: 5px;
  }
  
  .quick-btn {
    font-size: 11px;
    padding: 5px 10px;
  }
  
  .ai-product-card {
    flex-direction: column;
    text-align: center;
  }
  
  .ai-product-card img {
    width: 100%;
    height: 120px;
  }
}

