/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
  min-height: 100vh;
  color: #1e293b;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Header */
.header {
  text-align: center;
  padding: 40px 20px;
}

.logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #a855f7 0%, #f472b6 100%);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.3);
}

.logo-icon {
  font-size: 32px;
  color: white;
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}

.title-highlight {
  color: #a855f7;
}

.subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 30px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #a855f7;
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(168, 85, 247, 0.2);
}

.btn:hover {
  background: #9333ea;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.3);
}

.btn:active {
  transform: translateY(0);
}

/* Cards */
.card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

/* Feature cards */
.feature-card {
  text-align: center;
  padding: 24px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1e293b;
}

.feature-description {
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 16px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
}

/* Form elements */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #1e293b;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus {
  outline: none;
  border-color: #a855f7;
}

.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
}

/* Progress bar */
.progress-bar {
  width: 100%;
  height: 6px;
  background: #f3e8ff;
  border-radius: 3px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #a855f7;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #f3e8ff;
  border-top: 2px solid #a855f7;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  
  .title {
    font-size: 2rem;
  }
  
  .card-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-content {
    padding: 24px;
    margin: 20px;
  }
}

/* Utility classes */
.text-center { text-align: center; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; } 

/* --- Filter & Outline Buttons --- */
.glowai-tips-filter-row, .glowai-products-filter-row {
  display: flex;
  gap: 12px;
  margin: 24px 0 32px 0;
  justify-content: flex-start;
  align-items: center;
}
.glowai-tips-filter-btn, .glowai-products-filter-btn, .glowai-routine-btn {
  background: #fff;
  color: #a855f7;
  border: 2px solid #a855f7;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 22px;
  margin: 0;
  box-shadow: 0 2px 8px #a855f71a;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.glowai-tips-filter-btn:hover, .glowai-products-filter-btn:hover, .glowai-routine-btn:hover {
  background: #f3e8ff;
  color: #7c3aed;
  box-shadow: 0 4px 16px #a855f733;
}
.glowai-tips-filter-active, .glowai-products-filter-active {
  background: linear-gradient(90deg,#f472b6,#a855f7);
  color: #fff;
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 16px #a855f733;
}
/* --- Search Bar --- */
.glowai-products-searchbar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px #a855f71a;
  padding: 8px 16px;
  margin-bottom: 18px;
  max-width: 350px;
}
.glowai-products-searchinput {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #a855f7;
  margin-left: 8px;
  width: 100%;
}
/* --- Routine Cards --- */
.glowai-routine-cards-row {
  display: flex;
  gap: 32px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.glowai-routine-maincard {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px #a855f71a;
  padding: 32px 24px;
  flex: 1;
  min-width: 260px;
  max-width: 340px;
  margin-bottom: 16px;
}
.glowai-routine-maincard-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.glowai-routine-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  margin-right: 6px;
}
.glowai-routine-addproduct {
  color: #a855f7;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 8px;
  cursor: pointer;
}
.glowai-routine-btn-row, .glowai-routine-actions-row {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
} 

/* --- Mobile Preview Styles --- */
.mobile-preview-bg {
  background: #f3e8ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 0 48px 0;
}
.mobile-preview-frame {
  width: 370px;
  max-width: 98vw;
  min-height: 700px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 8px 32px #a855f766;
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.mobile-preview-exit-row {
  text-align: center;
}

/* Splash/SignIn */
.mobile-splash-gradient {
  background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-splash-container {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}
.mobile-logo-circle {
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: linear-gradient(90deg,#a855f7,#f472b6);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px #a855f733;
}
.mobile-logo-icon {
  font-size: 2rem;
  color: #fff;
}
.mobile-splash-title {
  font-size: 2.2rem;
  font-weight: bold;
  color: #a855f7;
  margin-bottom: 8px;
}
.mobile-splash-subtitle {
  font-size: 1rem;
  color: #7c3aed;
  margin-bottom: 32px;
  text-align: center;
}
.mobile-input-group {
  width: 100%;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-input {
  background: #fff;
  border: 1.5px solid #a855f7;
  border-radius: 8px;
  padding: 12px;
  color: #a855f7;
  font-size: 1rem;
  margin-bottom: 0;
}
.mobile-signin-btn {
  background: linear-gradient(90deg,#a855f7,#f472b6);
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 12px 0;
  border: none;
  border-radius: 8px;
  margin-top: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px #a855f71a;
  transition: box-shadow 0.2s, transform 0.2s;
}
.mobile-signin-btn:hover {
  box-shadow: 0 4px 16px #a855f733;
  transform: translateY(-2px);
}

@media (max-width: 500px) {
  .mobile-preview-frame {
    width: 100vw;
    min-width: 0;
    border-radius: 0;
  }
} 

/* --- Mobile Preview Main Screens --- */
.mobile-main-gradient {
  background: linear-gradient(135deg, #fdf2f8 0%, #f3e8ff 100%);
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
}
.mobile-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px 0 20px;
}
.mobile-logo-circle.small {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: linear-gradient(90deg,#a855f7,#f472b6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #a855f733;
}
.mobile-header-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #a855f7;
}
.mobile-main-content {
  padding: 12px 20px 80px 20px;
}
.mobile-main-headline {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
}
.mobile-gradient-text {
  background: linear-gradient(90deg,#a855f7,#f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.mobile-main-subtitle {
  font-size: 1rem;
  color: #7c3aed;
  margin-bottom: 18px;
}
.mobile-main-cta {
  background: linear-gradient(90deg,#f472b6,#a855f7);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 0;
  border: none;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px #a855f71a;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}
.mobile-main-cta.active {
  background: linear-gradient(90deg,#a855f7,#f472b6);
}
.mobile-main-cta:hover {
  box-shadow: 0 4px 16px #a855f733;
  transform: translateY(-2px);
}
.mobile-outline-btn {
  background: #fff;
  color: #a855f7;
  border: 1.5px solid #a855f7;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 10px 0;
  width: 80px;
  margin: 0 4px 8px 0;
  box-shadow: 0 2px 8px #a855f71a;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.mobile-outline-btn:hover {
  background: #f3e8ff;
  color: #7c3aed;
  box-shadow: 0 4px 16px #a855f733;
}
/* Feature Row */
.mobile-feature-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  justify-content: space-between;
}
.mobile-feature-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px #a855f71a;
  padding: 12px 8px;
  flex: 1;
  text-align: center;
}
.mobile-feature-icon {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px auto;
  color: #fff;
  font-size: 1.2rem;
}
.mobile-feature-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #222;
}
/* Tips */
.mobile-tips-btn-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.mobile-tips-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
/* Products */
.mobile-products-search-row {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px #a855f71a;
  padding: 6px 12px;
  margin-bottom: 10px;
}
.mobile-products-searchinput {
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #a855f7;
  margin-left: 8px;
  width: 100%;
}
.mobile-products-filter-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.mobile-products-card-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mobile-products-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px #a855f71a;
  padding: 16px 12px;
  text-align: center;
}
.mobile-products-icon {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px auto;
  color: #fff;
  font-size: 1.2rem;
}
.mobile-products-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
}
.mobile-products-desc {
  color: #6b7280;
  font-size: 0.95rem;
}
/* Routine */
.mobile-routine-btn-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.mobile-routine-card-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.mobile-routine-maincard {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px #a855f71a;
  padding: 16px 12px;
  flex: 1;
  text-align: center;
}
.mobile-routine-maincard-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.mobile-routine-icon {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1em;
  margin-right: 2px;
}
.mobile-routine-addproduct {
  color: #a855f7;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 4px;
  cursor: pointer;
}
.mobile-routine-actions-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
/* Social */
.mobile-social-card-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}
.mobile-social-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px #a855f71a;
  padding: 16px 12px;
  flex: 1;
  text-align: center;
}
.mobile-social-icon {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px auto;
  color: #fff;
  font-size: 1.2rem;
}
.mobile-social-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
}
.mobile-social-desc {
  color: #6b7280;
  font-size: 0.95rem;
}
/* Dashboard */
.mobile-dashboard-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}
.mobile-dashboard-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px #a855f71a;
  padding: 16px 12px;
  text-align: center;
}
.mobile-dashboard-icon {
  width: 32px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px auto;
  color: #fff;
  font-size: 1.2rem;
}
.mobile-dashboard-title {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 2px;
}
.mobile-dashboard-desc, .mobile-dashboard-desc2 {
  color: #6b7280;
  font-size: 0.95rem;
}
.mobile-dashboard-progress-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 8px;
}
.mobile-dashboard-progress {
  text-align: center;
}
.mobile-dashboard-progress-icon {
  width: 24px;
  height: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2px auto;
  font-size: 1rem;
}
.mobile-dashboard-progress-num {
  font-size: 1.1rem;
  font-weight: 700;
}
.mobile-dashboard-progress-label {
  color: #6b7280;
  font-size: 0.9rem;
}
/* Tab Bar */
.mobile-tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1.5px solid #f3e8ff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 64px;
  z-index: 10;
  padding: 0 8px;
}
.mobile-tab-btn {
  background: none;
  border: none;
  outline: none;
  color: #7c3aed;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0 14px;
  height: 100%;
  min-width: 56px;
  transition: color 0.2s, font-weight 0.2s;
}
.mobile-tab-btn span {
  font-size: 1.4em;
  margin-bottom: 0px;
}
.mobile-tab-btn div {
  font-size: 0.95em;
  margin-top: 0px;
  letter-spacing: 0.01em;
}
.mobile-tab-btn[style*="font-weight:700"] {
  color: #a855f7 !important;
}
@media (max-width: 500px) {
  .mobile-main-gradient, .mobile-splash-gradient {
    min-height: 100vh;
  }
  .mobile-header-row, .mobile-main-content {
    padding-left: 8px;
    padding-right: 8px;
  }
  .mobile-tabbar { height: 56px; padding: 0 2px; }
  .mobile-tab-btn { padding: 0 6px; min-width: 44px; }
} 

/* --- Mobile Preview UI Improvements --- */
.mobile-logo-circle.big {
  width: 80px;
  height: 80px;
  border-radius: 40px;
  font-size: 2.5rem;
  margin-bottom: 32px;
}
.mobile-logo-icon {
  font-size: 2.5rem;
}
.mobile-splash-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.mobile-splash-subtitle {
  font-size: 1.2rem;
  margin-bottom: 36px;
}
.mobile-input-group {
  gap: 16px;
}
.mobile-input {
  font-size: 1.1rem;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 0;
}
.mobile-signin-btn {
  font-size: 1.2rem;
  padding: 16px 0;
  border-radius: 12px;
  margin-top: 12px;
}
.mobile-main-headline {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 16px;
}
.mobile-main-subtitle {
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.mobile-main-cta.big {
  font-size: 1.2rem;
  padding: 16px 0;
  border-radius: 14px;
  margin-bottom: 24px;
}
.mobile-feature-row {
  gap: 18px;
  margin-top: 28px;
}
.mobile-feature-card.big {
  padding: 20px 10px;
  border-radius: 18px;
  box-shadow: 0 4px 16px #a855f733;
}
.mobile-feature-icon.big {
  width: 48px;
  height: 48px;
  border-radius: 24px;
  font-size: 2rem;
  margin-bottom: 10px;
}
.mobile-feature-title {
  font-size: 1.1rem;
}
/* Card improvements for all screens */
.mobile-products-card, .mobile-routine-maincard, .mobile-social-card, .mobile-dashboard-card {
  border-radius: 18px;
  box-shadow: 0 4px 16px #a855f733;
  padding: 20px 12px;
  margin-bottom: 10px;
}
.mobile-products-icon, .mobile-routine-icon, .mobile-social-icon, .mobile-dashboard-icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.mobile-tabbar {
  height: 64px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 -2px 12px #a855f71a;
}
.mobile-tab-btn {
  font-size: 1.2rem;
  padding: 0 8px;
}
@media (max-width: 500px) {
  .mobile-logo-circle.big { width: 64px; height: 64px; border-radius: 32px; }
  .mobile-main-headline { font-size: 1.2rem; }
  .mobile-main-cta.big { font-size: 1rem; padding: 12px 0; }
  .mobile-tabbar { height: 56px; }
} 

/* --- Improved Logo Icon for All Mobile Screens --- */
.mobile-logo-circle.small {
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: linear-gradient(90deg,#a855f7,#f472b6);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px #a855f733;
  margin-right: 8px;
}
.mobile-logo-icon {
  font-size: 2rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
} 