/* Main Styles for Iconzo.com */

:root {
  --primary-color: #8b5cf6;
  --secondary-color: #10b981;
  --text-color: #374151;
  --background-color: #ffffff;
  --dark-background: #000000;
  --light-background: #f9fafb;
  --border-color: #e5e7eb;
  --button-hover: #7c3aed;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;

  /* Login Form Theme Variables */
  --login-form-bg: #000000;
  --login-form-text: #ffffff;
  --login-form-text-secondary: #d1d5db;
  --login-form-border: #ffffff;
  --login-form-input-bg: #ffffff;
  --login-form-input-border: #e5e7eb;
  --login-form-input-text: #374151;
  --login-form-input-placeholder: #9ca3af;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: #ffffff;
  background-color: var(--dark-background);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header Styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 10;
}

/* Navigation Menu Styles */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
  margin-right: 2rem;
}

.nav-link {
  font-weight: 500;
  color: #ffffff;
  transition: color 0.2s ease;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
}

.nav-link:hover {
  color: #fbbf24;
  /*background-color: rgba(139, 92, 246, 0.1);*/
}

.nav-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Shake animation for login form */
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-5px);
  }
  20%,
  40%,
  60%,
  80% {
    transform: translateX(5px);
  }
}

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

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.25rem;
  color: #ffffff;
}

.logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.logo span {
  font-size: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  margin-left: 0.25rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-counter {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.2rem;
}

.icon-counter:hover {
  color: var(--primary-color);
  transform: scale(1.05);
}

.icon-counter .thunder-icon {
  width: 36px;
  height: 36px;
  fill: #fbbf24;
  transition: all 0.2s ease;
}

.icon-counter:hover .thunder-icon {
  fill: var(--primary-color);
  transform: scale(1.1);
}

.icon-counter .credit-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: inherit;
}

.icon-counter img {
  display: none;
}

.login-button,
.cta-button {
  background: linear-gradient(135deg, var(--primary-color), #7c3aed);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139, 92, 246, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-button {
  background: linear-gradient(135deg, var(--primary-color), #06b6d4);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.login-button:hover,
.cta-button:hover {
  transform: translateY(-1px);
}

.cta-button:hover {
  background: linear-gradient(135deg, #7c3aed, #0891b2);
}

.cta-button:hover::before {
  left: 100%;
}

/* Navigation Tabs */
.nav-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.nav-tab {
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: background-color 0.2s;
}

.nav-tab.active {
  background-color: var(--primary-color);
  color: white;
}

.nav-tab:not(.active) {
  background-color: #e5e7eb;
}

.nav-tab:hover:not(.active) {
  background-color: #d1d5db;
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0;
}

.demo-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin: 2rem 0;
}

.demo-subtitle {
  text-align: center;
  margin-bottom: 3rem;
  color: #6b7280;
}

/* Upload Section */
.upload-section {
  background-color: #fdf2f8;
  border-radius: 0.5rem;
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  border: 2px dashed #f9a8d4;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-section:hover {
  border-color: #f472b6;
}

/* New Enhanced Upload-Control Layout */
.upload-control-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: start;
}

/* Controls Panel (Left Side) */
.controls-panel {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem 0;
}

.control-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.control-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
}

.label-text {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1rem;
}

.label-help {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
}

/* Enhanced Instructions Input */
.instructions-input.enhanced {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  background: white;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.instructions-input.enhanced:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
  background: #fefefe;
}

.instructions-input.enhanced:hover:not(:focus) {
  border-color: #d1d5db;
  background: #fafafa;
}

/* Enhanced Options */
.options.enhanced {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.transparent-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.transparent-option:hover {
  background: #f1f5f9;
  border-color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.toggle-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  cursor: pointer;
  flex: 1;
}

.toggle-text {
  font-weight: 500;
  color: var(--text-color);
  font-size: 1rem;
}

.toggle-help {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Enhanced Toggle Switch */
.toggle-checkbox {
  display: none;
}

.toggle-switch {
  position: relative;
  width: 3.5rem;
  height: 2rem;
  background-color: #e5e7eb;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: inline-block;
}

.toggle-slider {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-checkbox:checked + .toggle-switch {
  background-color: var(--secondary-color);
}

.toggle-checkbox:checked + .toggle-switch .toggle-slider {
  transform: translateX(1.5rem);
}

.toggle-switch:hover {
  transform: scale(1.05);
}

.transparent-toggle {
  position: relative;
  width: 3.5rem;
  height: 2rem;
  background-color: #e5e7eb;
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.transparent-toggle::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  background-color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.transparent-toggle.active {
  background-color: var(--secondary-color);
}

.transparent-toggle.active::before {
  transform: translateX(1.5rem);
}

.transparent-toggle:hover {
  transform: scale(1.05);
}

/* Enhanced Generate Button */
.generate-button.enhanced {
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, #9333ea 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.generate-button.enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.generate-button.enhanced:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-icon {
  font-size: 1.25rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.1) rotate(5deg);
  }
}

.btn-text {
  font-weight: 600;
}

.btn-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.generate-button.enhanced.loading .btn-icon,
.generate-button.enhanced.loading .btn-text {
  opacity: 0;
}

.generate-button.enhanced.loading .btn-loader {
  display: block;
}

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

.generate-help {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
  margin: 0;
  font-style: italic;
}

/* Upload Panel (Right Side) */
.upload-panel {
  display: flex;
  justify-content: flex-end;
}

.upload-section.enhanced {
  background: linear-gradient(135deg, #fdf2f8 0%, #fef7ff 100%);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 3px dashed #f9a8d4;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.upload-section.enhanced:hover {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.15);
}

.upload-section.enhanced.dragover {
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  transform: scale(1.02);
}

.upload-background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: radial-gradient(
      circle at 20% 20%,
      var(--primary-color) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 80%,
      var(--primary-color) 2px,
      transparent 2px
    );
  background-size: 30px 30px;
  pointer-events: none;
}

.upload-visual {
  position: relative;
  margin-bottom: 1rem;
}

.upload-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 4px 8px rgba(139, 92, 246, 0.2));
  transition: all 0.3s ease;
}

.upload-section.enhanced:hover .upload-icon {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 6px 12px rgba(139, 92, 246, 0.3));
}

.upload-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1;
}

.upload-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}

.upload-text-secondary {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

.upload-format {
  font-size: 0.875rem;
  color: #9ca3af;
  margin: 0;
}

.upload-actions {
  margin-top: 1rem;
}

.browse-btn {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.browse-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.browse-icon {
  font-size: 1rem;
}

/* Upload Progress */
.upload-progress {
  display: none;
  width: 100%;
  text-align: center;
  gap: 0.75rem;
  flex-direction: column;
}

.upload-progress.active {
  display: flex;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color)
  );
  width: 0%;
  transition: width 0.3s ease;
  border-radius: 3px;
}

.progress-text {
  font-size: 0.875rem;
  color: var(--primary-color);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .upload-control-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* On mobile, upload section comes first */
  .upload-panel {
    order: -1;
    justify-content: stretch;
  }

  .upload-section.enhanced {
    min-height: 250px;
    padding: 2rem 1.5rem;
  }

  .controls-panel {
    gap: 1.5rem;
  }

  .control-section {
    gap: 0.5rem;
  }

  .transparent-option {
    padding: 0.875rem;
  }

  .generate-button.enhanced {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .upload-icon {
    width: 56px;
    height: 56px;
  }

  .upload-text {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .upload-control-container {
    gap: 1.5rem;
  }

  .upload-section.enhanced {
    min-height: 220px;
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .controls-panel {
    gap: 1.25rem;
  }

  .instructions-input.enhanced {
    padding: 0.875rem;
    font-size: 0.95rem;
  }

  .transparent-option {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .transparent-toggle {
    width: 3rem;
    height: 1.75rem;
  }

  .transparent-toggle::before {
    width: 1.25rem;
    height: 1.25rem;
  }

  .transparent-toggle.active::before {
    transform: translateX(1.25rem);
  }

  .generate-button.enhanced {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }

  .upload-icon {
    width: 48px;
    height: 48px;
  }

  .upload-text {
    font-size: 1rem;
  }

  .upload-text-secondary {
    font-size: 0.9rem;
  }

  .browse-btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* Animation for enhanced upload icon */
@keyframes pulse-enhanced {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.upload-icon {
  animation: pulse-enhanced 3s infinite;
}

/* Focus states for accessibility */
.transparent-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.browse-btn:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

.generate-button.enhanced:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Character Counter */
.char-counter {
  font-size: 0.75rem;
  text-align: right;
  margin-top: 0.25rem;
  transition: color 0.2s ease;
  font-weight: 500;
}

/* Upload Messages */
.upload-message {
  font-family: var(--font-family);
  line-height: 1.4;
  border-left: 4px solid rgba(255, 255, 255, 0.3);
}

.upload-message.success {
  background-color: var(--secondary-color) !important;
}

.upload-message.error {
  background-color: #dc2626 !important;
}

.upload-message.info {
  background-color: var(--primary-color) !important;
}

.upload-message.warning {
  background-color: #f59e0b !important;
}

/* Enhanced Loading States */
.generate-button.enhanced.loading {
  pointer-events: none;
  transform: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.instructions-input.enhanced.typing {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Upload Section States */
.upload-section.enhanced.has-file {
  border-color: var(--secondary-color);
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.upload-section.enhanced.has-file .upload-icon {
  filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

/* Image Preview in Upload Section */
.upload-preview {
  display: none;
  position: relative;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
}

.upload-preview.active {
  display: block;
}

.preview-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  cursor: pointer;
}

.upload-preview:hover .preview-overlay {
  opacity: 1;
}

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

.preview-btn {
  background: white;
  border: none;
  border-radius: 8px;
  padding: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.1rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.preview-btn.change {
  color: var(--primary-color);
}

.preview-btn.remove {
  color: #dc2626;
}

.image-info {
  margin-top: 1rem;
  text-align: center;
}

.image-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  margin-bottom: 0.25rem;
  word-break: break-all;
}

.image-size {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Hide default upload content when image is shown */
.upload-section.enhanced.has-image .upload-visual,
.upload-section.enhanced.has-image .upload-content .upload-text,
.upload-section.enhanced.has-image .upload-content .upload-text-secondary,
.upload-section.enhanced.has-image .upload-content .upload-format,
.upload-section.enhanced.has-image .upload-actions {
  display: none;
}

/* Micro-interactions for better UX */
.control-section {
  animation: slideInLeft 0.6s ease-out;
}

.upload-panel {
  animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger animation for control sections */
.control-section:nth-child(1) {
  animation-delay: 0.1s;
}

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

.control-section:nth-child(3) {
  animation-delay: 0.3s;
}

/* Smooth transitions for all interactive elements */
.control-section,
.upload-panel,
.transparent-option,
.instructions-input.enhanced,
.generate-button.enhanced,
.upload-section.enhanced {
  will-change: transform;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .upload-section.enhanced {
    border-width: 4px;
  }

  .transparent-toggle {
    border: 2px solid currentColor;
  }

  .generate-button.enhanced {
    border: 2px solid white;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .upload-icon,
  .btn-icon,
  .control-section,
  .upload-panel {
    animation: none;
  }

  .transparent-option:hover,
  .upload-section.enhanced:hover,
  .generate-button.enhanced:hover {
    transform: none;
  }

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Icons Section */
.icons-section {
  margin: 3rem 0;
}

.icons-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.no-icons {
  grid-column: 1 / -1;
  background-color: var(--light-background);
  padding: 2rem;
  text-align: center;
  border-radius: 0.5rem;
  color: #6b7280;
}

/* Sample Gallery */
.sample-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}

.sample-item {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sample-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.sample-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* User Icons Gallery */
.user-icons-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.user-icon-item {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s, box-shadow 0.2s;
  background: white;
  position: relative;
}

.user-icon-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.user-icon-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.icon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.user-icon-item:hover .icon-overlay {
  opacity: 1;
}

.download-btn {
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
}

.download-btn:before {
  content: "↓";
  font-size: 2rem;
  font-weight: normal;
  line-height: 1;
}

.download-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.user-icon-meta {
  padding: 1rem;
  background: white;
  display: none;
}

.user-icon-instructions {
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.user-icon-date {
  font-size: 0.7rem;
  color: #999;
}

/* Before-After Section */
.before-after {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4rem 0;
}

.before-after-item {
  flex: 1;
  text-align: center;
}

.before-after-item img {
  max-width: 100%;
  border-radius: 0.5rem;
}

.arrow {
  font-size: 3rem;
  margin: 0 2rem;
}

/* Pricing Section */
.pricing-section {
  margin: 4rem 0;
}

.pricing-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
}

.pricing-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 3rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.pricing-card {
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.pricing-card.best-value {
  border-color: var(--primary-color);
  position: relative;
}

.best-value-tag {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 0 0.5rem 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.price {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.price-description {
  color: #6b7280;
  margin-bottom: 2rem;
}

.features-list {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.feature-icon {
  color: var(--primary-color);
  margin-right: 0.5rem;
}

.buy-button {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

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

/* Footer */
footer {
  background-color: var(--dark-background);
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-logo img {
  height: 34px;
  margin-right: 0.5rem;
}

.footer-logo span {
  font-size: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  margin-left: 0.25rem;
}

.footer-description {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.footer-copyright {
  color: #d1d5db;
  font-size: 0.875rem;
}

.footer-links-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 0.5rem;
}

.footer-link a {
  color: #d1d5db;
  transition: color 0.2s;
}

.footer-link a:hover {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .nav-tabs {
    flex-direction: column;
    gap: 0.5rem;
  }

  .before-after {
    flex-direction: column;
    gap: 2rem;
  }

  .arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
  }
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    order: 2;
    width: 100%;
    margin: 1rem 0 0 0;
    justify-content: center;
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 0.375rem 0.5rem;
  }

  .nav-right {
    order: 3;
    margin-top: 1rem;
  }

  .main-title {
    font-size: 2rem;
  }

  .sample-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .user-icons-gallery {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .download-btn {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .download-btn:before {
    font-size: 1.5rem;
  }
}

/* Animation for upload icon */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.upload-icon {
  animation: pulse 2s infinite;
}

/* Billing Page Specific Styles */
.breadcrumb-nav {
  margin: 2rem 0 1rem 0;
  font-size: 0.9rem;
  color: #6b7280;
}

.breadcrumb-link {
  color: var(--primary-color);
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
}

.breadcrumb-current {
  color: var(--text-color);
  font-weight: 500;
}

.faq-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-color);
}

.faq-answer {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(5px);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 1rem;
}

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

.loading-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Chat button */
.chat-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: background-color 0.2s;
  z-index: 100;
}

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

.chat-icon {
  color: white;
  font-size: 1.5rem;
}

/* Authentication Modal Styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.auth-modal-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.auth-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6b7280;
  font-weight: bold;
  line-height: 1;
  transition: color 0.2s;
}

.auth-close:hover {
  color: #374151;
}

.auth-form h2 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

.auth-subtitle {
  color: #6b7280;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-help {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #6b7280;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 1rem;
}

.auth-submit-btn:hover:not(:disabled) {
  background-color: var(--button-hover);
}

.auth-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-switch {
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.auth-switch a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

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

.auth-error,
.auth-success {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.4;
  text-align: center;
}

.auth-error {
  background-color: #ffebee;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.auth-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

/* User Menu Styles */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-button {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-button:hover {
  background-color: #e5e7eb;
}

/* Modern User Icon Button Styles */
.user-icon-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

.user-icon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

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

.user-icon {
  width: 20px;
  height: 20px;
  color: white;
  transition: transform 0.2s ease;
}

.user-icon-button:hover .user-icon {
  transform: scale(1.1);
}

.dropdown-arrow {
  font-size: 0.7rem;
  color: #6b7280;
  transition: transform 0.2s;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  min-width: 160px;
  z-index: 100;
  margin-top: 0.25rem;
  overflow: hidden;
}

.dropdown-item {
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: #374151;
  font-size: 0.9rem;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
}

.dropdown-item.logout-item {
  color: #dc2626;
}

.dropdown-item.logout-item:hover {
  background-color: #fef2f2;
}

.dropdown-icon {
  font-size: 0.9rem;
  width: 1.2rem;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background-color: #e5e7eb;
  margin: 0.25rem 0;
}

/* Profile Modal Styles */
.profile-modal-content {
  max-width: 500px;
  width: 90%;
}

.profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group input:disabled {
  background-color: #f9fafb;
  color: #6b7280;
  cursor: not-allowed;
}

/* Billing Modal Styles */
.billing-modal-content {
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.billing-header {
  text-align: center;
  margin-bottom: 2rem;
}

.billing-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.section-description {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0.5rem 0 1.5rem 0;
  text-align: center;
}

.loading-placeholder {
  text-align: center;
  padding: 2rem;
  color: #d1d5db;
  font-style: italic;
}

/* Credit Summary */
.credit-summary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.credit-summary h3 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

.credit-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.credit-count {
  font-size: 2.5rem;
  font-weight: bold;
}

.credit-label {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Enhanced Billing Pricing Grid */
.pricing-plans-section h3 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-size: 1.3rem;
  text-align: center;
}

.billing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  padding: 0 1rem;
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  /* Break out of container constraints */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

/* Ensure 4 columns on larger screens */
@media (min-width: 1200px) {
  .billing-pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 2rem;
  }
}

.billing-pricing-card {
  background: #000000;
  border: 2px solid #333333;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 3px rgba(0, 0, 0, 0.3);
  transform-origin: center center;
}

.billing-pricing-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.05) 0%,
    rgba(245, 158, 11, 0.02) 50%,
    rgba(217, 119, 6, 0.03) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 18px;
  z-index: 1;
}

.billing-pricing-card:hover {
  background: #222222;
}

.billing-pricing-card:hover::before {
}

.billing-pricing-card.popular-package {
  background: #222222;
  border: 2px solid #fbbf24;
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.6),
    0 4px 16px rgba(251, 191, 36, 0.4);
}

.billing-pricing-card.popular-package::before {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.08) 0%,
    rgba(245, 158, 11, 0.06) 50%,
    rgba(217, 119, 6, 0.04) 100%
  );
  opacity: 1;
}

.billing-pricing-card.popular-package:hover {
  background: #222222;
}

.popular-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 18px 0 16px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
  z-index: 10;
}

.popular-badge::before {
  content: "✨";
  margin-right: 0.25rem;
}

.package-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.package-header h4 {
  margin: 0 0 0.75rem 0;
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #e5e7eb 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.billing-pricing-card.popular-package .package-header h4 {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.package-description {
  color: #d1d5db;
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.package-pricing {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.billing-price {
  font-size: 3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.price-per-credit {
  color: #d1d5db;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(251, 191, 36, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  display: inline-block;
}

.package-features {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.billing-credits {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}

.billing-pricing-card.popular-package .billing-credits {
}

.credits-number {
  font-size: 2.2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.credits-text {
  color: #d1d5db;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: #f3f4f6;
  font-weight: 500;
  padding: 0.5rem 0;
  border-radius: 8px;
}

.feature-icon {
  font-size: 0.8rem;
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-weight: 600;
}

.billing-buy-btn {
  width: 100%;
  padding: 1.25rem 2rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 2;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.billing-buy-btn:hover {
  background: transparent;
  border: 1px solid #fbbf24;
  color: #fbbf24;
}

.billing-buy-btn:active {
}

.billing-buy-btn.popular-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
}

.billing-buy-btn.popular-btn:hover {
  background: transparent;
  border: 2px solid #fbbf24;
  color: #fbbf24;
}

.btn-loader {
  display: none;
}

/* Purchase History Enhanced Styles */
.purchase-history-section h3 {
  margin: 0 0 0.5rem 0;
  color: #1f2937;
  font-size: 1.3rem;
  text-align: center;
}

.purchase-history-container {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.purchase-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table-container {
  overflow-x: auto;
}

.history-table {
  width: 100%;
  border-collapse: collapse;
}

.history-table th {
  background-color: #f9fafb;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.history-table td {
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.history-row:hover {
  background-color: #f9fafb;
}

.date-cell {
  min-width: 120px;
}

.date-main {
  font-weight: 500;
  color: #1f2937;
  font-size: 0.9rem;
}

.date-time {
  font-size: 0.8rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.package-cell {
  min-width: 140px;
}

.package-name {
  font-weight: 500;
  color: #1f2937;
}

.credits-cell {
  min-width: 100px;
}

.credits-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fef3c7;
  color: #92400e;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.credits-icon {
  font-size: 0.8rem;
}

.amount-cell {
  min-width: 80px;
}

.amount-value {
  font-weight: 600;
  color: #059669;
  font-size: 0.95rem;
}

.status-cell {
  min-width: 120px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-badge.success {
  background: #d1fae5;
  color: #065f46;
}

.status-icon {
  font-size: 0.8rem;
}

.no-history {
  text-align: center;
  padding: 3rem 2rem;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 12px;
}

.no-history-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.no-history h4 {
  margin: 0 0 0.5rem 0;
  color: #374151;
  font-size: 1.1rem;
}

.no-history p {
  margin: 0;
  font-size: 0.9rem;
}

/* Updated nav-right styles for authenticated users */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Responsive modal styles */
@media (max-width: 640px) {
  .auth-modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }

  .auth-form h2 {
    font-size: 1.25rem;
  }
}

/* Enhanced Responsive Design for Profile and Billing */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .billing-modal-content {
    width: 98%;
    margin: 1rem;
  }

  .billing-pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 0.5rem;
  }

  .credit-count {
    font-size: 2rem;
  }

  .purchase-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .history-table {
    font-size: 0.8rem;
  }

  .history-table th,
  .history-table td {
    padding: 0.75rem 0.5rem;
  }

  .billing-pricing-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .billing-pricing-card.popular-package {
    background: #222222;
  }

  .billing-pricing-card.popular-package:hover {
    background: #222222;
  }

  .billing-price {
    font-size: 2.5rem;
  }

  .package-header h4 {
    font-size: 1.25rem;
  }

  .credits-number {
    font-size: 1.8rem;
  }

  .billing-buy-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  .popular-badge {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .user-dropdown {
    min-width: 140px;
  }

  .dropdown-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
  }

  .user-icon-button {
    width: 36px;
    height: 36px;
  }

  .user-icon {
    width: 18px;
    height: 18px;
  }

  .profile-modal-content,
  .billing-modal-content {
    width: 95%;
    margin: 0.5rem;
  }

  .billing-content {
    gap: 1.5rem;
  }

  .purchase-stats {
    padding: 1rem;
    grid-template-columns: 1fr;
  }

  .stat-value {
    font-size: 1.2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .history-table th,
  .history-table td {
    padding: 0.5rem 0.25rem;
    font-size: 0.75rem;
  }

  .credits-badge,
  .status-badge {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .no-history {
    padding: 2rem 1rem;
  }

  .no-history-icon {
    font-size: 2rem;
  }

  .billing-pricing-card {
    padding: 1rem;
  }

  .billing-price {
    font-size: 1.8rem;
  }

  .credits-number {
    font-size: 1.3rem;
  }

  .feature-item {
    font-size: 0.85rem;
  }

  .billing-buy-btn {
    padding: 0.875rem;
    font-size: 0.9rem;
  }

  .section-description {
    font-size: 0.85rem;
  }
}

/* Demo Section - visible only for non-authenticated users */
.demo-section {
  transition: opacity 0.3s ease-in-out;
}

.demo-section.hidden {
  display: none;
}

/* FAQ Accordion Styles */
.faq-section {
  margin: 4rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-accordion-item {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.faq-accordion-item:hover {
  box-shadow: var(--shadow-md);
  border-color: #d1d5db;
}

.faq-accordion-item.active {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.faq-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem 2rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.faq-toggle:hover {
  background-color: #f9fafb;
}

.faq-accordion-item.active .faq-toggle {
  background-color: #faf5ff;
  border-bottom: 1px solid var(--border-color);
}

.faq-question {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.1rem;
  line-height: 1.4;
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-color);
  transition: all 0.2s ease;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(139, 92, 246, 0.1);
}

.faq-accordion-item.active .faq-icon {
  background-color: var(--primary-color);
  color: white;
  transform: rotate(0deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-content .faq-answer {
  padding: 0 2rem 1.5rem 2rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive FAQ Styles */
@media (max-width: 768px) {
  .faq-toggle {
    padding: 1.25rem 1.5rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-content .faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    font-size: 0.9rem;
  }

  .faq-icon {
    font-size: 1.25rem;
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 480px) {
  .faq-container {
    margin: 0 -0.5rem;
  }

  .faq-accordion-item {
    border-radius: 8px;
  }

  .faq-toggle {
    padding: 1rem 1.25rem;
  }

  .faq-question {
    font-size: 0.95rem;
    line-height: 1.3;
  }

  .faq-content .faq-answer {
    padding: 0 1.25rem 1rem 1.25rem;
    font-size: 0.85rem;
  }
}

/* ======================================
   HERO SECTION STYLES
   ====================================== */

.hero-section {
  position: relative;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.4) 0%,
      rgba(0, 0, 0, 0.6) 30%,
      rgba(0, 0, 0, 0.75) 60%,
      rgba(0, 0, 0, 0.9) 85%,
      var(--dark-background) 100%
    ),
    url("../assets/images/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 10rem 0 12rem 0;
  margin-top: -6rem;
  margin-bottom: 0;
  min-height: 900px;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 4rem;
  align-items: center;
  padding: 0 1rem; /* Reduced from default 2rem */
  margin-top: 3rem; /* Increased top margin for better spacing */
}

.hero-left {
  padding: 0 0.5rem 0 1rem; /* Reduced left/right padding */
  position: relative;
  z-index: 2;
  animation: slideInFromLeft 0.8s ease-out;
  backdrop-filter: blur(1px);
}

.hero-right {
  padding: 0 1rem 0 0.5rem; /* Reduced left/right padding */
  position: relative;
  z-index: 2;
  animation: slideInFromRight 0.8s ease-out;
  backdrop-filter: blur(1px);
}

@keyframes slideInFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hero Award */
.hero-award {
  margin-bottom: 0.75rem;
}

.laurel-container {
  position: relative;
  display: inline-block;
  width: 200px;
  height: 60px;
}

.laurel-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(1)
    drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.award-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}

.award-stars {
  display: flex;
  gap: 0.125rem;
  margin-bottom: 0.125rem;
}

.award-star {
  width: 12px;
  height: 12px;
  filter: brightness(0) saturate(100%) invert(1);
}

.award-text {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Hero Title */
.hero-title {
  font-size: 56px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

@keyframes title-pulse {
  0%,
  100% {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }
  50% {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5),
      0 0 30px rgba(255, 255, 255, 0.1);
  }
}

/* Hero Features List */
.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-features li {
  color: #f3f4f6;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 1rem;
  padding-left: 0;
  opacity: 0;
  animation: feature-fadeIn 0.6s ease-out forwards;
}

.hero-features li:nth-child(1) {
  animation-delay: 0.2s;
}
.hero-features li:nth-child(2) {
  animation-delay: 0.4s;
}
.hero-features li:nth-child(3) {
  animation-delay: 0.6s;
}
.hero-features li:nth-child(4) {
  animation-delay: 0.8s;
}
.hero-features li:nth-child(5) {
  animation-delay: 1s;
}

@keyframes feature-fadeIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-features li b {
  color: #ffffff;
  font-weight: 700;
}

.hero-features li u {
  color: #fbbf24;
  text-decoration: underline;
  text-decoration-color: rgba(251, 191, 36, 0.6);
  font-weight: 600;
}

/* Hero Right Side - Login Box */
.hero-banner {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 1rem;
  text-align: center;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  animation: banner-bounce 2s ease-in-out infinite;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: banner-shine 3s ease-in-out infinite;
}

@keyframes banner-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@keyframes banner-shine {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

.hero-login-box {
  background: var(--login-form-bg);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  border: 2px solid var(--login-form-border);
  color: var(--login-form-text);
}

.hero-login-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
  border-color: var(--login-form-border);
}

/* Login Input */
.hero-login-input {
  width: 100%;
  padding: 1rem 1.5rem;
  border: 2px solid var(--login-form-input-border);
  border-radius: 0.75rem;
  font-size: 1rem;
  background: var(--login-form-input-bg);
  color: var(--login-form-input-text);
  transition: all 0.3s ease;
  margin-bottom: 1rem;
  position: relative;
}

.hero-login-input:focus {
  outline: none;
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
  transform: translateY(-1px);
  background: #ffffff;
}

.hero-login-input::placeholder {
  color: var(--login-form-input-placeholder);
  transition: color 0.3s ease;
}

.hero-login-input:focus::placeholder {
  color: #d1d5db;
}

/* Login Button */
.hero-login-btn {
  width: 100%;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 21px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(251, 191, 36, 0.6);
  background: linear-gradient(135deg, #fcd34d 0%, #fbbf24 50%, #f59e0b 100%);
}

.hero-login-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.4);
}

.hero-login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transition: left 0.6s ease;
}

.hero-login-btn:hover::before {
  left: 100%;
}

.hero-login-btn::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #fbbf24, #f59e0b, #d97706, #fbbf24);
  border-radius: 0.875rem;
  z-index: -1;
  animation: golden-pulse 3s ease-in-out infinite;
  opacity: 0;
}

.hero-login-btn:hover::after {
  opacity: 0.7;
}

@keyframes golden-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.7;
  }
}

/* Login OR divider */
.hero-login-or {
  text-align: center;
  color: var(--login-form-text-secondary);
  font-size: 0.875rem;
  margin: 1rem 0;
  position: relative;
}

.hero-login-or::before,
.hero-login-or::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: var(--login-form-input-border);
}

.hero-login-or::before {
  left: 0;
}
.hero-login-or::after {
  right: 0;
}

/* Google Button */
.hero-google-btn {
  width: 100%;
  background: var(--login-form-input-bg);
  color: var(--login-form-input-text);
  border: 2px solid var(--login-form-input-border);
  padding: 0.875rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hero-google-btn:hover {
  border-color: #d1d5db;
  background: #f9fafb;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.google-logo {
  width: 20px;
  height: 20px;
}

/* Login Stats */
.hero-login-stats {
  text-align: center;
  color: var(--login-form-text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  animation: stats-glow 3s ease-in-out infinite;
}

@keyframes stats-glow {
  0%,
  100% {
    color: var(--login-form-text-secondary);
  }
  50% {
    color: #8b5cf6;
  }
}

/* ======================================
   RESPONSIVE DESIGN
   ====================================== */

@media (max-width: 1024px) {
  .hero-section {
    padding: 3rem 0;
    text-align: center;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-left,
  .hero-right {
    padding: 0 2rem;
    max-width: 600px;
    margin: 0 auto;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    margin: -3rem -1rem 2rem -1rem;
    padding: 5rem 0 2rem 0;
    gap: 2rem;
  }

  .hero-left,
  .hero-right {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-features li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }

  .hero-login-box {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-section {
    margin: -2rem -0.5rem 1.5rem -0.5rem;
    padding: 4rem 0 1.5rem 0;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-features li {
    font-size: 0.95rem;
  }

  .hero-login-box {
    padding: 1.25rem;
    border-radius: 1rem;
  }

  .hero-login-input,
  .hero-login-btn,
  .hero-google-btn {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }
}

/* ======================================
   ACCESSIBILITY & MOTION PREFERENCES
   ====================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-section,
  .hero-section::before,
  .hero-left,
  .hero-right,
  .hero-badge,
  .hero-stars,
  .hero-title,
  .hero-features li,
  .hero-banner,
  .hero-banner::before,
  .hero-login-stats,
  .hero-footer-logos::before,
  .hero-logos-text,
  .hero-logos-grid,
  .hero-logo-item {
    animation: none !important;
  }

  .hero-login-box,
  .hero-login-input,
  .hero-login-btn,
  .hero-google-btn,
  .hero-logo-item,
  .hero-logo-item img {
    transition: none !important;
  }

  .hero-logos-text,
  .hero-logos-grid,
  .hero-logo-item {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (prefers-contrast: high) {
  .hero-section {
    background: #1f2937;
  }

  .hero-login-box {
    background: white;
    border: 2px solid #374151;
  }

  .hero-login-input {
    border-color: #374151;
  }

  .hero-login-btn {
    background: #1f2937;
    border: 2px solid white;
  }
}

/* ======================================
   FOCUS STATES FOR ACCESSIBILITY
   ====================================== */

.hero-login-input:focus,
.hero-login-btn:focus,
.hero-google-btn:focus {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

/* ======================================
   LOADING STATES
   ====================================== */

.hero-login-btn.loading {
  position: relative;
  color: transparent;
}

.hero-login-btn.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: button-spin 1s linear infinite;
}

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

.hero-login-box .hero-login-or {
  text-align: center;
  margin: 1rem 0;
  color: var(--login-form-text-secondary);
  font-weight: 500;
}

/* Auth subtitle and other text in hero login box */
.hero-login-box .auth-subtitle,
.hero-login-box p {
  color: var(--login-form-text-secondary);
}

.hero-login-box .auth-switch {
  color: var(--login-form-text-secondary);
}

.hero-login-box .auth-switch a {
  color: var(--primary-color);
  text-decoration: none;
}

.hero-login-box .auth-switch a:hover {
  text-decoration: underline;
}

.hero-login-box .form-link {
  color: var(--primary-color);
}

.hero-login-box .form-options {
  color: var(--login-form-text);
}

.hero-login-box .form-options label {
  color: var(--login-form-text);
}

.forgot-password-hero {
  text-align: right;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
}

.hero-login-box .hero-google-btn {
  width: 100%;
  padding: 0.75rem;
}

.auth-form .form-group {
  margin-bottom: 1.25rem;
  position: relative;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.form-options .form-check {
  display: flex;
  align-items: center;
}

.form-options .form-check input[type="checkbox"] {
  margin-right: 0.5rem;
  width: 1rem;
  height: 1rem;
  accent-color: var(--primary-color);
}

.form-options .form-check label {
  color: #555;
  font-weight: 500;
  cursor: pointer;
}

.auth-form .form-link {
  font-size: 0.875rem;
  color: var(--primary-color);
}

/* ======================================
   PROFILE PAGE STYLES
   ====================================== */

.profile-page {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
  background-color: #f9fafb;
}

.profile-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.profile-header {
  text-align: center;
  margin-bottom: 3rem;
}

.profile-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.profile-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
  margin: 0;
}

.profile-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.section-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: box-shadow 0.2s ease;
}

.section-card:hover {
  box-shadow: var(--shadow-md);
}

.section-card h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.profile-submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.profile-submit-btn:hover:not(:disabled) {
  background-color: var(--button-hover);
  transform: translateY(-1px);
}

.profile-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.2s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: #64748b;
  font-weight: 500;
}

.profile-stats-section,
.profile-actions-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.actions-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 1rem;
}

.action-btn:hover {
  border-color: var(--primary-color);
  background-color: #faf5ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.15);
}

.action-btn.logout-btn {
  border-color: #fecaca;
  color: #dc2626;
}

.action-btn.logout-btn:hover {
  border-color: #dc2626;
  background-color: #fef2f2;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.15);
}

.action-icon {
  font-size: 1.5rem;
  width: 2rem;
  text-align: center;
}

.action-text {
  flex: 1;
}

/* Responsive Profile Styles */
@media (max-width: 1024px) {
  .profile-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .profile-stats-section {
    order: -1;
  }
}

@media (max-width: 768px) {
  .profile-page {
    padding: 1rem 0;
  }

  .profile-header h1 {
    font-size: 2rem;
  }

  .profile-subtitle {
    font-size: 1rem;
  }

  .section-card {
    padding: 1.5rem;
  }

  .section-card h2 {
    font-size: 1.25rem;
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .stat-value {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .profile-container {
    padding: 0 0.5rem;
  }

  .profile-header {
    margin-bottom: 2rem;
  }

  .profile-header h1 {
    font-size: 1.75rem;
  }

  .section-card {
    padding: 1.25rem;
    border-radius: 8px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .stat-item {
    padding: 0.875rem;
  }

  .action-btn {
    padding: 0.875rem 1.25rem;
    gap: 0.75rem;
  }

  .action-icon {
    font-size: 1.25rem;
    width: 1.5rem;
  }
}

/* =============================================================================
   FAQ Page Styles
   ========================================================================== */

/* Main container for the entire FAQ page */
.faq-page-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  color: #333;
}

.faq-page-container .description {
  font-size: 1.1em;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Container for the list of questions */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Styling for the link wrapping each question */
.faq-list a {
  text-decoration: none;
  color: inherit;
  display: block;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.faq-list a:hover {
  background-color: #f9f9f9;
  transform: translateY(-2px);
}

/* The main block for each question in the list */
.question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  cursor: pointer;
}

/* Container for the title and subtitle text */
.question > span {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Question text style */
.question .title {
  font-size: 1.2em;
  font-weight: 600;
}

/* Answer preview text style */
.question .subtitle {
  font-size: 0.95em;
  color: #777;
  line-height: 1.5;
  /* Limit the number of lines shown for the preview */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Chevron icon container */
.chevron-right {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.chevron-right svg {
  width: 24px;
  height: 24px;
  color: #999;
  transition: color 0.3s ease;
}

.faq-list a:hover .chevron-right svg {
  color: #333;
}

/* Styles for the single, detailed FAQ page */
.faq-single-item {
  padding: 20px;
}

.faq-single-item h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.faq-single-item .answer-content {
  font-size: 1.1em;
  line-height: 1.8;
  color: #555;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

/* Back link style */
.back-to-faq {
  display: inline-block;
  margin-top: 30px;
  font-size: 1em;
  color: #007bff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-to-faq:hover {
  color: #0056b3;
  text-decoration: underline;
}

/* Styles for the new FAQ preview section on the homepage */
.faq-section {
  padding-top: 50px;
  padding-bottom: 50px;
}

.faq-preview-list {
  max-width: 700px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #000;
  border: 1px solid #202020;
  border-radius: 8px;
  text-decoration: none;
  color: #c9c9c9;
  transition: all 0.3s ease;
}

.faq-preview-item:hover {
  background-color: #222;
  border-color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.faq-preview-question {
  font-weight: 500;
  color: #fff;
}

.faq-preview-arrow {
  font-size: 1.5em;
  font-weight: bold;
  color: #fff;
  transition: color 0.3s ease;
}

.faq-preview-item:hover .faq-preview-arrow {
  color: #fff;
}

/* ======================================
   HERO FOOTER LOGOS STYLES
   ====================================== */

.hero-footer-logos {
  background: transparent;
  padding: 4rem 0 3rem 0;
  margin: -10rem 0 2rem 0;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

/* Remove the violet shimmer line - not needed */

.hero-logos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-logos-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.hero-logos-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.6s forwards;
}

.hero-logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: all 0.4s ease;
  transform: translateY(10px);
  animation: logoFloat 0.6s ease-out forwards;
}

.hero-logo-item:nth-child(1) {
  animation-delay: 0.8s;
}
.hero-logo-item:nth-child(2) {
  animation-delay: 0.9s;
}
.hero-logo-item:nth-child(3) {
  animation-delay: 1s;
}
.hero-logo-item:nth-child(4) {
  animation-delay: 1.1s;
}
.hero-logo-item:nth-child(5) {
  animation-delay: 1.2s;
}
.hero-logo-item:nth-child(6) {
  animation-delay: 1.3s;
}
.hero-logo-item:nth-child(7) {
  animation-delay: 1.4s;
}
.hero-logo-item:nth-child(8) {
  animation-delay: 1.5s;
}
.hero-logo-item:nth-child(9) {
  animation-delay: 1.6s;
}
.hero-logo-item:nth-child(10) {
  animation-delay: 1.7s;
}

@keyframes logoFloat {
  to {
    opacity: 0.7;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-logo-item:hover {
  opacity: 0.9;
  transform: translateY(-3px) scale(1.05);
  filter: drop-shadow(0 8px 16px rgba(139, 92, 246, 0.2));
}

.hero-logo-item img {
  height: 32px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8);
  transition: all 0.4s ease;
}

.hero-logo-item:hover img {
  filter: grayscale(50%) brightness(1.1);
}

/* Responsive Design for Hero Footer Logos */
@media (max-width: 1024px) {
  .hero-logos-grid {
    gap: 1.5rem;
  }

  .hero-logo-item img {
    height: 28px;
    max-width: 100px;
  }
}

@media (max-width: 768px) {
  .hero-footer-logos {
    padding: 2rem 0 1.5rem 0;
  }

  .hero-logos-container {
    padding: 0 1rem;
  }

  .hero-logos-text {
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
  }

  .hero-logos-grid {
    gap: 1rem;
  }

  .hero-logo-item img {
    height: 24px;
    max-width: 80px;
  }
}

@media (max-width: 480px) {
  .hero-footer-logos {
    padding: 1.5rem 0 1rem 0;
  }

  .hero-logos-text {
    margin-bottom: 1rem;
    font-size: 0.75rem;
  }

  .hero-logos-grid {
    gap: 0.75rem;
  }

  .hero-logo-item img {
    height: 20px;
    max-width: 70px;
  }
}
