/**
 * Custom Flash Card Creator - Premium Design (Alternate Design Standards)
 * 
 * Styling for custom card creation modal with:
 * - Glassmorphism effects
 * - Premium green palette (#5C6F5C, #2d5f4d)
 * - Generous whitespace
 * - Smooth transitions
 */

/* Modal Overlay */
.custom-card-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.custom-card-modal.active {
  display: flex;
}

.custom-card-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

/* Modal Container */
.custom-card-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  background: #FEFEFE;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.custom-card-header {
  padding: 2rem 2.5rem 1.5rem;
  border-bottom: 1px solid #E8E3DA;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.custom-card-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1A1816;
  margin: 0;
  background: linear-gradient(135deg, #5C6F5C 0%, #2d5f4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.custom-card-back-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #5C6F5C;
  cursor: pointer;
  padding: 0.5rem;
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.custom-card-back-btn:hover {
  background: rgba(92, 111, 92, 0.1);
  color: #2d5f4d;
}

/* Inline Success Banner */
.custom-card-inline-success {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 1rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  animation: slideDown 0.3s ease;
}

.custom-card-inline-success i {
  font-size: 1.25rem;
}

.custom-card-inline-success.hidden {
  display: none;
}

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

/* Content Area */
.custom-card-content {
  padding: 2rem 2.5rem;
  overflow-y: auto;
  flex: 1;
}

.custom-card-section {
  margin-bottom: 1.5rem;
}

.custom-card-section-compact {
  margin-bottom: 1rem;
}

.custom-card-section:last-child {
  margin-bottom: 0;
}

/* Labels */
.custom-card-label {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #1A1816;
  margin-bottom: 0.75rem;
}

.custom-card-label-hint {
  display: block;
  font-weight: 400;
  font-size: 0.8125rem;
  color: #9E9689;
  margin-top: 0.25rem;
}

.custom-card-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.custom-card-optional {
  font-weight: 400;
  color: #9E9689;
  font-size: 0.875rem;
}

/* Text Inputs */
.custom-card-input-large {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1A1816;
  background: #FEFEFE;
  border: 2px solid #E8E3DA;
  border-radius: 8px;
  transition: all 0.2s ease;
  outline: none;
}

.custom-card-input-large:focus {
  border-color: #5C6F5C;
  box-shadow: 0 0 0 3px rgba(92, 111, 92, 0.1);
}

.custom-card-input,
.custom-card-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  color: #1A1816;
  background: #FEFEFE;
  border: 2px solid #E8E3DA;
  border-radius: 8px;
  transition: all 0.2s ease;
  outline: none;
}

.custom-card-input:focus,
.custom-card-select:focus {
  border-color: #5C6F5C;
  box-shadow: 0 0 0 3px rgba(92, 111, 92, 0.1);
}

/* Definition Textarea (Legacy - kept for backwards compatibility) */
.custom-card-textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #1A1816;
  background: #FEFEFE;
  border: 2px solid #E8E3DA;
  border-radius: 8px;
  transition: all 0.2s ease;
  outline: none;
  resize: vertical;
  min-height: 160px;
  max-height: 250px;
}

.custom-card-textarea:focus {
  border-color: #5C6F5C;
  box-shadow: 0 0 0 3px rgba(92, 111, 92, 0.1);
}

.custom-card-textarea::placeholder {
  color: #9E9689;
}

/* Quill Rich Text Editor Styles */
.custom-card-quill-editor {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #1A1816;
  background: #FEFEFE;
  border: 2px solid #E8E3DA;
  border-top: none;
  border-radius: 0 0 8px 8px;
  min-height: 160px;
  max-height: 250px;
  overflow-y: auto;
}

#custom-card-definition-toolbar {
  background: #FEFEFE;
  border: 2px solid #E8E3DA;
  border-bottom: 1px solid #E8E3DA;
  border-radius: 8px 8px 0 0;
  padding: 0.5rem;
  font-family: 'Poppins', sans-serif;
}

/* Quill editor content area */
.custom-card-quill-editor .ql-editor {
  min-height: 160px;
  max-height: 250px;
  padding: 1rem 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #1A1816;
}

.custom-card-quill-editor .ql-editor.ql-blank::before {
  color: #9E9689;
  font-style: normal;
  font-family: 'Poppins', sans-serif;
}

/* Quill toolbar buttons and controls */
.ql-toolbar.ql-snow {
  border: none !important;
  padding: 0.5rem;
}

.ql-toolbar.ql-snow .ql-formats {
  margin-right: 1rem;
}

.ql-toolbar.ql-snow button {
  width: 32px;
  height: 32px;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.ql-toolbar.ql-snow button:hover {
  background: rgba(92, 111, 92, 0.1);
  color: #5C6F5C;
}

.ql-toolbar.ql-snow button.ql-active {
  background: #5C6F5C;
  color: white;
}

.ql-toolbar.ql-snow .ql-stroke {
  stroke: #1A1816;
}

.ql-toolbar.ql-snow button:hover .ql-stroke {
  stroke: #5C6F5C;
}

.ql-toolbar.ql-snow button.ql-active .ql-stroke {
  stroke: white;
}

.ql-toolbar.ql-snow .ql-fill {
  fill: #1A1816;
}

.ql-toolbar.ql-snow button:hover .ql-fill {
  fill: #5C6F5C;
}

.ql-toolbar.ql-snow button.ql-active .ql-fill {
  fill: white;
}

/* Quill dropdowns */
.ql-toolbar.ql-snow select {
  height: 32px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #E8E3DA;
  border-radius: 4px;
  background: #FEFEFE;
  color: #1A1816;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
}

.ql-toolbar.ql-snow select:focus {
  border-color: #5C6F5C;
  outline: none;
}

/* Quill container */
.ql-container.ql-snow {
  border: none !important;
  font-family: 'Poppins', sans-serif;
}

/* Focus state for entire editor */
.custom-card-quill-editor:focus-within {
  border-color: #5C6F5C;
  box-shadow: 0 0 0 3px rgba(92, 111, 92, 0.1);
}

#custom-card-definition-toolbar:focus-within + .custom-card-quill-editor {
  border-color: #5C6F5C;
  box-shadow: 0 0 0 3px rgba(92, 111, 92, 0.1);
}

/* Rich text formatting in displayed cards */
.flashcard-definition-html {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
}

.flashcard-definition-html p {
  margin: 0 0 0.75rem 0;
}

.flashcard-definition-html p:last-child {
  margin-bottom: 0;
}

.flashcard-definition-html strong {
  font-weight: 600;
  color: #1A1816;
}

.flashcard-definition-html em {
  font-style: italic;
}

.flashcard-definition-html u {
  text-decoration: underline;
}

/* Quill font classes */
.flashcard-definition-html .ql-font-serif,
.ql-editor .ql-font-serif {
  font-family: Georgia, 'Times New Roman', serif;
}

.flashcard-definition-html .ql-font-monospace,
.ql-editor .ql-font-monospace {
  font-family: 'Courier New', monospace;
}

/* Quill size classes */
.flashcard-definition-html .ql-size-small,
.ql-editor .ql-size-small {
  font-size: 0.75em;
}

.flashcard-definition-html .ql-size-large,
.ql-editor .ql-size-large {
  font-size: 1.5em;
}

.flashcard-definition-html .ql-size-huge,
.ql-editor .ql-size-huge {
  font-size: 2em;
}

/* Quill alignment classes */
.flashcard-definition-html .ql-align-center,
.ql-editor .ql-align-center {
  text-align: center;
}

.flashcard-definition-html .ql-align-right,
.ql-editor .ql-align-right {
  text-align: right;
}

.flashcard-definition-html .ql-align-justify,
.ql-editor .ql-align-justify {
  text-align: justify;
}

/* Heading tags in flash cards */
.flashcard-definition-html h1,
.flashcard-definition-html h2,
.flashcard-definition-html h3,
.flashcard-definition-html h4,
.flashcard-definition-html h5,
.flashcard-definition-html h6 {
  font-weight: 600;
  margin: 0.5rem 0;
  color: #1A1816;
}

.flashcard-definition-html h1 { font-size: 2em; }
.flashcard-definition-html h2 { font-size: 1.75em; }
.flashcard-definition-html h3 { font-size: 1.5em; }
.flashcard-definition-html h4 { font-size: 1.25em; }
.flashcard-definition-html h5 { font-size: 1.1em; }
.flashcard-definition-html h6 { font-size: 1em; }

/* AI Generation Button */
.custom-card-ai-btn {
  background: linear-gradient(135deg, #5C6F5C 0%, #2d5f4d 100%);
  color: white;
  border: none;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 6px rgba(92, 111, 92, 0.2);
}

.custom-card-ai-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 111, 92, 0.3);
}

.custom-card-ai-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loading State */
.custom-card-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: linear-gradient(135deg, rgba(92, 111, 92, 0.04) 0%, rgba(92, 111, 92, 0.01) 100%);
  border: 1px solid rgba(92, 111, 92, 0.15);
  border-radius: 8px;
  color: #5C6F5C;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.custom-card-loading.hidden {
  display: none;
}

.custom-card-loading i {
  font-size: 1rem;
}

/* Image Search */
.custom-card-image-search {
  display: flex;
  gap: 0.5rem;
}

.custom-card-search-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #5C6F5C;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-card-search-btn:hover {
  background: #2d5f4d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 111, 92, 0.25);
}

/* Image Results Grid */
.custom-card-image-results {
  margin-top: 0.75rem;
  max-height: 200px;
  overflow-y: auto;
}

.custom-card-image-results.hidden {
  display: none;
}

.custom-card-image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.custom-card-image-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #E8E3DA;
}

.custom-card-image-item:hover {
  border-color: #5C6F5C;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-card-image-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Image Preview */
.custom-card-image-preview {
  margin-top: 0.75rem;
  border: 2px solid #5C6F5C;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(92, 111, 92, 0.04) 0%, rgba(92, 111, 92, 0.01) 100%);
}

.custom-card-image-preview.hidden {
  display: none;
}

.custom-card-image-preview-container {
  position: relative;
  max-height: 120px;
  overflow: hidden;
}

.custom-card-image-preview-container img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  display: block;
  background: #f9fafb;
}

.custom-card-image-remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(4px);
}

.custom-card-image-remove:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Attribution */
.custom-card-attribution {
  padding: 0.5rem 0.75rem;
  font-size: 0.6875rem;
  color: #9E9689;
  border-top: 1px solid rgba(92, 111, 92, 0.15);
}

.custom-card-attribution a {
  color: #5C6F5C;
  text-decoration: none;
  font-weight: 500;
}

.custom-card-attribution a:hover {
  text-decoration: underline;
}

/* Empty/Error States */
.custom-card-empty,
.custom-card-error {
  padding: 1.5rem;
  text-align: center;
  color: #9E9689;
  font-size: 0.9375rem;
}

.custom-card-error {
  color: #d97706;
}

/* Footer */
.custom-card-footer {
  padding: 1.5rem 2.5rem 2rem;
  border-top: 1px solid #E8E3DA;
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* Buttons */
.custom-card-btn-primary,
.custom-card-btn-secondary {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9375rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid transparent;
}

.custom-card-btn-primary {
  background: #5C6F5C;
  border-color: #5C6F5C;
  color: white;
}

.custom-card-btn-primary:hover:not(:disabled) {
  background: #2d5f4d;
  border-color: #2d5f4d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(92, 111, 92, 0.25);
}

.custom-card-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.custom-card-btn-secondary {
  background: transparent;
  border-color: #5C6F5C;
  color: #5C6F5C;
}

.custom-card-btn-secondary:hover {
  background: rgba(92, 111, 92, 0.05);
}

/* Success Notification Modal */
.custom-card-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.custom-card-success-modal.active {
  display: flex;
}

.custom-card-success-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

.custom-card-success-content {
  position: relative;
  z-index: 1;
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  animation: slideUp 0.3s ease;
}

.custom-card-success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #5C6F5C 0%, #2d5f4d 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  animation: scaleIn 0.4s ease 0.1s backwards;
}

.custom-card-success-icon i {
  font-size: 2rem;
  color: white;
}

.custom-card-success-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1A1816;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #5C6F5C 0%, #2d5f4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.custom-card-success-word {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #5C6F5C;
  margin-bottom: 1rem;
}

.custom-card-success-message {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.custom-card-success-btn {
  background: linear-gradient(135deg, #5C6F5C 0%, #2d5f4d 100%);
  color: white;
  border: none;
  padding: 0.875rem 2.5rem;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(92, 111, 92, 0.25);
}

.custom-card-success-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(92, 111, 92, 0.35);
}

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .custom-card-container {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }
  
  .custom-card-header {
    padding: 1.5rem 1.25rem 1rem;
  }
  
  .custom-card-title {
    font-size: 1.5rem;
  }
  
  .custom-card-content {
    padding: 1.5rem 1.25rem;
  }
  
  .custom-card-footer {
    padding: 1rem 1.25rem 1.5rem;
    flex-direction: column-reverse;
  }
  
  .custom-card-btn-primary,
  .custom-card-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .custom-card-image-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .custom-card-label-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  
  .custom-card-ai-btn {
    width: 100%;
    justify-content: center;
  }
  
  .custom-card-success-content {
    padding: 2rem 1.5rem;
  }
  
  .custom-card-success-title {
    font-size: 1.5rem;
  }
  
  .custom-card-success-word {
    font-size: 1.125rem;
  }
}

@media (max-width: 480px) {
  .custom-card-input-large {
    font-size: 1.25rem;
  }
  
  .custom-card-image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .ql-toolbar.ql-snow {
    padding: 0.5rem;
  }
  
  .ql-toolbar.ql-snow .ql-formats {
    margin-right: 0.5rem;
  }
}

/* ========================================================================
   PREMIUM FEATURE PAYWALL STYLES
   ======================================================================== */

/* Locked Feature State */
.custom-card-locked-feature {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px dashed #cbd5e0;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.custom-card-lock-icon {
  font-size: 2.5rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.custom-card-lock-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.custom-card-lock-description {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.custom-card-lock-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.custom-card-lock-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
  text-decoration: none;
  color: white;
}

/* Upgrade Modal */
.upgrade-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.upgrade-modal.active {
  opacity: 1;
  pointer-events: all;
}

.upgrade-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.upgrade-content {
  position: relative;
  background: white;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.upgrade-modal.active .upgrade-content {
  transform: scale(1);
}

.upgrade-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.upgrade-close:hover {
  color: #1e293b;
}

.upgrade-icon {
  text-align: center;
  font-size: 3.5rem;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
}

.upgrade-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  margin-bottom: 1rem;
}

.upgrade-description {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: #64748b;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.upgrade-features {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.upgrade-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9375rem;
  color: #334155;
}

.upgrade-feature i {
  color: #047857;
  font-size: 1.125rem;
}

.upgrade-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(4, 120, 87, 0.3);
  margin-bottom: 1rem;
}

.upgrade-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.4);
  text-decoration: none;
  color: white;
}

.upgrade-footer {
  font-family: 'Poppins', sans-serif;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-align: center;
  margin: 0;
}

/* Responsive adjustments for upgrade modal */
@media (max-width: 768px) {
  .upgrade-content {
    padding: 2rem 1.5rem;
  }
  
  .upgrade-title {
    font-size: 1.5rem;
  }
  
  .upgrade-icon {
    font-size: 3rem;
  }
}

