/* Plan Manager Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.plan-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #3b82f6;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 10000;
  animation: slideIn 0.3s ease;
}
  div#pluginsTab.tab-content {
    display: none;
}
  div#pluginsTab.tab-content.active {
display: block;
}

div#webappTab.tab-content {
    display: none;
}
  div#webappTab.tab-content.active {
display: block;
}

.plan-notification.error {
  background: #ef4444;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Plan Container */
.plan-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 50px;
}

.back-btn {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.back-btn:hover {
  color: #3b82f6;
}

/* Login Prompt */
.login-prompt {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.login-prompt p {
  margin-bottom: 10px;
  color: #856404;
}

.login-actions {
  display: flex;
  gap: 10px;
}

.login-btn {
  padding: 8px 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 14px;
}

.login-btn.primary {
  background: #3b82f6;
  color: white;
}

.login-btn.secondary {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  color: #495057;
}

/* Current Balance */
.current-balance {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 30px;
  font-size: 16px;
}

.current-balance strong {
  color: #10b981;
  font-size: 20px;
}

/* Pricing Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.plan-card {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 25px;
  position: relative;
  transition: all 0.3s ease;
  background: white;
  min-height: 500px;
}

.plan-card.selected {
  border-color: #3b82f6;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
  transform: translateY(-5px);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #3b82f6;
  color: white;
  padding: 5px 15px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: bold;
}

.plan-card h3 {
  margin: 0 0 10px 0;
  font-size: 22px;
  color: #333;
}

.plan-price {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.plan-price span {
  font-size: 14px;
  color: #666;
}

.plan-credits {
  font-size: 18px;
  color: #10b981;
  font-weight: bold;
  margin-bottom: 10px;
}

.plan-description {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

.plan-features {
  margin-bottom: 20px;
}

.feature-item {
  padding: 8px 0;
  color: #666;
  font-size: 14px;
  border-bottom: 1px solid #f1f3f4;
}

.feature-item:last-child {
  border-bottom: none;
}

.plan-per-credit {
  color: #666;
  font-size: 13px;
  margin-bottom: 20px;
  font-style: italic;
}

.select-plan-btn {
  width: 80%;
  padding: 12px;
  background: #1f2937;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
  position: absolute;
  transform: translate(-50%, -50%);
  bottom: 0%;
  left: 50%;
}

.select-plan-btn:hover {
  background: #2563eb;
}

/* Payment Methods */
.payment-methods {
  margin-bottom: 30px;
}

.payment-methods h3 {
  margin-bottom: 15px;
  color: #333;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.payment-option {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.payment-option.selected {
  border-color: #3b82f6;
  background: #f0f9ff;
}

.payment-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Pay Button */
.pay-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.3s;
  margin-bottom: 20px;
}

.pay-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pay-btn:hover:not(:disabled) {
  opacity: 0.9;
}

/* Payment Note */
.payment-note {
  text-align: center;
  color: #666;
  font-size: 14px;
}

.payment-note p {
  margin: 5px 0;
}

.payment-note i {
  margin-right: 8px;
  color: #6b7280;
}

/* Subscription History */
.subscription-history {
  margin-top: 40px;
}

.subscription-history h3 {
  margin-bottom: 20px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.history-list {
  border: 1px solid #e9ecef;
  border-radius: 8px;
  overflow: hidden;
}

.history-item {
  padding: 15px 20px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-item:last-child {
  border-bottom: none;
}

.history-plan {
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.history-date {
  color: #666;
  font-size: 14px;
}

.history-details {
  text-align: right;
}

.history-credits {
  color: #10b981;
  font-weight: bold;
  margin-bottom: 5px;
}

.history-amount {
  color: #3b82f6;
  font-weight: bold;
}

.no-history {
  padding: 40px;
  text-align: center;
  color: #666;
  font-style: italic;
}

/* View All Section */
.view-all-section {
  margin-top: 30px;
  text-align: center;
}

.view-all-btn {
  padding: 15px 30px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  color: #495057;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.view-all-btn:hover {
  background: #e9ecef;
  border-color: #3b82f6;
  color: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
  .plan-container {
    padding: 15px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .payment-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .history-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .history-details {
    text-align: left;
  }
}

/* Profile Styles */
.profile-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  margin-top: 66px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #ededed;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  color: white;
}

.profile-info h2 {
  margin: 0 0 10px 0;
  color: #1f2937;
}

.profile-info p {
  margin: 5px 0;
  color: #6b7280;
}

.member-since {
  font-size: 14px;
  color: #9ca3af;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #667eea;
}

.stat-content h3 {
  margin: 0 0 5px 0;
  color: #1f2937;
}

.stat-content p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
}

.profile-actions {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.profile-actions h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
}

.action-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.action-btn i {
  color: #667eea;
}

/* Plans Styles */
.plans-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.plans-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.plans-header h2 {
  margin: 0;
  color: #1f2937;
}

.current-credits {
  margin: 0;
  color: #6b7280;
  font-size: 16px;
}

.back-to-profile {
  padding: 8px 16px;
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  color: #374151;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s;
}

.back-to-profile:hover {
  background: #e5e7eb;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.plan-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.plan-card.featured {
  border: 2px solid #667eea;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #bd4346;
  color: white;
  padding: 6px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.plan-header {
  text-align: center;
  margin-bottom: 25px;
}

.plan-header h3 {
  margin: 0 0 10px 0;
  color: #1f2937;
}

.plan-price {
  font-size: 36px;
  font-weight: bold;
  color: #000000;
}

.plan-price span {
  font-size: 16px;
  color: #6b7280;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 25px 0;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: #4b5563;
}

.plan-features li i {
  color: #10b981;
}

.plan-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.plan-btn.current {
  background: #f3f4f6;
  color: #6b7280;
  cursor: default;
}

.plan-btn.upgrade-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.plan-btn.upgrade-btn:hover {
  opacity: 0.9;
}

.credits-packages {
  margin-bottom: 40px;
}

.credits-packages h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.package-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.package-card h4 {
  margin: 0 0 10px 0;
  color: #1f2937;
}

.package-price {
  font-size: 24px;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 15px;
}

.package-btn {
  width: 100%;
  padding: 10px;
  background: #f3f4f6;
  border: none;
  border-radius: 6px;
  color: #374151;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.package-btn:hover {
  background: #e5e7eb;
}

.billing-info {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.billing-info h3 {
  margin: 0 0 15px 0;
  color: #1f2937;
}

.billing-details {
  margin-bottom: 20px;
}

.billing-details p {
  margin: 8px 0;
  color: #5c4b63;
}

/* google */
/* Google Sign-In Styles */
.google-auth-section {
  text-align: center;
  margin: 0px 0;
  padding: 2px 0;
  position: relative;
}

.or-divider {
  display: flex;
  align-items: center;
  margin: 3px 0;
  color: #6b7280;
  font-size: 14px;
}

.or-divider::before,
.or-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e5e7eb;
}

.or-divider span {
  padding: 0 15px;
}

/* Google Sign-In Button Styling */
.g_id_signin {
  width: 100% !important;
  margin: 10px 0;
}

/* Custom Google Button Style */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 20px;
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin: 10px 0;
}

.google-btn:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.google-btn i {
  margin-right: 10px;
  color: #4285f4;
  font-size: 18px;
}

.google-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #4285f4;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Profile info for Google users */
.google-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f3f4f6;
  border-radius: 8px;
  margin-bottom: 15px;
}

.google-profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.google-profile-info {
  flex: 1;
}

.google-profile-name {
  font-weight: 600;
  color: #1f2937;
}

.google-profile-email {
  font-size: 12px;
  color: #6b7280;
}

/* Views Common Styles */
.views-view {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.view-header h2 {
  margin: 0;
  color: #1f2937;
  font-size: 24px;
}

/* Grid Layouts */
.garments-grid,
.photos-grid,
.tryons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

/* Cards */
.garment-card,
.photo-card,
.tryon-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}



.garment-card:hover,
.photo-card:hover,
.tryon-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Card Images */
.garment-card-image,
.photo-card-image,
.tryon-card-image {
  position: relative;
  width: 100%;
  padding-bottom: 100%;
  /* Square aspect ratio */
  background: #f3f4f6;
  overflow: hidden;
}

.garment-card-image img,
.photo-card-image img,
.tryon-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Card Overlays */
.garment-card-overlay,
.photo-card-overlay,
.tryon-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.garment-card:hover .garment-card-overlay,
.photo-card:hover .photo-card-overlay,
.tryon-card:hover .tryon-card-overlay {
  opacity: 1;
}

/* Action Buttons */
.garment-action-btn,
.photo-action-btn,
.tryon-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: white;
  color: #374151;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.garment-action-btn:hover,
.photo-action-btn:hover,
.tryon-action-btn:hover {
  background: #f3f4f6;
  transform: scale(1.1);
}

.tryon-action-btn.delete:hover {
  background: #ef4444;
  color: white;
}

.tryon-action-btn.download:hover {
  background: #10b981;
  color: white;
}

.tryon-action-btn.share:hover {
  background: #3b82f6;
  color: white;
}

/* Card Info */
.garment-card-info,
.photo-card-info,
.tryon-card-info {
  padding: 12px;
}

.garment-name,
.photo-name,
.tryon-title {
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.garment-date,
.photo-date,
.tryon-date {
  font-size: 12px;
  color: #6b7280;
}

/* Upload Card */
.upload-card {
  background: white;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 200px;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-card:hover {
  border-color: #8b5cf6;
  background: #f5f3ff;
}

.upload-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 24px;
}

.upload-text {
  color: #6b7280;
  font-weight: 500;
}

/* Empty States */
.empty-state {
  text-align: center;
  padding: 10px 20px;
  color: #6b7280;
}

.empty-state i {
  font-size: 48px;
  color: #d1d5db;
  margin-bottom: 16px;
}

.empty-state h3 {
  margin: 0 0 8px 0;
  color: #374151;
}

.empty-state p {
  margin: 0 0 20px 0;
}

/* Tryon Stats */
.tryon-stats {
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  color: #6b7280;
}

/* Responsive */
@media (max-width: 768px) {

  .garments-grid,
  .photos-grid,
  .tryons-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }

  .view-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .view-header .upload-btn {
    align-self: stretch;
  }
}

@media (max-width: 480px) {

  .garments-grid,
  .photos-grid,
  .tryons-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .upload-card {
    min-height: 150px;
  }
}

/* Mobile responsive */
@media (max-width: 768px) {
  .google-btn {
    padding: 10px 15px;
    font-size: 13px;
  }
}

/* dashboard css */
/* ==================== FLAT DASHBOARD STYLES ==================== */
.dashboard-container {
  padding: 20px;
  max-width: 1400px;
  margin: 0 auto;
  background: #f8fafc;
  min-height: 100vh;
}

.dashboard-header {
  margin-bottom: 30px;
  text-align: center;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
}

.dashboard-header h2 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 8px;
  font-weight: 600;
}

.dashboard-subtitle {
  color: #64748b;
  font-size: 1rem;
}

.section-title {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 20px;
  font-weight: 600;
}

/* Flat Stats Grid */
.stats-grid.flat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card.flat {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: border-color 0.2s ease;
}

.stat-card.flat:hover {
  border-color: #bd4346;
}

.stat-card.flat.credits-card {
  background: white;
  border: 2px solid #bd4346;
}

.stat-card.flat.credits-card .stat-icon {
  background: #fdf2f2;
  color: #bd4346;
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #475569;
  flex-shrink: 0;
}

.stat-content {
  flex: 1;
}

.stat-content h3 {
  font-size: 2rem;
  margin: 0 0 4px 0;
  color: #1e293b;
  font-weight: 700;
}

.stat-content p {
  color: #64748b;
  margin: 0 0 12px 0;
  font-size: 0.9rem;
}

/* Flat Buttons */
.flat-btn {
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: #475569;
  font-weight: 500;
}

.flat-btn.primary {
  background: #bd4346;
  color: white;
  border-color: #bd4346;
}

.flat-btn.primary:hover {
  background: #a83234;
  border-color: #a83234;
}

.flat-btn.secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* Flat Quick Actions */
.quick-actions.flat {
  margin-bottom: 40px;
}

.actions-grid.flat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.action-card.flat {
  background: white;
  border-radius: 12px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: left;
  display: block;
  width: 100%;
}

.action-card.flat:hover {
  border-color: #bd4346;
  background: #fdf2f2;
}

.action-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  color: white;
}

.action-icon.studio {
  background: #4f46e5;
}

.action-icon.upload {
  background: #ec4899;
}

.action-icon.credits {
  background: #0ea5e9;
}

.action-card.flat h3 {
  font-size: 1.1rem;
  color: #1e293b;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.action-card.flat p {
  color: #64748b;
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.5;
}

/* Flat Sections */
.flat-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 30px;
  border: 1px solid #e2e8f0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
      flex-direction: column;
}

.flat-link {
  background: none;
  border: none;
  color: #bd4346;
  font-weight: 500;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.flat-link:hover {
  text-decoration: underline;
}

/* Flat Recent Try-Ons */
.tryons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  min-height: 180px;
}

.tryons-grid .empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
}

.tryons-grid .empty-state i {
  font-size: 40px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.tryons-grid .empty-state p {
  color: #64748b;
  margin-bottom: 16px;
}

.tryon-preview {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.tryon-preview:hover {
  border-color: #bd4346;
}

.tryon-preview-image {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.tryon-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tryon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.tryon-preview:hover .tryon-overlay {
  opacity: 1;
}

.tryon-overlay i {
  color: white;
  font-size: 20px;
}

.tryon-preview-info {
  padding: 12px;
}

.tryon-title {
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tryon-date {
  font-size: 0.8rem;
  color: #64748b;
}

/* Flat Credit Usage */
.usage-info {
  color: #64748b;
  font-size: 0.9rem;
}

.usage-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  margin: 20px 0;
  overflow: hidden;
}

.usage-fill {
  height: 100%;
  background: #10b981;
  border-radius: 4px;
  width: 16.67%;
  transition: width 0.5s ease;
}

.usage-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 16px;
  text-align: center;
}

.usage-stat {
  padding: 12px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  color: #64748b;
  font-size: 0.85rem;
}

/* Flat Tips Section */
.tips-grid.flat {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.tip-card.flat {
  padding: 20px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #bd4346;
}

.tip-icon {
  width: 40px;
  height: 40px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #bd4346;
  font-size: 18px;
}

.tip-card.flat h3 {
  font-size: 1rem;
  color: #1e293b;
  margin: 0 0 8px 0;
  font-weight: 600;
}

.tip-card.flat p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.5;
}

/* Responsive Dashboard */
@media (max-width: 768px) {
  .dashboard-container {
    padding: 16px;
  }

  .stats-grid.flat {
    grid-template-columns: 1fr;
  }

  .actions-grid.flat {
    grid-template-columns: 1fr;
  }

  .tryons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tips-grid.flat {
    grid-template-columns: 1fr;
  }

  .dashboard-header h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .tryons-grid {
    grid-template-columns: 1fr;
  }

  .usage-stats {
    grid-template-columns: 1fr;
  }

  .stat-card.flat {
    flex-direction: column;
    text-align: center;
    padding: 16px;
  }

  .stat-icon {
    margin-bottom: 12px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  background: #f8fafc;
  color: #334155;
}

.landing-header {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);

  top: 0;
  z-index: 1000;
}

.main-container {
  max-width: 1400px;
  margin: 0 auto;
     padding: 65px 20px;
  min-height: calc(100vh - 80px);
      width: 100%;
}

/* Tabs Navigation */
.tabs-container {
  margin-bottom: 40px;
  text-align: center;
}

.tabs-nav {
  display: inline-flex;
  background: #f1f5f9;
  padding: 6px;
  border-radius: 12px;
  gap: 4px;
  margin-bottom: 30px;
}

.tab-btn {
  padding: 14px 32px;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #64748b;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tab-btn:hover {
  color: #475569;
  background: rgba(255, 255, 255, 0.5);
}

.tab-btn.active {
  background: white;
  color: #3b82f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn i {
  font-size: 18px;
}

/* Tab Content */


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h1 {
  font-size: 36px;
  color: #1e293b;
  margin-bottom: 12px;
}

.section-subtitle {
  color: #64748b;
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Current Products */
.current-products {
  background: white;
  border-radius: 16px;
  padding: 30px;
  margin-bottom: 40px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.current-products h3 {
  font-size: 20px;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.product-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.product-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 22px;
}

.product-icon.plugin {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.product-info h4 {
  font-size: 16px;
  color: #1e293b;
  margin-bottom: 4px;
}

.product-info .plan-tier {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn {


  border: none;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background: #2563eb;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Plans Grid */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.plan-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  border: 2px solid #e2e8f0;
  position: relative;
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #3b82f6;
}

.plan-card.popular {
  border-color: #3b82f6;
  background: linear-gradient(to bottom, #ffffff, #f0f9ff);
}

.plan-badge {
  position: absolute;
  top: -20px;
  right: 20px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-badge.basic {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #93c5fd;
}

.plan-badge.advance {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.plan-badge.premier {
  background: #fce7f3;
  color: #831843;
  border: 1px solid #f9a8d4;
}

.plan-badge.popular-badge {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
}

.plan-header h3 {
  font-size: 22px;
  color: #1e293b;
  margin-bottom: 10px;
}

.plan-price {
  font-size: 48px;
  font-weight: 700;
  color: #1e293b;
  margin: 20px 0;
}

.plan-price span {
  font-size: 16px;
  color: #64748b;
  font-weight: 400;
}

.plan-description {
  color: #64748b;
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.plan-features {
  flex: 1;
  margin-bottom: 25px;
}

.feature-item {
  padding: 10px 0;
  color: #475569;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-item i {
  color: #10b981;
  font-size: 14px;
  min-width: 20px;
}

.plan-included {

  color: #065f46;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-download-info {

  color: #1e40af;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.select-plan-btn {
  background: #3b82f6;
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;

}

.select-plan-btn:hover {
  background: #2563eb;
  /* transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); */
}

.select-plan-btn:active {
  transform: translateY(0);
}

/* Plugin Comparison */
.plugin-comparison {
  background: white;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table thead {
  background: #f8fafc;
}

.comparison-table th {
  padding: 20px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table td {
  padding: 20px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  font-size: 14px;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.check {
  color: #10b981;
  font-size: 18px;
}

.cross {
  color: #ef4444;
  font-size: 18px;
}

/* Plugin Categories */
.plugin-category {
  margin-bottom: 50px;
}

.plugin-category-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}

.plugin-category-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
}

.plugin-category-icon.tailori {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.plugin-category-icon.q3d {
  background: linear-gradient(135deg, #10b981, #059669);
}

.plugin-category-icon.tryonecomm {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.plugin-category-title {
  font-size: 24px;
  color: #1e293b;
}

.plugin-category-desc {
  color: #64748b;
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .main-container {
    padding: 90px 15px;
  }

  .tabs-nav {
    flex-direction: column;
    width: 100%;
  }

  .tab-btn {
    width: 100%;
    justify-content: center;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
  }

  .plan-price {
    font-size: 36px;
  }
}

/* Back Link */
.back-link {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

.back-link a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s;
}

.back-link a:hover {
  background: #f1f5f9;
  text-decoration: none;
}