/* Tools Common Styles - extracted from inline styles for better performance */

/* CSS Variables */
:root {
  --primary-color: #1a2141;
  --secondary-color: #2a3551;
  --accent-color: #6c5ce7;
  --glow-color: rgba(108, 92, 231, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #b8c5d6;
  --success-color: #00b894;
  --error-color: #e17055;
  --warning-color: #fdcb6e;
  --background-primary: linear-gradient(135deg, #1a2141 0%, #2a3551 100%);
  --background-secondary: rgba(25, 35, 65, 0.1);
  --border-color: rgba(108, 92, 231, 0.3);
  --shadow-light: 0 4px 15px rgba(108, 92, 231, 0.1);
  --shadow-medium: 0 8px 25px rgba(108, 92, 231, 0.2);
  --shadow-heavy: 0 12px 30px rgba(108, 92, 231, 0.3);
}

/* Modern Header Styles */
.modern-header {
  background: var(--background-primary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-light);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 70px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-left ul,
.header-left li {
  display: flex;
  align-items: center;
  height: 100%;
}

.header-left ul {
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.header-left li {
  margin: 0;
}

.logo img {
  height: 45px;
  width: auto;
}

.modern-header .nav-button {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
}

.modern-header .nav-button:hover {
  color: var(--accent-color);
  background: rgba(108, 92, 231, 0.1);
}

/* Tools Dropdown */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown-toggle {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(74, 144, 226, 0.15));
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 25px;
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.dropdown-toggle:hover {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(74, 144, 226, 0.25));
  border-color: rgba(108, 92, 231, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.dropdown-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
  margin-left: 6px;
}

.dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(135deg, #2a3551 0%, #3a4661 100%);
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 15px;
  box-shadow: var(--shadow-heavy);
  min-width: 280px;
  z-index: 1000;
  padding: 15px 0;
  margin-top: 8px;
  backdrop-filter: blur(20px);
}

.dropdown:hover .dropdown-content {
  display: block;
  animation: dropdownSlide 0.3s ease-out;
}

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

.dropdown-content a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-content a:hover {
  background: rgba(108, 92, 231, 0.15);
  color: var(--accent-color);
  transform: translateX(5px);
}

.dropdown-content a::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--accent-color);
  border-radius: 50%;
  flex-shrink: 0;
}

/* User Section */
.user-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.balance-display {
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.15), rgba(0, 206, 201, 0.15));
  border: 1px solid rgba(0, 184, 148, 0.3);
  color: var(--success-color);
  padding: 10px 18px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-light);
}

.balance-icon {
  width: 16px;
  height: 16px;
}

.profile-btn {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(74, 144, 226, 0.15));
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--text-primary);
  padding: 15px 25px;
  border-radius: 25px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  max-width: 250px;
  box-shadow: var(--shadow-light);
}

.profile-btn:hover {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.25), rgba(74, 144, 226, 0.25));
  border-color: rgba(108, 92, 231, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.profile-btn #headerEmail {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.profile-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: var(--success-color);
  border-radius: 50%;
  margin-left: 8px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Main Content */
.main-content {
  padding-top: 30px;
  min-height: calc(100vh - 70px);
}

/* Hero Section */
.generator-hero {
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.05), rgba(74, 144, 226, 0.05));
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent-color), #4a90e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

/* Generation Section */
.generation-section {
  padding: 80px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.generation-card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow-medium);
  backdrop-filter: blur(10px);
}

.modern-input-section {
  margin-bottom: 30px;
}

.prompt-container {
  position: relative;
}

.modern-prompt-box {
  background: rgba(25, 35, 65, 0.3);
  border: 2px solid rgba(108, 92, 231, 0.3);
  border-radius: 15px;
  padding: 25px;
  position: relative;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
}

.modern-prompt-box:hover {
  border-color: rgba(108, 92, 231, 0.5);
  box-shadow: var(--shadow-light);
}

.modern-textarea {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.6;
  resize: none;
  outline: none;
  font-family: inherit;
  min-height: 120px;
}

.modern-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

.modern-generate-btn {
  background: linear-gradient(135deg, var(--accent-color), #4a90e2);
  border: none;
  color: white;
  padding: 18px 40px;
  border-radius: 25px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  min-width: 200px;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
}

.modern-generate-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.modern-generate-btn:active {
  transform: translateY(-1px);
}

.modern-generate-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.error-alert {
  background: rgba(225, 112, 85, 0.1);
  border: 1px solid rgba(225, 112, 85, 0.3);
  color: var(--error-color);
  padding: 15px 20px;
  border-radius: 10px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Generation Info Cards */
.generation-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.info-card {
  background: rgba(108, 92, 231, 0.05);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s ease;
}

.info-card:hover {
  border-color: rgba(108, 92, 231, 0.4);
  transform: translateY(-5px);
  box-shadow: var(--shadow-light);
}

.info-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 15px;
  color: var(--accent-color);
}

.info-content h3 {
  color: var(--text-primary);
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.info-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Results Section */
.results-section {
  padding: 80px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-header {
  text-align: center;
  margin-bottom: 50px;
}

.gallery-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--accent-color), #4a90e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Modern Gallery */
.modern-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 30px 0;
}

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.gallery-empty-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  opacity: 0.5;
}

.gallery-empty-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.gallery-empty-subtext {
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Image Cards */
.image-card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
  box-shadow: var(--shadow-light);
}

.image-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
  border-color: rgba(108, 92, 231, 0.5);
}

.image-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-card:hover img {
  transform: scale(1.05);
}

.image-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(74, 144, 226, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-card:hover::before {
  opacity: 1;
}

.image-card-actions {
  padding: 20px 15px 15px;
}

.image-card-info {
  margin-bottom: 15px;
}

.image-card-prompt {
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
  max-height: 60px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.image-card-date {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-bottom: 8px;
}

.image-card-buttons {
  display: flex;
  gap: 8px;
}

.image-card-btn {
  flex: 1;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.2), rgba(74, 144, 226, 0.2));
  border: 1px solid rgba(108, 92, 231, 0.3);
  color: var(--text-primary);
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.image-card-btn:hover {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.3), rgba(74, 144, 226, 0.3));
  border-color: rgba(108, 92, 231, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.loading-card {
  background: var(--background-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(108, 92, 231, 0.3);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

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

/* Modern Modal */
.modern-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  animation: modalFadeIn 0.3s ease-out;
}

.modern-modal * {
  box-sizing: border-box;
}

.modern-modal.modal-opening {
  animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: linear-gradient(135deg, #2a3551 0%, #3a4661 100%);
  margin: 5vh auto;
  padding: 30px;
  border: 1px solid rgba(108, 92, 231, 0.3);
  border-radius: 20px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-heavy);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute !important;
  top: 20px !important;
  right: 25px !important;
  color: var(--text-secondary) !important;
  font-size: 2rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  z-index: 10001 !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  transition: all 0.3s ease !important;
}

.modal-close:hover {
  background: rgba(225, 112, 85, 0.2) !important;
  color: var(--error-color) !important;
  transform: rotate(90deg) !important;
}

.modal-image-container {
  text-align: center;
  margin-bottom: 25px;
}

.modal-image {
  max-width: 100%;
  max-height: 60vh;
  border-radius: 15px;
  box-shadow: var(--shadow-medium);
  object-fit: contain;
}

.modal-prompt-container {
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
}

.modal-prompt-label {
  color: var(--accent-color);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.modal-prompt-text {
  color: var(--text-primary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.modern-download-btn {
  background: linear-gradient(135deg, var(--success-color), #00a085);
  border: none;
  color: white;
  padding: 15px 30px;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: var(--shadow-medium);
}

.modern-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

/* Alert Modal */
.modern-alert-modal {
  display: none;
  position: fixed;
  z-index: 15000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.alert-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.alert-modal-content {
  position: relative;
  background: linear-gradient(135deg, #2a3551 0%, #3a4661 100%);
  margin: 20vh auto;
  padding: 40px;
  border: 1px solid rgba(225, 112, 85, 0.3);
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  text-align: center;
  box-shadow: var(--shadow-heavy);
  animation: modalSlideIn 0.3s ease-out;
}

.alert-icon {
  width: 60px;
  height: 60px;
  color: var(--error-color);
  margin: 0 auto 20px;
}

.alert-message {
  color: var(--text-primary);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

.modern-alert-btn {
  background: linear-gradient(135deg, var(--error-color), #d63031);
  border: none;
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-medium);
}

.modern-alert-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

/* FAQ Section */
.faq-section {
  padding: 60px 0;
  background: rgba(25, 35, 65, 0.05);
}

.faq-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.faq-header {
  text-align: center;
  margin-bottom: 50px;
}

.faq-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--accent-color), #4a90e2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-subtitle {
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
}

.faq-item {
  background: rgba(25, 35, 65, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(108, 92, 231, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

.faq-checkbox {
  display: none;
}

.question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.question:hover {
  background: rgba(108, 92, 231, 0.05);
}

.question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-color);
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-checkbox:checked + .question::after {
  transform: rotate(45deg);
}

.answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.faq-checkbox:checked + .question + .answer {
  max-height: 200px;
}

.answer p {
  padding: 20px 25px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Footer Styles */
.modern-footer {
  background: var(--background-primary);
  border-top: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0;
  margin-top: 80px;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 30px;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  align-items: start;
}

.footer-section h3 {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-section ul li a:hover {
  color: var(--accent-color);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 52px;
  width: auto;
}

.footer-section p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 280px;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(108, 92, 231, 0.2);
  border-color: rgba(108, 92, 231, 0.4);
  color: var(--accent-color);
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid rgba(108, 92, 231, 0.2);
  padding-top: 30px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-content p {
  color: var(--text-secondary);
  margin: 0;
  font-size: 0.9rem;
}

.payment-methods {
  display: flex;
  gap: 12px;
  align-items: center;
}

.payment-methods img {
  height: 28px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.payment-methods img:hover {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .header-container {
    padding: 0 20px;
  }

  .header-left {
    gap: 25px;
  }

  .header-left ul {
    gap: 20px;
  }

  .dropdown-content {
    min-width: 250px;
  }

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

  .generation-card {
    padding: 30px;
  }

  .modern-gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .faq-content {
    padding: 0 20px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

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

@media (max-width: 768px) {
  .header-container {
    padding: 0 15px;
    height: 60px;
  }

  .header-left {
    gap: 15px;
  }

  .header-left ul {
    gap: 15px;
  }

  .modern-header .nav-button {
    font-size: 1.1rem;
    padding: 6px 12px;
  }

  .user-section {
    gap: 12px;
  }

  .balance-display {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .profile-btn {
    padding: 12px 18px;
    font-size: 1rem;
    max-width: 200px;
  }

  .dropdown-content {
    min-width: 220px;
    left: -50px;
  }

  .hero-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 10px;
  }

  .generation-section,
  .results-section {
    padding: 60px 20px;
  }

  .generation-card {
    padding: 25px;
  }

  .modern-prompt-box {
    padding: 20px;
  }

  .modern-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 20px 0;
  }

  .gallery-title {
    font-size: 1.5rem;
  }

  .image-card-actions {
    padding: 15px 12px 12px;
  }

  .image-card-buttons {
    flex-direction: column;
    gap: 6px;
  }

  .image-card-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .image-card-prompt {
    font-size: 0.75rem;
    padding: 6px 10px;
    max-height: 50px;
    -webkit-line-clamp: 2;
  }

  .image-card-date {
    font-size: 0.7rem;
    margin-bottom: 6px;
  }

  .modal-content {
    margin: 10vh auto;
    padding: 20px;
  }

  .modal-prompt-container {
    padding: 15px;
    margin-bottom: 20px;
  }

  .modal-prompt-label {
    font-size: 0.9rem;
    margin-bottom: 8px;
  }

  .modal-prompt-text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .footer-content {
    padding: 40px 20px 20px;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .faq-section {
    padding: 40px 0;
  }

  .faq-content {
    padding: 0 15px;
  }

  .faq-title {
    font-size: 1.8rem;
  }

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

  .question {
    padding: 18px 20px;
    font-size: 0.95rem;
  }

  .answer p {
    padding: 18px 20px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .modern-generate-btn {
    padding: 15px 30px;
    font-size: 1rem;
  }

  .gallery-title {
    font-size: 1.3rem;
  }

  .modern-gallery {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .modal-content {
    width: 95%;
    margin: 5vh auto;
    padding: 15px;
  }

  .faq-title {
    font-size: 1.6rem;
  }

  .question {
    padding: 15px 18px;
  }

  .answer p {
    padding: 15px 18px;
  }
}

/* Animations for particles and other effects */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Loading and interaction states */
.loading {
  pointer-events: none;
  opacity: 0.7;
}

.loading .modern-generate-btn {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.5), rgba(74, 144, 226, 0.5));
  cursor: not-allowed;
}

/* Utility classes */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}

.text-center {
  text-align: center !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mt-20 {
  margin-top: 20px !important;
}

.p-20 {
  padding: 20px !important;
} 